[INFO] cloning repository https://github.com/anlumo/flutter_embedder
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/anlumo/flutter_embedder" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fanlumo%2Fflutter_embedder", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fanlumo%2Fflutter_embedder'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] a26a863f1c8955e61c796c8fdd087d71f0a6189e
[INFO] documenting anlumo/flutter_embedder against 1.70.0 for beta-1.71-rustdoc-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fanlumo%2Fflutter_embedder" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/anlumo/flutter_embedder on toolchain 1.70.0
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.70.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] removed /workspace/builds/worker-4-tc1/source/.cargo/config.toml
[INFO] started tweaking git repo https://github.com/anlumo/flutter_embedder
[INFO] finished tweaking git repo https://github.com/anlumo/flutter_embedder
[INFO] tweaked toml for git repo https://github.com/anlumo/flutter_embedder written to /workspace/builds/worker-4-tc1/source/Cargo.toml
[INFO] crate git repo https://github.com/anlumo/flutter_embedder already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.70.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]     Updating git repository `https://github.com/anlumo/winit-new-keyboard.git`
[INFO] [stderr]     Updating git repository `https://github.com/gfx-rs/naga`
[INFO] [stderr]     Updating git repository `https://github.com/maroider/xkbcommon-dl`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded nameof v1.2.2
[INFO] [stderr]   Downloaded serde_variant v0.1.1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+1.70.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] e6a3a0eefb1aa68709ad48cec5fcc11cca6e4b151ba94b8bf8dc56de96dd7931
[INFO] running `Command { std: "docker" "start" "-a" "e6a3a0eefb1aa68709ad48cec5fcc11cca6e4b151ba94b8bf8dc56de96dd7931", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "e6a3a0eefb1aa68709ad48cec5fcc11cca6e4b151ba94b8bf8dc56de96dd7931", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "e6a3a0eefb1aa68709ad48cec5fcc11cca6e4b151ba94b8bf8dc56de96dd7931", kill_on_drop: false }`
[INFO] [stdout] e6a3a0eefb1aa68709ad48cec5fcc11cca6e4b151ba94b8bf8dc56de96dd7931
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+1.70.0" "doc" "--frozen" "--no-deps" "--document-private-items" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] cc62ab8064c3a929ad8c10065a32208ee8d12f542585bf4d383df8cafad9632d
[INFO] running `Command { std: "docker" "start" "-a" "cc62ab8064c3a929ad8c10065a32208ee8d12f542585bf4d383df8cafad9632d", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.132
[INFO] [stderr]    Compiling proc-macro2 v1.0.43
[INFO] [stderr]    Compiling unicode-ident v1.0.3
[INFO] [stderr]    Compiling quote v1.0.21
[INFO] [stderr]    Compiling syn v1.0.99
[INFO] [stderr]    Compiling log v0.4.17
[INFO] [stderr]    Compiling num-traits v0.2.15
[INFO] [stderr]    Compiling indexmap v1.9.1
[INFO] [stderr]     Checking once_cell v1.14.0
[INFO] [stderr]    Compiling ahash v0.7.6
[INFO] [stderr]    Compiling lock_api v0.4.8
[INFO] [stderr]    Compiling parking_lot_core v0.9.3
[INFO] [stderr]    Compiling memchr v2.5.0
[INFO] [stderr]     Checking libloading v0.7.3
[INFO] [stderr]     Checking smallvec v1.9.0
[INFO] [stderr]    Compiling clang-sys v1.3.3
[INFO] [stderr]    Compiling num-integer v0.1.45
[INFO] [stderr]     Checking cty v0.2.2
[INFO] [stderr]    Compiling aho-corasick v0.7.19
[INFO] [stderr]    Compiling memoffset v0.6.5
[INFO] [stderr]    Compiling crc32fast v1.3.2
[INFO] [stderr]    Compiling ash v0.37.0+1.3.209
[INFO] [stderr]    Compiling atty v0.2.14
[INFO] [stderr]    Compiling serde_derive v1.0.144
[INFO] [stderr]     Checking unicode-width v0.1.9
[INFO] [stderr]     Checking getrandom v0.2.7
[INFO] [stderr]    Compiling hashbrown v0.12.3
[INFO] [stderr]    Compiling pkg-config v0.3.25
[INFO] [stderr]    Compiling minimal-lexical v0.2.1
[INFO] [stderr]     Checking parking_lot v0.12.1
[INFO] [stderr]    Compiling os_str_bytes v6.3.0
[INFO] [stderr]    Compiling regex-syntax v0.6.27
[INFO] [stderr]    Compiling khronos-egl v4.1.0
[INFO] [stderr]    Compiling termcolor v1.1.3
[INFO] [stderr]     Checking bit-set v0.5.3
[INFO] [stderr]    Compiling x11-dl v2.20.0
[INFO] [stderr]    Compiling clap_lex v0.2.4
[INFO] [stderr]    Compiling nom v7.1.1
[INFO] [stderr]     Checking spirv v0.2.0+1.5.4
[INFO] [stderr]     Checking codespan-reporting v0.11.1
[INFO] [stderr]     Checking raw-window-handle v0.5.0
[INFO] [stderr]     Checking gpu-descriptor-types v0.1.1
[INFO] [stderr]     Checking gpu-alloc-types v0.2.0
[INFO] [stderr]    Compiling num-iter v0.1.43
[INFO] [stderr]    Compiling num-rational v0.3.2
[INFO] [stderr]     Checking unicode-xid v0.2.3
[INFO] [stderr]     Checking rustc-hash v1.1.0
[INFO] [stderr]    Compiling cfg_aliases v0.1.1
[INFO] [stderr]    Compiling textwrap v0.15.0
[INFO] [stderr]    Compiling serde v1.0.144
[INFO] [stderr]    Compiling either v1.8.0
[INFO] [stderr]    Compiling bindgen v0.60.1
[INFO] [stderr]    Compiling strsim v0.10.0
[INFO] [stderr]     Checking hexf-parse v0.2.1
[INFO] [stderr]    Compiling clap v3.2.20
[INFO] [stderr]    Compiling which v4.3.0
[INFO] [stderr]    Compiling wgpu-core v0.13.0 (https://github.com/gfx-rs/wgpu?branch=master#94ce7639)
[INFO] [stderr]    Compiling regex v1.6.0
[INFO] [stderr]     Checking gpu-alloc v0.5.3
[INFO] [stderr]     Checking gpu-descriptor v0.2.3
[INFO] [stderr]    Compiling proc-macro-error-attr v1.0.4
[INFO] [stderr]    Compiling env_logger v0.9.0
[INFO] [stderr]    Compiling cexpr v0.6.0
[INFO] [stderr]     Checking fxhash v0.2.1
[INFO] [stderr]     Checking wgpu-types v0.13.0 (https://github.com/gfx-rs/wgpu?branch=master#94ce7639)
[INFO] [stderr]     Checking arrayvec v0.7.2
[INFO] [stderr]     Checking glow v0.11.2
[INFO] [stderr]     Checking renderdoc-sys v0.7.1
[INFO] [stderr]     Checking profiling v1.0.6
[INFO] [stderr]    Compiling thiserror-impl v1.0.34
[INFO] [stderr]     Checking png v0.16.8
[INFO] [stderr]    Compiling proc-macro-error v1.0.4
[INFO] [stderr]     Checking nix v0.22.3
[INFO] [stderr]     Checking thiserror v1.0.34
[INFO] [stderr]     Checking naga v0.9.0 (https://github.com/gfx-rs/naga?rev=b209d911#b209d911)
[INFO] [stderr]     Checking mio v0.8.4
[INFO] [stderr]     Checking gethostname v0.2.3
[INFO] [stderr]     Checking dlib v0.5.0
[INFO] [stderr]    Compiling tokio v1.21.0
[INFO] [stderr]     Checking bytemuck v1.12.1
[INFO] [stderr]     Checking copyless v0.1.5
[INFO] [stderr]    Compiling serde_json v1.0.85
[INFO] [stderr]     Checking image v0.23.14
[INFO] [stderr]    Compiling clap_derive v3.2.18
[INFO] [stderr]     Checking xkbcommon-dl v0.1.0 (https://github.com/maroider/xkbcommon-dl?rev=900832888ad6f11011d1369befb344a9aa8a9610#90083288)
[INFO] [stderr]    Compiling tokio-macros v1.8.0
[INFO] [stderr]     Checking x11rb v0.9.0
[INFO] [stderr]     Checking signal-hook-registry v1.4.0
[INFO] [stderr]     Checking socket2 v0.4.7
[INFO] [stderr]     Checking num_cpus v1.13.1
[INFO] [stderr]     Checking raw-window-handle v0.4.3
[INFO] [stderr]     Checking instant v0.1.12
[INFO] [stderr]     Checking humantime v2.1.0
[INFO] [stderr]     Checking ryu v1.0.11
[INFO] [stderr]     Checking itoa v1.0.3
[INFO] [stderr]     Checking bytes v1.2.1
[INFO] [stderr]     Checking nameof v1.2.2
[INFO] [stderr]     Checking winit v0.27.2 (https://github.com/anlumo/winit-new-keyboard.git?branch=new-keyboard-linux#5e6dec94)
[INFO] [stderr]     Checking wgpu-hal v0.13.0 (https://github.com/gfx-rs/wgpu?branch=master#94ce7639)
[INFO] [stderr]    Compiling num-derive v0.3.3
[INFO] [stderr]    Compiling flutter_embedder v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Checking serde_variant v0.1.1
[INFO] [stderr]     Checking arboard v2.1.1
[INFO] [stderr]     Checking wgpu v0.13.0 (https://github.com/gfx-rs/wgpu?branch=master#94ce7639)
[INFO] [stderr]  Documenting flutter_embedder v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0554]: `#![feature]` may not be used on the stable release channel
[INFO] [stdout]  --> src/main.rs:2:12
[INFO] [stdout]   |
[INFO] [stdout] 2 | #![feature(once_cell, result_option_inspect)]
[INFO] [stdout]   |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0554]: `#![feature]` may not be used on the stable release channel
[INFO] [stdout]  --> src/main.rs:2:23
[INFO] [stdout]   |
[INFO] [stdout] 2 | #![feature(once_cell, result_option_inspect)]
[INFO] [stdout]   |                       ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `none`
[INFO] [stdout]   --> src/flutter_application/mouse_cursor.rs:15:32
[INFO] [stdout]    |
[INFO] [stdout] 15 |     /// Any cursor other than [none] or [MouseCursor.uncontrolled] unhides the
[INFO] [stdout]    |                                ^^^^ no item named `none` in scope
[INFO] [stdout]    |
[INFO] [stdout]    = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout]    = note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `noDrop`
[INFO] [stdout]   --> src/flutter_application/mouse_cursor.rs:51:10
[INFO] [stdout]    |
[INFO] [stdout] 51 |     /// [noDrop].
[INFO] [stdout]    |          ^^^^^^ no item named `noDrop` in scope
[INFO] [stdout]    |
[INFO] [stdout]    = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `noDrop`
[INFO] [stdout]   --> src/flutter_application/mouse_cursor.rs:64:13
[INFO] [stdout]    |
[INFO] [stdout] 64 |     ///  * [noDrop], which indicates somewhere that the current item may not be
[INFO] [stdout]    |             ^^^^^^ no item named `noDrop` in scope
[INFO] [stdout]    |
[INFO] [stdout]    = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `progress`
[INFO] [stdout]   --> src/flutter_application/mouse_cursor.rs:86:13
[INFO] [stdout]    |
[INFO] [stdout] 86 |     ///  * [progress], which is similar to [wait] but the program can still be
[INFO] [stdout]    |             ^^^^^^^^ no item named `progress` in scope
[INFO] [stdout]    |
[INFO] [stdout]    = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `wait`
[INFO] [stdout]   --> src/flutter_application/mouse_cursor.rs:86:45
[INFO] [stdout]    |
[INFO] [stdout] 86 |     ///  * [progress], which is similar to [wait] but the program can still be
[INFO] [stdout]    |                                             ^^^^ no item named `wait` in scope
[INFO] [stdout]    |
[INFO] [stdout]    = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `wait`
[INFO] [stdout]   --> src/flutter_application/mouse_cursor.rs:94:34
[INFO] [stdout]    |
[INFO] [stdout] 94 |     /// Does *not* fall back to [wait] if unavailable.
[INFO] [stdout]    |                                  ^^^^ no item named `wait` in scope
[INFO] [stdout]    |
[INFO] [stdout]    = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `wait`
[INFO] [stdout]    --> src/flutter_application/mouse_cursor.rs:104:13
[INFO] [stdout]     |
[INFO] [stdout] 104 |     ///  * [wait], which is similar to [progress] but the program can not be
[INFO] [stdout]     |             ^^^^ no item named `wait` in scope
[INFO] [stdout]     |
[INFO] [stdout]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `progress`
[INFO] [stdout]    --> src/flutter_application/mouse_cursor.rs:104:41
[INFO] [stdout]     |
[INFO] [stdout] 104 |     ///  * [wait], which is similar to [progress] but the program can not be
[INFO] [stdout]     |                                         ^^^^^^^^ no item named `progress` in scope
[INFO] [stdout]     |
[INFO] [stdout]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `text`
[INFO] [stdout]    --> src/flutter_application/mouse_cursor.rs:151:13
[INFO] [stdout]     |
[INFO] [stdout] 151 |     /// to [text].
[INFO] [stdout]     |             ^^^^ no item named `text` in scope
[INFO] [stdout]     |
[INFO] [stdout]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `allScroll`
[INFO] [stdout]    --> src/flutter_application/mouse_cursor.rs:190:66
[INFO] [stdout]     |
[INFO] [stdout] 190 |     /// Typically the shape of four-way arrow. May fall back to [allScroll].
[INFO] [stdout]     |                                                                  ^^^^^^^^^ no item named `allScroll` in scope
[INFO] [stdout]     |
[INFO] [stdout]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `forbidden`
[INFO] [stdout]    --> src/flutter_application/mouse_cursor.rs:227:47
[INFO] [stdout]     |
[INFO] [stdout] 227 |     /// Typically the shape of a hand with a [forbidden] sign at the corner. May
[INFO] [stdout]     |                                               ^^^^^^^^^ no item named `forbidden` in scope
[INFO] [stdout]     |
[INFO] [stdout]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `forbidden`
[INFO] [stdout]    --> src/flutter_application/mouse_cursor.rs:228:23
[INFO] [stdout]     |
[INFO] [stdout] 228 |     /// fall back to [forbidden].
[INFO] [stdout]     |                       ^^^^^^^^^ no item named `forbidden` in scope
[INFO] [stdout]     |
[INFO] [stdout]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `forbidden`
[INFO] [stdout]    --> src/flutter_application/mouse_cursor.rs:241:13
[INFO] [stdout]     |
[INFO] [stdout] 241 |     ///  * [forbidden], which indicates an action that will not be carried out.
[INFO] [stdout]     |             ^^^^^^^^^ no item named `forbidden` in scope
[INFO] [stdout]     |
[INFO] [stdout]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `move`
[INFO] [stdout]    --> src/flutter_application/mouse_cursor.rs:294:13
[INFO] [stdout]     |
[INFO] [stdout] 294 |     ///  * [move], which indicates moving in any direction.
[INFO] [stdout]     |             ^^^^ no item named `move` in scope
[INFO] [stdout]     |
[INFO] [stdout]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `resizeUpDown`
[INFO] [stdout]    --> src/flutter_application/mouse_cursor.rs:357:71
[INFO] [stdout]     |
[INFO] [stdout] 357 |     /// Typically the shape of an arrow pointing up. May fallback to [resizeUpDown].
[INFO] [stdout]     |                                                                       ^^^^^^^^^^^^ no item named `resizeUpDown` in scope
[INFO] [stdout]     |
[INFO] [stdout]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `resizeUpDown`
[INFO] [stdout]    --> src/flutter_application/mouse_cursor.rs:371:73
[INFO] [stdout]     |
[INFO] [stdout] 371 |     /// Typically the shape of an arrow pointing down. May fallback to [resizeUpDown].
[INFO] [stdout]     |                                                                         ^^^^^^^^^^^^ no item named `resizeUpDown` in scope
[INFO] [stdout]     |
[INFO] [stdout]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `resizeLeftRight`
[INFO] [stdout]    --> src/flutter_application/mouse_cursor.rs:385:73
[INFO] [stdout]     |
[INFO] [stdout] 385 |     /// Typically the shape of an arrow pointing left. May fallback to [resizeLeftRight].
[INFO] [stdout]     |                                                                         ^^^^^^^^^^^^^^^ no item named `resizeLeftRight` in scope
[INFO] [stdout]     |
[INFO] [stdout]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `resizeLeftRight`
[INFO] [stdout]    --> src/flutter_application/mouse_cursor.rs:399:74
[INFO] [stdout]     |
[INFO] [stdout] 399 |     /// Typically the shape of an arrow pointing right. May fallback to [resizeLeftRight].
[INFO] [stdout]     |                                                                          ^^^^^^^^^^^^^^^ no item named `resizeLeftRight` in scope
[INFO] [stdout]     |
[INFO] [stdout]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `resizeUpLeftDownRight`
[INFO] [stdout]    --> src/flutter_application/mouse_cursor.rs:413:79
[INFO] [stdout]     |
[INFO] [stdout] 413 |     /// Typically the shape of an arrow pointing upper left. May fallback to [resizeUpLeftDownRight].
[INFO] [stdout]     |                                                                               ^^^^^^^^^^^^^^^^^^^^^ no item named `resizeUpLeftDownRight` in scope
[INFO] [stdout]     |
[INFO] [stdout]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `resizeUpRightDownLeft`
[INFO] [stdout]    --> src/flutter_application/mouse_cursor.rs:426:80
[INFO] [stdout]     |
[INFO] [stdout] 426 |     /// Typically the shape of an arrow pointing upper right. May fallback to [resizeUpRightDownLeft].
[INFO] [stdout]     |                                                                                ^^^^^^^^^^^^^^^^^^^^^ no item named `resizeUpRightDownLeft` in scope
[INFO] [stdout]     |
[INFO] [stdout]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `resizeUpRightDownLeft`
[INFO] [stdout]    --> src/flutter_application/mouse_cursor.rs:439:79
[INFO] [stdout]     |
[INFO] [stdout] 439 |     /// Typically the shape of an arrow pointing lower left. May fallback to [resizeUpRightDownLeft].
[INFO] [stdout]     |                                                                               ^^^^^^^^^^^^^^^^^^^^^ no item named `resizeUpRightDownLeft` in scope
[INFO] [stdout]     |
[INFO] [stdout]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `resizeUpLeftDownRight`
[INFO] [stdout]    --> src/flutter_application/mouse_cursor.rs:452:80
[INFO] [stdout]     |
[INFO] [stdout] 452 |     /// Typically the shape of an arrow pointing lower right. May fallback to [resizeUpLeftDownRight].
[INFO] [stdout]     |                                                                                ^^^^^^^^^^^^^^^^^^^^^ no item named `resizeUpLeftDownRight` in scope
[INFO] [stdout]     |
[INFO] [stdout]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `resizeLeftRight`
[INFO] [stdout]    --> src/flutter_application/mouse_cursor.rs:466:43
[INFO] [stdout]     |
[INFO] [stdout] 466 |     /// separating them. May fallback to [resizeLeftRight].
[INFO] [stdout]     |                                           ^^^^^^^^^^^^^^^ no item named `resizeLeftRight` in scope
[INFO] [stdout]     |
[INFO] [stdout]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `resizeUpDown`
[INFO] [stdout]    --> src/flutter_application/mouse_cursor.rs:481:43
[INFO] [stdout]     |
[INFO] [stdout] 481 |     /// separating them. May fallback to [resizeUpDown].
[INFO] [stdout]     |                                           ^^^^^^^^^^^^ no item named `resizeUpDown` in scope
[INFO] [stdout]     |
[INFO] [stdout]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `SystemChromeSetEnabledSystemUIOverlays`
[INFO] [stdout]    --> src/flutter_application/platform.rs:163:10
[INFO] [stdout]     |
[INFO] [stdout] 163 |     /// [SystemChromeSetEnabledSystemUIOverlays]. May be used when the platform force
[INFO] [stdout]     |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no item named `SystemChromeSetEnabledSystemUIOverlays` in scope
[INFO] [stdout]     |
[INFO] [stdout]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `portraitUp`
[INFO] [stdout]    --> src/flutter_application/platform.rs:200:6
[INFO] [stdout]     |
[INFO] [stdout] 200 | /// [portraitUp]. Otherwise, it's [landscapeLeft]. As you rotate the device by
[INFO] [stdout]     |      ^^^^^^^^^^ no item named `portraitUp` in scope
[INFO] [stdout]     |
[INFO] [stdout]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `landscapeLeft`
[INFO] [stdout]    --> src/flutter_application/platform.rs:200:36
[INFO] [stdout]     |
[INFO] [stdout] 200 | /// [portraitUp]. Otherwise, it's [landscapeLeft]. As you rotate the device by
[INFO] [stdout]     |                                    ^^^^^^^^^^^^^ no item named `landscapeLeft` in scope
[INFO] [stdout]     |
[INFO] [stdout]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `portraitUp`
[INFO] [stdout]    --> src/flutter_application/platform.rs:206:6
[INFO] [stdout]     |
[INFO] [stdout] 206 | /// [portraitUp].
[INFO] [stdout]     |      ^^^^^^^^^^ no item named `portraitUp` in scope
[INFO] [stdout]     |
[INFO] [stdout]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `portraitUp`
[INFO] [stdout]    --> src/flutter_application/platform.rs:213:13
[INFO] [stdout]     |
[INFO] [stdout] 213 |     /// in [portraitUp]. Otherwise, the device shows its boot logo in landscape
[INFO] [stdout]     |             ^^^^^^^^^^ no item named `portraitUp` in scope
[INFO] [stdout]     |
[INFO] [stdout]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `PortraitUp`
[INFO] [stdout]    --> src/flutter_application/platform.rs:217:60
[INFO] [stdout]     |
[INFO] [stdout] 217 |     /// The orientation that is 90 degrees clockwise from [PortraitUp].
[INFO] [stdout]     |                                                            ^^^^^^^^^^ no item named `PortraitUp` in scope
[INFO] [stdout]     |
[INFO] [stdout]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `LandscapeLeft`
[INFO] [stdout]    --> src/flutter_application/platform.rs:220:19
[INFO] [stdout]     |
[INFO] [stdout] 220 |     /// shown in [LandscapeLeft].
[INFO] [stdout]     |                   ^^^^^^^^^^^^^ no item named `LandscapeLeft` in scope
[INFO] [stdout]     |
[INFO] [stdout]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `PortraitUp`
[INFO] [stdout]    --> src/flutter_application/platform.rs:222:51
[INFO] [stdout]     |
[INFO] [stdout] 222 |     /// The orientation that is 180 degrees from [PortraitUp].
[INFO] [stdout]     |                                                   ^^^^^^^^^^ no item named `PortraitUp` in scope
[INFO] [stdout]     |
[INFO] [stdout]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `PortraitUp`
[INFO] [stdout]    --> src/flutter_application/platform.rs:224:67
[INFO] [stdout]     |
[INFO] [stdout] 224 |     /// The orientation that is 90 degrees counterclockwise from [PortraitUp].
[INFO] [stdout]     |                                                                   ^^^^^^^^^^ no item named `PortraitUp` in scope
[INFO] [stdout]     |
[INFO] [stdout]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `SystemUiChangeCallback`
[INFO] [stdout]    --> src/flutter_application/platform.rs:264:14
[INFO] [stdout]     |
[INFO] [stdout] 264 |     ///   * [SystemUiChangeCallback], used to listen and respond to the change in
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^ no item named `SystemUiChangeCallback` in scope
[INFO] [stdout]     |
[INFO] [stdout]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `SystemUiChangeCallback`
[INFO] [stdout]    --> src/flutter_application/platform.rs:283:14
[INFO] [stdout]     |
[INFO] [stdout] 283 |     ///   * [SystemUiChangeCallback], used to listen and respond to the change in
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^ no item named `SystemUiChangeCallback` in scope
[INFO] [stdout]     |
[INFO] [stdout]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `SystemUiChangeCallback`
[INFO] [stdout]    --> src/flutter_application/platform.rs:301:14
[INFO] [stdout]     |
[INFO] [stdout] 301 |     ///   * [SystemUiChangeCallback], used to listen and respond to the change in
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^ no item named `SystemUiChangeCallback` in scope
[INFO] [stdout]     |
[INFO] [stdout]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `List`
[INFO] [stdout]   --> src/flutter_application/text_input.rs:82:12
[INFO] [stdout]    |
[INFO] [stdout] 82 |     /// a [List] whose first value is an integer representing a previously
[INFO] [stdout]    |            ^^^^ no item named `List` in scope
[INFO] [stdout]    |
[INFO] [stdout]    = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `EditableText`
[INFO] [stdout]    --> src/flutter_application/text_input.rs:146:10
[INFO] [stdout]     |
[INFO] [stdout] 146 | /// See [EditableText] for more information about customizing action button
[INFO] [stdout]     |          ^^^^^^^^^^^^ no item named `EditableText` in scope
[INFO] [stdout]     |
[INFO] [stdout]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `EditableText`
[INFO] [stdout]    --> src/flutter_application/text_input.rs:161:9
[INFO] [stdout]     |
[INFO] [stdout] 161 | ///  * [EditableText], which invokes callbacks when the action button is pressed.
[INFO] [stdout]     |         ^^^^^^^^^^^^ no item named `EditableText` in scope
[INFO] [stdout]     |
[INFO] [stdout]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `TextField`
[INFO] [stdout]    --> src/flutter_application/text_input.rs:168:24
[INFO] [stdout]     |
[INFO] [stdout] 168 |     /// source, e.g., [TextField].
[INFO] [stdout]     |                        ^^^^^^^^^ no item named `TextField` in scope
[INFO] [stdout]     |
[INFO] [stdout]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `FocusScope`
[INFO] [stdout]    --> src/flutter_application/text_input.rs:237:65
[INFO] [stdout]     |
[INFO] [stdout] 237 |     /// Moves the focus to the next focusable item in the same [FocusScope].
[INFO] [stdout]     |                                                                 ^^^^^^^^^^ no item named `FocusScope` in scope
[INFO] [stdout]     |
[INFO] [stdout]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `TextField`
[INFO] [stdout]    --> src/flutter_application/text_input.rs:248:51
[INFO] [stdout]     |
[INFO] [stdout] 248 |     /// in the group, e.g., a form with multiple [TextField]s.
[INFO] [stdout]     |                                                   ^^^^^^^^^ no item named `TextField` in scope
[INFO] [stdout]     |
[INFO] [stdout]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `FocusScope`
[INFO] [stdout]    --> src/flutter_application/text_input.rs:250:69
[INFO] [stdout]     |
[INFO] [stdout] 250 |     /// Moves the focus to the previous focusable item in the same [FocusScope].
[INFO] [stdout]     |                                                                     ^^^^^^^^^^ no item named `FocusScope` in scope
[INFO] [stdout]     |
[INFO] [stdout]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `TextField`
[INFO] [stdout]    --> src/flutter_application/text_input.rs:312:16
[INFO] [stdout]     |
[INFO] [stdout] 312 |     /// e.g., [TextField].
[INFO] [stdout]     |                ^^^^^^^^^ no item named `TextField` in scope
[INFO] [stdout]     |
[INFO] [stdout]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `in`
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/flutter_embedder-b39e10e859f308b8/out/embedder.rs:3:235367
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... { # [doc = " @brief      Creates the necessary data structures to launch a Flutter Dart"] # [doc = "             application in AOT mode. The data may only be collected after"] # [doc = "             all FlutterEngine instances launched using this data have been"] # [doc = "             terminated."] # [doc = ""] # [doc = " @param[in]  source    The source of the AOT data."] # [doc = " @param[out] data_out  The AOT data on success. Unchanged on failure."] # [doc = ""] # [doc = " @return     Returns if the AOT data could be successfully resolved."] # [doc = ""] pu...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: the link appears in this line:
[INFO] [stdout]           
[INFO] [stdout]           @param[in]  source    The source of the AOT data.
[INFO] [stdout]                  ^^
[INFO] [stdout]   = note: no item named `in` in scope
[INFO] [stdout]   = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `out`
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/flutter_embedder-b39e10e859f308b8/out/embedder.rs:3:235367
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... { # [doc = " @brief      Creates the necessary data structures to launch a Flutter Dart"] # [doc = "             application in AOT mode. The data may only be collected after"] # [doc = "             all FlutterEngine instances launched using this data have been"] # [doc = "             terminated."] # [doc = ""] # [doc = " @param[in]  source    The source of the AOT data."] # [doc = " @param[out] data_out  The AOT data on success. Unchanged on failure."] # [doc = ""] # [doc = " @return     Returns if the AOT data could be successfully resolved."] # [doc = ""] pu...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: the link appears in this line:
[INFO] [stdout]           
[INFO] [stdout]           @param[out] data_out  The AOT data on success. Unchanged on failure.
[INFO] [stdout]                  ^^^
[INFO] [stdout]   = note: no item named `out` in scope
[INFO] [stdout]   = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `in`
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/flutter_embedder-b39e10e859f308b8/out/embedder.rs:3:236092
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... { # [doc = " @brief      Collects the AOT data."] # [doc = ""] # [doc = " @warning    The embedder must ensure that this call is made only after all"] # [doc = "             FlutterEngine instances launched using this data have been"] # [doc = "             terminated, and that all of those instances were launched with"] # [doc = "             the FlutterProjectArgs::shutdown_dart_vm_when_done flag set to"] # [doc = "             true."] # [doc = ""] # [doc = " @param[in]  data   The data to collect."] # [doc = ""] # [doc = " @return     Returns if the AOT data was successfully collected."] # [doc = ""] pu...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: the link appears in this line:
[INFO] [stdout]           
[INFO] [stdout]           @param[in]  data   The data to collect.
[INFO] [stdout]                  ^^
[INFO] [stdout]   = note: no item named `in` in scope
[INFO] [stdout]   = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `in`
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/flutter_embedder-b39e10e859f308b8/out/embedder.rs:3:236806
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... { # [doc = " @brief      Initialize and run a Flutter engine instance and return a handle"] # [doc = "             to it. This is a convenience method for the pair of calls to"] # [doc = "             `FlutterEngineInitialize` and `FlutterEngineRunInitialized`."] # [doc = ""] # [doc = " @note       This method of running a Flutter engine works well except in"] # [doc = "             cases where the embedder specifies custom task runners via"] # [doc = "             `FlutterProjectArgs::custom_task_runners`. In such cases, the"] # [doc = "             engine may need the embedder to post tasks back to it before"] # [doc = "             `FlutterEngineRun` has returned. Embedders can only post tasks"] # [doc = "             to the engine if they have a handle to the engine. In such"] # [doc = "             cases, embedders are advised to get the engine handle via the"] # [doc = "             `FlutterInitializeCall`. Then they can call"] # [doc = "             `FlutterEngineRunInitialized` knowing that they will be able to"] # [doc = "             service custom tasks on other threads with the engine handle."] # [doc = ""] # [doc = " @param[in]  version    The Flutter embedder API version. Must be"] # [doc = "                        FLUTTER_ENGINE_VERSION."] # [doc = " @param[in]  config     The renderer configuration."] # [doc = " @param[in]  args       The Flutter project arguments."] # [doc = " @param      user_data  A user data baton passed back to embedders in"] # [doc = "                        callbacks."] # [doc = " @param[out] engine_out The engine handle on successful engine creation."] # [doc = ""] # [doc = " @return     The result of the call to run the Flutter engine."] # [doc = ""] pu...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: the link appears in this line:
[INFO] [stdout]           
[INFO] [stdout]           @param[in]  version    The Flutter embedder API version. Must be
[INFO] [stdout]                  ^^
[INFO] [stdout]   = note: no item named `in` in scope
[INFO] [stdout]   = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `out`
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/flutter_embedder-b39e10e859f308b8/out/embedder.rs:3:236806
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... { # [doc = " @brief      Initialize and run a Flutter engine instance and return a handle"] # [doc = "             to it. This is a convenience method for the pair of calls to"] # [doc = "             `FlutterEngineInitialize` and `FlutterEngineRunInitialized`."] # [doc = ""] # [doc = " @note       This method of running a Flutter engine works well except in"] # [doc = "             cases where the embedder specifies custom task runners via"] # [doc = "             `FlutterProjectArgs::custom_task_runners`. In such cases, the"] # [doc = "             engine may need the embedder to post tasks back to it before"] # [doc = "             `FlutterEngineRun` has returned. Embedders can only post tasks"] # [doc = "             to the engine if they have a handle to the engine. In such"] # [doc = "             cases, embedders are advised to get the engine handle via the"] # [doc = "             `FlutterInitializeCall`. Then they can call"] # [doc = "             `FlutterEngineRunInitialized` knowing that they will be able to"] # [doc = "             service custom tasks on other threads with the engine handle."] # [doc = ""] # [doc = " @param[in]  version    The Flutter embedder API version. Must be"] # [doc = "                        FLUTTER_ENGINE_VERSION."] # [doc = " @param[in]  config     The renderer configuration."] # [doc = " @param[in]  args       The Flutter project arguments."] # [doc = " @param      user_data  A user data baton passed back to embedders in"] # [doc = "                        callbacks."] # [doc = " @param[out] engine_out The engine handle on successful engine creation."] # [doc = ""] # [doc = " @return     The result of the call to run the Flutter engine."] # [doc = ""] pu...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: the link appears in this line:
[INFO] [stdout]           
[INFO] [stdout]           @param[out] engine_out The engine handle on successful engine creation.
[INFO] [stdout]                  ^^^
[INFO] [stdout]   = note: no item named `out` in scope
[INFO] [stdout]   = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `in`
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/flutter_embedder-b39e10e859f308b8/out/embedder.rs:3:238770
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... { # [doc = " @brief      Shuts down a Flutter engine instance. The engine handle is no"] # [doc = "             longer valid for any calls in the embedder API after this point."] # [doc = "             Making additional calls with this handle is undefined behavior."] # [doc = ""] # [doc = " @note       This de-initializes the Flutter engine instance (via an implicit"] # [doc = "             call to `FlutterEngineDeinitialize`) if necessary."] # [doc = ""] # [doc = " @param[in]  engine  The Flutter engine instance to collect."] # [doc = ""] # [doc = " @return     The result of the call to shutdown the Flutter engine instance."] # [doc = ""] pu...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: the link appears in this line:
[INFO] [stdout]           
[INFO] [stdout]           @param[in]  engine  The Flutter engine instance to collect.
[INFO] [stdout]                  ^^
[INFO] [stdout]   = note: no item named `in` in scope
[INFO] [stdout]   = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `in`
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/flutter_embedder-b39e10e859f308b8/out/embedder.rs:3:239510
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... { # [doc = " @brief      Initialize a Flutter engine instance. This does not run the"] # [doc = "             Flutter application code till the `FlutterEngineRunInitialized`"] # [doc = "             call is made. Besides Flutter application code, no tasks are"] # [doc = "             scheduled on embedder managed task runners either. This allows"] # [doc = "             embedders providing custom task runners to the Flutter engine to"] # [doc = "             obtain a handle to the Flutter engine before the engine can post"] # [doc = "             tasks on these task runners."] # [doc = ""] # [doc = " @param[in]  version    The Flutter embedder API version. Must be"] # [doc = "                        FLUTTER_ENGINE_VERSION."] # [doc = " @param[in]  config     The renderer configuration."] # [doc = " @param[in]  args       The Flutter project arguments."] # [doc = " @param      user_data  A user data baton passed back to embedders in"] # [doc = "                        callbacks."] # [doc = " @param[out] engine_out The engine handle on successful engine creation."] # [doc = ""] # [doc = " @return     The result of the call to initialize the Flutter engine."] # [doc = ""] pu...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: the link appears in this line:
[INFO] [stdout]           
[INFO] [stdout]           @param[in]  version    The Flutter embedder API version. Must be
[INFO] [stdout]                  ^^
[INFO] [stdout]   = note: no item named `in` in scope
[INFO] [stdout]   = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `out`
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/flutter_embedder-b39e10e859f308b8/out/embedder.rs:3:239510
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... { # [doc = " @brief      Initialize a Flutter engine instance. This does not run the"] # [doc = "             Flutter application code till the `FlutterEngineRunInitialized`"] # [doc = "             call is made. Besides Flutter application code, no tasks are"] # [doc = "             scheduled on embedder managed task runners either. This allows"] # [doc = "             embedders providing custom task runners to the Flutter engine to"] # [doc = "             obtain a handle to the Flutter engine before the engine can post"] # [doc = "             tasks on these task runners."] # [doc = ""] # [doc = " @param[in]  version    The Flutter embedder API version. Must be"] # [doc = "                        FLUTTER_ENGINE_VERSION."] # [doc = " @param[in]  config     The renderer configuration."] # [doc = " @param[in]  args       The Flutter project arguments."] # [doc = " @param      user_data  A user data baton passed back to embedders in"] # [doc = "                        callbacks."] # [doc = " @param[out] engine_out The engine handle on successful engine creation."] # [doc = ""] # [doc = " @return     The result of the call to initialize the Flutter engine."] # [doc = ""] pu...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: the link appears in this line:
[INFO] [stdout]           
[INFO] [stdout]           @param[out] engine_out The engine handle on successful engine creation.
[INFO] [stdout]                  ^^^
[INFO] [stdout]   = note: no item named `out` in scope
[INFO] [stdout]   = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `in`
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/flutter_embedder-b39e10e859f308b8/out/embedder.rs:3:240948
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... { # [doc = " @brief      Stops running the Flutter engine instance. After this call, the"] # [doc = "             embedder is also guaranteed that no more calls to post tasks"] # [doc = "             onto custom task runners specified by the embedder are made. The"] # [doc = "             Flutter engine handle still needs to be collected via a call to"] # [doc = "             `FlutterEngineShutdown`."] # [doc = ""] # [doc = " @param[in]  engine    The running engine instance to de-initialize."] # [doc = ""] # [doc = " @return     The result of the call to de-initialize the Flutter engine."] # [doc = ""] pu...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: the link appears in this line:
[INFO] [stdout]           
[INFO] [stdout]           @param[in]  engine    The running engine instance to de-initialize.
[INFO] [stdout]                  ^^
[INFO] [stdout]   = note: no item named `in` in scope
[INFO] [stdout]   = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `in`
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/flutter_embedder-b39e10e859f308b8/out/embedder.rs:3:241655
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... { # [doc = " @brief      Runs an initialized engine instance. An engine can be"] # [doc = "             initialized via `FlutterEngineInitialize`. An initialized"] # [doc = "             instance can only be run once. During and after this call,"] # [doc = "             custom task runners supplied by the embedder are expected to"] # [doc = "             start servicing tasks."] # [doc = ""] # [doc = " @param[in]  engine  An initialized engine instance that has not previously"] # [doc = "                     been run."] # [doc = ""] # [doc = " @return     The result of the call to run the initialized Flutter"] # [doc = "             engine instance."] # [doc = ""] pu...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: the link appears in this line:
[INFO] [stdout]           
[INFO] [stdout]           @param[in]  engine  An initialized engine instance that has not previously
[INFO] [stdout]                  ^^
[INFO] [stdout]   = note: no item named `in` in scope
[INFO] [stdout]   = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `in`
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/flutter_embedder-b39e10e859f308b8/out/embedder.rs:3:242743
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... { # [doc = " @brief      Sends a key event to the engine. The framework will decide"] # [doc = "             whether to handle this event in a synchronous fashion, although"] # [doc = "             due to technical limitation, the result is always reported"] # [doc = "             asynchronously. The `callback` is guaranteed to be called"] # [doc = "             exactly once."] # [doc = ""] # [doc = " @param[in]  engine         A running engine instance."] # [doc = " @param[in]  event          The event data to be sent. This function will no"] # [doc = "                            longer access `event` after returning."] # [doc = " @param[in]  callback       The callback invoked by the engine when the"] # [doc = "                            Flutter application has decided whether it"] # [doc = "                            handles this event. Accepts nullptr."] # [doc = " @param[in]  user_data      The context associated with the callback. The"] # [doc = "                            exact same value will used to invoke `callback`."] # [doc = "                            Accepts nullptr."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pu...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: the link appears in this line:
[INFO] [stdout]           
[INFO] [stdout]           @param[in]  engine         A running engine instance.
[INFO] [stdout]                  ^^
[INFO] [stdout]   = note: no item named `in` in scope
[INFO] [stdout]   = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `in`
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/flutter_embedder-b39e10e859f308b8/out/embedder.rs:3:244288
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... { # [doc = " @brief     Creates a platform message response handle that allows the"] # [doc = "            embedder to set a native callback for a response to a message."] # [doc = "            This handle may be set on the `response_handle` field of any"] # [doc = "            `FlutterPlatformMessage` sent to the engine."] # [doc = ""] # [doc = "            The handle must be collected via a call to"] # [doc = "            `FlutterPlatformMessageReleaseResponseHandle`. This may be done"] # [doc = "            immediately after a call to `FlutterEngineSendPlatformMessage`"] # [doc = "            with a platform message whose response handle contains the handle"] # [doc = "            created using this call. In case a handle is created but never"] # [doc = "            sent in a message, the release call must still be made. Not"] # [doc = "            calling release on the handle results in a small memory leak."] # [doc = ""] # [doc = "            The user data baton passed to the data callback is the one"] # [doc = "            specified in this call as the third argument."] # [doc = ""] # [doc = " @see       FlutterPlatformMessageReleaseResponseHandle()"] # [doc = ""] # [doc = " @param[in]  engine         A running engine instance."] # [doc = " @param[in]  data_callback  The callback invoked by the engine when the"] # [doc = "                            Flutter application send a response on the"] # [doc = "                            handle."] # [doc = " @param[in]  user_data      The user data associated with the data callback."] # [doc = " @param[out] response_out   The response handle created when this call is"] # [doc = "                            successful."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pu...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: the link appears in this line:
[INFO] [stdout]           
[INFO] [stdout]           @param[in]  engine         A running engine instance.
[INFO] [stdout]                  ^^
[INFO] [stdout]   = note: no item named `in` in scope
[INFO] [stdout]   = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `out`
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/flutter_embedder-b39e10e859f308b8/out/embedder.rs:3:244288
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... { # [doc = " @brief     Creates a platform message response handle that allows the"] # [doc = "            embedder to set a native callback for a response to a message."] # [doc = "            This handle may be set on the `response_handle` field of any"] # [doc = "            `FlutterPlatformMessage` sent to the engine."] # [doc = ""] # [doc = "            The handle must be collected via a call to"] # [doc = "            `FlutterPlatformMessageReleaseResponseHandle`. This may be done"] # [doc = "            immediately after a call to `FlutterEngineSendPlatformMessage`"] # [doc = "            with a platform message whose response handle contains the handle"] # [doc = "            created using this call. In case a handle is created but never"] # [doc = "            sent in a message, the release call must still be made. Not"] # [doc = "            calling release on the handle results in a small memory leak."] # [doc = ""] # [doc = "            The user data baton passed to the data callback is the one"] # [doc = "            specified in this call as the third argument."] # [doc = ""] # [doc = " @see       FlutterPlatformMessageReleaseResponseHandle()"] # [doc = ""] # [doc = " @param[in]  engine         A running engine instance."] # [doc = " @param[in]  data_callback  The callback invoked by the engine when the"] # [doc = "                            Flutter application send a response on the"] # [doc = "                            handle."] # [doc = " @param[in]  user_data      The user data associated with the data callback."] # [doc = " @param[out] response_out   The response handle created when this call is"] # [doc = "                            successful."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pu...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: the link appears in this line:
[INFO] [stdout]           
[INFO] [stdout]           @param[out] response_out   The response handle created when this call is
[INFO] [stdout]                  ^^^
[INFO] [stdout]   = note: no item named `out` in scope
[INFO] [stdout]   = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `in`
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/flutter_embedder-b39e10e859f308b8/out/embedder.rs:3:246329
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... { # [doc = " @brief      Collects the handle created using"] # [doc = "             `FlutterPlatformMessageCreateResponseHandle`."] # [doc = ""] # [doc = " @see        FlutterPlatformMessageCreateResponseHandle()"] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance."] # [doc = " @param[in]  response   The platform message response handle to collect."] # [doc = "                        These handles are created using"] # [doc = "                        `FlutterPlatformMessageCreateResponseHandle()`."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pu...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: the link appears in this line:
[INFO] [stdout]           
[INFO] [stdout]           @param[in]  engine     A running engine instance.
[INFO] [stdout]                  ^^
[INFO] [stdout]   = note: no item named `in` in scope
[INFO] [stdout]   = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `in`
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/flutter_embedder-b39e10e859f308b8/out/embedder.rs:3:247102
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... { # [doc = " @brief      Send a response from the native side to a platform message from"] # [doc = "             the Dart Flutter application."] # [doc = ""] # [doc = " @param[in]  engine       The running engine instance."] # [doc = " @param[in]  handle       The platform message response handle."] # [doc = " @param[in]  data         The data to associate with the platform message"] # [doc = "                          response."] # [doc = " @param[in]  data_length  The length of the platform message response data."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pu...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: the link appears in this line:
[INFO] [stdout]           
[INFO] [stdout]           @param[in]  engine       The running engine instance.
[INFO] [stdout]                  ^^
[INFO] [stdout]   = note: no item named `in` in scope
[INFO] [stdout]   = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `in`
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/flutter_embedder-b39e10e859f308b8/out/embedder.rs:3:248658
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... { # [doc = " @brief      Register an external texture with a unique (per engine)"] # [doc = "             identifier. Only rendering backends that support external"] # [doc = "             textures accept external texture registrations. After the"] # [doc = "             external texture is registered, the application can mark that a"] # [doc = "             frame is available by calling"] # [doc = "             `FlutterEngineMarkExternalTextureFrameAvailable`."] # [doc = ""] # [doc = " @see        FlutterEngineUnregisterExternalTexture()"] # [doc = " @see        FlutterEngineMarkExternalTextureFrameAvailable()"] # [doc = ""] # [doc = " @param[in]  engine              A running engine instance."] # [doc = " @param[in]  texture_identifier  The identifier of the texture to register"] # [doc = "                                 with the engine. The embedder may supply new"] # [doc = "                                 frames to this texture using the same"] # [doc = "                                 identifier."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pu...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: the link appears in this line:
[INFO] [stdout]           
[INFO] [stdout]           @param[in]  engine              A running engine instance.
[INFO] [stdout]                  ^^
[INFO] [stdout]   = note: no item named `in` in scope
[INFO] [stdout]   = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `in`
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/flutter_embedder-b39e10e859f308b8/out/embedder.rs:3:249890
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... { # [doc = " @brief      Unregister a previous texture registration."] # [doc = ""] # [doc = " @see        FlutterEngineRegisterExternalTexture()"] # [doc = " @see        FlutterEngineMarkExternalTextureFrameAvailable()"] # [doc = ""] # [doc = " @param[in]  engine              A running engine instance."] # [doc = " @param[in]  texture_identifier  The identifier of the texture for which new"] # [doc = "                                 frame will not be available."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pu...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: the link appears in this line:
[INFO] [stdout]           
[INFO] [stdout]           @param[in]  engine              A running engine instance.
[INFO] [stdout]                  ^^
[INFO] [stdout]   = note: no item named `in` in scope
[INFO] [stdout]   = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `in`
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/flutter_embedder-b39e10e859f308b8/out/embedder.rs:3:250571
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... { # [doc = " @brief      Mark that a new texture frame is available for a given texture"] # [doc = "             identifier."] # [doc = ""] # [doc = " @see        FlutterEngineRegisterExternalTexture()"] # [doc = " @see        FlutterEngineUnregisterExternalTexture()"] # [doc = ""] # [doc = " @param[in]  engine              A running engine instance."] # [doc = " @param[in]  texture_identifier  The identifier of the texture whose frame"] # [doc = "                                 has been updated."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pu...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: the link appears in this line:
[INFO] [stdout]           
[INFO] [stdout]           @param[in]  engine              A running engine instance.
[INFO] [stdout]                  ^^
[INFO] [stdout]   = note: no item named `in` in scope
[INFO] [stdout]   = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `in`
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/flutter_embedder-b39e10e859f308b8/out/embedder.rs:3:251295
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... { # [doc = " @brief      Enable or disable accessibility semantics."] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance."] # [doc = " @param[in]  enabled    When enabled, changes to the semantic contents of the"] # [doc = "                        window are sent via the"] # [doc = "                        `FlutterUpdateSemanticsNodeCallback` registered to"] # [doc = "                        `update_semantics_node_callback` in"] # [doc = "                        `FlutterProjectArgs`."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pu...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: the link appears in this line:
[INFO] [stdout]           
[INFO] [stdout]           @param[in]  engine     A running engine instance.
[INFO] [stdout]                  ^^
[INFO] [stdout]   = note: no item named `in` in scope
[INFO] [stdout]   = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `in`
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/flutter_embedder-b39e10e859f308b8/out/embedder.rs:3:252006
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... { # [doc = " @brief      Sets additional accessibility features."] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance"] # [doc = " @param[in]  features   The accessibility features to set."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pu...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: the link appears in this line:
[INFO] [stdout]           
[INFO] [stdout]           @param[in]  engine     A running engine instance
[INFO] [stdout]                  ^^
[INFO] [stdout]   = note: no item named `in` in scope
[INFO] [stdout]   = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `in`
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/flutter_embedder-b39e10e859f308b8/out/embedder.rs:3:252446
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... { # [doc = " @brief      Dispatch a semantics action to the specified semantics node."] # [doc = ""] # [doc = " @param[in]  engine       A running engine instance."] # [doc = " @param[in]  identifier   The semantics action identifier."] # [doc = " @param[in]  action       The semantics action."] # [doc = " @param[in]  data         Data associated with the action."] # [doc = " @param[in]  data_length  The data length."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pu...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: the link appears in this line:
[INFO] [stdout]           
[INFO] [stdout]           @param[in]  engine       A running engine instance.
[INFO] [stdout]                  ^^
[INFO] [stdout]   = note: no item named `in` in scope
[INFO] [stdout]   = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `in`
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/flutter_embedder-b39e10e859f308b8/out/embedder.rs:3:253139
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... { # [doc = " @brief      Notify the engine that a vsync event occurred. A baton passed to"] # [doc = "             the platform via the vsync callback must be returned. This call"] # [doc = "             must be made on the thread on which the call to"] # [doc = "             `FlutterEngineRun` was made."] # [doc = ""] # [doc = " @see        FlutterEngineGetCurrentTime()"] # [doc = ""] # [doc = " @attention  That frame timepoints are in nanoseconds."] # [doc = ""] # [doc = " @attention  The system monotonic clock is used as the timebase."] # [doc = ""] # [doc = " @param[in]  engine.                  A running engine instance."] # [doc = " @param[in]  baton                    The baton supplied by the engine."] # [doc = " @param[in]  frame_start_time_nanos   The point at which the vsync event"] # [doc = "                                      occurred or will occur. If the time"] # [doc = "                                      point is in the future, the engine will"] # [doc = "                                      wait till that point to begin its frame"] # [doc = "                                      workload."] # [doc = " @param[in]  frame_target_time_nanos  The point at which the embedder"] # [doc = "                                      anticipates the next vsync to occur."] # [doc = "                                      This is a hint the engine uses to"] # [doc = "                                      schedule Dart VM garbage collection in"] # [doc = "                                      periods in which the various threads"] # [doc = "                                      are most likely to be idle. For"] # [doc = "                                      example, for a 60Hz display, embedders"] # [doc = "                                      should add 16.6 * 1e6 to the frame time"] # [doc = "                                      field."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pu...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: the link appears in this line:
[INFO] [stdout]           
[INFO] [stdout]           @param[in]  engine.                  A running engine instance.
[INFO] [stdout]                  ^^
[INFO] [stdout]   = note: no item named `in` in scope
[INFO] [stdout]   = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `in`
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/flutter_embedder-b39e10e859f308b8/out/embedder.rs:3:255262
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... { # [doc = " @brief      Reloads the system fonts in engine."] # [doc = ""] # [doc = " @param[in]  engine.                  A running engine instance."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pu...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: the link appears in this line:
[INFO] [stdout]           
[INFO] [stdout]           @param[in]  engine.                  A running engine instance.
[INFO] [stdout]                  ^^
[INFO] [stdout]   = note: no item named `in` in scope
[INFO] [stdout]   = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `in`
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/flutter_embedder-b39e10e859f308b8/out/embedder.rs:3:255591
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... { # [doc = " @brief      A profiling utility. Logs a trace duration begin event to the"] # [doc = "             timeline. If the timeline is unavailable or disabled, this has"] # [doc = "             no effect. Must be balanced with an duration end event (via"] # [doc = "             `FlutterEngineTraceEventDurationEnd`) with the same name on the"] # [doc = "             same thread. Can be called on any thread. Strings passed into"] # [doc = "             the function will NOT be copied when added to the timeline. Only"] # [doc = "             string literals may be passed in."] # [doc = ""] # [doc = " @param[in]  name  The name of the trace event."] # [doc = ""] pu...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: the link appears in this line:
[INFO] [stdout]           
[INFO] [stdout]           @param[in]  name  The name of the trace event.
[INFO] [stdout]                  ^^
[INFO] [stdout]   = note: no item named `in` in scope
[INFO] [stdout]   = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `in`
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/flutter_embedder-b39e10e859f308b8/out/embedder.rs:3:256370
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... { # [doc = " @brief      A profiling utility. Logs a trace duration end event to the"] # [doc = "             timeline. If the timeline is unavailable or disabled, this has"] # [doc = "             no effect. This call must be preceded by a trace duration begin"] # [doc = "             call (via `FlutterEngineTraceEventDurationBegin`) with the same"] # [doc = "             name on the same thread. Can be called on any thread. Strings"] # [doc = "             passed into the function will NOT be copied when added to the"] # [doc = "             timeline. Only string literals may be passed in."] # [doc = ""] # [doc = " @param[in]  name  The name of the trace event."] # [doc = ""] pu...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: the link appears in this line:
[INFO] [stdout]           
[INFO] [stdout]           @param[in]  name  The name of the trace event.
[INFO] [stdout]                  ^^
[INFO] [stdout]   = note: no item named `in` in scope
[INFO] [stdout]   = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `in`
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/flutter_embedder-b39e10e859f308b8/out/embedder.rs:3:257161
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... { # [doc = " @brief      A profiling utility. Logs a trace duration instant event to the"] # [doc = "             timeline. If the timeline is unavailable or disabled, this has"] # [doc = "             no effect. Can be called on any thread. Strings passed into the"] # [doc = "             function will NOT be copied when added to the timeline. Only"] # [doc = "             string literals may be passed in."] # [doc = ""] # [doc = " @param[in]  name  The name of the trace event."] # [doc = ""] pu...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: the link appears in this line:
[INFO] [stdout]           
[INFO] [stdout]           @param[in]  name  The name of the trace event.
[INFO] [stdout]                  ^^
[INFO] [stdout]   = note: no item named `in` in scope
[INFO] [stdout]   = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `in`
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/flutter_embedder-b39e10e859f308b8/out/embedder.rs:3:257760
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... { # [doc = " @brief      Posts a task onto the Flutter render thread. Typically, this may"] # [doc = "             be called from any thread as long as a `FlutterEngineShutdown`"] # [doc = "             on the specific engine has not already been initiated."] # [doc = ""] # [doc = " @param[in]  engine         A running engine instance."] # [doc = " @param[in]  callback       The callback to execute on the render thread."] # [doc = " @param      callback_data  The callback context."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pu...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: the link appears in this line:
[INFO] [stdout]           
[INFO] [stdout]           @param[in]  engine         A running engine instance.
[INFO] [stdout]                  ^^
[INFO] [stdout]   = note: no item named `in` in scope
[INFO] [stdout]   = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `in`
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/flutter_embedder-b39e10e859f308b8/out/embedder.rs:3:258818
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... { # [doc = " @brief      Inform the engine to run the specified task. This task has been"] # [doc = "             given to the engine via the"] # [doc = "             `FlutterTaskRunnerDescription.post_task_callback`. This call"] # [doc = "             must only be made at the target time specified in that callback."] # [doc = "             Running the task before that time is undefined behavior."] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance."] # [doc = " @param[in]  task       the task handle."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pu...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: the link appears in this line:
[INFO] [stdout]           
[INFO] [stdout]           @param[in]  engine     A running engine instance.
[INFO] [stdout]                  ^^
[INFO] [stdout]   = note: no item named `in` in scope
[INFO] [stdout]   = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `in`
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/flutter_embedder-b39e10e859f308b8/out/embedder.rs:3:259544
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... { # [doc = " @brief      Notify a running engine instance that the locale has been"] # [doc = "             updated. The preferred locale must be the first item in the list"] # [doc = "             of locales supplied. The other entries will be used as a"] # [doc = "             fallback."] # [doc = ""] # [doc = " @param[in]  engine         A running engine instance."] # [doc = " @param[in]  locales        The updated locales in the order of preference."] # [doc = " @param[in]  locales_count  The count of locales supplied."] # [doc = ""] # [doc = " @return     Whether the locale updates were applied."] # [doc = ""] pu...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: the link appears in this line:
[INFO] [stdout]           
[INFO] [stdout]           @param[in]  engine         A running engine instance.
[INFO] [stdout]                  ^^
[INFO] [stdout]   = note: no item named `in` in scope
[INFO] [stdout]   = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `in`
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/flutter_embedder-b39e10e859f308b8/out/embedder.rs:3:261474
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... { # [doc = " @brief      Posts a Dart object to specified send port. The corresponding"] # [doc = "             receive port for send port can be in any isolate running in the"] # [doc = "             VM. This isolate can also be the root isolate for an"] # [doc = "             unrelated engine. The engine parameter is necessary only to"] # [doc = "             ensure the call is not made when no engine (and hence no VM) is"] # [doc = "             running."] # [doc = ""] # [doc = "             Unlike the platform messages mechanism, there are no threading"] # [doc = "             restrictions when using this API. Message can be posted on any"] # [doc = "             thread and they will be made available to isolate on which the"] # [doc = "             corresponding send port is listening."] # [doc = ""] # [doc = "             However, it is the embedders responsibility to ensure that the"] # [doc = "             call is not made during an ongoing call the"] # [doc = "             `FlutterEngineDeinitialize` or `FlutterEngineShutdown` on"] # [doc = "             another thread."] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance."] # [doc = " @param[in]  port       The send port to send the object to."] # [doc = " @param[in]  object     The object to send to the isolate with the"] # [doc = "                        corresponding receive port."] # [doc = ""] # [doc = " @return     If the message was posted to the send port."] # [doc = ""] pu...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: the link appears in this line:
[INFO] [stdout]           
[INFO] [stdout]           @param[in]  engine     A running engine instance.
[INFO] [stdout]                  ^^
[INFO] [stdout]   = note: no item named `in` in scope
[INFO] [stdout]   = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `in`
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/flutter_embedder-b39e10e859f308b8/out/embedder.rs:3:263131
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... { # [doc = " @brief      Posts a low memory notification to a running engine instance."] # [doc = "             The engine will do its best to release non-critical resources in"] # [doc = "             response. It is not guaranteed that the resource would have been"] # [doc = "             collected by the time this call returns however. The"] # [doc = "             notification is posted to engine subsystems that may be"] # [doc = "             operating on other threads."] # [doc = ""] # [doc = "             Flutter applications can respond to these notifications by"] # [doc = "             setting `WidgetsBindingObserver.didHaveMemoryPressure`"] # [doc = "             observers."] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance."] # [doc = ""] # [doc = " @return     If the low memory notification was sent to the running engine"] # [doc = "             instance."] # [doc = ""] pu...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: the link appears in this line:
[INFO] [stdout]           
[INFO] [stdout]           @param[in]  engine     A running engine instance.
[INFO] [stdout]                  ^^
[INFO] [stdout]   = note: no item named `in` in scope
[INFO] [stdout]   = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `in`
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/flutter_embedder-b39e10e859f308b8/out/embedder.rs:3:264155
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... { # [doc = " @brief      Schedule a callback to be run on all engine managed threads."] # [doc = "             The engine will attempt to service this callback the next time"] # [doc = "             the message loop for each managed thread is idle. Since the"] # [doc = "             engine manages the entire lifecycle of multiple threads, there"] # [doc = "             is no opportunity for the embedders to finely tune the"] # [doc = "             priorities of threads directly, or, perform other thread"] # [doc = "             specific configuration (for example, setting thread names for"] # [doc = "             tracing). This callback gives embedders a chance to affect such"] # [doc = "             tuning."] # [doc = ""] # [doc = " @attention  This call is expensive and must be made as few times as"] # [doc = "             possible. The callback must also return immediately as not doing"] # [doc = "             so may risk performance issues (especially for callbacks of type"] # [doc = "             kFlutterNativeThreadTypeUI and kFlutterNativeThreadTypeRender)."] # [doc = ""] # [doc = " @attention  Some callbacks (especially the ones of type"] # [doc = "             kFlutterNativeThreadTypeWorker) may be called after the"] # [doc = "             FlutterEngine instance has shut down. Embedders must be careful"] # [doc = "             in handling the lifecycle of objects associated with the user"] # [doc = "             data baton."] # [doc = ""] # [doc = " @attention  In case there are multiple running Flutter engine instances,"] # [doc = "             their workers are shared."] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance."] # [doc = " @param[in]  callback   The callback that will get called multiple times on"] # [doc = "                        each engine managed thread."] # [doc = " @param[in]  user_data  A baton passed by the engine to the callback. This"] # [doc = "                        baton is not interpreted by the engine in any way."] # [doc = ""] # [doc = " @return     Returns if the callback was successfully posted to all threads."] # [doc = ""] pu...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: the link appears in this line:
[INFO] [stdout]           
[INFO] [stdout]           @param[in]  engine     A running engine instance.
[INFO] [stdout]                  ^^
[INFO] [stdout]   = note: no item named `in` in scope
[INFO] [stdout]   = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `in`
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/flutter_embedder-b39e10e859f308b8/out/embedder.rs:3:266486
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... { # [doc = " @brief    Posts updates corresponding to display changes to a running engine"] # [doc = "           instance."] # [doc = ""] # [doc = " @param[in] update_type      The type of update pushed to the engine."] # [doc = " @param[in] displays         The displays affected by this update."] # [doc = " @param[in] display_count    Size of the displays array, must be at least 1."] # [doc = ""] # [doc = " @return the result of the call made to the engine."] # [doc = ""] pu...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: the link appears in this line:
[INFO] [stdout]           
[INFO] [stdout]           @param[in] update_type      The type of update pushed to the engine.
[INFO] [stdout]                  ^^
[INFO] [stdout]   = note: no item named `in` in scope
[INFO] [stdout]   = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `in`
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/flutter_embedder-b39e10e859f308b8/out/embedder.rs:3:267182
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... { # [doc = " @brief      Schedule a new frame to redraw the content."] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance."] # [doc = ""] # [doc = " @return the result of the call made to the engine."] # [doc = ""] pu...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: the link appears in this line:
[INFO] [stdout]           
[INFO] [stdout]           @param[in]  engine     A running engine instance.
[INFO] [stdout]                  ^^
[INFO] [stdout]   = note: no item named `in` in scope
[INFO] [stdout]   = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `out`
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/flutter_embedder-b39e10e859f308b8/out/embedder.rs:3:292756
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... { # [doc = " @brief      Gets the table of engine function pointers."] # [doc = ""] # [doc = " @param[out] table   The table to fill with pointers. This should be"] # [doc = "                     zero-initialized, except for struct_size."] # [doc = ""] # [doc = " @return     Returns whether the table was successfully populated."] # [doc = ""] pu...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: the link appears in this line:
[INFO] [stdout]           
[INFO] [stdout]           @param[out] table   The table to fill with pointers. This should be
[INFO] [stdout]                  ^^^
[INFO] [stdout]   = note: no item named `out` in scope
[INFO] [stdout]   = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: could not parse code block as Rust code
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/flutter_embedder-b39e10e859f308b8/out/embedder.rs:3:244288
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... { # [doc = " @brief     Creates a platform message response handle that allows the"] # [doc = "            embedder to set a native callback for a response to a message."] # [doc = "            This handle may be set on the `response_handle` field of any"] # [doc = "            `FlutterPlatformMessage` sent to the engine."] # [doc = ""] # [doc = "            The handle must be collected via a call to"] # [doc = "            `FlutterPlatformMessageReleaseResponseHandle`. This may be done"] # [doc = "            immediately after a call to `FlutterEngineSendPlatformMessage`"] # [doc = "            with a platform message whose response handle contains the handle"] # [doc = "            created using this call. In case a handle is created but never"] # [doc = "            sent in a message, the release call must still be made. Not"] # [doc = "            calling release on the handle results in a small memory leak."] # [doc = ""] # [doc = "            The user data baton passed to the data callback is the one"] # [doc = "            specified in this call as the third argument."] # [doc = ""] # [doc = " @see       FlutterPlatformMessageReleaseResponseHandle()"] # [doc = ""] # [doc = " @param[in]  engine         A running engine instance."] # [doc = " @param[in]  data_callback  The callback invoked by the engine when the"] # [doc = "                            Flutter application send a response on the"] # [doc = "                            handle."] # [doc = " @param[in]  user_data      The user data associated with the data callback."] # [doc = " @param[out] response_out   The response handle created when this call is"] # [doc = "                            successful."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pu...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: error from rustc: unknown start of token: `
[INFO] [stdout]   = note: error from rustc: unknown start of token: `
[INFO] [stdout]   = note: error from rustc: unknown start of token: `
[INFO] [stdout]   = note: error from rustc: unknown start of token: `
[INFO] [stdout]   = note: `#[warn(rustdoc::invalid_rust_codeblocks)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: could not parse code block as Rust code
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/flutter_embedder-b39e10e859f308b8/out/embedder.rs:3:260329
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... { # [doc = " @brief      Returns if the Flutter engine instance will run AOT compiled"] # [doc = "             Dart code. This call has no threading restrictions."] # [doc = ""] # [doc = "             For embedder code that is configured for both AOT and JIT mode"] # [doc = "             Dart execution based on the Flutter engine being linked to, this"] # [doc = "             runtime check may be used to appropriately configure the"] # [doc = "             `FlutterProjectArgs`. In JIT mode execution, the kernel"] # [doc = "             snapshots must be present in the Flutter assets directory"] # [doc = "             specified in the `FlutterProjectArgs`. For AOT execution, the"] # [doc = "             fields `vm_snapshot_data`, `vm_snapshot_instructions`,"] # [doc = "             `isolate_snapshot_data` and `isolate_snapshot_instructions`"] # [doc = "             (along with their size fields) must be specified in"] # [doc = "             `FlutterProjectArgs`."] # [doc = ""] # [doc = " @return     True, if AOT Dart code is run. JIT otherwise."] # [doc = ""] pu...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: error from rustc: unknown start of token: `
[INFO] [stdout]   = note: error from rustc: unknown start of token: `
[INFO] [stdout]   = note: error from rustc: unknown start of token: `
[INFO] [stdout]   = note: error from rustc: unknown start of token: `
[INFO] [stdout]   = note: error from rustc: unknown start of token: `
[INFO] [stdout]   = note: error from rustc: unknown start of token: `
[INFO] [stdout]   = note: error from rustc: unknown start of token: `
[INFO] [stdout]   = note: error from rustc: unknown start of token: `
[INFO] [stdout]   = note: error from rustc: unknown start of token: `
[INFO] [stdout]   = note: error from rustc: unknown start of token: `
[INFO] [stdout]   = note: error from rustc: unknown start of token: `
[INFO] [stdout]   = note: error from rustc: unknown start of token: `
[INFO] [stdout]   = note: error from rustc: unknown start of token: `
[INFO] [stdout]   = note: error from rustc: unknown start of token: `
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: could not parse code block as Rust code
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/flutter_embedder-b39e10e859f308b8/out/embedder.rs:3:261474
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... { # [doc = " @brief      Posts a Dart object to specified send port. The corresponding"] # [doc = "             receive port for send port can be in any isolate running in the"] # [doc = "             VM. This isolate can also be the root isolate for an"] # [doc = "             unrelated engine. The engine parameter is necessary only to"] # [doc = "             ensure the call is not made when no engine (and hence no VM) is"] # [doc = "             running."] # [doc = ""] # [doc = "             Unlike the platform messages mechanism, there are no threading"] # [doc = "             restrictions when using this API. Message can be posted on any"] # [doc = "             thread and they will be made available to isolate on which the"] # [doc = "             corresponding send port is listening."] # [doc = ""] # [doc = "             However, it is the embedders responsibility to ensure that the"] # [doc = "             call is not made during an ongoing call the"] # [doc = "             `FlutterEngineDeinitialize` or `FlutterEngineShutdown` on"] # [doc = "             another thread."] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance."] # [doc = " @param[in]  port       The send port to send the object to."] # [doc = " @param[in]  object     The object to send to the isolate with the"] # [doc = "                        corresponding receive port."] # [doc = ""] # [doc = " @return     If the message was posted to the send port."] # [doc = ""] pu...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: error from rustc: unknown start of token: `
[INFO] [stdout]   = note: error from rustc: unknown start of token: `
[INFO] [stdout]   = note: error from rustc: unknown start of token: `
[INFO] [stdout]   = note: error from rustc: unknown start of token: `
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: could not parse code block as Rust code
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/flutter_embedder-b39e10e859f308b8/out/embedder.rs:3:263131
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... { # [doc = " @brief      Posts a low memory notification to a running engine instance."] # [doc = "             The engine will do its best to release non-critical resources in"] # [doc = "             response. It is not guaranteed that the resource would have been"] # [doc = "             collected by the time this call returns however. The"] # [doc = "             notification is posted to engine subsystems that may be"] # [doc = "             operating on other threads."] # [doc = ""] # [doc = "             Flutter applications can respond to these notifications by"] # [doc = "             setting `WidgetsBindingObserver.didHaveMemoryPressure`"] # [doc = "             observers."] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance."] # [doc = ""] # [doc = " @return     If the low memory notification was sent to the running engine"] # [doc = "             instance."] # [doc = ""] pu...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: error from rustc: unknown start of token: `
[INFO] [stdout]   = note: error from rustc: unknown start of token: `
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unclosed HTML tag `MTLDevice`
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/flutter_embedder-b39e10e859f308b8/out/embedder.rs:3:58518
[INFO] [stdout]   |
[INFO] [stdout] 3 | ...info))) ; } test_field_present_with_info () ; } # [doc = " Alias for id<MTLDevice>."] pub type FlutterMetalDeviceHandle = * const :: s...
[INFO] [stdout]   |                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(rustdoc::invalid_html_tags)]` on by default
[INFO] [stdout] help: try marking as source code
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub const true_ : u32 = 1 ; pub const false_ : u32 = 0 ; pub const __bool_true_false_are_defined : u32 = 1 ; pub const _STDINT_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2X : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 200809 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __WORDSIZE : u32 = 64 ; pub const __WORDSIZE_TIME64_COMPAT32 : u32 = 1 ; pub const __SYSCALL_WORDSIZE : u32 = 64 ; pub const __TIMESIZE : u32 = 64 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 35 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C2X : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const FLUTTER_ENGINE_VERSION : u32 = 1 ; pub type size_t = :: std :: os :: raw :: c_ulong ; pub type wchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [repr (align (16))] # [derive (Debug , Copy , Clone)] pub struct max_align_t { pub __clang_max_align_nonce1 : :: std :: os :: raw :: c_longlong , pub __bindgen_padding_0 : u64 , pub __clang_max_align_nonce2 : u128 , } # [test] fn bindgen_test_layout_max_align_t () { assert_eq ! (:: std :: mem :: size_of :: < max_align_t > () , 32usize , concat ! ("Size of: " , stringify ! (max_align_t))) ; assert_eq ! (:: std :: mem :: align_of :: < max_align_t > () , 16usize , concat ! ("Alignment of " , stringify ! (max_align_t))) ; fn test_field___clang_max_align_nonce1 () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < max_align_t > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . __clang_max_align_nonce1) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (max_align_t) , "::" , stringify ! (__clang_max_align_nonce1))) ; } test_field___clang_max_align_nonce1 () ; fn test_field___clang_max_align_nonce2 () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < max_align_t > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . __clang_max_align_nonce2) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (max_align_t) , "::" , stringify ! (__clang_max_align_nonce2))) ; } test_field___clang_max_align_nonce2 () ; } pub type __u_char = :: std :: os :: raw :: c_uchar ; pub type __u_short = :: std :: os :: raw :: c_ushort ; pub type __u_int = :: std :: os :: raw :: c_uint ; pub type __u_long = :: std :: os :: raw :: c_ulong ; pub type __int8_t = :: std :: os :: raw :: c_schar ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __int16_t = :: std :: os :: raw :: c_short ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; pub type __int32_t = :: std :: os :: raw :: c_int ; pub type __uint32_t = :: std :: os :: raw :: c_uint ; pub type __int64_t = :: std :: os :: raw :: c_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: std :: os :: raw :: c_long ; pub type __u_quad_t = :: std :: os :: raw :: c_ulong ; pub type __intmax_t = :: std :: os :: raw :: c_long ; pub type __uintmax_t = :: std :: os :: raw :: c_ulong ; pub type __dev_t = :: std :: os :: raw :: c_ulong ; pub type __uid_t = :: std :: os :: raw :: c_uint ; pub type __gid_t = :: std :: os :: raw :: c_uint ; pub type __ino_t = :: std :: os :: raw :: c_ulong ; pub type __ino64_t = :: std :: os :: raw :: c_ulong ; pub type __mode_t = :: std :: os :: raw :: c_uint ; pub type __nlink_t = :: std :: os :: raw :: c_ulong ; pub type __off_t = :: std :: os :: raw :: c_long ; pub type __off64_t = :: std :: os :: raw :: c_long ; pub type __pid_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: std :: os :: raw :: c_int ; 2usize] , } # [test] fn bindgen_test_layout___fsid_t () { assert_eq ! (:: std :: mem :: size_of :: < __fsid_t > () , 8usize , concat ! ("Size of: " , stringify ! (__fsid_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __fsid_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__fsid_t))) ; fn test_field___val () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < __fsid_t > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . __val) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__fsid_t) , "::" , stringify ! (__val))) ; } test_field___val () ; } pub type __clock_t = :: std :: os :: raw :: c_long ; pub type __rlim_t = :: std :: os :: raw :: c_ulong ; pub type __rlim64_t = :: std :: os :: raw :: c_ulong ; pub type __id_t = :: std :: os :: raw :: c_uint ; pub type __time_t = :: std :: os :: raw :: c_long ; pub type __useconds_t = :: std :: os :: raw :: c_uint ; pub type __suseconds_t = :: std :: os :: raw :: c_long ; pub type __suseconds64_t = :: std :: os :: raw :: c_long ; pub type __daddr_t = :: std :: os :: raw :: c_int ; pub type __key_t = :: std :: os :: raw :: c_int ; pub type __clockid_t = :: std :: os :: raw :: c_int ; pub type __timer_t = * mut :: std :: os :: raw :: c_void ; pub type __blksize_t = :: std :: os :: raw :: c_long ; pub type __blkcnt_t = :: std :: os :: raw :: c_long ; pub type __blkcnt64_t = :: std :: os :: raw :: c_long ; pub type __fsblkcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsblkcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsword_t = :: std :: os :: raw :: c_long ; pub type __ssize_t = :: std :: os :: raw :: c_long ; pub type __syscall_slong_t = :: std :: os :: raw :: c_long ; pub type __syscall_ulong_t = :: std :: os :: raw :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: std :: os :: raw :: c_char ; pub type __intptr_t = :: std :: os :: raw :: c_long ; pub type __socklen_t = :: std :: os :: raw :: c_uint ; pub type __sig_atomic_t = :: std :: os :: raw :: c_int ; pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = :: std :: os :: raw :: c_schar ; pub type int_fast16_t = :: std :: os :: raw :: c_long ; pub type int_fast32_t = :: std :: os :: raw :: c_long ; pub type int_fast64_t = :: std :: os :: raw :: c_long ; pub type uint_fast8_t = :: std :: os :: raw :: c_uchar ; pub type uint_fast16_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast32_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast64_t = :: std :: os :: raw :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const FlutterEngineResult_kSuccess : FlutterEngineResult = 0 ; pub const FlutterEngineResult_kInvalidLibraryVersion : FlutterEngineResult = 1 ; pub const FlutterEngineResult_kInvalidArguments : FlutterEngineResult = 2 ; pub const FlutterEngineResult_kInternalInconsistency : FlutterEngineResult = 3 ; pub type FlutterEngineResult = :: std :: os :: raw :: c_uint ; pub const FlutterRendererType_kOpenGL : FlutterRendererType = 0 ; pub const FlutterRendererType_kSoftware : FlutterRendererType = 1 ; # [doc = " Metal is only supported on Darwin platforms (macOS / iOS)."] # [doc = " iOS version >= 10.0 (device), 13.0 (simulator)"] # [doc = " macOS version >= 10.14"] pub const FlutterRendererType_kMetal : FlutterRendererType = 2 ; # [doc = " Metal is only supported on Darwin platforms (macOS / iOS)."] # [doc = " iOS version >= 10.0 (device), 13.0 (simulator)"] # [doc = " macOS version >= 10.14"] pub const FlutterRendererType_kVulkan : FlutterRendererType = 3 ; pub type FlutterRendererType = :: std :: os :: raw :: c_uint ; # [doc = " Indicate there is a running accessibility service which is changing the"] # [doc = " interaction model of the device."] pub const FlutterAccessibilityFeature_kFlutterAccessibilityFeatureAccessibleNavigation : FlutterAccessibilityFeature = 1 ; # [doc = " Indicate the platform is inverting the colors of the application."] pub const FlutterAccessibilityFeature_kFlutterAccessibilityFeatureInvertColors : FlutterAccessibilityFeature = 2 ; # [doc = " Request that animations be disabled or simplified."] pub const FlutterAccessibilityFeature_kFlutterAccessibilityFeatureDisableAnimations : FlutterAccessibilityFeature = 4 ; # [doc = " Request that text be rendered at a bold font weight."] pub const FlutterAccessibilityFeature_kFlutterAccessibilityFeatureBoldText : FlutterAccessibilityFeature = 8 ; # [doc = " Request that certain animations be simplified and parallax effects"] # [doc = " removed."] pub const FlutterAccessibilityFeature_kFlutterAccessibilityFeatureReduceMotion : FlutterAccessibilityFeature = 16 ; # [doc = " Request that UI be rendered with darker colors."] pub const FlutterAccessibilityFeature_kFlutterAccessibilityFeatureHighContrast : FlutterAccessibilityFeature = 32 ; # [doc = " Request to show on/off labels inside switches."] pub const FlutterAccessibilityFeature_kFlutterAccessibilityFeatureOnOffSwitchLabels : FlutterAccessibilityFeature = 64 ; # [doc = " Additional accessibility features that may be enabled by the platform."] # [doc = " Must match the `AccessibilityFeatures` enum in window.dart."] pub type FlutterAccessibilityFeature = :: std :: os :: raw :: c_uint ; # [doc = " The equivalent of a user briefly tapping the screen with the finger"] # [doc = " without moving it."] pub const FlutterSemanticsAction_kFlutterSemanticsActionTap : FlutterSemanticsAction = 1 ; # [doc = " The equivalent of a user pressing and holding the screen with the finger"] # [doc = " for a few seconds without moving it."] pub const FlutterSemanticsAction_kFlutterSemanticsActionLongPress : FlutterSemanticsAction = 2 ; # [doc = " The equivalent of a user moving their finger across the screen from right"] # [doc = " to left."] pub const FlutterSemanticsAction_kFlutterSemanticsActionScrollLeft : FlutterSemanticsAction = 4 ; # [doc = " The equivalent of a user moving their finger across the screen from left"] # [doc = " to"] # [doc = " right."] pub const FlutterSemanticsAction_kFlutterSemanticsActionScrollRight : FlutterSemanticsAction = 8 ; # [doc = " The equivalent of a user moving their finger across the screen from bottom"] # [doc = " to top."] pub const FlutterSemanticsAction_kFlutterSemanticsActionScrollUp : FlutterSemanticsAction = 16 ; # [doc = " The equivalent of a user moving their finger across the screen from top to"] # [doc = " bottom."] pub const FlutterSemanticsAction_kFlutterSemanticsActionScrollDown : FlutterSemanticsAction = 32 ; # [doc = " Increase the value represented by the semantics node."] pub const FlutterSemanticsAction_kFlutterSemanticsActionIncrease : FlutterSemanticsAction = 64 ; # [doc = " Decrease the value represented by the semantics node."] pub const FlutterSemanticsAction_kFlutterSemanticsActionDecrease : FlutterSemanticsAction = 128 ; # [doc = " A request to fully show the semantics node on screen."] pub const FlutterSemanticsAction_kFlutterSemanticsActionShowOnScreen : FlutterSemanticsAction = 256 ; # [doc = " Move the cursor forward by one character."] pub const FlutterSemanticsAction_kFlutterSemanticsActionMoveCursorForwardByCharacter : FlutterSemanticsAction = 512 ; # [doc = " Move the cursor backward by one character."] pub const FlutterSemanticsAction_kFlutterSemanticsActionMoveCursorBackwardByCharacter : FlutterSemanticsAction = 1024 ; # [doc = " Set the text selection to the given range."] pub const FlutterSemanticsAction_kFlutterSemanticsActionSetSelection : FlutterSemanticsAction = 2048 ; # [doc = " Copy the current selection to the clipboard."] pub const FlutterSemanticsAction_kFlutterSemanticsActionCopy : FlutterSemanticsAction = 4096 ; # [doc = " Cut the current selection and place it in the clipboard."] pub const FlutterSemanticsAction_kFlutterSemanticsActionCut : FlutterSemanticsAction = 8192 ; # [doc = " Paste the current content of the clipboard."] pub const FlutterSemanticsAction_kFlutterSemanticsActionPaste : FlutterSemanticsAction = 16384 ; # [doc = " Indicate that the node has gained accessibility focus."] pub const FlutterSemanticsAction_kFlutterSemanticsActionDidGainAccessibilityFocus : FlutterSemanticsAction = 32768 ; # [doc = " Indicate that the node has lost accessibility focus."] pub const FlutterSemanticsAction_kFlutterSemanticsActionDidLoseAccessibilityFocus : FlutterSemanticsAction = 65536 ; # [doc = " Indicate that the user has invoked a custom accessibility action."] pub const FlutterSemanticsAction_kFlutterSemanticsActionCustomAction : FlutterSemanticsAction = 131072 ; # [doc = " A request that the node should be dismissed."] pub const FlutterSemanticsAction_kFlutterSemanticsActionDismiss : FlutterSemanticsAction = 262144 ; # [doc = " Move the cursor forward by one word."] pub const FlutterSemanticsAction_kFlutterSemanticsActionMoveCursorForwardByWord : FlutterSemanticsAction = 524288 ; # [doc = " Move the cursor backward by one word."] pub const FlutterSemanticsAction_kFlutterSemanticsActionMoveCursorBackwardByWord : FlutterSemanticsAction = 1048576 ; # [doc = " Replace the current text in the text field."] pub const FlutterSemanticsAction_kFlutterSemanticsActionSetText : FlutterSemanticsAction = 2097152 ; # [doc = " The set of possible actions that can be conveyed to a semantics node."] # [doc = ""] # [doc = " Must match the `SemanticsAction` enum in semantics.dart."] pub type FlutterSemanticsAction = :: std :: os :: raw :: c_uint ; # [doc = " The semantics node has the quality of either being \"checked\" or"] # [doc = " \"unchecked\"."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagHasCheckedState : FlutterSemanticsFlag = 1 ; # [doc = " Whether a semantics node is checked."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsChecked : FlutterSemanticsFlag = 2 ; # [doc = " Whether a semantics node is selected."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsSelected : FlutterSemanticsFlag = 4 ; # [doc = " Whether the semantic node represents a button."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsButton : FlutterSemanticsFlag = 8 ; # [doc = " Whether the semantic node represents a text field."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsTextField : FlutterSemanticsFlag = 16 ; # [doc = " Whether the semantic node currently holds the user's focus."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsFocused : FlutterSemanticsFlag = 32 ; # [doc = " The semantics node has the quality of either being \"enabled\" or"] # [doc = " \"disabled\"."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagHasEnabledState : FlutterSemanticsFlag = 64 ; # [doc = " Whether a semantic node that hasEnabledState is currently enabled."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsEnabled : FlutterSemanticsFlag = 128 ; # [doc = " Whether a semantic node is in a mutually exclusive group."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsInMutuallyExclusiveGroup : FlutterSemanticsFlag = 256 ; # [doc = " Whether a semantic node is a header that divides content into sections."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsHeader : FlutterSemanticsFlag = 512 ; # [doc = " Whether the value of the semantics node is obscured."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsObscured : FlutterSemanticsFlag = 1024 ; # [doc = " Whether the semantics node is the root of a subtree for which a route name"] # [doc = " should be announced."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagScopesRoute : FlutterSemanticsFlag = 2048 ; # [doc = " Whether the semantics node label is the name of a visually distinct route."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagNamesRoute : FlutterSemanticsFlag = 4096 ; # [doc = " Whether the semantics node is considered hidden."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsHidden : FlutterSemanticsFlag = 8192 ; # [doc = " Whether the semantics node represents an image."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsImage : FlutterSemanticsFlag = 16384 ; # [doc = " Whether the semantics node is a live region."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsLiveRegion : FlutterSemanticsFlag = 32768 ; # [doc = " The semantics node has the quality of either being \"on\" or \"off\"."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagHasToggledState : FlutterSemanticsFlag = 65536 ; # [doc = " If true, the semantics node is \"on\". If false, the semantics node is"] # [doc = " \"off\"."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsToggled : FlutterSemanticsFlag = 131072 ; # [doc = " Whether the platform can scroll the semantics node when the user attempts"] # [doc = " to move the accessibility focus to an offscreen child."] # [doc = ""] # [doc = " For example, a `ListView` widget has implicit scrolling so that users can"] # [doc = " easily move the accessibility focus to the next set of children. A"] # [doc = " `PageView` widget does not have implicit scrolling, so that users don't"] # [doc = " navigate to the next page when reaching the end of the current one."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagHasImplicitScrolling : FlutterSemanticsFlag = 262144 ; # [doc = " Whether the value of the semantics node is coming from a multi-line text"] # [doc = " field."] # [doc = ""] # [doc = " This is used for text fields to distinguish single-line text fields from"] # [doc = " multi-line ones."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsMultiline : FlutterSemanticsFlag = 524288 ; # [doc = " Whether the semantic node is read only."] # [doc = ""] # [doc = " Only applicable when kFlutterSemanticsFlagIsTextField flag is on."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsReadOnly : FlutterSemanticsFlag = 1048576 ; # [doc = " Whether the semantic node can hold the user's focus."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsFocusable : FlutterSemanticsFlag = 2097152 ; # [doc = " Whether the semantics node represents a link."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsLink : FlutterSemanticsFlag = 4194304 ; # [doc = " Whether the semantics node represents a slider."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsSlider : FlutterSemanticsFlag = 8388608 ; # [doc = " Whether the semantics node represents a keyboard key."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsKeyboardKey : FlutterSemanticsFlag = 16777216 ; # [doc = " The set of properties that may be associated with a semantics node."] # [doc = ""] # [doc = " Must match the `SemanticsFlag` enum in semantics.dart."] pub type FlutterSemanticsFlag = :: std :: os :: raw :: c_uint ; # [doc = " Text has unknown text direction."] pub const FlutterTextDirection_kFlutterTextDirectionUnknown : FlutterTextDirection = 0 ; # [doc = " Text is read from right to left."] pub const FlutterTextDirection_kFlutterTextDirectionRTL : FlutterTextDirection = 1 ; # [doc = " Text is read from left to right."] pub const FlutterTextDirection_kFlutterTextDirectionLTR : FlutterTextDirection = 2 ; pub type FlutterTextDirection = :: std :: os :: raw :: c_uint ; # [doc = " Suitable for threads that shouldn't disrupt high priority work."] pub const FlutterThreadPriority_kBackground : FlutterThreadPriority = 0 ; # [doc = " Default priority level."] pub const FlutterThreadPriority_kNormal : FlutterThreadPriority = 1 ; # [doc = " Suitable for threads which generate data for the display."] pub const FlutterThreadPriority_kDisplay : FlutterThreadPriority = 2 ; # [doc = " Suitable for thread which raster data."] pub const FlutterThreadPriority_kRaster : FlutterThreadPriority = 3 ; # [doc = " Valid values for priority of Thread."] pub type FlutterThreadPriority = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _FlutterEngine { _unused : [u8 ; 0] , } pub type FlutterEngine = * mut _FlutterEngine ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterTransformation { # [doc = " horizontal scale factor"] pub scaleX : f64 , # [doc = " horizontal skew factor"] pub skewX : f64 , # [doc = " horizontal translation"] pub transX : f64 , # [doc = " vertical skew factor"] pub skewY : f64 , # [doc = " vertical scale factor"] pub scaleY : f64 , # [doc = " vertical translation"] pub transY : f64 , # [doc = " input x-axis perspective factor"] pub pers0 : f64 , # [doc = " input y-axis perspective factor"] pub pers1 : f64 , # [doc = " perspective scale factor"] pub pers2 : f64 , } # [test] fn bindgen_test_layout_FlutterTransformation () { assert_eq ! (:: std :: mem :: size_of :: < FlutterTransformation > () , 72usize , concat ! ("Size of: " , stringify ! (FlutterTransformation))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterTransformation > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterTransformation))) ; fn test_field_scaleX () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scaleX) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (scaleX))) ; } test_field_scaleX () ; fn test_field_skewX () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . skewX) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (skewX))) ; } test_field_skewX () ; fn test_field_transX () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . transX) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (transX))) ; } test_field_transX () ; fn test_field_skewY () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . skewY) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (skewY))) ; } test_field_skewY () ; fn test_field_scaleY () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scaleY) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (scaleY))) ; } test_field_scaleY () ; fn test_field_transY () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . transY) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (transY))) ; } test_field_transY () ; fn test_field_pers0 () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . pers0) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (pers0))) ; } test_field_pers0 () ; fn test_field_pers1 () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . pers1) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (pers1))) ; } test_field_pers1 () ; fn test_field_pers2 () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . pers2) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (pers2))) ; } test_field_pers2 () ; } pub type VoidCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void) > ; # [doc = " Specifies an OpenGL texture target type. Textures are specified using"] # [doc = " the FlutterOpenGLTexture struct."] pub const FlutterOpenGLTargetType_kFlutterOpenGLTargetTypeTexture : FlutterOpenGLTargetType = 0 ; # [doc = " Specifies an OpenGL frame-buffer target type. Framebuffers are specified"] # [doc = " using the FlutterOpenGLFramebuffer struct."] pub const FlutterOpenGLTargetType_kFlutterOpenGLTargetTypeFramebuffer : FlutterOpenGLTargetType = 1 ; pub type FlutterOpenGLTargetType = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterOpenGLTexture { # [doc = " Target texture of the active texture unit (example GL_TEXTURE_2D or"] # [doc = " GL_TEXTURE_RECTANGLE)."] pub target : u32 , # [doc = " The name of the texture."] pub name : u32 , # [doc = " The texture format (example GL_RGBA8)."] pub format : u32 , # [doc = " User data to be returned on the invocation of the destruction callback."] pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " Callback invoked (on an engine managed thread) that asks the embedder to"] # [doc = " collect the texture."] pub destruction_callback : VoidCallback , # [doc = " Optional parameters for texture height/width, default is 0, non-zero means"] # [doc = " the texture has the specified width/height. Usually, when the texture type"] # [doc = " is GL_TEXTURE_RECTANGLE, we need to specify the texture width/height to"] # [doc = " tell the embedder to scale when rendering."] # [doc = " Width of the texture."] pub width : size_t , # [doc = " Height of the texture."] pub height : size_t , } # [test] fn bindgen_test_layout_FlutterOpenGLTexture () { assert_eq ! (:: std :: mem :: size_of :: < FlutterOpenGLTexture > () , 48usize , concat ! ("Size of: " , stringify ! (FlutterOpenGLTexture))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterOpenGLTexture > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterOpenGLTexture))) ; fn test_field_target () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . target) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLTexture) , "::" , stringify ! (target))) ; } test_field_target () ; fn test_field_name () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLTexture) , "::" , stringify ! (name))) ; } test_field_name () ; fn test_field_format () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . format) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLTexture) , "::" , stringify ! (format))) ; } test_field_format () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLTexture) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_destruction_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . destruction_callback) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLTexture) , "::" , stringify ! (destruction_callback))) ; } test_field_destruction_callback () ; fn test_field_width () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . width) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLTexture) , "::" , stringify ! (width))) ; } test_field_width () ; fn test_field_height () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . height) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLTexture) , "::" , stringify ! (height))) ; } test_field_height () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterOpenGLFramebuffer { # [doc = " The target of the color attachment of the frame-buffer. For example,"] # [doc = " GL_TEXTURE_2D or GL_RENDERBUFFER. In case of ambiguity when dealing with"] # [doc = " Window bound frame-buffers, 0 may be used."] pub target : u32 , # [doc = " The name of the framebuffer."] pub name : u32 , # [doc = " User data to be returned on the invocation of the destruction callback."] pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " Callback invoked (on an engine managed thread) that asks the embedder to"] # [doc = " collect the framebuffer."] pub destruction_callback : VoidCallback , } # [test] fn bindgen_test_layout_FlutterOpenGLFramebuffer () { assert_eq ! (:: std :: mem :: size_of :: < FlutterOpenGLFramebuffer > () , 24usize , concat ! ("Size of: " , stringify ! (FlutterOpenGLFramebuffer))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterOpenGLFramebuffer > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterOpenGLFramebuffer))) ; fn test_field_target () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLFramebuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . target) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLFramebuffer) , "::" , stringify ! (target))) ; } test_field_target () ; fn test_field_name () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLFramebuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLFramebuffer) , "::" , stringify ! (name))) ; } test_field_name () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLFramebuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLFramebuffer) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_destruction_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLFramebuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . destruction_callback) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLFramebuffer) , "::" , stringify ! (destruction_callback))) ; } test_field_destruction_callback () ; } pub type BoolCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void) -> bool > ; pub type TransformationCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void) -> FlutterTransformation > ; pub type UIntCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void) -> u32 > ; pub type SoftwareSurfacePresentCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void , arg3 : size_t , arg4 : size_t) -> bool > ; pub type ProcResolver = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_void > ; pub type TextureFrameCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : i64 , arg3 : size_t , arg4 : size_t , arg5 : * mut FlutterOpenGLTexture) -> bool > ; pub type VsyncCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : isize) > ; pub type OnPreEngineRestartCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void) > ; # [doc = " A structure to represent the width and height."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterSize { pub width : f64 , pub height : f64 , } # [test] fn bindgen_test_layout_FlutterSize () { assert_eq ! (:: std :: mem :: size_of :: < FlutterSize > () , 16usize , concat ! ("Size of: " , stringify ! (FlutterSize))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterSize > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterSize))) ; fn test_field_width () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSize > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . width) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterSize) , "::" , stringify ! (width))) ; } test_field_width () ; fn test_field_height () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSize > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . height) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterSize) , "::" , stringify ! (height))) ; } test_field_height () ; } # [doc = " A structure to represent the width and height."] # [doc = ""] # [doc = " See: \\ref FlutterSize when the value are not integers."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterUIntSize { pub width : u32 , pub height : u32 , } # [test] fn bindgen_test_layout_FlutterUIntSize () { assert_eq ! (:: std :: mem :: size_of :: < FlutterUIntSize > () , 8usize , concat ! ("Size of: " , stringify ! (FlutterUIntSize))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterUIntSize > () , 4usize , concat ! ("Alignment of " , stringify ! (FlutterUIntSize))) ; fn test_field_width () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterUIntSize > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . width) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterUIntSize) , "::" , stringify ! (width))) ; } test_field_width () ; fn test_field_height () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterUIntSize > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . height) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (FlutterUIntSize) , "::" , stringify ! (height))) ; } test_field_height () ; } # [doc = " A structure to represent a rectangle."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterRect { pub left : f64 , pub top : f64 , pub right : f64 , pub bottom : f64 , } # [test] fn bindgen_test_layout_FlutterRect () { assert_eq ! (:: std :: mem :: size_of :: < FlutterRect > () , 32usize , concat ! ("Size of: " , stringify ! (FlutterRect))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterRect > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterRect))) ; fn test_field_left () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . left) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterRect) , "::" , stringify ! (left))) ; } test_field_left () ; fn test_field_top () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . top) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterRect) , "::" , stringify ! (top))) ; } test_field_top () ; fn test_field_right () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . right) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterRect) , "::" , stringify ! (right))) ; } test_field_right () ; fn test_field_bottom () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . bottom) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterRect) , "::" , stringify ! (bottom))) ; } test_field_bottom () ; } # [doc = " A structure to represent a 2D point."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterPoint { pub x : f64 , pub y : f64 , } # [test] fn bindgen_test_layout_FlutterPoint () { assert_eq ! (:: std :: mem :: size_of :: < FlutterPoint > () , 16usize , concat ! ("Size of: " , stringify ! (FlutterPoint))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterPoint > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterPoint))) ; fn test_field_x () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPoint > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . x) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPoint) , "::" , stringify ! (x))) ; } test_field_x () ; fn test_field_y () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPoint > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . y) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterPoint) , "::" , stringify ! (y))) ; } test_field_y () ; } # [doc = " A structure to represent a rounded rectangle."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterRoundedRect { pub rect : FlutterRect , pub upper_left_corner_radius : FlutterSize , pub upper_right_corner_radius : FlutterSize , pub lower_right_corner_radius : FlutterSize , pub lower_left_corner_radius : FlutterSize , } # [test] fn bindgen_test_layout_FlutterRoundedRect () { assert_eq ! (:: std :: mem :: size_of :: < FlutterRoundedRect > () , 96usize , concat ! ("Size of: " , stringify ! (FlutterRoundedRect))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterRoundedRect > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterRoundedRect))) ; fn test_field_rect () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRoundedRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . rect) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterRoundedRect) , "::" , stringify ! (rect))) ; } test_field_rect () ; fn test_field_upper_left_corner_radius () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRoundedRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . upper_left_corner_radius) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterRoundedRect) , "::" , stringify ! (upper_left_corner_radius))) ; } test_field_upper_left_corner_radius () ; fn test_field_upper_right_corner_radius () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRoundedRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . upper_right_corner_radius) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterRoundedRect) , "::" , stringify ! (upper_right_corner_radius))) ; } test_field_upper_right_corner_radius () ; fn test_field_lower_right_corner_radius () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRoundedRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . lower_right_corner_radius) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterRoundedRect) , "::" , stringify ! (lower_right_corner_radius))) ; } test_field_lower_right_corner_radius () ; fn test_field_lower_left_corner_radius () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRoundedRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . lower_left_corner_radius) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (FlutterRoundedRect) , "::" , stringify ! (lower_left_corner_radius))) ; } test_field_lower_left_corner_radius () ; } # [doc = " This information is passed to the embedder when requesting a frame buffer"] # [doc = " object."] # [doc = ""] # [doc = " See: \\ref FlutterOpenGLRendererConfig.fbo_with_frame_info_callback."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterFrameInfo { # [doc = " The size of this struct. Must be sizeof(FlutterFrameInfo)."] pub struct_size : size_t , # [doc = " The size of the surface that will be backed by the fbo."] pub size : FlutterUIntSize , } # [test] fn bindgen_test_layout_FlutterFrameInfo () { assert_eq ! (:: std :: mem :: size_of :: < FlutterFrameInfo > () , 16usize , concat ! ("Size of: " , stringify ! (FlutterFrameInfo))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterFrameInfo > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterFrameInfo))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterFrameInfo > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterFrameInfo) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterFrameInfo > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterFrameInfo) , "::" , stringify ! (size))) ; } test_field_size () ; } # [doc = " Callback for when a frame buffer object is requested."] pub type UIntFrameInfoCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * const FlutterFrameInfo) -> u32 > ; # [doc = " This information is passed to the embedder when a surface is presented."] # [doc = ""] # [doc = " See: \\ref FlutterOpenGLRendererConfig.present_with_info."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterPresentInfo { # [doc = " The size of this struct. Must be sizeof(FlutterPresentInfo)."] pub struct_size : size_t , # [doc = " Id of the fbo backing the surface that was presented."] pub fbo_id : u32 , } # [test] fn bindgen_test_layout_FlutterPresentInfo () { assert_eq ! (:: std :: mem :: size_of :: < FlutterPresentInfo > () , 16usize , concat ! ("Size of: " , stringify ! (FlutterPresentInfo))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterPresentInfo > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterPresentInfo))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPresentInfo > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPresentInfo) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_fbo_id () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPresentInfo > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . fbo_id) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterPresentInfo) , "::" , stringify ! (fbo_id))) ; } test_field_fbo_id () ; } # [doc = " Callback for when a surface is presented."] pub type BoolPresentInfoCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * const FlutterPresentInfo) -> bool > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterOpenGLRendererConfig { # [doc = " The size of this struct. Must be sizeof(FlutterOpenGLRendererConfig)."] pub struct_size : size_t , pub make_current : BoolCallback , pub clear_current : BoolCallback , # [doc = " Specifying one (and only one) of `present` or `present_with_info` is"] # [doc = " required. Specifying both is an error and engine initialization will be"] # [doc = " terminated. The return value indicates success of the present call."] pub present : BoolCallback , # [doc = " Specifying one (and only one) of the `fbo_callback` or"] # [doc = " `fbo_with_frame_info_callback` is required. Specifying both is an error"] # [doc = " and engine intialization will be terminated. The return value indicates"] # [doc = " the id of the frame buffer object that flutter will obtain the gl surface"] # [doc = " from."] pub fbo_callback : UIntCallback , # [doc = " This is an optional callback. Flutter will ask the emebdder to create a GL"] # [doc = " context current on a background thread. If the embedder is able to do so,"] # [doc = " Flutter will assume that this context is in the same sharegroup as the"] # [doc = " main rendering context and use this context for asynchronous texture"] # [doc = " uploads. Though optional, it is recommended that all embedders set this"] # [doc = " callback as it will lead to better performance in texture handling."] pub make_resource_current : BoolCallback , # [doc = " By default, the renderer config assumes that the FBO does not change for"] # [doc = " the duration of the engine run. If this argument is true, the"] # [doc = " engine will ask the embedder for an updated FBO target (via an"] # [doc = " fbo_callback invocation) after a present call."] pub fbo_reset_after_present : bool , # [doc = " The transformation to apply to the render target before any rendering"] # [doc = " operations. This callback is optional."] # [doc = " @attention      When using a custom compositor, the layer offset and sizes"] # [doc = "                 will be affected by this transformation. It will be"] # [doc = "                 embedder responsibility to render contents at the"] # [doc = "                 transformed offset and size. This is useful for embedders"] # [doc = "                 that want to render transformed contents directly into"] # [doc = "                 hardware overlay planes without having to apply extra"] # [doc = "                 transformations to layer contents (which may necessitate"] # [doc = "                 an expensive off-screen render pass)."] pub surface_transformation : TransformationCallback , pub gl_proc_resolver : ProcResolver , # [doc = " When the embedder specifies that a texture has a frame available, the"] # [doc = " engine will call this method (on an internal engine managed thread) so"] # [doc = " that external texture details can be supplied to the engine for subsequent"] # [doc = " composition."] pub gl_external_texture_frame_callback : TextureFrameCallback , # [doc = " Specifying one (and only one) of the `fbo_callback` or"] # [doc = " `fbo_with_frame_info_callback` is required. Specifying both is an error"] # [doc = " and engine intialization will be terminated. The return value indicates"] # [doc = " the id of the frame buffer object (fbo) that flutter will obtain the gl"] # [doc = " surface from. When using this variant, the embedder is passed a"] # [doc = " `FlutterFrameInfo` struct that indicates the properties of the surface"] # [doc = " that flutter will acquire from the returned fbo."] pub fbo_with_frame_info_callback : UIntFrameInfoCallback , # [doc = " Specifying one (and only one) of `present` or `present_with_info` is"] # [doc = " required. Specifying both is an error and engine initialization will be"] # [doc = " terminated. When using this variant, the embedder is passed a"] # [doc = " `FlutterPresentInfo` struct that the embedder can use to release any"] # [doc = " resources. The return value indicates success of the present call."] pub present_with_info : BoolPresentInfoCallback , } # [test] fn bindgen_test_layout_FlutterOpenGLRendererConfig () { assert_eq ! (:: std :: mem :: size_of :: < FlutterOpenGLRendererConfig > () , 96usize , concat ! ("Size of: " , stringify ! (FlutterOpenGLRendererConfig))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterOpenGLRendererConfig > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterOpenGLRendererConfig))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_make_current () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . make_current) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (make_current))) ; } test_field_make_current () ; fn test_field_clear_current () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . clear_current) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (clear_current))) ; } test_field_clear_current () ; fn test_field_present () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . present) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (present))) ; } test_field_present () ; fn test_field_fbo_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . fbo_callback) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (fbo_callback))) ; } test_field_fbo_callback () ; fn test_field_make_resource_current () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . make_resource_current) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (make_resource_current))) ; } test_field_make_resource_current () ; fn test_field_fbo_reset_after_present () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . fbo_reset_after_present) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (fbo_reset_after_present))) ; } test_field_fbo_reset_after_present () ; fn test_field_surface_transformation () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . surface_transformation) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (surface_transformation))) ; } test_field_surface_transformation () ; fn test_field_gl_proc_resolver () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . gl_proc_resolver) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (gl_proc_resolver))) ; } test_field_gl_proc_resolver () ; fn test_field_gl_external_texture_frame_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . gl_external_texture_frame_callback) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (gl_external_texture_frame_callback))) ; } test_field_gl_external_texture_frame_callback () ; fn test_field_fbo_with_frame_info_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . fbo_with_frame_info_callback) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (fbo_with_frame_info_callback))) ; } test_field_fbo_with_frame_info_callback () ; fn test_field_present_with_info () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . present_with_info) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (present_with_info))) ; } test_field_present_with_info () ; } `# [doc = " Alias for id<MTLDevice>."]` pub type FlutterMetalDeviceHandle = * const :: std :: os :: raw :: c_void ; # [doc = " Alias for id<MTLCommandQueue>."] pub type FlutterMetalCommandQueueHandle = * const :: std :: os :: raw :: c_void ; # [doc = " Alias for id<MTLTexture>."] pub type FlutterMetalTextureHandle = * const :: std :: os :: raw :: c_void ; pub const FlutterMetalExternalTexturePixelFormat_kYUVA : FlutterMetalExternalTexturePixelFormat = 0 ; pub const FlutterMetalExternalTexturePixelFormat_kRGBA : FlutterMetalExternalTexturePixelFormat = 1 ; # [doc = " Pixel format for the external texture."] pub type FlutterMetalExternalTexturePixelFormat = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterMetalExternalTexture { # [doc = " The size of this struct. Must be sizeof(FlutterMetalExternalTexture)."] pub struct_size : size_t , # [doc = " Height of the texture."] pub width : size_t , # [doc = " Height of the texture."] pub height : size_t , # [doc = " The pixel format type of the external."] pub pixel_format : FlutterMetalExternalTexturePixelFormat , # [doc = " Represents the size of the `textures` array."] pub num_textures : size_t , # [doc = " Supported textures are YUVA and RGBA, in case of YUVA we expect 2 texture"] # [doc = " handles to be provided by the embedder, Y first and UV next. In case of"] # [doc = " RGBA only one should be passed."] # [doc = " These are individually aliases for id<MTLTexture>. These textures are"] # [doc = " retained by the engine for the period of the composition. Once these"] # [doc = " textures have been unregistered via the"] # [doc = " `FlutterEngineUnregisterExternalTexture`, the embedder has to release"] # [doc = " these textures."] pub textures : * mut FlutterMetalTextureHandle , } # [test] fn bindgen_test_layout_FlutterMetalExternalTexture () { assert_eq ! (:: std :: mem :: size_of :: < FlutterMetalExternalTexture > () , 48usize , concat ! ("Size of: " , stringify ! (FlutterMetalExternalTexture))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterMetalExternalTexture > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterMetalExternalTexture))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalExternalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalExternalTexture) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_width () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalExternalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . width) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalExternalTexture) , "::" , stringify ! (width))) ; } test_field_width () ; fn test_field_height () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalExternalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . height) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalExternalTexture) , "::" , stringify ! (height))) ; } test_field_height () ; fn test_field_pixel_format () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalExternalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . pixel_format) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalExternalTexture) , "::" , stringify ! (pixel_format))) ; } test_field_pixel_format () ; fn test_field_num_textures () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalExternalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . num_textures) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalExternalTexture) , "::" , stringify ! (num_textures))) ; } test_field_num_textures () ; fn test_field_textures () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalExternalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . textures) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalExternalTexture) , "::" , stringify ! (textures))) ; } test_field_textures () ; } # [doc = " Callback to provide an external texture for a given texture_id."] # [doc = " See: external_texture_frame_callback."] pub type FlutterMetalTextureFrameCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : i64 , arg3 : size_t , arg4 : size_t , arg5 : * mut FlutterMetalExternalTexture) -> bool > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterMetalTexture { # [doc = " The size of this struct. Must be sizeof(FlutterMetalTexture)."] pub struct_size : size_t , # [doc = " Embedder provided unique identifier to the texture buffer. Given that the"] # [doc = " `texture` handle is passed to the engine to render to, the texture buffer"] # [doc = " is itself owned by the embedder. This `texture_id` is then also given to"] # [doc = " the embedder in the present callback."] pub texture_id : i64 , # [doc = " Handle to the MTLTexture that is owned by the embedder. Engine will render"] # [doc = " the frame into this texture."] pub texture : FlutterMetalTextureHandle , # [doc = " A baton that is not interpreted by the engine in any way. It will be given"] # [doc = " back to the embedder in the destruction callback below. Embedder resources"] # [doc = " may be associated with this baton."] pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " The callback invoked by the engine when it no longer needs this backing"] # [doc = " store."] pub destruction_callback : VoidCallback , } # [test] fn bindgen_test_layout_FlutterMetalTexture () { assert_eq ! (:: std :: mem :: size_of :: < FlutterMetalTexture > () , 40usize , concat ! ("Size of: " , stringify ! (FlutterMetalTexture))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterMetalTexture > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterMetalTexture))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalTexture) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_texture_id () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . texture_id) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalTexture) , "::" , stringify ! (texture_id))) ; } test_field_texture_id () ; fn test_field_texture () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . texture) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalTexture) , "::" , stringify ! (texture))) ; } test_field_texture () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalTexture) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_destruction_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . destruction_callback) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalTexture) , "::" , stringify ! (destruction_callback))) ; } test_field_destruction_callback () ; } # [doc = " Callback for when a metal texture is requested."] pub type FlutterMetalTextureCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * const FlutterFrameInfo) -> FlutterMetalTexture > ; # [doc = " Callback for when a metal texture is presented. The texture_id here"] # [doc = " corresponds to the texture_id provided by the embedder in the"] # [doc = " `FlutterMetalTextureCallback` callback."] pub type FlutterMetalPresentCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * const FlutterMetalTexture) -> bool > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterMetalRendererConfig { # [doc = " The size of this struct. Must be sizeof(FlutterMetalRendererConfig)."] pub struct_size : size_t , # [doc = " Alias for id<MTLDevice>."] pub device : FlutterMetalDeviceHandle , # [doc = " Alias for id<MTLCommandQueue>."] pub present_command_queue : FlutterMetalCommandQueueHandle , # [doc = " The callback that gets invoked when the engine requests the embedder for a"] # [doc = " texture to render to."] pub get_next_drawable_callback : FlutterMetalTextureCallback , # [doc = " The callback presented to the embedder to present a fully populated metal"] # [doc = " texture to the user."] pub present_drawable_callback : FlutterMetalPresentCallback , # [doc = " When the embedder specifies that a texture has a frame available, the"] # [doc = " engine will call this method (on an internal engine managed thread) so"] # [doc = " that external texture details can be supplied to the engine for subsequent"] # [doc = " composition."] pub external_texture_frame_callback : FlutterMetalTextureFrameCallback , } # [test] fn bindgen_test_layout_FlutterMetalRendererConfig () { assert_eq ! (:: std :: mem :: size_of :: < FlutterMetalRendererConfig > () , 48usize , concat ! ("Size of: " , stringify ! (FlutterMetalRendererConfig))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterMetalRendererConfig > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterMetalRendererConfig))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalRendererConfig) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_device () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . device) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalRendererConfig) , "::" , stringify ! (device))) ; } test_field_device () ; fn test_field_present_command_queue () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . present_command_queue) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalRendererConfig) , "::" , stringify ! (present_command_queue))) ; } test_field_present_command_queue () ; fn test_field_get_next_drawable_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . get_next_drawable_callback) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalRendererConfig) , "::" , stringify ! (get_next_drawable_callback))) ; } test_field_get_next_drawable_callback () ; fn test_field_present_drawable_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . present_drawable_callback) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalRendererConfig) , "::" , stringify ! (present_drawable_callback))) ; } test_field_present_drawable_callback () ; fn test_field_external_texture_frame_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . external_texture_frame_callback) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalRendererConfig) , "::" , stringify ! (external_texture_frame_callback))) ; } test_field_external_texture_frame_callback () ; } # [doc = " Alias for VkInstance."] pub type FlutterVulkanInstanceHandle = * mut :: std :: os :: raw :: c_void ; # [doc = " Alias for VkPhysicalDevice."] pub type FlutterVulkanPhysicalDeviceHandle = * mut :: std :: os :: raw :: c_void ; # [doc = " Alias for VkDevice."] pub type FlutterVulkanDeviceHandle = * mut :: std :: os :: raw :: c_void ; # [doc = " Alias for VkQueue."] pub type FlutterVulkanQueueHandle = * mut :: std :: os :: raw :: c_void ; # [doc = " Alias for VkImage."] pub type FlutterVulkanImageHandle = u64 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterVulkanImage { # [doc = " The size of this struct. Must be sizeof(FlutterVulkanImage)."] pub struct_size : size_t , # [doc = " Handle to the VkImage that is owned by the embedder. The engine will"] # [doc = " bind this image for writing the frame."] pub image : FlutterVulkanImageHandle , # [doc = " The VkFormat of the image (for example: VK_FORMAT_R8G8B8A8_UNORM)."] pub format : u32 , } # [test] fn bindgen_test_layout_FlutterVulkanImage () { assert_eq ! (:: std :: mem :: size_of :: < FlutterVulkanImage > () , 24usize , concat ! ("Size of: " , stringify ! (FlutterVulkanImage))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterVulkanImage > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterVulkanImage))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanImage > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanImage) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_image () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanImage > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . image) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanImage) , "::" , stringify ! (image))) ; } test_field_image () ; fn test_field_format () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanImage > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . format) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanImage) , "::" , stringify ! (format))) ; } test_field_format () ; } # [doc = " Callback to fetch a Vulkan function pointer for a given instance. Normally,"] # [doc = " this should return the results of vkGetInstanceProcAddr."] pub type FlutterVulkanInstanceProcAddressCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : FlutterVulkanInstanceHandle , arg3 : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_void > ; # [doc = " Callback for when a VkImage is requested."] pub type FlutterVulkanImageCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * const FlutterFrameInfo) -> FlutterVulkanImage > ; # [doc = " Callback for when a VkImage has been written to and is ready for use by the"] # [doc = " embedder."] pub type FlutterVulkanPresentCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * const FlutterVulkanImage) -> bool > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterVulkanRendererConfig { # [doc = " The size of this struct. Must be sizeof(FlutterVulkanRendererConfig)."] pub struct_size : size_t , # [doc = " The Vulkan API version. This should match the value set in"] # [doc = " VkApplicationInfo::apiVersion when the VkInstance was created."] pub version : u32 , # [doc = " VkInstance handle. Must not be destroyed before `FlutterEngineShutdown` is"] # [doc = " called."] pub instance : FlutterVulkanInstanceHandle , # [doc = " VkPhysicalDevice handle."] pub physical_device : FlutterVulkanPhysicalDeviceHandle , # [doc = " VkDevice handle. Must not be destroyed before `FlutterEngineShutdown` is"] # [doc = " called."] pub device : FlutterVulkanDeviceHandle , # [doc = " The queue family index of the VkQueue supplied in the next field."] pub queue_family_index : u32 , # [doc = " VkQueue handle."] pub queue : FlutterVulkanQueueHandle , # [doc = " The number of instance extensions available for enumerating in the next"] # [doc = " field."] pub enabled_instance_extension_count : size_t , # [doc = " Array of enabled instance extension names. This should match the names"] # [doc = " passed to `VkInstanceCreateInfo.ppEnabledExtensionNames` when the instance"] # [doc = " was created, but any subset of enabled instance extensions may be"] # [doc = " specified."] # [doc = " This field is optional; `nullptr` may be specified."] # [doc = " This memory is only accessed during the call to FlutterEngineInitialize."] pub enabled_instance_extensions : * mut * const :: std :: os :: raw :: c_char , # [doc = " The number of device extensions available for enumerating in the next"] # [doc = " field."] pub enabled_device_extension_count : size_t , # [doc = " Array of enabled logical device extension names. This should match the"] # [doc = " names passed to `VkDeviceCreateInfo.ppEnabledExtensionNames` when the"] # [doc = " logical device was created, but any subset of enabled logical device"] # [doc = " extensions may be specified."] # [doc = " This field is optional; `nullptr` may be specified."] # [doc = " This memory is only accessed during the call to FlutterEngineInitialize."] # [doc = " For example: VK_KHR_GET_MEMORY_REQUIREMENTS_2_EXTENSION_NAME"] pub enabled_device_extensions : * mut * const :: std :: os :: raw :: c_char , # [doc = " The callback invoked when resolving Vulkan function pointers."] pub get_instance_proc_address_callback : FlutterVulkanInstanceProcAddressCallback , # [doc = " The callback invoked when the engine requests a VkImage from the embedder"] # [doc = " for rendering the next frame."] # [doc = " Not used if a FlutterCompositor is supplied in FlutterProjectArgs."] pub get_next_image_callback : FlutterVulkanImageCallback , # [doc = " The callback invoked when a VkImage has been written to and is ready for"] # [doc = " use by the embedder. Prior to calling this callback, the engine performs"] # [doc = " a host sync, and so the VkImage can be used in a pipeline by the embedder"] # [doc = " without any additional synchronization."] # [doc = " Not used if a FlutterCompositor is supplied in FlutterProjectArgs."] pub present_image_callback : FlutterVulkanPresentCallback , } # [test] fn bindgen_test_layout_FlutterVulkanRendererConfig () { assert_eq ! (:: std :: mem :: size_of :: < FlutterVulkanRendererConfig > () , 112usize , concat ! ("Size of: " , stringify ! (FlutterVulkanRendererConfig))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterVulkanRendererConfig > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterVulkanRendererConfig))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_version () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . version) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (version))) ; } test_field_version () ; fn test_field_instance () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . instance) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (instance))) ; } test_field_instance () ; fn test_field_physical_device () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . physical_device) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (physical_device))) ; } test_field_physical_device () ; fn test_field_device () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . device) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (device))) ; } test_field_device () ; fn test_field_queue_family_index () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . queue_family_index) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (queue_family_index))) ; } test_field_queue_family_index () ; fn test_field_queue () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . queue) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (queue))) ; } test_field_queue () ; fn test_field_enabled_instance_extension_count () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . enabled_instance_extension_count) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (enabled_instance_extension_count))) ; } test_field_enabled_instance_extension_count () ; fn test_field_enabled_instance_extensions () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . enabled_instance_extensions) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (enabled_instance_extensions))) ; } test_field_enabled_instance_extensions () ; fn test_field_enabled_device_extension_count () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . enabled_device_extension_count) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (enabled_device_extension_count))) ; } test_field_enabled_device_extension_count () ; fn test_field_enabled_device_extensions () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . enabled_device_extensions) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (enabled_device_extensions))) ; } test_field_enabled_device_extensions () ; fn test_field_get_instance_proc_address_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . get_instance_proc_address_callback) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (get_instance_proc_address_callback))) ; } test_field_get_instance_proc_address_callback () ; fn test_field_get_next_image_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . get_next_image_callback) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (get_next_image_callback))) ; } test_field_get_next_image_callback () ; fn test_field_present_image_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . present_image_callback) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (present_image_callback))) ; } test_field_present_image_callback () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterSoftwareRendererConfig { # [doc = " The size of this struct. Must be sizeof(FlutterSoftwareRendererConfig)."] pub struct_size : size_t , # [doc = " The callback presented to the embedder to present a fully populated buffer"] # [doc = " to the user. The pixel format of the buffer is the native 32-bit RGBA"] # [doc = " format. The buffer is owned by the Flutter engine and must be copied in"] # [doc = " this callback if needed."] pub surface_present_callback : SoftwareSurfacePresentCallback , } # [test] fn bindgen_test_layout_FlutterSoftwareRendererConfig () { assert_eq ! (:: std :: mem :: size_of :: < FlutterSoftwareRendererConfig > () , 16usize , concat ! ("Size of: " , stringify ! (FlutterSoftwareRendererConfig))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterSoftwareRendererConfig > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterSoftwareRendererConfig))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSoftwareRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterSoftwareRendererConfig) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_surface_present_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSoftwareRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . surface_present_callback) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterSoftwareRendererConfig) , "::" , stringify ! (surface_present_callback))) ; } test_field_surface_present_callback () ; } # [repr (C)] # [derive (Copy , Clone)] pub struct FlutterRendererConfig { pub type_ : FlutterRendererType , pub __bindgen_anon_1 : FlutterRendererConfig__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union FlutterRendererConfig__bindgen_ty_1 { pub open_gl : FlutterOpenGLRendererConfig , pub software : FlutterSoftwareRendererConfig , pub metal : FlutterMetalRendererConfig , pub vulkan : FlutterVulkanRendererConfig , } # [test] fn bindgen_test_layout_FlutterRendererConfig__bindgen_ty_1 () { assert_eq ! (:: std :: mem :: size_of :: < FlutterRendererConfig__bindgen_ty_1 > () , 112usize , concat ! ("Size of: " , stringify ! (FlutterRendererConfig__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterRendererConfig__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterRendererConfig__bindgen_ty_1))) ; fn test_field_open_gl () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRendererConfig__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . open_gl) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterRendererConfig__bindgen_ty_1) , "::" , stringify ! (open_gl))) ; } test_field_open_gl () ; fn test_field_software () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRendererConfig__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . software) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterRendererConfig__bindgen_ty_1) , "::" , stringify ! (software))) ; } test_field_software () ; fn test_field_metal () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRendererConfig__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . metal) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterRendererConfig__bindgen_ty_1) , "::" , stringify ! (metal))) ; } test_field_metal () ; fn test_field_vulkan () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRendererConfig__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . vulkan) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterRendererConfig__bindgen_ty_1) , "::" , stringify ! (vulkan))) ; } test_field_vulkan () ; } # [test] fn bindgen_test_layout_FlutterRendererConfig () { assert_eq ! (:: std :: mem :: size_of :: < FlutterRendererConfig > () , 120usize , concat ! ("Size of: " , stringify ! (FlutterRendererConfig))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterRendererConfig > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterRendererConfig))) ; fn test_field_type () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . type_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterRendererConfig) , "::" , stringify ! (type_))) ; } test_field_type () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterWindowMetricsEvent { # [doc = " The size of this struct. Must be sizeof(FlutterWindowMetricsEvent)."] pub struct_size : size_t , # [doc = " Physical width of the window."] pub width : size_t , # [doc = " Physical height of the window."] pub height : size_t , # [doc = " Scale factor for the physical screen."] pub pixel_ratio : f64 , # [doc = " Horizontal physical location of the left side of the window on the screen."] pub left : size_t , # [doc = " Vertical physical location of the top of the window on the screen."] pub top : size_t , # [doc = " Top inset of window."] pub physical_view_inset_top : f64 , # [doc = " Right inset of window."] pub physical_view_inset_right : f64 , # [doc = " Bottom inset of window."] pub physical_view_inset_bottom : f64 , # [doc = " Left inset of window."] pub physical_view_inset_left : f64 , } # [test] fn bindgen_test_layout_FlutterWindowMetricsEvent () { assert_eq ! (:: std :: mem :: size_of :: < FlutterWindowMetricsEvent > () , 80usize , concat ! ("Size of: " , stringify ! (FlutterWindowMetricsEvent))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterWindowMetricsEvent > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterWindowMetricsEvent))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_width () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . width) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (width))) ; } test_field_width () ; fn test_field_height () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . height) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (height))) ; } test_field_height () ; fn test_field_pixel_ratio () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . pixel_ratio) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (pixel_ratio))) ; } test_field_pixel_ratio () ; fn test_field_left () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . left) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (left))) ; } test_field_left () ; fn test_field_top () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . top) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (top))) ; } test_field_top () ; fn test_field_physical_view_inset_top () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . physical_view_inset_top) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (physical_view_inset_top))) ; } test_field_physical_view_inset_top () ; fn test_field_physical_view_inset_right () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . physical_view_inset_right) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (physical_view_inset_right))) ; } test_field_physical_view_inset_right () ; fn test_field_physical_view_inset_bottom () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . physical_view_inset_bottom) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (physical_view_inset_bottom))) ; } test_field_physical_view_inset_bottom () ; fn test_field_physical_view_inset_left () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . physical_view_inset_left) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (physical_view_inset_left))) ; } test_field_physical_view_inset_left () ; } pub const FlutterPointerPhase_kCancel : FlutterPointerPhase = 0 ; # [doc = " The pointer, which must have been down (see kDown), is now up."] # [doc = ""] # [doc = " For touch, this means that the pointer is no longer in contact with the"] # [doc = " screen. For a mouse, it means the last button was released. Note that if"] # [doc = " any other buttons are still pressed when one button is released, that"] # [doc = " should be sent as a kMove rather than a kUp."] pub const FlutterPointerPhase_kUp : FlutterPointerPhase = 1 ; # [doc = " The pointer, which must have been been up, is now down."] # [doc = ""] # [doc = " For touch, this means that the pointer has come into contact with the"] # [doc = " screen. For a mouse, it means a button is now pressed. Note that if any"] # [doc = " other buttons are already pressed when a new button is pressed, that"] # [doc = " should be sent as a kMove rather than a kDown."] pub const FlutterPointerPhase_kDown : FlutterPointerPhase = 2 ; # [doc = " The pointer moved while down."] # [doc = ""] # [doc = " This is also used for changes in button state that don't cause a kDown or"] # [doc = " kUp, such as releasing one of two pressed buttons."] pub const FlutterPointerPhase_kMove : FlutterPointerPhase = 3 ; # [doc = " The pointer is now sending input to Flutter. For instance, a mouse has"] # [doc = " entered the area where the Flutter content is displayed."] # [doc = ""] # [doc = " A pointer should always be added before sending any other events."] pub const FlutterPointerPhase_kAdd : FlutterPointerPhase = 4 ; # [doc = " The pointer is no longer sending input to Flutter. For instance, a mouse"] # [doc = " has left the area where the Flutter content is displayed."] # [doc = ""] # [doc = " A removed pointer should no longer send events until sending a new kAdd."] pub const FlutterPointerPhase_kRemove : FlutterPointerPhase = 5 ; # [doc = " The pointer moved while up."] pub const FlutterPointerPhase_kHover : FlutterPointerPhase = 6 ; # [doc = " A pan/zoom started on this pointer."] pub const FlutterPointerPhase_kPanZoomStart : FlutterPointerPhase = 7 ; # [doc = " The pan/zoom updated."] pub const FlutterPointerPhase_kPanZoomUpdate : FlutterPointerPhase = 8 ; # [doc = " The pan/zoom ended."] pub const FlutterPointerPhase_kPanZoomEnd : FlutterPointerPhase = 9 ; # [doc = " The phase of the pointer event."] pub type FlutterPointerPhase = :: std :: os :: raw :: c_uint ; pub const FlutterPointerDeviceKind_kFlutterPointerDeviceKindMouse : FlutterPointerDeviceKind = 1 ; pub const FlutterPointerDeviceKind_kFlutterPointerDeviceKindTouch : FlutterPointerDeviceKind = 2 ; pub const FlutterPointerDeviceKind_kFlutterPointerDeviceKindStylus : FlutterPointerDeviceKind = 3 ; pub const FlutterPointerDeviceKind_kFlutterPointerDeviceKindTrackpad : FlutterPointerDeviceKind = 4 ; # [doc = " The device type that created a pointer event."] pub type FlutterPointerDeviceKind = :: std :: os :: raw :: c_uint ; pub const FlutterPointerMouseButtons_kFlutterPointerButtonMousePrimary : FlutterPointerMouseButtons = 1 ; pub const FlutterPointerMouseButtons_kFlutterPointerButtonMouseSecondary : FlutterPointerMouseButtons = 2 ; pub const FlutterPointerMouseButtons_kFlutterPointerButtonMouseMiddle : FlutterPointerMouseButtons = 4 ; pub const FlutterPointerMouseButtons_kFlutterPointerButtonMouseBack : FlutterPointerMouseButtons = 8 ; pub const FlutterPointerMouseButtons_kFlutterPointerButtonMouseForward : FlutterPointerMouseButtons = 16 ; # [doc = " Flags for the `buttons` field of `FlutterPointerEvent` when `device_kind`"] # [doc = " is `kFlutterPointerDeviceKindMouse`."] pub type FlutterPointerMouseButtons = :: std :: os :: raw :: c_uint ; pub const FlutterPointerSignalKind_kFlutterPointerSignalKindNone : FlutterPointerSignalKind = 0 ; pub const FlutterPointerSignalKind_kFlutterPointerSignalKindScroll : FlutterPointerSignalKind = 1 ; # [doc = " The type of a pointer signal."] pub type FlutterPointerSignalKind = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterPointerEvent { # [doc = " The size of this struct. Must be sizeof(FlutterPointerEvent)."] pub struct_size : size_t , pub phase : FlutterPointerPhase , # [doc = " The timestamp at which the pointer event was generated. The timestamp"] # [doc = " should be specified in microseconds and the clock should be the same as"] # [doc = " that used by `FlutterEngineGetCurrentTime`."] pub timestamp : size_t , # [doc = " The x coordinate of the pointer event in physical pixels."] pub x : f64 , # [doc = " The y coordinate of the pointer event in physical pixels."] pub y : f64 , # [doc = " An optional device identifier. If this is not specified, it is assumed"] # [doc = " that the embedder has no multi-touch capability."] pub device : i32 , pub signal_kind : FlutterPointerSignalKind , # [doc = " The x offset of the scroll in physical pixels."] pub scroll_delta_x : f64 , # [doc = " The y offset of the scroll in physical pixels."] pub scroll_delta_y : f64 , # [doc = " The type of the device generating this event."] # [doc = " Backwards compatibility note: If this is not set, the device will be"] # [doc = " treated as a mouse, with the primary button set for `kDown` and `kMove`."] # [doc = " If set explicitly to `kFlutterPointerDeviceKindMouse`, you must set the"] # [doc = " correct buttons."] pub device_kind : FlutterPointerDeviceKind , # [doc = " The buttons currently pressed, if any."] pub buttons : i64 , # [doc = " The x offset of the pan/zoom in physical pixels."] pub pan_x : f64 , # [doc = " The y offset of the pan/zoom in physical pixels."] pub pan_y : f64 , # [doc = " The scale of the pan/zoom, where 1.0 is the initial scale."] pub scale : f64 , # [doc = " The rotation of the pan/zoom in radians, where 0.0 is the initial angle."] pub rotation : f64 , } # [test] fn bindgen_test_layout_FlutterPointerEvent () { assert_eq ! (:: std :: mem :: size_of :: < FlutterPointerEvent > () , 112usize , concat ! ("Size of: " , stringify ! (FlutterPointerEvent))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterPointerEvent > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterPointerEvent))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_phase () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . phase) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (phase))) ; } test_field_phase () ; fn test_field_timestamp () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . timestamp) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (timestamp))) ; } test_field_timestamp () ; fn test_field_x () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . x) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (x))) ; } test_field_x () ; fn test_field_y () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . y) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (y))) ; } test_field_y () ; fn test_field_device () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . device) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (device))) ; } test_field_device () ; fn test_field_signal_kind () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . signal_kind) as usize - ptr as usize } , 44usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (signal_kind))) ; } test_field_signal_kind () ; fn test_field_scroll_delta_x () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scroll_delta_x) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (scroll_delta_x))) ; } test_field_scroll_delta_x () ; fn test_field_scroll_delta_y () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scroll_delta_y) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (scroll_delta_y))) ; } test_field_scroll_delta_y () ; fn test_field_device_kind () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . device_kind) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (device_kind))) ; } test_field_device_kind () ; fn test_field_buttons () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . buttons) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (buttons))) ; } test_field_buttons () ; fn test_field_pan_x () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . pan_x) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (pan_x))) ; } test_field_pan_x () ; fn test_field_pan_y () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . pan_y) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (pan_y))) ; } test_field_pan_y () ; fn test_field_scale () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scale) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (scale))) ; } test_field_scale () ; fn test_field_rotation () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . rotation) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (rotation))) ; } test_field_rotation () ; } pub const FlutterKeyEventType_kFlutterKeyEventTypeUp : FlutterKeyEventType = 1 ; pub const FlutterKeyEventType_kFlutterKeyEventTypeDown : FlutterKeyEventType = 2 ; pub const FlutterKeyEventType_kFlutterKeyEventTypeRepeat : FlutterKeyEventType = 3 ; pub type FlutterKeyEventType = :: std :: os :: raw :: c_uint ; # [doc = " A structure to represent a key event."] # [doc = ""] # [doc = " Sending `FlutterKeyEvent` via `FlutterEngineSendKeyEvent` results in a"] # [doc = " corresponding `FlutterKeyEvent` to be dispatched in the framework. It is"] # [doc = " embedder's responsibility to ensure the regularity of sent events, since the"] # [doc = " framework only performs simple one-to-one mapping. The events must conform"] # [doc = " the following rules:"] # [doc = ""] # [doc = "  * Each key press sequence shall consist of one key down event (`kind` being"] # [doc = "    `kFlutterKeyEventTypeDown`), zero or more repeat events, and one key up"] # [doc = "    event, representing a physical key button being pressed, held, and"] # [doc = "    released."] # [doc = "  * All events throughout a key press sequence shall have the same `physical`"] # [doc = "    and `logical`. Having different `character`s is allowed."] # [doc = ""] # [doc = " A `FlutterKeyEvent` with `physical` 0 and `logical` 0 is an empty event."] # [doc = " This is the only case either `physical` or `logical` can be 0. An empty"] # [doc = " event must be sent if a key message should be converted to no"] # [doc = " `FlutterKeyEvent`s, for example, when a key down message is received for a"] # [doc = " key that has already been pressed according to the record. This is to ensure"] # [doc = " some `FlutterKeyEvent` arrives at the framework before raw key message."] # [doc = " See https://github.com/flutter/flutter/issues/87230."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterKeyEvent { # [doc = " The size of this struct. Must be sizeof(FlutterKeyEvent)."] pub struct_size : size_t , # [doc = " The timestamp at which the key event was generated. The timestamp should"] # [doc = " be specified in microseconds and the clock should be the same as that used"] # [doc = " by `FlutterEngineGetCurrentTime`."] pub timestamp : f64 , # [doc = " The event kind."] pub type_ : FlutterKeyEventType , # [doc = " The USB HID code for the physical key of the event."] # [doc = ""] # [doc = " For the full definition and list of pre-defined physical keys, see"] # [doc = " `PhysicalKeyboardKey` from the framework."] # [doc = ""] # [doc = " The only case that `physical` might be 0 is when this is an empty event."] # [doc = " See `FlutterKeyEvent` for introduction."] pub physical : u64 , # [doc = " The key ID for the logical key of this event."] # [doc = ""] # [doc = " For the full definition and a list of pre-defined logical keys, see"] # [doc = " `LogicalKeyboardKey` from the framework."] # [doc = ""] # [doc = " The only case that `logical` might be 0 is when this is an empty event."] # [doc = " See `FlutterKeyEvent` for introduction."] pub logical : u64 , # [doc = " Null-terminated character input from the event. Can be null. Ignored for"] # [doc = " up events."] pub character : * const :: std :: os :: raw :: c_char , # [doc = " True if this event does not correspond to a native event."] # [doc = ""] # [doc = " The embedder is likely to skip events and/or construct new events that do"] # [doc = " not correspond to any native events in order to conform the regularity"] # [doc = " of events (as documented in `FlutterKeyEvent`). An example is when a key"] # [doc = " up is missed due to loss of window focus, on a platform that provides"] # [doc = " query to key pressing status, the embedder might realize that the key has"] # [doc = " been released at the next key event, and should construct a synthesized up"] # [doc = " event immediately before the actual event."] # [doc = ""] # [doc = " An event being synthesized means that the `timestamp` might greatly"] # [doc = " deviate from the actual time when the event occurs physically."] pub synthesized : bool , } # [test] fn bindgen_test_layout_FlutterKeyEvent () { assert_eq ! (:: std :: mem :: size_of :: < FlutterKeyEvent > () , 56usize , concat ! ("Size of: " , stringify ! (FlutterKeyEvent))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterKeyEvent > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterKeyEvent))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterKeyEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterKeyEvent) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_timestamp () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterKeyEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . timestamp) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterKeyEvent) , "::" , stringify ! (timestamp))) ; } test_field_timestamp () ; fn test_field_type () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterKeyEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . type_) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterKeyEvent) , "::" , stringify ! (type_))) ; } test_field_type () ; fn test_field_physical () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterKeyEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . physical) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterKeyEvent) , "::" , stringify ! (physical))) ; } test_field_physical () ; fn test_field_logical () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterKeyEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . logical) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterKeyEvent) , "::" , stringify ! (logical))) ; } test_field_logical () ; fn test_field_character () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterKeyEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . character) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterKeyEvent) , "::" , stringify ! (character))) ; } test_field_character () ; fn test_field_synthesized () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterKeyEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . synthesized) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterKeyEvent) , "::" , stringify ! (synthesized))) ; } test_field_synthesized () ; } pub type FlutterKeyEventCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : bool , arg2 : * mut :: std :: os :: raw :: c_void) > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _FlutterPlatformMessageResponseHandle { _unused : [u8 ; 0] , } pub type FlutterPlatformMessageResponseHandle = _FlutterPlatformMessageResponseHandle ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterPlatformMessage { # [doc = " The size of this struct. Must be sizeof(FlutterPlatformMessage)."] pub struct_size : size_t , pub channel : * const :: std :: os :: raw :: c_char , pub message : * const u8 , pub message_size : size_t , # [doc = " The response handle on which to invoke"] # [doc = " `FlutterEngineSendPlatformMessageResponse` when the response is ready."] # [doc = " `FlutterEngineSendPlatformMessageResponse` must be called for all messages"] # [doc = " received by the embedder. Failure to call"] # [doc = " `FlutterEngineSendPlatformMessageResponse` will cause a memory leak. It is"] # [doc = " not safe to send multiple responses on a single response object."] pub response_handle : * const FlutterPlatformMessageResponseHandle , } # [test] fn bindgen_test_layout_FlutterPlatformMessage () { assert_eq ! (:: std :: mem :: size_of :: < FlutterPlatformMessage > () , 40usize , concat ! ("Size of: " , stringify ! (FlutterPlatformMessage))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterPlatformMessage > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterPlatformMessage))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformMessage > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformMessage) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_channel () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformMessage > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . channel) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformMessage) , "::" , stringify ! (channel))) ; } test_field_channel () ; fn test_field_message () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformMessage > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . message) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformMessage) , "::" , stringify ! (message))) ; } test_field_message () ; fn test_field_message_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformMessage > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . message_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformMessage) , "::" , stringify ! (message_size))) ; } test_field_message_size () ; fn test_field_response_handle () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformMessage > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . response_handle) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformMessage) , "::" , stringify ! (response_handle))) ; } test_field_response_handle () ; } pub type FlutterPlatformMessageCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const FlutterPlatformMessage , arg2 : * mut :: std :: os :: raw :: c_void) > ; pub type FlutterDataCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const u8 , arg2 : size_t , arg3 : * mut :: std :: os :: raw :: c_void) > ; # [doc = " The identifier of the platform view. This identifier is specified by the"] # [doc = " application when a platform view is added to the scene via the"] # [doc = " `SceneBuilder.addPlatformView` call."] pub type FlutterPlatformViewIdentifier = i64 ; extern "C" { # [doc = " `FlutterSemanticsNode` ID used as a sentinel to signal the end of a batch of"] # [doc = " semantics node updates."] pub static kFlutterSemanticsNodeIdBatchEnd : i32 ; } # [doc = " A node that represents some semantic data."] # [doc = ""] # [doc = " The semantics tree is maintained during the semantics phase of the pipeline"] # [doc = " (i.e., during PipelineOwner.flushSemantics), which happens after"] # [doc = " compositing. Updates are then pushed to embedders via the registered"] # [doc = " `FlutterUpdateSemanticsNodeCallback`."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterSemanticsNode { # [doc = " The size of this struct. Must be sizeof(FlutterSemanticsNode)."] pub struct_size : size_t , # [doc = " The unique identifier for this node."] pub id : i32 , # [doc = " The set of semantics flags associated with this node."] pub flags : FlutterSemanticsFlag , # [doc = " The set of semantics actions applicable to this node."] pub actions : FlutterSemanticsAction , # [doc = " The position at which the text selection originates."] pub text_selection_base : i32 , # [doc = " The position at which the text selection terminates."] pub text_selection_extent : i32 , # [doc = " The total number of scrollable children that contribute to semantics."] pub scroll_child_count : i32 , # [doc = " The index of the first visible semantic child of a scroll node."] pub scroll_index : i32 , # [doc = " The current scrolling position in logical pixels if the node is"] # [doc = " scrollable."] pub scroll_position : f64 , # [doc = " The maximum in-range value for `scrollPosition` if the node is scrollable."] pub scroll_extent_max : f64 , # [doc = " The minimum in-range value for `scrollPosition` if the node is scrollable."] pub scroll_extent_min : f64 , # [doc = " The elevation along the z-axis at which the rect of this semantics node is"] # [doc = " located above its parent."] pub elevation : f64 , # [doc = " Describes how much space the semantics node takes up along the z-axis."] pub thickness : f64 , # [doc = " A textual description of the node."] pub label : * const :: std :: os :: raw :: c_char , # [doc = " A brief description of the result of performing an action on the node."] pub hint : * const :: std :: os :: raw :: c_char , # [doc = " A textual description of the current value of the node."] pub value : * const :: std :: os :: raw :: c_char , # [doc = " A value that `value` will have after a kFlutterSemanticsActionIncrease`"] # [doc = " action has been performed."] pub increased_value : * const :: std :: os :: raw :: c_char , # [doc = " A value that `value` will have after a kFlutterSemanticsActionDecrease`"] # [doc = " action has been performed."] pub decreased_value : * const :: std :: os :: raw :: c_char , # [doc = " The reading direction for `label`, `value`, `hint`, `increasedValue`, and"] # [doc = " `decreasedValue`."] pub text_direction : FlutterTextDirection , # [doc = " The bounding box for this node in its coordinate system."] pub rect : FlutterRect , # [doc = " The transform from this node's coordinate system to its parent's"] # [doc = " coordinate system."] pub transform : FlutterTransformation , # [doc = " The number of children this node has."] pub child_count : size_t , # [doc = " Array of child node IDs in traversal order. Has length `child_count`."] pub children_in_traversal_order : * const i32 , # [doc = " Array of child node IDs in hit test order. Has length `child_count`."] pub children_in_hit_test_order : * const i32 , # [doc = " The number of custom accessibility action associated with this node."] pub custom_accessibility_actions_count : size_t , # [doc = " Array of `FlutterSemanticsCustomAction` IDs associated with this node."] # [doc = " Has length `custom_accessibility_actions_count`."] pub custom_accessibility_actions : * const i32 , # [doc = " Identifier of the platform view associated with this semantics node, or"] # [doc = " -1 if none."] pub platform_view_id : FlutterPlatformViewIdentifier , } # [test] fn bindgen_test_layout_FlutterSemanticsNode () { assert_eq ! (:: std :: mem :: size_of :: < FlutterSemanticsNode > () , 280usize , concat ! ("Size of: " , stringify ! (FlutterSemanticsNode))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterSemanticsNode > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterSemanticsNode))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_id () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . id) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (id))) ; } test_field_id () ; fn test_field_flags () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . flags) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (flags))) ; } test_field_flags () ; fn test_field_actions () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . actions) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (actions))) ; } test_field_actions () ; fn test_field_text_selection_base () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . text_selection_base) as usize - ptr as usize } , 20usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (text_selection_base))) ; } test_field_text_selection_base () ; fn test_field_text_selection_extent () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . text_selection_extent) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (text_selection_extent))) ; } test_field_text_selection_extent () ; fn test_field_scroll_child_count () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scroll_child_count) as usize - ptr as usize } , 28usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (scroll_child_count))) ; } test_field_scroll_child_count () ; fn test_field_scroll_index () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scroll_index) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (scroll_index))) ; } test_field_scroll_index () ; fn test_field_scroll_position () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scroll_position) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (scroll_position))) ; } test_field_scroll_position () ; fn test_field_scroll_extent_max () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scroll_extent_max) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (scroll_extent_max))) ; } test_field_scroll_extent_max () ; fn test_field_scroll_extent_min () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scroll_extent_min) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (scroll_extent_min))) ; } test_field_scroll_extent_min () ; fn test_field_elevation () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . elevation) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (elevation))) ; } test_field_elevation () ; fn test_field_thickness () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . thickness) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (thickness))) ; } test_field_thickness () ; fn test_field_label () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . label) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (label))) ; } test_field_label () ; fn test_field_hint () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . hint) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (hint))) ; } test_field_hint () ; fn test_field_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . value) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (value))) ; } test_field_value () ; fn test_field_increased_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . increased_value) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (increased_value))) ; } test_field_increased_value () ; fn test_field_decreased_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . decreased_value) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (decreased_value))) ; } test_field_decreased_value () ; fn test_field_text_direction () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . text_direction) as usize - ptr as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (text_direction))) ; } test_field_text_direction () ; fn test_field_rect () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . rect) as usize - ptr as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (rect))) ; } test_field_rect () ; fn test_field_transform () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . transform) as usize - ptr as usize } , 160usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (transform))) ; } test_field_transform () ; fn test_field_child_count () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . child_count) as usize - ptr as usize } , 232usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (child_count))) ; } test_field_child_count () ; fn test_field_children_in_traversal_order () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . children_in_traversal_order) as usize - ptr as usize } , 240usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (children_in_traversal_order))) ; } test_field_children_in_traversal_order () ; fn test_field_children_in_hit_test_order () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . children_in_hit_test_order) as usize - ptr as usize } , 248usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (children_in_hit_test_order))) ; } test_field_children_in_hit_test_order () ; fn test_field_custom_accessibility_actions_count () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . custom_accessibility_actions_count) as usize - ptr as usize } , 256usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (custom_accessibility_actions_count))) ; } test_field_custom_accessibility_actions_count () ; fn test_field_custom_accessibility_actions () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . custom_accessibility_actions) as usize - ptr as usize } , 264usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (custom_accessibility_actions))) ; } test_field_custom_accessibility_actions () ; fn test_field_platform_view_id () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . platform_view_id) as usize - ptr as usize } , 272usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (platform_view_id))) ; } test_field_platform_view_id () ; } extern "C" { # [doc = " `FlutterSemanticsCustomAction` ID used as a sentinel to signal the end of a"] # [doc = " batch of semantics custom action updates."] pub static kFlutterSemanticsCustomActionIdBatchEnd : i32 ; } # [doc = " A custom semantics action, or action override."] # [doc = ""] # [doc = " Custom actions can be registered by applications in order to provide"] # [doc = " semantic actions other than the standard actions available through the"] # [doc = " `FlutterSemanticsAction` enum."] # [doc = ""] # [doc = " Action overrides are custom actions that the application developer requests"] # [doc = " to be used in place of the standard actions in the `FlutterSemanticsAction`"] # [doc = " enum."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterSemanticsCustomAction { # [doc = " The size of the struct. Must be sizeof(FlutterSemanticsCustomAction)."] pub struct_size : size_t , # [doc = " The unique custom action or action override ID."] pub id : i32 , # [doc = " For overridden standard actions, corresponds to the"] # [doc = " `FlutterSemanticsAction` to override."] pub override_action : FlutterSemanticsAction , # [doc = " The user-readable name of this custom semantics action."] pub label : * const :: std :: os :: raw :: c_char , # [doc = " The hint description of this custom semantics action."] pub hint : * const :: std :: os :: raw :: c_char , } # [test] fn bindgen_test_layout_FlutterSemanticsCustomAction () { assert_eq ! (:: std :: mem :: size_of :: < FlutterSemanticsCustomAction > () , 32usize , concat ! ("Size of: " , stringify ! (FlutterSemanticsCustomAction))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterSemanticsCustomAction > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterSemanticsCustomAction))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsCustomAction > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsCustomAction) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_id () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsCustomAction > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . id) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsCustomAction) , "::" , stringify ! (id))) ; } test_field_id () ; fn test_field_override_action () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsCustomAction > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . override_action) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsCustomAction) , "::" , stringify ! (override_action))) ; } test_field_override_action () ; fn test_field_label () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsCustomAction > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . label) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsCustomAction) , "::" , stringify ! (label))) ; } test_field_label () ; fn test_field_hint () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsCustomAction > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . hint) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsCustomAction) , "::" , stringify ! (hint))) ; } test_field_hint () ; } pub type FlutterUpdateSemanticsNodeCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const FlutterSemanticsNode , arg2 : * mut :: std :: os :: raw :: c_void) > ; pub type FlutterUpdateSemanticsCustomActionCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const FlutterSemanticsCustomAction , arg2 : * mut :: std :: os :: raw :: c_void) > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _FlutterTaskRunner { _unused : [u8 ; 0] , } pub type FlutterTaskRunner = * mut _FlutterTaskRunner ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterTask { pub runner : FlutterTaskRunner , pub task : u64 , } # [test] fn bindgen_test_layout_FlutterTask () { assert_eq ! (:: std :: mem :: size_of :: < FlutterTask > () , 16usize , concat ! ("Size of: " , stringify ! (FlutterTask))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterTask > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterTask))) ; fn test_field_runner () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTask > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . runner) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterTask) , "::" , stringify ! (runner))) ; } test_field_runner () ; fn test_field_task () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTask > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . task) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterTask) , "::" , stringify ! (task))) ; } test_field_task () ; } pub type FlutterTaskRunnerPostTaskCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : FlutterTask , arg2 : u64 , arg3 : * mut :: std :: os :: raw :: c_void) > ; # [doc = " An interface used by the Flutter engine to execute tasks at the target time"] # [doc = " on a specified thread. There should be a 1-1 relationship between a thread"] # [doc = " and a task runner. It is undefined behavior to run a task on a thread that"] # [doc = " is not associated with its task runner."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterTaskRunnerDescription { # [doc = " The size of this struct. Must be sizeof(FlutterTaskRunnerDescription)."] pub struct_size : size_t , pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " May be called from any thread. Should return true if tasks posted on the"] # [doc = " calling thread will be run on that same thread."] # [doc = ""] # [doc = " @attention     This field is required."] pub runs_task_on_current_thread_callback : BoolCallback , # [doc = " May be called from any thread. The given task should be executed by the"] # [doc = " embedder on the thread associated with that task runner by calling"] # [doc = " `FlutterEngineRunTask` at the given target time. The system monotonic"] # [doc = " clock should be used for the target time. The target time is the absolute"] # [doc = " time from epoch (NOT a delta) at which the task must be returned back to"] # [doc = " the engine on the correct thread. If the embedder needs to calculate a"] # [doc = " delta, `FlutterEngineGetCurrentTime` may be called and the difference used"] # [doc = " as the delta."] # [doc = ""] # [doc = " @attention     This field is required."] pub post_task_callback : FlutterTaskRunnerPostTaskCallback , # [doc = " A unique identifier for the task runner. If multiple task runners service"] # [doc = " tasks on the same thread, their identifiers must match."] pub identifier : size_t , } # [test] fn bindgen_test_layout_FlutterTaskRunnerDescription () { assert_eq ! (:: std :: mem :: size_of :: < FlutterTaskRunnerDescription > () , 40usize , concat ! ("Size of: " , stringify ! (FlutterTaskRunnerDescription))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterTaskRunnerDescription > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterTaskRunnerDescription))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTaskRunnerDescription > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterTaskRunnerDescription) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTaskRunnerDescription > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterTaskRunnerDescription) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_runs_task_on_current_thread_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTaskRunnerDescription > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . runs_task_on_current_thread_callback) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterTaskRunnerDescription) , "::" , stringify ! (runs_task_on_current_thread_callback))) ; } test_field_runs_task_on_current_thread_callback () ; fn test_field_post_task_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTaskRunnerDescription > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . post_task_callback) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterTaskRunnerDescription) , "::" , stringify ! (post_task_callback))) ; } test_field_post_task_callback () ; fn test_field_identifier () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTaskRunnerDescription > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . identifier) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterTaskRunnerDescription) , "::" , stringify ! (identifier))) ; } test_field_identifier () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterCustomTaskRunners { # [doc = " The size of this struct. Must be sizeof(FlutterCustomTaskRunners)."] pub struct_size : size_t , # [doc = " Specify the task runner for the thread on which the `FlutterEngineRun`"] # [doc = " call is made. The same task runner description can be specified for both"] # [doc = " the render and platform task runners. This makes the Flutter engine use"] # [doc = " the same thread for both task runners."] pub platform_task_runner : * const FlutterTaskRunnerDescription , # [doc = " Specify the task runner for the thread on which the render tasks will be"] # [doc = " run. The same task runner description can be specified for both the render"] # [doc = " and platform task runners. This makes the Flutter engine use the same"] # [doc = " thread for both task runners."] pub render_task_runner : * const FlutterTaskRunnerDescription , # [doc = " Specify a callback that is used to set the thread priority for embedder"] # [doc = " task runners."] pub thread_priority_setter : :: std :: option :: Option < unsafe extern "C" fn (arg1 : FlutterThreadPriority) > , } # [test] fn bindgen_test_layout_FlutterCustomTaskRunners () { assert_eq ! (:: std :: mem :: size_of :: < FlutterCustomTaskRunners > () , 32usize , concat ! ("Size of: " , stringify ! (FlutterCustomTaskRunners))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterCustomTaskRunners > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterCustomTaskRunners))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCustomTaskRunners > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterCustomTaskRunners) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_platform_task_runner () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCustomTaskRunners > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . platform_task_runner) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterCustomTaskRunners) , "::" , stringify ! (platform_task_runner))) ; } test_field_platform_task_runner () ; fn test_field_render_task_runner () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCustomTaskRunners > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . render_task_runner) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterCustomTaskRunners) , "::" , stringify ! (render_task_runner))) ; } test_field_render_task_runner () ; fn test_field_thread_priority_setter () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCustomTaskRunners > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . thread_priority_setter) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterCustomTaskRunners) , "::" , stringify ! (thread_priority_setter))) ; } test_field_thread_priority_setter () ; } # [repr (C)] # [derive (Copy , Clone)] pub struct FlutterOpenGLBackingStore { # [doc = " The type of the OpenGL backing store. Currently, it can either be a"] # [doc = " texture or a framebuffer."] pub type_ : FlutterOpenGLTargetType , pub __bindgen_anon_1 : FlutterOpenGLBackingStore__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union FlutterOpenGLBackingStore__bindgen_ty_1 { # [doc = " A texture for Flutter to render into."] pub texture : FlutterOpenGLTexture , # [doc = " A framebuffer for Flutter to render into. The embedder must ensure that"] # [doc = " the framebuffer is complete."] pub framebuffer : FlutterOpenGLFramebuffer , } # [test] fn bindgen_test_layout_FlutterOpenGLBackingStore__bindgen_ty_1 () { assert_eq ! (:: std :: mem :: size_of :: < FlutterOpenGLBackingStore__bindgen_ty_1 > () , 48usize , concat ! ("Size of: " , stringify ! (FlutterOpenGLBackingStore__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterOpenGLBackingStore__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterOpenGLBackingStore__bindgen_ty_1))) ; fn test_field_texture () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLBackingStore__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . texture) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLBackingStore__bindgen_ty_1) , "::" , stringify ! (texture))) ; } test_field_texture () ; fn test_field_framebuffer () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLBackingStore__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . framebuffer) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLBackingStore__bindgen_ty_1) , "::" , stringify ! (framebuffer))) ; } test_field_framebuffer () ; } # [test] fn bindgen_test_layout_FlutterOpenGLBackingStore () { assert_eq ! (:: std :: mem :: size_of :: < FlutterOpenGLBackingStore > () , 56usize , concat ! ("Size of: " , stringify ! (FlutterOpenGLBackingStore))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterOpenGLBackingStore > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterOpenGLBackingStore))) ; fn test_field_type () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . type_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLBackingStore) , "::" , stringify ! (type_))) ; } test_field_type () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterSoftwareBackingStore { # [doc = " A pointer to the raw bytes of the allocation described by this software"] # [doc = " backing store."] pub allocation : * const :: std :: os :: raw :: c_void , # [doc = " The number of bytes in a single row of the allocation."] pub row_bytes : size_t , # [doc = " The number of rows in the allocation."] pub height : size_t , # [doc = " A baton that is not interpreted by the engine in any way. It will be given"] # [doc = " back to the embedder in the destruction callback below. Embedder resources"] # [doc = " may be associated with this baton."] pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " The callback invoked by the engine when it no longer needs this backing"] # [doc = " store."] pub destruction_callback : VoidCallback , } # [test] fn bindgen_test_layout_FlutterSoftwareBackingStore () { assert_eq ! (:: std :: mem :: size_of :: < FlutterSoftwareBackingStore > () , 40usize , concat ! ("Size of: " , stringify ! (FlutterSoftwareBackingStore))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterSoftwareBackingStore > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterSoftwareBackingStore))) ; fn test_field_allocation () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSoftwareBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . allocation) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterSoftwareBackingStore) , "::" , stringify ! (allocation))) ; } test_field_allocation () ; fn test_field_row_bytes () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSoftwareBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . row_bytes) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterSoftwareBackingStore) , "::" , stringify ! (row_bytes))) ; } test_field_row_bytes () ; fn test_field_height () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSoftwareBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . height) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterSoftwareBackingStore) , "::" , stringify ! (height))) ; } test_field_height () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSoftwareBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterSoftwareBackingStore) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_destruction_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSoftwareBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . destruction_callback) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterSoftwareBackingStore) , "::" , stringify ! (destruction_callback))) ; } test_field_destruction_callback () ; } # [repr (C)] # [derive (Copy , Clone)] pub struct FlutterMetalBackingStore { # [doc = " The size of this struct. Must be sizeof(FlutterMetalBackingStore)."] pub struct_size : size_t , pub __bindgen_anon_1 : FlutterMetalBackingStore__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union FlutterMetalBackingStore__bindgen_ty_1 { pub texture : FlutterMetalTexture , } # [test] fn bindgen_test_layout_FlutterMetalBackingStore__bindgen_ty_1 () { assert_eq ! (:: std :: mem :: size_of :: < FlutterMetalBackingStore__bindgen_ty_1 > () , 40usize , concat ! ("Size of: " , stringify ! (FlutterMetalBackingStore__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterMetalBackingStore__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterMetalBackingStore__bindgen_ty_1))) ; fn test_field_texture () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalBackingStore__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . texture) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalBackingStore__bindgen_ty_1) , "::" , stringify ! (texture))) ; } test_field_texture () ; } # [test] fn bindgen_test_layout_FlutterMetalBackingStore () { assert_eq ! (:: std :: mem :: size_of :: < FlutterMetalBackingStore > () , 48usize , concat ! ("Size of: " , stringify ! (FlutterMetalBackingStore))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterMetalBackingStore > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterMetalBackingStore))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalBackingStore) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterVulkanBackingStore { # [doc = " The size of this struct. Must be sizeof(FlutterVulkanBackingStore)."] pub struct_size : size_t , # [doc = " The image that the layer will be rendered to. This image must already be"] # [doc = " available for the engine to bind for writing when it's given to the engine"] # [doc = " via the backing store creation callback. The engine will perform a host"] # [doc = " sync for all layers prior to calling the compositor present callback, and"] # [doc = " so the written layer images can be freely bound by the embedder without"] # [doc = " any additional synchronization."] pub image : * const FlutterVulkanImage , # [doc = " A baton that is not interpreted by the engine in any way. It will be given"] # [doc = " back to the embedder in the destruction callback below. Embedder resources"] # [doc = " may be associated with this baton."] pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " The callback invoked by the engine when it no longer needs this backing"] # [doc = " store."] pub destruction_callback : VoidCallback , } # [test] fn bindgen_test_layout_FlutterVulkanBackingStore () { assert_eq ! (:: std :: mem :: size_of :: < FlutterVulkanBackingStore > () , 32usize , concat ! ("Size of: " , stringify ! (FlutterVulkanBackingStore))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterVulkanBackingStore > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterVulkanBackingStore))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanBackingStore) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_image () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . image) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanBackingStore) , "::" , stringify ! (image))) ; } test_field_image () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanBackingStore) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_destruction_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . destruction_callback) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanBackingStore) , "::" , stringify ! (destruction_callback))) ; } test_field_destruction_callback () ; } # [doc = " Indicates that the Flutter application requested that an opacity be"] # [doc = " applied to the platform view."] pub const FlutterPlatformViewMutationType_kFlutterPlatformViewMutationTypeOpacity : FlutterPlatformViewMutationType = 0 ; # [doc = " Indicates that the Flutter application requested that the platform view be"] # [doc = " clipped using a rectangle."] pub const FlutterPlatformViewMutationType_kFlutterPlatformViewMutationTypeClipRect : FlutterPlatformViewMutationType = 1 ; # [doc = " Indicates that the Flutter application requested that the platform view be"] # [doc = " clipped using a rounded rectangle."] pub const FlutterPlatformViewMutationType_kFlutterPlatformViewMutationTypeClipRoundedRect : FlutterPlatformViewMutationType = 2 ; # [doc = " Indicates that the Flutter application requested that the platform view be"] # [doc = " transformed before composition."] pub const FlutterPlatformViewMutationType_kFlutterPlatformViewMutationTypeTransformation : FlutterPlatformViewMutationType = 3 ; pub type FlutterPlatformViewMutationType = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct FlutterPlatformViewMutation { # [doc = " The type of the mutation described by the subsequent union."] pub type_ : FlutterPlatformViewMutationType , pub __bindgen_anon_1 : FlutterPlatformViewMutation__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union FlutterPlatformViewMutation__bindgen_ty_1 { pub opacity : f64 , pub clip_rect : FlutterRect , pub clip_rounded_rect : FlutterRoundedRect , pub transformation : FlutterTransformation , } # [test] fn bindgen_test_layout_FlutterPlatformViewMutation__bindgen_ty_1 () { assert_eq ! (:: std :: mem :: size_of :: < FlutterPlatformViewMutation__bindgen_ty_1 > () , 96usize , concat ! ("Size of: " , stringify ! (FlutterPlatformViewMutation__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterPlatformViewMutation__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterPlatformViewMutation__bindgen_ty_1))) ; fn test_field_opacity () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformViewMutation__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . opacity) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformViewMutation__bindgen_ty_1) , "::" , stringify ! (opacity))) ; } test_field_opacity () ; fn test_field_clip_rect () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformViewMutation__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . clip_rect) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformViewMutation__bindgen_ty_1) , "::" , stringify ! (clip_rect))) ; } test_field_clip_rect () ; fn test_field_clip_rounded_rect () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformViewMutation__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . clip_rounded_rect) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformViewMutation__bindgen_ty_1) , "::" , stringify ! (clip_rounded_rect))) ; } test_field_clip_rounded_rect () ; fn test_field_transformation () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformViewMutation__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . transformation) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformViewMutation__bindgen_ty_1) , "::" , stringify ! (transformation))) ; } test_field_transformation () ; } # [test] fn bindgen_test_layout_FlutterPlatformViewMutation () { assert_eq ! (:: std :: mem :: size_of :: < FlutterPlatformViewMutation > () , 104usize , concat ! ("Size of: " , stringify ! (FlutterPlatformViewMutation))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterPlatformViewMutation > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterPlatformViewMutation))) ; fn test_field_type () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformViewMutation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . type_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformViewMutation) , "::" , stringify ! (type_))) ; } test_field_type () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterPlatformView { # [doc = " The size of this struct. Must be sizeof(FlutterPlatformView)."] pub struct_size : size_t , # [doc = " The identifier of this platform view. This identifier is specified by the"] # [doc = " application when a platform view is added to the scene via the"] # [doc = " `SceneBuilder.addPlatformView` call."] pub identifier : FlutterPlatformViewIdentifier , # [doc = " The number of mutations to be applied to the platform view by the embedder"] # [doc = " before on-screen composition."] pub mutations_count : size_t , # [doc = " The mutations to be applied by this platform view before it is composited"] # [doc = " on-screen. The Flutter application may transform the platform view but"] # [doc = " these transformations cannot be affected by the Flutter compositor because"] # [doc = " it does not render platform views. Since the embedder is responsible for"] # [doc = " composition of these views, it is also the embedder's responsibility to"] # [doc = " affect the appropriate transformation."] # [doc = ""] # [doc = " The mutations must be applied in order. The mutations done in the"] # [doc = " collection don't take into account the device pixel ratio or the root"] # [doc = " surface transformation. If these exist, the first mutation in the list"] # [doc = " will be a transformation mutation to make sure subsequent mutations are in"] # [doc = " the correct coordinate space."] pub mutations : * mut * const FlutterPlatformViewMutation , } # [test] fn bindgen_test_layout_FlutterPlatformView () { assert_eq ! (:: std :: mem :: size_of :: < FlutterPlatformView > () , 32usize , concat ! ("Size of: " , stringify ! (FlutterPlatformView))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterPlatformView > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterPlatformView))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformView > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformView) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_identifier () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformView > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . identifier) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformView) , "::" , stringify ! (identifier))) ; } test_field_identifier () ; fn test_field_mutations_count () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformView > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . mutations_count) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformView) , "::" , stringify ! (mutations_count))) ; } test_field_mutations_count () ; fn test_field_mutations () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformView > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . mutations) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformView) , "::" , stringify ! (mutations))) ; } test_field_mutations () ; } # [doc = " Specifies an OpenGL backing store. Can either be an OpenGL texture or"] # [doc = " framebuffer."] pub const FlutterBackingStoreType_kFlutterBackingStoreTypeOpenGL : FlutterBackingStoreType = 0 ; # [doc = " Specified an software allocation for Flutter to render into using the CPU."] pub const FlutterBackingStoreType_kFlutterBackingStoreTypeSoftware : FlutterBackingStoreType = 1 ; # [doc = " Specifies a Metal backing store. This is backed by a Metal texture."] pub const FlutterBackingStoreType_kFlutterBackingStoreTypeMetal : FlutterBackingStoreType = 2 ; # [doc = " Specifies a Vulkan backing store. This is backed by a Vulkan VkImage."] pub const FlutterBackingStoreType_kFlutterBackingStoreTypeVulkan : FlutterBackingStoreType = 3 ; pub type FlutterBackingStoreType = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct FlutterBackingStore { # [doc = " The size of this struct. Must be sizeof(FlutterBackingStore)."] pub struct_size : size_t , # [doc = " A baton that is not interpreted by the engine in any way. The embedder may"] # [doc = " use this to associate resources that are tied to the lifecycle of the"] # [doc = " `FlutterBackingStore`."] pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " Specifies the type of backing store."] pub type_ : FlutterBackingStoreType , # [doc = " Indicates if this backing store was updated since the last time it was"] # [doc = " associated with a presented layer."] pub did_update : bool , pub __bindgen_anon_1 : FlutterBackingStore__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union FlutterBackingStore__bindgen_ty_1 { # [doc = " The description of the OpenGL backing store."] pub open_gl : FlutterOpenGLBackingStore , # [doc = " The description of the software backing store."] pub software : FlutterSoftwareBackingStore , pub metal : FlutterMetalBackingStore , pub vulkan : FlutterVulkanBackingStore , } # [test] fn bindgen_test_layout_FlutterBackingStore__bindgen_ty_1 () { assert_eq ! (:: std :: mem :: size_of :: < FlutterBackingStore__bindgen_ty_1 > () , 56usize , concat ! ("Size of: " , stringify ! (FlutterBackingStore__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterBackingStore__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterBackingStore__bindgen_ty_1))) ; fn test_field_open_gl () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStore__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . open_gl) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStore__bindgen_ty_1) , "::" , stringify ! (open_gl))) ; } test_field_open_gl () ; fn test_field_software () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStore__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . software) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStore__bindgen_ty_1) , "::" , stringify ! (software))) ; } test_field_software () ; fn test_field_metal () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStore__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . metal) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStore__bindgen_ty_1) , "::" , stringify ! (metal))) ; } test_field_metal () ; fn test_field_vulkan () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStore__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . vulkan) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStore__bindgen_ty_1) , "::" , stringify ! (vulkan))) ; } test_field_vulkan () ; } # [test] fn bindgen_test_layout_FlutterBackingStore () { assert_eq ! (:: std :: mem :: size_of :: < FlutterBackingStore > () , 80usize , concat ! ("Size of: " , stringify ! (FlutterBackingStore))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterBackingStore > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterBackingStore))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStore) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStore) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_type () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . type_) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStore) , "::" , stringify ! (type_))) ; } test_field_type () ; fn test_field_did_update () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . did_update) as usize - ptr as usize } , 20usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStore) , "::" , stringify ! (did_update))) ; } test_field_did_update () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterBackingStoreConfig { # [doc = " The size of this struct. Must be sizeof(FlutterBackingStoreConfig)."] pub struct_size : size_t , # [doc = " The size of the render target the engine expects to render into."] pub size : FlutterSize , } # [test] fn bindgen_test_layout_FlutterBackingStoreConfig () { assert_eq ! (:: std :: mem :: size_of :: < FlutterBackingStoreConfig > () , 24usize , concat ! ("Size of: " , stringify ! (FlutterBackingStoreConfig))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterBackingStoreConfig > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterBackingStoreConfig))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStoreConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStoreConfig) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStoreConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStoreConfig) , "::" , stringify ! (size))) ; } test_field_size () ; } # [doc = " Indicates that the contents of this layer are rendered by Flutter into a"] # [doc = " backing store."] pub const FlutterLayerContentType_kFlutterLayerContentTypeBackingStore : FlutterLayerContentType = 0 ; # [doc = " Indicates that the contents of this layer are determined by the embedder."] pub const FlutterLayerContentType_kFlutterLayerContentTypePlatformView : FlutterLayerContentType = 1 ; pub type FlutterLayerContentType = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct FlutterLayer { # [doc = " This size of this struct. Must be sizeof(FlutterLayer)."] pub struct_size : size_t , # [doc = " Each layer displays contents in one way or another. The type indicates"] # [doc = " whether those contents are specified by Flutter or the embedder."] pub type_ : FlutterLayerContentType , pub __bindgen_anon_1 : FlutterLayer__bindgen_ty_1 , # [doc = " The offset of this layer (in physical pixels) relative to the top left of"] # [doc = " the root surface used by the engine."] pub offset : FlutterPoint , # [doc = " The size of the layer (in physical pixels)."] pub size : FlutterSize , } # [repr (C)] # [derive (Copy , Clone)] pub union FlutterLayer__bindgen_ty_1 { # [doc = " Indicates that the contents of this layer are rendered by Flutter into a"] # [doc = " backing store."] pub backing_store : * const FlutterBackingStore , # [doc = " Indicates that the contents of this layer are determined by the"] # [doc = " embedder."] pub platform_view : * const FlutterPlatformView , } # [test] fn bindgen_test_layout_FlutterLayer__bindgen_ty_1 () { assert_eq ! (:: std :: mem :: size_of :: < FlutterLayer__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (FlutterLayer__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterLayer__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterLayer__bindgen_ty_1))) ; fn test_field_backing_store () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLayer__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . backing_store) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterLayer__bindgen_ty_1) , "::" , stringify ! (backing_store))) ; } test_field_backing_store () ; fn test_field_platform_view () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLayer__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . platform_view) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterLayer__bindgen_ty_1) , "::" , stringify ! (platform_view))) ; } test_field_platform_view () ; } # [test] fn bindgen_test_layout_FlutterLayer () { assert_eq ! (:: std :: mem :: size_of :: < FlutterLayer > () , 56usize , concat ! ("Size of: " , stringify ! (FlutterLayer))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterLayer > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterLayer))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLayer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterLayer) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_type () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLayer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . type_) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterLayer) , "::" , stringify ! (type_))) ; } test_field_type () ; fn test_field_offset () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLayer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . offset) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterLayer) , "::" , stringify ! (offset))) ; } test_field_offset () ; fn test_field_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLayer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . size) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterLayer) , "::" , stringify ! (size))) ; } test_field_size () ; } pub type FlutterBackingStoreCreateCallback = :: std :: option :: Option < unsafe extern "C" fn (config : * const FlutterBackingStoreConfig , backing_store_out : * mut FlutterBackingStore , user_data : * mut :: std :: os :: raw :: c_void) -> bool > ; pub type FlutterBackingStoreCollectCallback = :: std :: option :: Option < unsafe extern "C" fn (renderer : * const FlutterBackingStore , user_data : * mut :: std :: os :: raw :: c_void) -> bool > ; pub type FlutterLayersPresentCallback = :: std :: option :: Option < unsafe extern "C" fn (layers : * mut * const FlutterLayer , layers_count : size_t , user_data : * mut :: std :: os :: raw :: c_void) -> bool > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterCompositor { # [doc = " This size of this struct. Must be sizeof(FlutterCompositor)."] pub struct_size : size_t , # [doc = " A baton that in not interpreted by the engine in any way. If it passed"] # [doc = " back to the embedder in `FlutterCompositor.create_backing_store_callback`,"] # [doc = " `FlutterCompositor.collect_backing_store_callback` and"] # [doc = " `FlutterCompositor.present_layers_callback`"] pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " A callback invoked by the engine to obtain a backing store for a specific"] # [doc = " `FlutterLayer`."] # [doc = ""] # [doc = " On ABI stability: Callers must take care to restrict access within"] # [doc = " `FlutterBackingStore::struct_size` when specifying a new backing store to"] # [doc = " the engine. This only matters if the embedder expects to be used with"] # [doc = " engines older than the version whose headers it used during compilation."] pub create_backing_store_callback : FlutterBackingStoreCreateCallback , # [doc = " A callback invoked by the engine to release the backing store. The"] # [doc = " embedder may collect any resources associated with the backing store."] pub collect_backing_store_callback : FlutterBackingStoreCollectCallback , # [doc = " Callback invoked by the engine to composite the contents of each layer"] # [doc = " onto the screen."] pub present_layers_callback : FlutterLayersPresentCallback , # [doc = " Avoid caching backing stores provided by this compositor."] pub avoid_backing_store_cache : bool , } # [test] fn bindgen_test_layout_FlutterCompositor () { assert_eq ! (:: std :: mem :: size_of :: < FlutterCompositor > () , 48usize , concat ! ("Size of: " , stringify ! (FlutterCompositor))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterCompositor > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterCompositor))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCompositor > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterCompositor) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCompositor > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterCompositor) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_create_backing_store_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCompositor > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . create_backing_store_callback) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterCompositor) , "::" , stringify ! (create_backing_store_callback))) ; } test_field_create_backing_store_callback () ; fn test_field_collect_backing_store_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCompositor > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . collect_backing_store_callback) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterCompositor) , "::" , stringify ! (collect_backing_store_callback))) ; } test_field_collect_backing_store_callback () ; fn test_field_present_layers_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCompositor > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . present_layers_callback) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterCompositor) , "::" , stringify ! (present_layers_callback))) ; } test_field_present_layers_callback () ; fn test_field_avoid_backing_store_cache () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCompositor > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . avoid_backing_store_cache) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterCompositor) , "::" , stringify ! (avoid_backing_store_cache))) ; } test_field_avoid_backing_store_cache () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterLocale { # [doc = " This size of this struct. Must be sizeof(FlutterLocale)."] pub struct_size : size_t , # [doc = " The language code of the locale. For example, \"en\". This is a required"] # [doc = " field. The string must be null terminated. It may be collected after the"] # [doc = " call to `FlutterEngineUpdateLocales`."] pub language_code : * const :: std :: os :: raw :: c_char , # [doc = " The country code of the locale. For example, \"US\". This is a an optional"] # [doc = " field. The string must be null terminated if present. It may be collected"] # [doc = " after the call to `FlutterEngineUpdateLocales`. If not present, a"] # [doc = " `nullptr` may be specified."] pub country_code : * const :: std :: os :: raw :: c_char , # [doc = " The script code of the locale. This is a an optional field. The string"] # [doc = " must be null terminated if present. It may be collected after the call to"] # [doc = " `FlutterEngineUpdateLocales`. If not present, a `nullptr` may be"] # [doc = " specified."] pub script_code : * const :: std :: os :: raw :: c_char , # [doc = " The variant code of the locale. This is a an optional field. The string"] # [doc = " must be null terminated if present. It may be collected after the call to"] # [doc = " `FlutterEngineUpdateLocales`. If not present, a `nullptr` may be"] # [doc = " specified."] pub variant_code : * const :: std :: os :: raw :: c_char , } # [test] fn bindgen_test_layout_FlutterLocale () { assert_eq ! (:: std :: mem :: size_of :: < FlutterLocale > () , 40usize , concat ! ("Size of: " , stringify ! (FlutterLocale))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterLocale > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterLocale))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLocale > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterLocale) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_language_code () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLocale > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . language_code) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterLocale) , "::" , stringify ! (language_code))) ; } test_field_language_code () ; fn test_field_country_code () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLocale > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . country_code) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterLocale) , "::" , stringify ! (country_code))) ; } test_field_country_code () ; fn test_field_script_code () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLocale > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . script_code) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterLocale) , "::" , stringify ! (script_code))) ; } test_field_script_code () ; fn test_field_variant_code () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLocale > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . variant_code) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterLocale) , "::" , stringify ! (variant_code))) ; } test_field_variant_code () ; } # [doc = " Callback that returns the system locale."] # [doc = ""] # [doc = " Embedders that implement this callback should return the `FlutterLocale`"] # [doc = " from the `supported_locales` list that most closely matches the"] # [doc = " user/device's preferred locale."] # [doc = ""] # [doc = " This callback does not currently provide the user_data baton."] # [doc = " https://github.com/flutter/flutter/issues/79826"] pub type FlutterComputePlatformResolvedLocaleCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut * const FlutterLocale , arg2 : size_t) -> * const FlutterLocale > ; # [doc = " Display refers to a graphics hardware system consisting of a framebuffer,"] # [doc = " typically a monitor or a screen. This ID is unique per display and is"] # [doc = " stable until the Flutter application restarts."] pub type FlutterEngineDisplayId = u64 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterEngineDisplay { # [doc = " This size of this struct. Must be sizeof(FlutterDisplay)."] pub struct_size : size_t , pub display_id : FlutterEngineDisplayId , # [doc = " This is set to true if the embedder only has one display. In cases where"] # [doc = " this is set to true, the value of display_id is ignored. In cases where"] # [doc = " this is not set to true, it is expected that a valid display_id be"] # [doc = " provided."] pub single_display : bool , # [doc = " This represents the refresh period in frames per second. This value may be"] # [doc = " zero if the device is not running or unavailable or unknown."] pub refresh_rate : f64 , } # [test] fn bindgen_test_layout_FlutterEngineDisplay () { assert_eq ! (:: std :: mem :: size_of :: < FlutterEngineDisplay > () , 32usize , concat ! ("Size of: " , stringify ! (FlutterEngineDisplay))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterEngineDisplay > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterEngineDisplay))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDisplay > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDisplay) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_display_id () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDisplay > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . display_id) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDisplay) , "::" , stringify ! (display_id))) ; } test_field_display_id () ; fn test_field_single_display () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDisplay > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . single_display) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDisplay) , "::" , stringify ! (single_display))) ; } test_field_single_display () ; fn test_field_refresh_rate () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDisplay > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . refresh_rate) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDisplay) , "::" , stringify ! (refresh_rate))) ; } test_field_refresh_rate () ; } # [doc = " `FlutterEngineDisplay`s that were active during start-up. A display is"] # [doc = " considered active if:"] # [doc = "    1. The frame buffer hardware is connected."] # [doc = "    2. The display is drawable, e.g. it isn't being mirrored from another"] # [doc = "    connected display or sleeping."] pub const FlutterEngineDisplaysUpdateType_kFlutterEngineDisplaysUpdateTypeStartup : FlutterEngineDisplaysUpdateType = 0 ; # [doc = " `FlutterEngineDisplay`s that were active during start-up. A display is"] # [doc = " considered active if:"] # [doc = "    1. The frame buffer hardware is connected."] # [doc = "    2. The display is drawable, e.g. it isn't being mirrored from another"] # [doc = "    connected display or sleeping."] pub const FlutterEngineDisplaysUpdateType_kFlutterEngineDisplaysUpdateTypeCount : FlutterEngineDisplaysUpdateType = 1 ; # [doc = " The update type parameter that is passed to"] # [doc = " `FlutterEngineNotifyDisplayUpdate`."] pub type FlutterEngineDisplaysUpdateType = :: std :: os :: raw :: c_uint ; pub type FlutterEngineDartPort = i64 ; pub const FlutterEngineDartObjectType_kFlutterEngineDartObjectTypeNull : FlutterEngineDartObjectType = 0 ; pub const FlutterEngineDartObjectType_kFlutterEngineDartObjectTypeBool : FlutterEngineDartObjectType = 1 ; pub const FlutterEngineDartObjectType_kFlutterEngineDartObjectTypeInt32 : FlutterEngineDartObjectType = 2 ; pub const FlutterEngineDartObjectType_kFlutterEngineDartObjectTypeInt64 : FlutterEngineDartObjectType = 3 ; pub const FlutterEngineDartObjectType_kFlutterEngineDartObjectTypeDouble : FlutterEngineDartObjectType = 4 ; pub const FlutterEngineDartObjectType_kFlutterEngineDartObjectTypeString : FlutterEngineDartObjectType = 5 ; # [doc = " The object will be made available to Dart code as an instance of"] # [doc = " Uint8List."] pub const FlutterEngineDartObjectType_kFlutterEngineDartObjectTypeBuffer : FlutterEngineDartObjectType = 6 ; pub type FlutterEngineDartObjectType = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterEngineDartBuffer { # [doc = " The size of this struct. Must be sizeof(FlutterEngineDartBuffer)."] pub struct_size : size_t , # [doc = " An opaque baton passed back to the embedder when the"] # [doc = " buffer_collect_callback is invoked. The engine does not interpret this"] # [doc = " field in any way."] pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " This is an optional field."] # [doc = ""] # [doc = " When specified, the engine will assume that the buffer is owned by the"] # [doc = " embedder. When the data is no longer needed by any isolate, this callback"] # [doc = " will be made on an internal engine managed thread. The embedder is free to"] # [doc = " collect the buffer here. When this field is specified, it is the embedders"] # [doc = " responsibility to keep the buffer alive and not modify it till this"] # [doc = " callback is invoked by the engine. The user data specified in the callback"] # [doc = " is the value of `user_data` field in this struct."] # [doc = ""] # [doc = " When NOT specified, the VM creates an internal copy of the buffer. The"] # [doc = " caller is free to modify the buffer as necessary or collect it immediately"] # [doc = " after the call to `FlutterEnginePostDartObject`."] # [doc = ""] # [doc = " @attention      The buffer_collect_callback is will only be invoked by the"] # [doc = "                 engine when the `FlutterEnginePostDartObject` method"] # [doc = "                 returns kSuccess. In case of non-successful calls to this"] # [doc = "                 method, it is the embedders responsibility to collect the"] # [doc = "                 buffer."] pub buffer_collect_callback : VoidCallback , # [doc = " A pointer to the bytes of the buffer. When the buffer is owned by the"] # [doc = " embedder (by specifying the `buffer_collect_callback`), Dart code may"] # [doc = " modify that embedder owned buffer. For this reason, it is important that"] # [doc = " this buffer not have page protections that restrict writing to this"] # [doc = " buffer."] pub buffer : * mut u8 , # [doc = " The size of the buffer."] pub buffer_size : size_t , } # [test] fn bindgen_test_layout_FlutterEngineDartBuffer () { assert_eq ! (:: std :: mem :: size_of :: < FlutterEngineDartBuffer > () , 40usize , concat ! ("Size of: " , stringify ! (FlutterEngineDartBuffer))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterEngineDartBuffer > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterEngineDartBuffer))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartBuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartBuffer) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartBuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartBuffer) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_buffer_collect_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartBuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . buffer_collect_callback) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartBuffer) , "::" , stringify ! (buffer_collect_callback))) ; } test_field_buffer_collect_callback () ; fn test_field_buffer () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartBuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . buffer) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartBuffer) , "::" , stringify ! (buffer))) ; } test_field_buffer () ; fn test_field_buffer_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartBuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . buffer_size) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartBuffer) , "::" , stringify ! (buffer_size))) ; } test_field_buffer_size () ; } # [doc = " This struct specifies the native representation of a Dart object that can be"] # [doc = " sent via a send port to any isolate in the VM that has the corresponding"] # [doc = " receive port."] # [doc = ""] # [doc = " All fields in this struct are copied out in the call to"] # [doc = " `FlutterEnginePostDartObject` and the caller is free to reuse or collect"] # [doc = " this struct after that call."] # [repr (C)] # [derive (Copy , Clone)] pub struct FlutterEngineDartObject { pub type_ : FlutterEngineDartObjectType , pub __bindgen_anon_1 : FlutterEngineDartObject__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union FlutterEngineDartObject__bindgen_ty_1 { pub bool_value : bool , pub int32_value : i32 , pub int64_value : i64 , pub double_value : f64 , # [doc = " A null terminated string. This string will be copied by the VM in the"] # [doc = " call to `FlutterEnginePostDartObject` and must be collected by the"] # [doc = " embedder after that call is made."] pub string_value : * const :: std :: os :: raw :: c_char , pub buffer_value : * const FlutterEngineDartBuffer , } # [test] fn bindgen_test_layout_FlutterEngineDartObject__bindgen_ty_1 () { assert_eq ! (:: std :: mem :: size_of :: < FlutterEngineDartObject__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (FlutterEngineDartObject__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterEngineDartObject__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterEngineDartObject__bindgen_ty_1))) ; fn test_field_bool_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartObject__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . bool_value) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartObject__bindgen_ty_1) , "::" , stringify ! (bool_value))) ; } test_field_bool_value () ; fn test_field_int32_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartObject__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . int32_value) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartObject__bindgen_ty_1) , "::" , stringify ! (int32_value))) ; } test_field_int32_value () ; fn test_field_int64_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartObject__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . int64_value) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartObject__bindgen_ty_1) , "::" , stringify ! (int64_value))) ; } test_field_int64_value () ; fn test_field_double_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartObject__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . double_value) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartObject__bindgen_ty_1) , "::" , stringify ! (double_value))) ; } test_field_double_value () ; fn test_field_string_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartObject__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . string_value) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartObject__bindgen_ty_1) , "::" , stringify ! (string_value))) ; } test_field_string_value () ; fn test_field_buffer_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartObject__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . buffer_value) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartObject__bindgen_ty_1) , "::" , stringify ! (buffer_value))) ; } test_field_buffer_value () ; } # [test] fn bindgen_test_layout_FlutterEngineDartObject () { assert_eq ! (:: std :: mem :: size_of :: < FlutterEngineDartObject > () , 16usize , concat ! ("Size of: " , stringify ! (FlutterEngineDartObject))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterEngineDartObject > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterEngineDartObject))) ; fn test_field_type () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartObject > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . type_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartObject) , "::" , stringify ! (type_))) ; } test_field_type () ; } # [doc = " The Flutter Engine considers the thread on which the FlutterEngineRun call"] # [doc = " is made to be the platform thread. There is only one such thread per"] # [doc = " engine instance."] pub const FlutterNativeThreadType_kFlutterNativeThreadTypePlatform : FlutterNativeThreadType = 0 ; # [doc = " This is the thread the Flutter Engine uses to execute rendering commands"] # [doc = " based on the selected client rendering API. There is only one such thread"] # [doc = " per engine instance."] pub const FlutterNativeThreadType_kFlutterNativeThreadTypeRender : FlutterNativeThreadType = 1 ; # [doc = " This is a dedicated thread on which the root Dart isolate is serviced."] # [doc = " There is only one such thread per engine instance."] pub const FlutterNativeThreadType_kFlutterNativeThreadTypeUI : FlutterNativeThreadType = 2 ; # [doc = " Multiple threads are used by the Flutter engine to perform long running"] # [doc = " background tasks."] pub const FlutterNativeThreadType_kFlutterNativeThreadTypeWorker : FlutterNativeThreadType = 3 ; # [doc = " This enum allows embedders to determine the type of the engine thread in the"] # [doc = " FlutterNativeThreadCallback. Based on the thread type, the embedder may be"] # [doc = " able to tweak the thread priorities for optimum performance."] pub type FlutterNativeThreadType = :: std :: os :: raw :: c_uint ; # [doc = " A callback made by the engine in response to"] # [doc = " `FlutterEnginePostCallbackOnAllNativeThreads` on all internal thread."] pub type FlutterNativeThreadCallback = :: std :: option :: Option < unsafe extern "C" fn (type_ : FlutterNativeThreadType , user_data : * mut :: std :: os :: raw :: c_void) > ; pub const FlutterEngineAOTDataSourceType_kFlutterEngineAOTDataSourceTypeElfPath : FlutterEngineAOTDataSourceType = 0 ; # [doc = " AOT data source type."] pub type FlutterEngineAOTDataSourceType = :: std :: os :: raw :: c_uint ; # [doc = " This struct specifies one of the various locations the engine can look for"] # [doc = " AOT data sources."] # [repr (C)] # [derive (Copy , Clone)] pub struct FlutterEngineAOTDataSource { pub type_ : FlutterEngineAOTDataSourceType , pub __bindgen_anon_1 : FlutterEngineAOTDataSource__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union FlutterEngineAOTDataSource__bindgen_ty_1 { # [doc = " Absolute path to an ELF library file."] pub elf_path : * const :: std :: os :: raw :: c_char , } # [test] fn bindgen_test_layout_FlutterEngineAOTDataSource__bindgen_ty_1 () { assert_eq ! (:: std :: mem :: size_of :: < FlutterEngineAOTDataSource__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (FlutterEngineAOTDataSource__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterEngineAOTDataSource__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterEngineAOTDataSource__bindgen_ty_1))) ; fn test_field_elf_path () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineAOTDataSource__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . elf_path) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineAOTDataSource__bindgen_ty_1) , "::" , stringify ! (elf_path))) ; } test_field_elf_path () ; } # [test] fn bindgen_test_layout_FlutterEngineAOTDataSource () { assert_eq ! (:: std :: mem :: size_of :: < FlutterEngineAOTDataSource > () , 16usize , concat ! ("Size of: " , stringify ! (FlutterEngineAOTDataSource))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterEngineAOTDataSource > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterEngineAOTDataSource))) ; fn test_field_type () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineAOTDataSource > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . type_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineAOTDataSource) , "::" , stringify ! (type_))) ; } test_field_type () ; } pub type FlutterLogMessageCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_char , arg2 : * const :: std :: os :: raw :: c_char , arg3 : * mut :: std :: os :: raw :: c_void) > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _FlutterEngineAOTData { _unused : [u8 ; 0] , } # [doc = " An opaque object that describes the AOT data that can be used to launch a"] # [doc = " FlutterEngine instance in AOT mode."] pub type FlutterEngineAOTData = * mut _FlutterEngineAOTData ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterProjectArgs { # [doc = " The size of this struct. Must be sizeof(FlutterProjectArgs)."] pub struct_size : size_t , # [doc = " The path to the Flutter assets directory containing project assets. The"] # [doc = " string can be collected after the call to `FlutterEngineRun` returns. The"] # [doc = " string must be NULL terminated."] pub assets_path : * const :: std :: os :: raw :: c_char , # [doc = " The path to the Dart file containing the `main` entry point."] # [doc = " The string can be collected after the call to `FlutterEngineRun` returns."] # [doc = " The string must be NULL terminated."] # [doc = ""] # [doc = " @deprecated     As of Dart 2, running from Dart source is no longer"] # [doc = "                 supported. Dart code should now be compiled to kernel form"] # [doc = "                 and will be loaded by from `kernel_blob.bin` in the assets"] # [doc = "                 directory. This struct member is retained for ABI"] # [doc = "                 stability."] pub main_path__unused__ : * const :: std :: os :: raw :: c_char , # [doc = " The path to the `.packages` file for the project. The string can be"] # [doc = " collected after the call to `FlutterEngineRun` returns. The string must be"] # [doc = " NULL terminated."] # [doc = ""] # [doc = " @deprecated    As of Dart 2, running from Dart source is no longer"] # [doc = "                supported. Dart code should now be compiled to kernel form"] # [doc = "                and will be loaded by from `kernel_blob.bin` in the assets"] # [doc = "                directory. This struct member is retained for ABI"] # [doc = "                stability."] pub packages_path__unused__ : * const :: std :: os :: raw :: c_char , # [doc = " The path to the `icudtl.dat` file for the project. The string can be"] # [doc = " collected after the call to `FlutterEngineRun` returns. The string must"] # [doc = " be NULL terminated."] pub icu_data_path : * const :: std :: os :: raw :: c_char , # [doc = " The command line argument count used to initialize the project."] pub command_line_argc : :: std :: os :: raw :: c_int , # [doc = " The command line arguments used to initialize the project. The strings can"] # [doc = " be collected after the call to `FlutterEngineRun` returns. The strings"] # [doc = " must be `NULL` terminated."] # [doc = ""] # [doc = " @attention     The first item in the command line (if specified at all) is"] # [doc = "                interpreted as the executable name. So if an engine flag"] # [doc = "                needs to be passed into the same, it needs to not be the"] # [doc = "                very first item in the list."] # [doc = ""] # [doc = " The set of engine flags are only meant to control"] # [doc = " unstable features in the engine. Deployed applications should not pass any"] # [doc = " command line arguments at all as they may affect engine stability at"] # [doc = " runtime in the presence of un-sanitized input. The list of currently"] # [doc = " recognized engine flags and their descriptions can be retrieved from the"] # [doc = " `switches.h` engine source file."] pub command_line_argv : * const * const :: std :: os :: raw :: c_char , # [doc = " The callback invoked by the engine in order to give the embedder the"] # [doc = " chance to respond to platform messages from the Dart application."] # [doc = " The callback will be invoked on the thread on which the `FlutterEngineRun`"] # [doc = " call is made. The second parameter, `user_data`, is supplied when"] # [doc = " `FlutterEngineRun` or `FlutterEngineInitialize` is called."] pub platform_message_callback : FlutterPlatformMessageCallback , # [doc = " The VM snapshot data buffer used in AOT operation. This buffer must be"] # [doc = " mapped in as read-only. For more information refer to the documentation on"] # [doc = " the Wiki at"] # [doc = " https://github.com/flutter/flutter/wiki/Flutter-engine-operation-in-AOT-Mode"] pub vm_snapshot_data : * const u8 , # [doc = " The size of the VM snapshot data buffer.  If vm_snapshot_data is a symbol"] # [doc = " reference, 0 may be passed here."] pub vm_snapshot_data_size : size_t , # [doc = " The VM snapshot instructions buffer used in AOT operation. This buffer"] # [doc = " must be mapped in as read-execute. For more information refer to the"] # [doc = " documentation on the Wiki at"] # [doc = " https://github.com/flutter/flutter/wiki/Flutter-engine-operation-in-AOT-Mode"] pub vm_snapshot_instructions : * const u8 , # [doc = " The size of the VM snapshot instructions buffer. If"] # [doc = " vm_snapshot_instructions is a symbol reference, 0 may be passed here."] pub vm_snapshot_instructions_size : size_t , # [doc = " The isolate snapshot data buffer used in AOT operation. This buffer must"] # [doc = " be mapped in as read-only. For more information refer to the documentation"] # [doc = " on the Wiki at"] # [doc = " https://github.com/flutter/flutter/wiki/Flutter-engine-operation-in-AOT-Mode"] pub isolate_snapshot_data : * const u8 , # [doc = " The size of the isolate snapshot data buffer.  If isolate_snapshot_data is"] # [doc = " a symbol reference, 0 may be passed here."] pub isolate_snapshot_data_size : size_t , # [doc = " The isolate snapshot instructions buffer used in AOT operation. This"] # [doc = " buffer must be mapped in as read-execute. For more information refer to"] # [doc = " the documentation on the Wiki at"] # [doc = " https://github.com/flutter/flutter/wiki/Flutter-engine-operation-in-AOT-Mode"] pub isolate_snapshot_instructions : * const u8 , # [doc = " The size of the isolate snapshot instructions buffer. If"] # [doc = " isolate_snapshot_instructions is a symbol reference, 0 may be passed here."] pub isolate_snapshot_instructions_size : size_t , # [doc = " The callback invoked by the engine in root isolate scope. Called"] # [doc = " immediately after the root isolate has been created and marked runnable."] pub root_isolate_create_callback : VoidCallback , # [doc = " The callback invoked by the engine in order to give the embedder the"] # [doc = " chance to respond to semantics node updates from the Dart application."] # [doc = " Semantics node updates are sent in batches terminated by a 'batch end'"] # [doc = " callback that is passed a sentinel `FlutterSemanticsNode` whose `id` field"] # [doc = " has the value `kFlutterSemanticsNodeIdBatchEnd`."] # [doc = ""] # [doc = " The callback will be invoked on the thread on which the `FlutterEngineRun`"] # [doc = " call is made."] pub update_semantics_node_callback : FlutterUpdateSemanticsNodeCallback , # [doc = " The callback invoked by the engine in order to give the embedder the"] # [doc = " chance to respond to updates to semantics custom actions from the Dart"] # [doc = " application.  Custom action updates are sent in batches terminated by a"] # [doc = " 'batch end' callback that is passed a sentinel"] # [doc = " `FlutterSemanticsCustomAction` whose `id` field has the value"] # [doc = " `kFlutterSemanticsCustomActionIdBatchEnd`."] # [doc = ""] # [doc = " The callback will be invoked on the thread on which the `FlutterEngineRun`"] # [doc = " call is made."] pub update_semantics_custom_action_callback : FlutterUpdateSemanticsCustomActionCallback , # [doc = " Path to a directory used to store data that is cached across runs of a"] # [doc = " Flutter application (such as compiled shader programs used by Skia)."] # [doc = " This is optional.  The string must be NULL terminated."] # [doc = ""] pub persistent_cache_path : * const :: std :: os :: raw :: c_char , # [doc = " If true, the engine would only read the existing cache, but not write new"] # [doc = " ones."] pub is_persistent_cache_read_only : bool , # [doc = " A callback that gets invoked by the engine when it attempts to wait for a"] # [doc = " platform vsync event. The engine will give the platform a baton that needs"] # [doc = " to be returned back to the engine via `FlutterEngineOnVsync`. All batons"] # [doc = " must be retured to the engine before initializing a"] # [doc = " `FlutterEngineShutdown`. Not doing the same will result in a memory leak."] # [doc = " While the call to `FlutterEngineOnVsync` must occur on the thread that"] # [doc = " made the call to `FlutterEngineRun`, the engine will make this callback on"] # [doc = " an internal engine-managed thread. If the components accessed on the"] # [doc = " embedder are not thread safe, the appropriate re-threading must be done."] pub vsync_callback : VsyncCallback , # [doc = " The name of a custom Dart entrypoint. This is optional and specifying a"] # [doc = " null or empty entrypoint makes the engine look for a method named \"main\""] # [doc = " in the root library of the application."] # [doc = ""] # [doc = " Care must be taken to ensure that the custom entrypoint is not tree-shaken"] # [doc = " away. Usually, this is done using the `@pragma('vm:entry-point')`"] # [doc = " decoration."] pub custom_dart_entrypoint : * const :: std :: os :: raw :: c_char , # [doc = " Typically the Flutter engine create and manages its internal threads. This"] # [doc = " optional argument allows for the specification of task runner interfaces"] # [doc = " to event loops managed by the embedder on threads it creates."] pub custom_task_runners : * const FlutterCustomTaskRunners , # [doc = " All `FlutterEngine` instances in the process share the same Dart VM. When"] # [doc = " the first engine is launched, it starts the Dart VM as well. It used to be"] # [doc = " the case that it was not possible to shutdown the Dart VM cleanly and"] # [doc = " start it back up in the process in a safe manner. This issue has since"] # [doc = " been patched. Unfortunately, applications already began to make use of the"] # [doc = " fact that shutting down the Flutter engine instance left a running VM in"] # [doc = " the process. Since a Flutter engine could be launched on any thread,"] # [doc = " applications would \"warm up\" the VM on another thread by launching"] # [doc = " an engine with no isolates and then shutting it down immediately. The main"] # [doc = " Flutter application could then be started on the main thread without"] # [doc = " having to incur the Dart VM startup costs at that time. With the new"] # [doc = " behavior, this \"optimization\" immediately becomes massive performance"] # [doc = " pessimization as the VM would be started up in the \"warm up\" phase, shut"] # [doc = " down there and then started again on the main thread. Changing this"] # [doc = " behavior was deemed to be an unacceptable breaking change. Embedders that"] # [doc = " wish to shutdown the Dart VM when the last engine is terminated in the"] # [doc = " process should opt into this behavior by setting this flag to true."] pub shutdown_dart_vm_when_done : bool , # [doc = " Typically, Flutter renders the layer hierarchy into a single root surface."] # [doc = " However, when embedders need to interleave their own contents within the"] # [doc = " Flutter layer hierarchy, their applications can push platform views within"] # [doc = " the Flutter scene. This is done using the `SceneBuilder.addPlatformView`"] # [doc = " call. When this happens, the Flutter rasterizer divides the effective view"] # [doc = " hierarchy into multiple layers. Each layer gets its own backing store and"] # [doc = " Flutter renders into the same. Once the layers contents have been"] # [doc = " fulfilled, the embedder is asked to composite these layers on-screen. At"] # [doc = " this point, it can interleave its own contents within the effective"] # [doc = " hierarchy. The interface for the specification of these layer backing"] # [doc = " stores and the hooks to listen for the composition of layers on-screen can"] # [doc = " be controlled using this field. This field is completely optional. In its"] # [doc = " absence, platforms views in the scene are ignored and Flutter renders to"] # [doc = " the root surface as normal."] pub compositor : * const FlutterCompositor , # [doc = " Max size of the old gen heap for the Dart VM in MB, or 0 for unlimited, -1"] # [doc = " for default value."] # [doc = ""] # [doc = " See also:"] # [doc = " https://github.com/dart-lang/sdk/blob/ca64509108b3e7219c50d6c52877c85ab6a35ff2/runtime/vm/flag_list.h#L150"] pub dart_old_gen_heap_size : i64 , # [doc = " The AOT data to be used in AOT operation."] # [doc = ""] # [doc = " Embedders should instantiate and destroy this object via the"] # [doc = " FlutterEngineCreateAOTData and FlutterEngineCollectAOTData methods."] # [doc = ""] # [doc = " Embedders can provide either snapshot buffers or aot_data, but not both."] pub aot_data : FlutterEngineAOTData , # [doc = " A callback that computes the locale the platform would natively resolve"] # [doc = " to."] # [doc = ""] # [doc = " The input parameter is an array of FlutterLocales which represent the"] # [doc = " locales supported by the app. One of the input supported locales should"] # [doc = " be selected and returned to best match with the user/device's preferred"] # [doc = " locale. The implementation should produce a result that as closely"] # [doc = " matches what the platform would natively resolve to as possible."] pub compute_platform_resolved_locale_callback : FlutterComputePlatformResolvedLocaleCallback , # [doc = " The command line argument count for arguments passed through to the Dart"] # [doc = " entrypoint."] pub dart_entrypoint_argc : :: std :: os :: raw :: c_int , # [doc = " The command line arguments passed through to the Dart entrypoint. The"] # [doc = " strings must be `NULL` terminated."] # [doc = ""] # [doc = " The strings will be copied out and so any strings passed in here can"] # [doc = " be safely collected after initializing the engine with"] # [doc = " `FlutterProjectArgs`."] pub dart_entrypoint_argv : * const * const :: std :: os :: raw :: c_char , pub log_message_callback : FlutterLogMessageCallback , pub log_tag : * const :: std :: os :: raw :: c_char , pub on_pre_engine_restart_callback : OnPreEngineRestartCallback , } # [test] fn bindgen_test_layout_FlutterProjectArgs () { assert_eq ! (:: std :: mem :: size_of :: < FlutterProjectArgs > () , 272usize , concat ! ("Size of: " , stringify ! (FlutterProjectArgs))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterProjectArgs > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterProjectArgs))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_assets_path () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . assets_path) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (assets_path))) ; } test_field_assets_path () ; fn test_field_main_path__unused__ () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . main_path__unused__) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (main_path__unused__))) ; } test_field_main_path__unused__ () ; fn test_field_packages_path__unused__ () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . packages_path__unused__) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (packages_path__unused__))) ; } test_field_packages_path__unused__ () ; fn test_field_icu_data_path () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . icu_data_path) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (icu_data_path))) ; } test_field_icu_data_path () ; fn test_field_command_line_argc () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . command_line_argc) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (command_line_argc))) ; } test_field_command_line_argc () ; fn test_field_command_line_argv () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . command_line_argv) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (command_line_argv))) ; } test_field_command_line_argv () ; fn test_field_platform_message_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . platform_message_callback) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (platform_message_callback))) ; } test_field_platform_message_callback () ; fn test_field_vm_snapshot_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . vm_snapshot_data) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (vm_snapshot_data))) ; } test_field_vm_snapshot_data () ; fn test_field_vm_snapshot_data_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . vm_snapshot_data_size) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (vm_snapshot_data_size))) ; } test_field_vm_snapshot_data_size () ; fn test_field_vm_snapshot_instructions () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . vm_snapshot_instructions) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (vm_snapshot_instructions))) ; } test_field_vm_snapshot_instructions () ; fn test_field_vm_snapshot_instructions_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . vm_snapshot_instructions_size) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (vm_snapshot_instructions_size))) ; } test_field_vm_snapshot_instructions_size () ; fn test_field_isolate_snapshot_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . isolate_snapshot_data) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (isolate_snapshot_data))) ; } test_field_isolate_snapshot_data () ; fn test_field_isolate_snapshot_data_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . isolate_snapshot_data_size) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (isolate_snapshot_data_size))) ; } test_field_isolate_snapshot_data_size () ; fn test_field_isolate_snapshot_instructions () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . isolate_snapshot_instructions) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (isolate_snapshot_instructions))) ; } test_field_isolate_snapshot_instructions () ; fn test_field_isolate_snapshot_instructions_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . isolate_snapshot_instructions_size) as usize - ptr as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (isolate_snapshot_instructions_size))) ; } test_field_isolate_snapshot_instructions_size () ; fn test_field_root_isolate_create_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . root_isolate_create_callback) as usize - ptr as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (root_isolate_create_callback))) ; } test_field_root_isolate_create_callback () ; fn test_field_update_semantics_node_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . update_semantics_node_callback) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (update_semantics_node_callback))) ; } test_field_update_semantics_node_callback () ; fn test_field_update_semantics_custom_action_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . update_semantics_custom_action_callback) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (update_semantics_custom_action_callback))) ; } test_field_update_semantics_custom_action_callback () ; fn test_field_persistent_cache_path () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . persistent_cache_path) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (persistent_cache_path))) ; } test_field_persistent_cache_path () ; fn test_field_is_persistent_cache_read_only () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . is_persistent_cache_read_only) as usize - ptr as usize } , 160usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (is_persistent_cache_read_only))) ; } test_field_is_persistent_cache_read_only () ; fn test_field_vsync_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . vsync_callback) as usize - ptr as usize } , 168usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (vsync_callback))) ; } test_field_vsync_callback () ; fn test_field_custom_dart_entrypoint () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . custom_dart_entrypoint) as usize - ptr as usize } , 176usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (custom_dart_entrypoint))) ; } test_field_custom_dart_entrypoint () ; fn test_field_custom_task_runners () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . custom_task_runners) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (custom_task_runners))) ; } test_field_custom_task_runners () ; fn test_field_shutdown_dart_vm_when_done () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . shutdown_dart_vm_when_done) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (shutdown_dart_vm_when_done))) ; } test_field_shutdown_dart_vm_when_done () ; fn test_field_compositor () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . compositor) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (compositor))) ; } test_field_compositor () ; fn test_field_dart_old_gen_heap_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . dart_old_gen_heap_size) as usize - ptr as usize } , 208usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (dart_old_gen_heap_size))) ; } test_field_dart_old_gen_heap_size () ; fn test_field_aot_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . aot_data) as usize - ptr as usize } , 216usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (aot_data))) ; } test_field_aot_data () ; fn test_field_compute_platform_resolved_locale_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . compute_platform_resolved_locale_callback) as usize - ptr as usize } , 224usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (compute_platform_resolved_locale_callback))) ; } test_field_compute_platform_resolved_locale_callback () ; fn test_field_dart_entrypoint_argc () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . dart_entrypoint_argc) as usize - ptr as usize } , 232usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (dart_entrypoint_argc))) ; } test_field_dart_entrypoint_argc () ; fn test_field_dart_entrypoint_argv () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . dart_entrypoint_argv) as usize - ptr as usize } , 240usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (dart_entrypoint_argv))) ; } test_field_dart_entrypoint_argv () ; fn test_field_log_message_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . log_message_callback) as usize - ptr as usize } , 248usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (log_message_callback))) ; } test_field_log_message_callback () ; fn test_field_log_tag () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . log_tag) as usize - ptr as usize } , 256usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (log_tag))) ; } test_field_log_tag () ; fn test_field_on_pre_engine_restart_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . on_pre_engine_restart_callback) as usize - ptr as usize } , 264usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (on_pre_engine_restart_callback))) ; } test_field_on_pre_engine_restart_callback () ; } extern "C" { # [doc = " @brief      Creates the necessary data structures to launch a Flutter Dart"] # [doc = "             application in AOT mode. The data may only be collected after"] # [doc = "             all FlutterEngine instances launched using this data have been"] # [doc = "             terminated."] # [doc = ""] # [doc = " @param[in]  source    The source of the AOT data."] # [doc = " @param[out] data_out  The AOT data on success. Unchanged on failure."] # [doc = ""] # [doc = " @return     Returns if the AOT data could be successfully resolved."] # [doc = ""] pub fn FlutterEngineCreateAOTData (source : * const FlutterEngineAOTDataSource , data_out : * mut FlutterEngineAOTData) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Collects the AOT data."] # [doc = ""] # [doc = " @warning    The embedder must ensure that this call is made only after all"] # [doc = "             FlutterEngine instances launched using this data have been"] # [doc = "             terminated, and that all of those instances were launched with"] # [doc = "             the FlutterProjectArgs::shutdown_dart_vm_when_done flag set to"] # [doc = "             true."] # [doc = ""] # [doc = " @param[in]  data   The data to collect."] # [doc = ""] # [doc = " @return     Returns if the AOT data was successfully collected."] # [doc = ""] pub fn FlutterEngineCollectAOTData (data : FlutterEngineAOTData) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Initialize and run a Flutter engine instance and return a handle"] # [doc = "             to it. This is a convenience method for the pair of calls to"] # [doc = "             `FlutterEngineInitialize` and `FlutterEngineRunInitialized`."] # [doc = ""] # [doc = " @note       This method of running a Flutter engine works well except in"] # [doc = "             cases where the embedder specifies custom task runners via"] # [doc = "             `FlutterProjectArgs::custom_task_runners`. In such cases, the"] # [doc = "             engine may need the embedder to post tasks back to it before"] # [doc = "             `FlutterEngineRun` has returned. Embedders can only post tasks"] # [doc = "             to the engine if they have a handle to the engine. In such"] # [doc = "             cases, embedders are advised to get the engine handle via the"] # [doc = "             `FlutterInitializeCall`. Then they can call"] # [doc = "             `FlutterEngineRunInitialized` knowing that they will be able to"] # [doc = "             service custom tasks on other threads with the engine handle."] # [doc = ""] # [doc = " @param[in]  version    The Flutter embedder API version. Must be"] # [doc = "                        FLUTTER_ENGINE_VERSION."] # [doc = " @param[in]  config     The renderer configuration."] # [doc = " @param[in]  args       The Flutter project arguments."] # [doc = " @param      user_data  A user data baton passed back to embedders in"] # [doc = "                        callbacks."] # [doc = " @param[out] engine_out The engine handle on successful engine creation."] # [doc = ""] # [doc = " @return     The result of the call to run the Flutter engine."] # [doc = ""] pub fn FlutterEngineRun (version : size_t , config : * const FlutterRendererConfig , args : * const FlutterProjectArgs , user_data : * mut :: std :: os :: raw :: c_void , engine_out : * mut FlutterEngine) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Shuts down a Flutter engine instance. The engine handle is no"] # [doc = "             longer valid for any calls in the embedder API after this point."] # [doc = "             Making additional calls with this handle is undefined behavior."] # [doc = ""] # [doc = " @note       This de-initializes the Flutter engine instance (via an implicit"] # [doc = "             call to `FlutterEngineDeinitialize`) if necessary."] # [doc = ""] # [doc = " @param[in]  engine  The Flutter engine instance to collect."] # [doc = ""] # [doc = " @return     The result of the call to shutdown the Flutter engine instance."] # [doc = ""] pub fn FlutterEngineShutdown (engine : FlutterEngine) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Initialize a Flutter engine instance. This does not run the"] # [doc = "             Flutter application code till the `FlutterEngineRunInitialized`"] # [doc = "             call is made. Besides Flutter application code, no tasks are"] # [doc = "             scheduled on embedder managed task runners either. This allows"] # [doc = "             embedders providing custom task runners to the Flutter engine to"] # [doc = "             obtain a handle to the Flutter engine before the engine can post"] # [doc = "             tasks on these task runners."] # [doc = ""] # [doc = " @param[in]  version    The Flutter embedder API version. Must be"] # [doc = "                        FLUTTER_ENGINE_VERSION."] # [doc = " @param[in]  config     The renderer configuration."] # [doc = " @param[in]  args       The Flutter project arguments."] # [doc = " @param      user_data  A user data baton passed back to embedders in"] # [doc = "                        callbacks."] # [doc = " @param[out] engine_out The engine handle on successful engine creation."] # [doc = ""] # [doc = " @return     The result of the call to initialize the Flutter engine."] # [doc = ""] pub fn FlutterEngineInitialize (version : size_t , config : * const FlutterRendererConfig , args : * const FlutterProjectArgs , user_data : * mut :: std :: os :: raw :: c_void , engine_out : * mut FlutterEngine) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Stops running the Flutter engine instance. After this call, the"] # [doc = "             embedder is also guaranteed that no more calls to post tasks"] # [doc = "             onto custom task runners specified by the embedder are made. The"] # [doc = "             Flutter engine handle still needs to be collected via a call to"] # [doc = "             `FlutterEngineShutdown`."] # [doc = ""] # [doc = " @param[in]  engine    The running engine instance to de-initialize."] # [doc = ""] # [doc = " @return     The result of the call to de-initialize the Flutter engine."] # [doc = ""] pub fn FlutterEngineDeinitialize (engine : FlutterEngine) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Runs an initialized engine instance. An engine can be"] # [doc = "             initialized via `FlutterEngineInitialize`. An initialized"] # [doc = "             instance can only be run once. During and after this call,"] # [doc = "             custom task runners supplied by the embedder are expected to"] # [doc = "             start servicing tasks."] # [doc = ""] # [doc = " @param[in]  engine  An initialized engine instance that has not previously"] # [doc = "                     been run."] # [doc = ""] # [doc = " @return     The result of the call to run the initialized Flutter"] # [doc = "             engine instance."] # [doc = ""] pub fn FlutterEngineRunInitialized (engine : FlutterEngine) -> FlutterEngineResult ; } extern "C" { pub fn FlutterEngineSendWindowMetricsEvent (engine : FlutterEngine , event : * const FlutterWindowMetricsEvent) -> FlutterEngineResult ; } extern "C" { pub fn FlutterEngineSendPointerEvent (engine : FlutterEngine , events : * const FlutterPointerEvent , events_count : size_t) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Sends a key event to the engine. The framework will decide"] # [doc = "             whether to handle this event in a synchronous fashion, although"] # [doc = "             due to technical limitation, the result is always reported"] # [doc = "             asynchronously. The `callback` is guaranteed to be called"] # [doc = "             exactly once."] # [doc = ""] # [doc = " @param[in]  engine         A running engine instance."] # [doc = " @param[in]  event          The event data to be sent. This function will no"] # [doc = "                            longer access `event` after returning."] # [doc = " @param[in]  callback       The callback invoked by the engine when the"] # [doc = "                            Flutter application has decided whether it"] # [doc = "                            handles this event. Accepts nullptr."] # [doc = " @param[in]  user_data      The context associated with the callback. The"] # [doc = "                            exact same value will used to invoke `callback`."] # [doc = "                            Accepts nullptr."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineSendKeyEvent (engine : FlutterEngine , event : * const FlutterKeyEvent , callback : FlutterKeyEventCallback , user_data : * mut :: std :: os :: raw :: c_void) -> FlutterEngineResult ; } extern "C" { pub fn FlutterEngineSendPlatformMessage (engine : FlutterEngine , message : * const FlutterPlatformMessage) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief     Creates a platform message response handle that allows the"] # [doc = "            embedder to set a native callback for a response to a message."] # [doc = "            This handle may be set on the `response_handle` field of any"] # [doc = "            `FlutterPlatformMessage` sent to the engine."] # [doc = ""] # [doc = "            The handle must be collected via a call to"] # [doc = "            `FlutterPlatformMessageReleaseResponseHandle`. This may be done"] # [doc = "            immediately after a call to `FlutterEngineSendPlatformMessage`"] # [doc = "            with a platform message whose response handle contains the handle"] # [doc = "            created using this call. In case a handle is created but never"] # [doc = "            sent in a message, the release call must still be made. Not"] # [doc = "            calling release on the handle results in a small memory leak."] # [doc = ""] # [doc = "            The user data baton passed to the data callback is the one"] # [doc = "            specified in this call as the third argument."] # [doc = ""] # [doc = " @see       FlutterPlatformMessageReleaseResponseHandle()"] # [doc = ""] # [doc = " @param[in]  engine         A running engine instance."] # [doc = " @param[in]  data_callback  The callback invoked by the engine when the"] # [doc = "                            Flutter application send a response on the"] # [doc = "                            handle."] # [doc = " @param[in]  user_data      The user data associated with the data callback."] # [doc = " @param[out] response_out   The response handle created when this call is"] # [doc = "                            successful."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterPlatformMessageCreateResponseHandle (engine : FlutterEngine , data_callback : FlutterDataCallback , user_data : * mut :: std :: os :: raw :: c_void , response_out : * mut * mut FlutterPlatformMessageResponseHandle) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Collects the handle created using"] # [doc = "             `FlutterPlatformMessageCreateResponseHandle`."] # [doc = ""] # [doc = " @see        FlutterPlatformMessageCreateResponseHandle()"] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance."] # [doc = " @param[in]  response   The platform message response handle to collect."] # [doc = "                        These handles are created using"] # [doc = "                        `FlutterPlatformMessageCreateResponseHandle()`."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterPlatformMessageReleaseResponseHandle (engine : FlutterEngine , response : * mut FlutterPlatformMessageResponseHandle) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Send a response from the native side to a platform message from"] # [doc = "             the Dart Flutter application."] # [doc = ""] # [doc = " @param[in]  engine       The running engine instance."] # [doc = " @param[in]  handle       The platform message response handle."] # [doc = " @param[in]  data         The data to associate with the platform message"] # [doc = "                          response."] # [doc = " @param[in]  data_length  The length of the platform message response data."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineSendPlatformMessageResponse (engine : FlutterEngine , handle : * const FlutterPlatformMessageResponseHandle , data : * const u8 , data_length : size_t) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      This API is only meant to be used by platforms that need to"] # [doc = "             flush tasks on a message loop not controlled by the Flutter"] # [doc = "             engine."] # [doc = ""] # [doc = " @deprecated This API will be deprecated and is not part of the stable API."] # [doc = "             Please use the custom task runners API by setting an"] # [doc = "             appropriate `FlutterProjectArgs::custom_task_runners`"] # [doc = "             interface. This will yield better performance and the"] # [doc = "             interface is stable."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn __FlutterEngineFlushPendingTasksNow () -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Register an external texture with a unique (per engine)"] # [doc = "             identifier. Only rendering backends that support external"] # [doc = "             textures accept external texture registrations. After the"] # [doc = "             external texture is registered, the application can mark that a"] # [doc = "             frame is available by calling"] # [doc = "             `FlutterEngineMarkExternalTextureFrameAvailable`."] # [doc = ""] # [doc = " @see        FlutterEngineUnregisterExternalTexture()"] # [doc = " @see        FlutterEngineMarkExternalTextureFrameAvailable()"] # [doc = ""] # [doc = " @param[in]  engine              A running engine instance."] # [doc = " @param[in]  texture_identifier  The identifier of the texture to register"] # [doc = "                                 with the engine. The embedder may supply new"] # [doc = "                                 frames to this texture using the same"] # [doc = "                                 identifier."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineRegisterExternalTexture (engine : FlutterEngine , texture_identifier : i64) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Unregister a previous texture registration."] # [doc = ""] # [doc = " @see        FlutterEngineRegisterExternalTexture()"] # [doc = " @see        FlutterEngineMarkExternalTextureFrameAvailable()"] # [doc = ""] # [doc = " @param[in]  engine              A running engine instance."] # [doc = " @param[in]  texture_identifier  The identifier of the texture for which new"] # [doc = "                                 frame will not be available."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineUnregisterExternalTexture (engine : FlutterEngine , texture_identifier : i64) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Mark that a new texture frame is available for a given texture"] # [doc = "             identifier."] # [doc = ""] # [doc = " @see        FlutterEngineRegisterExternalTexture()"] # [doc = " @see        FlutterEngineUnregisterExternalTexture()"] # [doc = ""] # [doc = " @param[in]  engine              A running engine instance."] # [doc = " @param[in]  texture_identifier  The identifier of the texture whose frame"] # [doc = "                                 has been updated."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineMarkExternalTextureFrameAvailable (engine : FlutterEngine , texture_identifier : i64) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Enable or disable accessibility semantics."] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance."] # [doc = " @param[in]  enabled    When enabled, changes to the semantic contents of the"] # [doc = "                        window are sent via the"] # [doc = "                        `FlutterUpdateSemanticsNodeCallback` registered to"] # [doc = "                        `update_semantics_node_callback` in"] # [doc = "                        `FlutterProjectArgs`."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineUpdateSemanticsEnabled (engine : FlutterEngine , enabled : bool) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Sets additional accessibility features."] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance"] # [doc = " @param[in]  features   The accessibility features to set."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineUpdateAccessibilityFeatures (engine : FlutterEngine , features : FlutterAccessibilityFeature) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Dispatch a semantics action to the specified semantics node."] # [doc = ""] # [doc = " @param[in]  engine       A running engine instance."] # [doc = " @param[in]  identifier   The semantics action identifier."] # [doc = " @param[in]  action       The semantics action."] # [doc = " @param[in]  data         Data associated with the action."] # [doc = " @param[in]  data_length  The data length."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineDispatchSemanticsAction (engine : FlutterEngine , id : u64 , action : FlutterSemanticsAction , data : * const u8 , data_length : size_t) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Notify the engine that a vsync event occurred. A baton passed to"] # [doc = "             the platform via the vsync callback must be returned. This call"] # [doc = "             must be made on the thread on which the call to"] # [doc = "             `FlutterEngineRun` was made."] # [doc = ""] # [doc = " @see        FlutterEngineGetCurrentTime()"] # [doc = ""] # [doc = " @attention  That frame timepoints are in nanoseconds."] # [doc = ""] # [doc = " @attention  The system monotonic clock is used as the timebase."] # [doc = ""] # [doc = " @param[in]  engine.                  A running engine instance."] # [doc = " @param[in]  baton                    The baton supplied by the engine."] # [doc = " @param[in]  frame_start_time_nanos   The point at which the vsync event"] # [doc = "                                      occurred or will occur. If the time"] # [doc = "                                      point is in the future, the engine will"] # [doc = "                                      wait till that point to begin its frame"] # [doc = "                                      workload."] # [doc = " @param[in]  frame_target_time_nanos  The point at which the embedder"] # [doc = "                                      anticipates the next vsync to occur."] # [doc = "                                      This is a hint the engine uses to"] # [doc = "                                      schedule Dart VM garbage collection in"] # [doc = "                                      periods in which the various threads"] # [doc = "                                      are most likely to be idle. For"] # [doc = "                                      example, for a 60Hz display, embedders"] # [doc = "                                      should add 16.6 * 1e6 to the frame time"] # [doc = "                                      field."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineOnVsync (engine : FlutterEngine , baton : isize , frame_start_time_nanos : u64 , frame_target_time_nanos : u64) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Reloads the system fonts in engine."] # [doc = ""] # [doc = " @param[in]  engine.                  A running engine instance."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineReloadSystemFonts (engine : FlutterEngine) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      A profiling utility. Logs a trace duration begin event to the"] # [doc = "             timeline. If the timeline is unavailable or disabled, this has"] # [doc = "             no effect. Must be balanced with an duration end event (via"] # [doc = "             `FlutterEngineTraceEventDurationEnd`) with the same name on the"] # [doc = "             same thread. Can be called on any thread. Strings passed into"] # [doc = "             the function will NOT be copied when added to the timeline. Only"] # [doc = "             string literals may be passed in."] # [doc = ""] # [doc = " @param[in]  name  The name of the trace event."] # [doc = ""] pub fn FlutterEngineTraceEventDurationBegin (name : * const :: std :: os :: raw :: c_char) ; } extern "C" { # [doc = " @brief      A profiling utility. Logs a trace duration end event to the"] # [doc = "             timeline. If the timeline is unavailable or disabled, this has"] # [doc = "             no effect. This call must be preceded by a trace duration begin"] # [doc = "             call (via `FlutterEngineTraceEventDurationBegin`) with the same"] # [doc = "             name on the same thread. Can be called on any thread. Strings"] # [doc = "             passed into the function will NOT be copied when added to the"] # [doc = "             timeline. Only string literals may be passed in."] # [doc = ""] # [doc = " @param[in]  name  The name of the trace event."] # [doc = ""] pub fn FlutterEngineTraceEventDurationEnd (name : * const :: std :: os :: raw :: c_char) ; } extern "C" { # [doc = " @brief      A profiling utility. Logs a trace duration instant event to the"] # [doc = "             timeline. If the timeline is unavailable or disabled, this has"] # [doc = "             no effect. Can be called on any thread. Strings passed into the"] # [doc = "             function will NOT be copied when added to the timeline. Only"] # [doc = "             string literals may be passed in."] # [doc = ""] # [doc = " @param[in]  name  The name of the trace event."] # [doc = ""] pub fn FlutterEngineTraceEventInstant (name : * const :: std :: os :: raw :: c_char) ; } extern "C" { # [doc = " @brief      Posts a task onto the Flutter render thread. Typically, this may"] # [doc = "             be called from any thread as long as a `FlutterEngineShutdown`"] # [doc = "             on the specific engine has not already been initiated."] # [doc = ""] # [doc = " @param[in]  engine         A running engine instance."] # [doc = " @param[in]  callback       The callback to execute on the render thread."] # [doc = " @param      callback_data  The callback context."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEnginePostRenderThreadTask (engine : FlutterEngine , callback : VoidCallback , callback_data : * mut :: std :: os :: raw :: c_void) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Get the current time in nanoseconds from the clock used by the"] # [doc = "             flutter engine. This is the system monotonic clock."] # [doc = ""] # [doc = " @return     The current time in nanoseconds."] # [doc = ""] pub fn FlutterEngineGetCurrentTime () -> u64 ; } extern "C" { # [doc = " @brief      Inform the engine to run the specified task. This task has been"] # [doc = "             given to the engine via the"] # [doc = "             `FlutterTaskRunnerDescription.post_task_callback`. This call"] # [doc = "             must only be made at the target time specified in that callback."] # [doc = "             Running the task before that time is undefined behavior."] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance."] # [doc = " @param[in]  task       the task handle."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineRunTask (engine : FlutterEngine , task : * const FlutterTask) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Notify a running engine instance that the locale has been"] # [doc = "             updated. The preferred locale must be the first item in the list"] # [doc = "             of locales supplied. The other entries will be used as a"] # [doc = "             fallback."] # [doc = ""] # [doc = " @param[in]  engine         A running engine instance."] # [doc = " @param[in]  locales        The updated locales in the order of preference."] # [doc = " @param[in]  locales_count  The count of locales supplied."] # [doc = ""] # [doc = " @return     Whether the locale updates were applied."] # [doc = ""] pub fn FlutterEngineUpdateLocales (engine : FlutterEngine , locales : * mut * const FlutterLocale , locales_count : size_t) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Returns if the Flutter engine instance will run AOT compiled"] # [doc = "             Dart code. This call has no threading restrictions."] # [doc = ""] # [doc = "             For embedder code that is configured for both AOT and JIT mode"] # [doc = "             Dart execution based on the Flutter engine being linked to, this"] # [doc = "             runtime check may be used to appropriately configure the"] # [doc = "             `FlutterProjectArgs`. In JIT mode execution, the kernel"] # [doc = "             snapshots must be present in the Flutter assets directory"] # [doc = "             specified in the `FlutterProjectArgs`. For AOT execution, the"] # [doc = "             fields `vm_snapshot_data`, `vm_snapshot_instructions`,"] # [doc = "             `isolate_snapshot_data` and `isolate_snapshot_instructions`"] # [doc = "             (along with their size fields) must be specified in"] # [doc = "             `FlutterProjectArgs`."] # [doc = ""] # [doc = " @return     True, if AOT Dart code is run. JIT otherwise."] # [doc = ""] pub fn FlutterEngineRunsAOTCompiledDartCode () -> bool ; } extern "C" { # [doc = " @brief      Posts a Dart object to specified send port. The corresponding"] # [doc = "             receive port for send port can be in any isolate running in the"] # [doc = "             VM. This isolate can also be the root isolate for an"] # [doc = "             unrelated engine. The engine parameter is necessary only to"] # [doc = "             ensure the call is not made when no engine (and hence no VM) is"] # [doc = "             running."] # [doc = ""] # [doc = "             Unlike the platform messages mechanism, there are no threading"] # [doc = "             restrictions when using this API. Message can be posted on any"] # [doc = "             thread and they will be made available to isolate on which the"] # [doc = "             corresponding send port is listening."] # [doc = ""] # [doc = "             However, it is the embedders responsibility to ensure that the"] # [doc = "             call is not made during an ongoing call the"] # [doc = "             `FlutterEngineDeinitialize` or `FlutterEngineShutdown` on"] # [doc = "             another thread."] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance."] # [doc = " @param[in]  port       The send port to send the object to."] # [doc = " @param[in]  object     The object to send to the isolate with the"] # [doc = "                        corresponding receive port."] # [doc = ""] # [doc = " @return     If the message was posted to the send port."] # [doc = ""] pub fn FlutterEnginePostDartObject (engine : FlutterEngine , port : FlutterEngineDartPort , object : * const FlutterEngineDartObject) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Posts a low memory notification to a running engine instance."] # [doc = "             The engine will do its best to release non-critical resources in"] # [doc = "             response. It is not guaranteed that the resource would have been"] # [doc = "             collected by the time this call returns however. The"] # [doc = "             notification is posted to engine subsystems that may be"] # [doc = "             operating on other threads."] # [doc = ""] # [doc = "             Flutter applications can respond to these notifications by"] # [doc = "             setting `WidgetsBindingObserver.didHaveMemoryPressure`"] # [doc = "             observers."] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance."] # [doc = ""] # [doc = " @return     If the low memory notification was sent to the running engine"] # [doc = "             instance."] # [doc = ""] pub fn FlutterEngineNotifyLowMemoryWarning (engine : FlutterEngine) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Schedule a callback to be run on all engine managed threads."] # [doc = "             The engine will attempt to service this callback the next time"] # [doc = "             the message loop for each managed thread is idle. Since the"] # [doc = "             engine manages the entire lifecycle of multiple threads, there"] # [doc = "             is no opportunity for the embedders to finely tune the"] # [doc = "             priorities of threads directly, or, perform other thread"] # [doc = "             specific configuration (for example, setting thread names for"] # [doc = "             tracing). This callback gives embedders a chance to affect such"] # [doc = "             tuning."] # [doc = ""] # [doc = " @attention  This call is expensive and must be made as few times as"] # [doc = "             possible. The callback must also return immediately as not doing"] # [doc = "             so may risk performance issues (especially for callbacks of type"] # [doc = "             kFlutterNativeThreadTypeUI and kFlutterNativeThreadTypeRender)."] # [doc = ""] # [doc = " @attention  Some callbacks (especially the ones of type"] # [doc = "             kFlutterNativeThreadTypeWorker) may be called after the"] # [doc = "             FlutterEngine instance has shut down. Embedders must be careful"] # [doc = "             in handling the lifecycle of objects associated with the user"] # [doc = "             data baton."] # [doc = ""] # [doc = " @attention  In case there are multiple running Flutter engine instances,"] # [doc = "             their workers are shared."] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance."] # [doc = " @param[in]  callback   The callback that will get called multiple times on"] # [doc = "                        each engine managed thread."] # [doc = " @param[in]  user_data  A baton passed by the engine to the callback. This"] # [doc = "                        baton is not interpreted by the engine in any way."] # [doc = ""] # [doc = " @return     Returns if the callback was successfully posted to all threads."] # [doc = ""] pub fn FlutterEnginePostCallbackOnAllNativeThreads (engine : FlutterEngine , callback : FlutterNativeThreadCallback , user_data : * mut :: std :: os :: raw :: c_void) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief    Posts updates corresponding to display changes to a running engine"] # [doc = "           instance."] # [doc = ""] # [doc = " @param[in] update_type      The type of update pushed to the engine."] # [doc = " @param[in] displays         The displays affected by this update."] # [doc = " @param[in] display_count    Size of the displays array, must be at least 1."] # [doc = ""] # [doc = " @return the result of the call made to the engine."] # [doc = ""] pub fn FlutterEngineNotifyDisplayUpdate (engine : FlutterEngine , update_type : FlutterEngineDisplaysUpdateType , displays : * const FlutterEngineDisplay , display_count : size_t) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Schedule a new frame to redraw the content."] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance."] # [doc = ""] # [doc = " @return the result of the call made to the engine."] # [doc = ""] pub fn FlutterEngineScheduleFrame (engine : FlutterEngine) -> FlutterEngineResult ; } pub type FlutterEngineCreateAOTDataFnPtr = :: std :: option :: Option < unsafe extern "C" fn (source : * const FlutterEngineAOTDataSource , data_out : * mut FlutterEngineAOTData) -> FlutterEngineResult > ; pub type FlutterEngineCollectAOTDataFnPtr = :: std :: option :: Option < unsafe extern "C" fn (data : FlutterEngineAOTData) -> FlutterEngineResult > ; pub type FlutterEngineRunFnPtr = :: std :: option :: Option < unsafe extern "C" fn (version : size_t , config : * const FlutterRendererConfig , args : * const FlutterProjectArgs , user_data : * mut :: std :: os :: raw :: c_void , engine_out : * mut FlutterEngine) -> FlutterEngineResult > ; pub type FlutterEngineShutdownFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine) -> FlutterEngineResult > ; pub type FlutterEngineInitializeFnPtr = :: std :: option :: Option < unsafe extern "C" fn (version : size_t , config : * const FlutterRendererConfig , args : * const FlutterProjectArgs , user_data : * mut :: std :: os :: raw :: c_void , engine_out : * mut FlutterEngine) -> FlutterEngineResult > ; pub type FlutterEngineDeinitializeFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine) -> FlutterEngineResult > ; pub type FlutterEngineRunInitializedFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine) -> FlutterEngineResult > ; pub type FlutterEngineSendWindowMetricsEventFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , event : * const FlutterWindowMetricsEvent) -> FlutterEngineResult > ; pub type FlutterEngineSendPointerEventFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , events : * const FlutterPointerEvent , events_count : size_t) -> FlutterEngineResult > ; pub type FlutterEngineSendKeyEventFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , event : * const FlutterKeyEvent , callback : FlutterKeyEventCallback , user_data : * mut :: std :: os :: raw :: c_void) -> FlutterEngineResult > ; pub type FlutterEngineSendPlatformMessageFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , message : * const FlutterPlatformMessage) -> FlutterEngineResult > ; pub type FlutterEnginePlatformMessageCreateResponseHandleFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , data_callback : FlutterDataCallback , user_data : * mut :: std :: os :: raw :: c_void , response_out : * mut * mut FlutterPlatformMessageResponseHandle) -> FlutterEngineResult > ; pub type FlutterEnginePlatformMessageReleaseResponseHandleFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , response : * mut FlutterPlatformMessageResponseHandle) -> FlutterEngineResult > ; pub type FlutterEngineSendPlatformMessageResponseFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , handle : * const FlutterPlatformMessageResponseHandle , data : * const u8 , data_length : size_t) -> FlutterEngineResult > ; pub type FlutterEngineRegisterExternalTextureFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , texture_identifier : i64) -> FlutterEngineResult > ; pub type FlutterEngineUnregisterExternalTextureFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , texture_identifier : i64) -> FlutterEngineResult > ; pub type FlutterEngineMarkExternalTextureFrameAvailableFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , texture_identifier : i64) -> FlutterEngineResult > ; pub type FlutterEngineUpdateSemanticsEnabledFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , enabled : bool) -> FlutterEngineResult > ; pub type FlutterEngineUpdateAccessibilityFeaturesFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , features : FlutterAccessibilityFeature) -> FlutterEngineResult > ; pub type FlutterEngineDispatchSemanticsActionFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , id : u64 , action : FlutterSemanticsAction , data : * const u8 , data_length : size_t) -> FlutterEngineResult > ; pub type FlutterEngineOnVsyncFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , baton : isize , frame_start_time_nanos : u64 , frame_target_time_nanos : u64) -> FlutterEngineResult > ; pub type FlutterEngineReloadSystemFontsFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine) -> FlutterEngineResult > ; pub type FlutterEngineTraceEventDurationBeginFnPtr = :: std :: option :: Option < unsafe extern "C" fn (name : * const :: std :: os :: raw :: c_char) > ; pub type FlutterEngineTraceEventDurationEndFnPtr = :: std :: option :: Option < unsafe extern "C" fn (name : * const :: std :: os :: raw :: c_char) > ; pub type FlutterEngineTraceEventInstantFnPtr = :: std :: option :: Option < unsafe extern "C" fn (name : * const :: std :: os :: raw :: c_char) > ; pub type FlutterEnginePostRenderThreadTaskFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , callback : VoidCallback , callback_data : * mut :: std :: os :: raw :: c_void) -> FlutterEngineResult > ; pub type FlutterEngineGetCurrentTimeFnPtr = :: std :: option :: Option < unsafe extern "C" fn () -> u64 > ; pub type FlutterEngineRunTaskFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , task : * const FlutterTask) -> FlutterEngineResult > ; pub type FlutterEngineUpdateLocalesFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , locales : * mut * const FlutterLocale , locales_count : size_t) -> FlutterEngineResult > ; pub type FlutterEngineRunsAOTCompiledDartCodeFnPtr = :: std :: option :: Option < unsafe extern "C" fn () -> bool > ; pub type FlutterEnginePostDartObjectFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , port : FlutterEngineDartPort , object : * const FlutterEngineDartObject) -> FlutterEngineResult > ; pub type FlutterEngineNotifyLowMemoryWarningFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine) -> FlutterEngineResult > ; pub type FlutterEnginePostCallbackOnAllNativeThreadsFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , callback : FlutterNativeThreadCallback , user_data : * mut :: std :: os :: raw :: c_void) -> FlutterEngineResult > ; pub type FlutterEngineNotifyDisplayUpdateFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , update_type : FlutterEngineDisplaysUpdateType , displays : * const FlutterEngineDisplay , display_count : size_t) -> FlutterEngineResult > ; pub type FlutterEngineScheduleFrameFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine) -> FlutterEngineResult > ; # [doc = " Function-pointer-based versions of the APIs above."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterEngineProcTable { # [doc = " The size of this struct. Must be sizeof(FlutterEngineProcs)."] pub struct_size : size_t , pub CreateAOTData : FlutterEngineCreateAOTDataFnPtr , pub CollectAOTData : FlutterEngineCollectAOTDataFnPtr , pub Run : FlutterEngineRunFnPtr , pub Shutdown : FlutterEngineShutdownFnPtr , pub Initialize : FlutterEngineInitializeFnPtr , pub Deinitialize : FlutterEngineDeinitializeFnPtr , pub RunInitialized : FlutterEngineRunInitializedFnPtr , pub SendWindowMetricsEvent : FlutterEngineSendWindowMetricsEventFnPtr , pub SendPointerEvent : FlutterEngineSendPointerEventFnPtr , pub SendKeyEvent : FlutterEngineSendKeyEventFnPtr , pub SendPlatformMessage : FlutterEngineSendPlatformMessageFnPtr , pub PlatformMessageCreateResponseHandle : FlutterEnginePlatformMessageCreateResponseHandleFnPtr , pub PlatformMessageReleaseResponseHandle : FlutterEnginePlatformMessageReleaseResponseHandleFnPtr , pub SendPlatformMessageResponse : FlutterEngineSendPlatformMessageResponseFnPtr , pub RegisterExternalTexture : FlutterEngineRegisterExternalTextureFnPtr , pub UnregisterExternalTexture : FlutterEngineUnregisterExternalTextureFnPtr , pub MarkExternalTextureFrameAvailable : FlutterEngineMarkExternalTextureFrameAvailableFnPtr , pub UpdateSemanticsEnabled : FlutterEngineUpdateSemanticsEnabledFnPtr , pub UpdateAccessibilityFeatures : FlutterEngineUpdateAccessibilityFeaturesFnPtr , pub DispatchSemanticsAction : FlutterEngineDispatchSemanticsActionFnPtr , pub OnVsync : FlutterEngineOnVsyncFnPtr , pub ReloadSystemFonts : FlutterEngineReloadSystemFontsFnPtr , pub TraceEventDurationBegin : FlutterEngineTraceEventDurationBeginFnPtr , pub TraceEventDurationEnd : FlutterEngineTraceEventDurationEndFnPtr , pub TraceEventInstant : FlutterEngineTraceEventInstantFnPtr , pub PostRenderThreadTask : FlutterEnginePostRenderThreadTaskFnPtr , pub GetCurrentTime : FlutterEngineGetCurrentTimeFnPtr , pub RunTask : FlutterEngineRunTaskFnPtr , pub UpdateLocales : FlutterEngineUpdateLocalesFnPtr , pub RunsAOTCompiledDartCode : FlutterEngineRunsAOTCompiledDartCodeFnPtr , pub PostDartObject : FlutterEnginePostDartObjectFnPtr , pub NotifyLowMemoryWarning : FlutterEngineNotifyLowMemoryWarningFnPtr , pub PostCallbackOnAllNativeThreads : FlutterEnginePostCallbackOnAllNativeThreadsFnPtr , pub NotifyDisplayUpdate : FlutterEngineNotifyDisplayUpdateFnPtr , pub ScheduleFrame : FlutterEngineScheduleFrameFnPtr , } # [test] fn bindgen_test_layout_FlutterEngineProcTable () { assert_eq ! (:: std :: mem :: size_of :: < FlutterEngineProcTable > () , 288usize , concat ! ("Size of: " , stringify ! (FlutterEngineProcTable))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterEngineProcTable > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterEngineProcTable))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_CreateAOTData () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . CreateAOTData) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (CreateAOTData))) ; } test_field_CreateAOTData () ; fn test_field_CollectAOTData () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . CollectAOTData) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (CollectAOTData))) ; } test_field_CollectAOTData () ; fn test_field_Run () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . Run) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (Run))) ; } test_field_Run () ; fn test_field_Shutdown () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . Shutdown) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (Shutdown))) ; } test_field_Shutdown () ; fn test_field_Initialize () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . Initialize) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (Initialize))) ; } test_field_Initialize () ; fn test_field_Deinitialize () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . Deinitialize) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (Deinitialize))) ; } test_field_Deinitialize () ; fn test_field_RunInitialized () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . RunInitialized) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (RunInitialized))) ; } test_field_RunInitialized () ; fn test_field_SendWindowMetricsEvent () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . SendWindowMetricsEvent) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (SendWindowMetricsEvent))) ; } test_field_SendWindowMetricsEvent () ; fn test_field_SendPointerEvent () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . SendPointerEvent) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (SendPointerEvent))) ; } test_field_SendPointerEvent () ; fn test_field_SendKeyEvent () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . SendKeyEvent) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (SendKeyEvent))) ; } test_field_SendKeyEvent () ; fn test_field_SendPlatformMessage () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . SendPlatformMessage) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (SendPlatformMessage))) ; } test_field_SendPlatformMessage () ; fn test_field_PlatformMessageCreateResponseHandle () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . PlatformMessageCreateResponseHandle) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (PlatformMessageCreateResponseHandle))) ; } test_field_PlatformMessageCreateResponseHandle () ; fn test_field_PlatformMessageReleaseResponseHandle () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . PlatformMessageReleaseResponseHandle) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (PlatformMessageReleaseResponseHandle))) ; } test_field_PlatformMessageReleaseResponseHandle () ; fn test_field_SendPlatformMessageResponse () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . SendPlatformMessageResponse) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (SendPlatformMessageResponse))) ; } test_field_SendPlatformMessageResponse () ; fn test_field_RegisterExternalTexture () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . RegisterExternalTexture) as usize - ptr as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (RegisterExternalTexture))) ; } test_field_RegisterExternalTexture () ; fn test_field_UnregisterExternalTexture () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . UnregisterExternalTexture) as usize - ptr as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (UnregisterExternalTexture))) ; } test_field_UnregisterExternalTexture () ; fn test_field_MarkExternalTextureFrameAvailable () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . MarkExternalTextureFrameAvailable) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (MarkExternalTextureFrameAvailable))) ; } test_field_MarkExternalTextureFrameAvailable () ; fn test_field_UpdateSemanticsEnabled () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . UpdateSemanticsEnabled) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (UpdateSemanticsEnabled))) ; } test_field_UpdateSemanticsEnabled () ; fn test_field_UpdateAccessibilityFeatures () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . UpdateAccessibilityFeatures) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (UpdateAccessibilityFeatures))) ; } test_field_UpdateAccessibilityFeatures () ; fn test_field_DispatchSemanticsAction () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . DispatchSemanticsAction) as usize - ptr as usize } , 160usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (DispatchSemanticsAction))) ; } test_field_DispatchSemanticsAction () ; fn test_field_OnVsync () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . OnVsync) as usize - ptr as usize } , 168usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (OnVsync))) ; } test_field_OnVsync () ; fn test_field_ReloadSystemFonts () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . ReloadSystemFonts) as usize - ptr as usize } , 176usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (ReloadSystemFonts))) ; } test_field_ReloadSystemFonts () ; fn test_field_TraceEventDurationBegin () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . TraceEventDurationBegin) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (TraceEventDurationBegin))) ; } test_field_TraceEventDurationBegin () ; fn test_field_TraceEventDurationEnd () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . TraceEventDurationEnd) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (TraceEventDurationEnd))) ; } test_field_TraceEventDurationEnd () ; fn test_field_TraceEventInstant () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . TraceEventInstant) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (TraceEventInstant))) ; } test_field_TraceEventInstant () ; fn test_field_PostRenderThreadTask () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . PostRenderThreadTask) as usize - ptr as usize } , 208usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (PostRenderThreadTask))) ; } test_field_PostRenderThreadTask () ; fn test_field_GetCurrentTime () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . GetCurrentTime) as usize - ptr as usize } , 216usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (GetCurrentTime))) ; } test_field_GetCurrentTime () ; fn test_field_RunTask () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . RunTask) as usize - ptr as usize } , 224usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (RunTask))) ; } test_field_RunTask () ; fn test_field_UpdateLocales () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . UpdateLocales) as usize - ptr as usize } , 232usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (UpdateLocales))) ; } test_field_UpdateLocales () ; fn test_field_RunsAOTCompiledDartCode () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . RunsAOTCompiledDartCode) as usize - ptr as usize } , 240usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (RunsAOTCompiledDartCode))) ; } test_field_RunsAOTCompiledDartCode () ; fn test_field_PostDartObject () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . PostDartObject) as usize - ptr as usize } , 248usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (PostDartObject))) ; } test_field_PostDartObject () ; fn test_field_NotifyLowMemoryWarning () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . NotifyLowMemoryWarning) as usize - ptr as usize } , 256usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (NotifyLowMemoryWarning))) ; } test_field_NotifyLowMemoryWarning () ; fn test_field_PostCallbackOnAllNativeThreads () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . PostCallbackOnAllNativeThreads) as usize - ptr as usize } , 264usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (PostCallbackOnAllNativeThreads))) ; } test_field_PostCallbackOnAllNativeThreads () ; fn test_field_NotifyDisplayUpdate () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . NotifyDisplayUpdate) as usize - ptr as usize } , 272usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (NotifyDisplayUpdate))) ; } test_field_NotifyDisplayUpdate () ; fn test_field_ScheduleFrame () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . ScheduleFrame) as usize - ptr as usize } , 280usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (ScheduleFrame))) ; } test_field_ScheduleFrame () ; } extern "C" { # [doc = " @brief      Gets the table of engine function pointers."] # [doc = ""] # [doc = " @param[out] table   The table to fill with pointers. This should be"] # [doc = "                     zero-initialized, except for struct_size."] # [doc = ""] # [doc = " @return     Returns whether the table was successfully populated."] # [doc = ""] pub fn FlutterEngineGetProcAddresses (table : * mut FlutterEngineProcTable) -> FlutterEngineResult ; }
[INFO] [stdout]   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +                                     +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unclosed HTML tag `MTLCommandQueue`
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/flutter_embedder-b39e10e859f308b8/out/embedder.rs:3:58632
[INFO] [stdout]   |
[INFO] [stdout] 3 | ...le = * const :: std :: os :: raw :: c_void ; # [doc = " Alias for id<MTLCommandQueue>."] pub type FlutterMetalCommandQueueHandle = * c...
[INFO] [stdout]   |                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout] help: try marking as source code
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub const true_ : u32 = 1 ; pub const false_ : u32 = 0 ; pub const __bool_true_false_are_defined : u32 = 1 ; pub const _STDINT_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2X : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 200809 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __WORDSIZE : u32 = 64 ; pub const __WORDSIZE_TIME64_COMPAT32 : u32 = 1 ; pub const __SYSCALL_WORDSIZE : u32 = 64 ; pub const __TIMESIZE : u32 = 64 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 35 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C2X : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const FLUTTER_ENGINE_VERSION : u32 = 1 ; pub type size_t = :: std :: os :: raw :: c_ulong ; pub type wchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [repr (align (16))] # [derive (Debug , Copy , Clone)] pub struct max_align_t { pub __clang_max_align_nonce1 : :: std :: os :: raw :: c_longlong , pub __bindgen_padding_0 : u64 , pub __clang_max_align_nonce2 : u128 , } # [test] fn bindgen_test_layout_max_align_t () { assert_eq ! (:: std :: mem :: size_of :: < max_align_t > () , 32usize , concat ! ("Size of: " , stringify ! (max_align_t))) ; assert_eq ! (:: std :: mem :: align_of :: < max_align_t > () , 16usize , concat ! ("Alignment of " , stringify ! (max_align_t))) ; fn test_field___clang_max_align_nonce1 () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < max_align_t > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . __clang_max_align_nonce1) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (max_align_t) , "::" , stringify ! (__clang_max_align_nonce1))) ; } test_field___clang_max_align_nonce1 () ; fn test_field___clang_max_align_nonce2 () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < max_align_t > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . __clang_max_align_nonce2) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (max_align_t) , "::" , stringify ! (__clang_max_align_nonce2))) ; } test_field___clang_max_align_nonce2 () ; } pub type __u_char = :: std :: os :: raw :: c_uchar ; pub type __u_short = :: std :: os :: raw :: c_ushort ; pub type __u_int = :: std :: os :: raw :: c_uint ; pub type __u_long = :: std :: os :: raw :: c_ulong ; pub type __int8_t = :: std :: os :: raw :: c_schar ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __int16_t = :: std :: os :: raw :: c_short ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; pub type __int32_t = :: std :: os :: raw :: c_int ; pub type __uint32_t = :: std :: os :: raw :: c_uint ; pub type __int64_t = :: std :: os :: raw :: c_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: std :: os :: raw :: c_long ; pub type __u_quad_t = :: std :: os :: raw :: c_ulong ; pub type __intmax_t = :: std :: os :: raw :: c_long ; pub type __uintmax_t = :: std :: os :: raw :: c_ulong ; pub type __dev_t = :: std :: os :: raw :: c_ulong ; pub type __uid_t = :: std :: os :: raw :: c_uint ; pub type __gid_t = :: std :: os :: raw :: c_uint ; pub type __ino_t = :: std :: os :: raw :: c_ulong ; pub type __ino64_t = :: std :: os :: raw :: c_ulong ; pub type __mode_t = :: std :: os :: raw :: c_uint ; pub type __nlink_t = :: std :: os :: raw :: c_ulong ; pub type __off_t = :: std :: os :: raw :: c_long ; pub type __off64_t = :: std :: os :: raw :: c_long ; pub type __pid_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: std :: os :: raw :: c_int ; 2usize] , } # [test] fn bindgen_test_layout___fsid_t () { assert_eq ! (:: std :: mem :: size_of :: < __fsid_t > () , 8usize , concat ! ("Size of: " , stringify ! (__fsid_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __fsid_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__fsid_t))) ; fn test_field___val () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < __fsid_t > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . __val) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__fsid_t) , "::" , stringify ! (__val))) ; } test_field___val () ; } pub type __clock_t = :: std :: os :: raw :: c_long ; pub type __rlim_t = :: std :: os :: raw :: c_ulong ; pub type __rlim64_t = :: std :: os :: raw :: c_ulong ; pub type __id_t = :: std :: os :: raw :: c_uint ; pub type __time_t = :: std :: os :: raw :: c_long ; pub type __useconds_t = :: std :: os :: raw :: c_uint ; pub type __suseconds_t = :: std :: os :: raw :: c_long ; pub type __suseconds64_t = :: std :: os :: raw :: c_long ; pub type __daddr_t = :: std :: os :: raw :: c_int ; pub type __key_t = :: std :: os :: raw :: c_int ; pub type __clockid_t = :: std :: os :: raw :: c_int ; pub type __timer_t = * mut :: std :: os :: raw :: c_void ; pub type __blksize_t = :: std :: os :: raw :: c_long ; pub type __blkcnt_t = :: std :: os :: raw :: c_long ; pub type __blkcnt64_t = :: std :: os :: raw :: c_long ; pub type __fsblkcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsblkcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsword_t = :: std :: os :: raw :: c_long ; pub type __ssize_t = :: std :: os :: raw :: c_long ; pub type __syscall_slong_t = :: std :: os :: raw :: c_long ; pub type __syscall_ulong_t = :: std :: os :: raw :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: std :: os :: raw :: c_char ; pub type __intptr_t = :: std :: os :: raw :: c_long ; pub type __socklen_t = :: std :: os :: raw :: c_uint ; pub type __sig_atomic_t = :: std :: os :: raw :: c_int ; pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = :: std :: os :: raw :: c_schar ; pub type int_fast16_t = :: std :: os :: raw :: c_long ; pub type int_fast32_t = :: std :: os :: raw :: c_long ; pub type int_fast64_t = :: std :: os :: raw :: c_long ; pub type uint_fast8_t = :: std :: os :: raw :: c_uchar ; pub type uint_fast16_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast32_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast64_t = :: std :: os :: raw :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const FlutterEngineResult_kSuccess : FlutterEngineResult = 0 ; pub const FlutterEngineResult_kInvalidLibraryVersion : FlutterEngineResult = 1 ; pub const FlutterEngineResult_kInvalidArguments : FlutterEngineResult = 2 ; pub const FlutterEngineResult_kInternalInconsistency : FlutterEngineResult = 3 ; pub type FlutterEngineResult = :: std :: os :: raw :: c_uint ; pub const FlutterRendererType_kOpenGL : FlutterRendererType = 0 ; pub const FlutterRendererType_kSoftware : FlutterRendererType = 1 ; # [doc = " Metal is only supported on Darwin platforms (macOS / iOS)."] # [doc = " iOS version >= 10.0 (device), 13.0 (simulator)"] # [doc = " macOS version >= 10.14"] pub const FlutterRendererType_kMetal : FlutterRendererType = 2 ; # [doc = " Metal is only supported on Darwin platforms (macOS / iOS)."] # [doc = " iOS version >= 10.0 (device), 13.0 (simulator)"] # [doc = " macOS version >= 10.14"] pub const FlutterRendererType_kVulkan : FlutterRendererType = 3 ; pub type FlutterRendererType = :: std :: os :: raw :: c_uint ; # [doc = " Indicate there is a running accessibility service which is changing the"] # [doc = " interaction model of the device."] pub const FlutterAccessibilityFeature_kFlutterAccessibilityFeatureAccessibleNavigation : FlutterAccessibilityFeature = 1 ; # [doc = " Indicate the platform is inverting the colors of the application."] pub const FlutterAccessibilityFeature_kFlutterAccessibilityFeatureInvertColors : FlutterAccessibilityFeature = 2 ; # [doc = " Request that animations be disabled or simplified."] pub const FlutterAccessibilityFeature_kFlutterAccessibilityFeatureDisableAnimations : FlutterAccessibilityFeature = 4 ; # [doc = " Request that text be rendered at a bold font weight."] pub const FlutterAccessibilityFeature_kFlutterAccessibilityFeatureBoldText : FlutterAccessibilityFeature = 8 ; # [doc = " Request that certain animations be simplified and parallax effects"] # [doc = " removed."] pub const FlutterAccessibilityFeature_kFlutterAccessibilityFeatureReduceMotion : FlutterAccessibilityFeature = 16 ; # [doc = " Request that UI be rendered with darker colors."] pub const FlutterAccessibilityFeature_kFlutterAccessibilityFeatureHighContrast : FlutterAccessibilityFeature = 32 ; # [doc = " Request to show on/off labels inside switches."] pub const FlutterAccessibilityFeature_kFlutterAccessibilityFeatureOnOffSwitchLabels : FlutterAccessibilityFeature = 64 ; # [doc = " Additional accessibility features that may be enabled by the platform."] # [doc = " Must match the `AccessibilityFeatures` enum in window.dart."] pub type FlutterAccessibilityFeature = :: std :: os :: raw :: c_uint ; # [doc = " The equivalent of a user briefly tapping the screen with the finger"] # [doc = " without moving it."] pub const FlutterSemanticsAction_kFlutterSemanticsActionTap : FlutterSemanticsAction = 1 ; # [doc = " The equivalent of a user pressing and holding the screen with the finger"] # [doc = " for a few seconds without moving it."] pub const FlutterSemanticsAction_kFlutterSemanticsActionLongPress : FlutterSemanticsAction = 2 ; # [doc = " The equivalent of a user moving their finger across the screen from right"] # [doc = " to left."] pub const FlutterSemanticsAction_kFlutterSemanticsActionScrollLeft : FlutterSemanticsAction = 4 ; # [doc = " The equivalent of a user moving their finger across the screen from left"] # [doc = " to"] # [doc = " right."] pub const FlutterSemanticsAction_kFlutterSemanticsActionScrollRight : FlutterSemanticsAction = 8 ; # [doc = " The equivalent of a user moving their finger across the screen from bottom"] # [doc = " to top."] pub const FlutterSemanticsAction_kFlutterSemanticsActionScrollUp : FlutterSemanticsAction = 16 ; # [doc = " The equivalent of a user moving their finger across the screen from top to"] # [doc = " bottom."] pub const FlutterSemanticsAction_kFlutterSemanticsActionScrollDown : FlutterSemanticsAction = 32 ; # [doc = " Increase the value represented by the semantics node."] pub const FlutterSemanticsAction_kFlutterSemanticsActionIncrease : FlutterSemanticsAction = 64 ; # [doc = " Decrease the value represented by the semantics node."] pub const FlutterSemanticsAction_kFlutterSemanticsActionDecrease : FlutterSemanticsAction = 128 ; # [doc = " A request to fully show the semantics node on screen."] pub const FlutterSemanticsAction_kFlutterSemanticsActionShowOnScreen : FlutterSemanticsAction = 256 ; # [doc = " Move the cursor forward by one character."] pub const FlutterSemanticsAction_kFlutterSemanticsActionMoveCursorForwardByCharacter : FlutterSemanticsAction = 512 ; # [doc = " Move the cursor backward by one character."] pub const FlutterSemanticsAction_kFlutterSemanticsActionMoveCursorBackwardByCharacter : FlutterSemanticsAction = 1024 ; # [doc = " Set the text selection to the given range."] pub const FlutterSemanticsAction_kFlutterSemanticsActionSetSelection : FlutterSemanticsAction = 2048 ; # [doc = " Copy the current selection to the clipboard."] pub const FlutterSemanticsAction_kFlutterSemanticsActionCopy : FlutterSemanticsAction = 4096 ; # [doc = " Cut the current selection and place it in the clipboard."] pub const FlutterSemanticsAction_kFlutterSemanticsActionCut : FlutterSemanticsAction = 8192 ; # [doc = " Paste the current content of the clipboard."] pub const FlutterSemanticsAction_kFlutterSemanticsActionPaste : FlutterSemanticsAction = 16384 ; # [doc = " Indicate that the node has gained accessibility focus."] pub const FlutterSemanticsAction_kFlutterSemanticsActionDidGainAccessibilityFocus : FlutterSemanticsAction = 32768 ; # [doc = " Indicate that the node has lost accessibility focus."] pub const FlutterSemanticsAction_kFlutterSemanticsActionDidLoseAccessibilityFocus : FlutterSemanticsAction = 65536 ; # [doc = " Indicate that the user has invoked a custom accessibility action."] pub const FlutterSemanticsAction_kFlutterSemanticsActionCustomAction : FlutterSemanticsAction = 131072 ; # [doc = " A request that the node should be dismissed."] pub const FlutterSemanticsAction_kFlutterSemanticsActionDismiss : FlutterSemanticsAction = 262144 ; # [doc = " Move the cursor forward by one word."] pub const FlutterSemanticsAction_kFlutterSemanticsActionMoveCursorForwardByWord : FlutterSemanticsAction = 524288 ; # [doc = " Move the cursor backward by one word."] pub const FlutterSemanticsAction_kFlutterSemanticsActionMoveCursorBackwardByWord : FlutterSemanticsAction = 1048576 ; # [doc = " Replace the current text in the text field."] pub const FlutterSemanticsAction_kFlutterSemanticsActionSetText : FlutterSemanticsAction = 2097152 ; # [doc = " The set of possible actions that can be conveyed to a semantics node."] # [doc = ""] # [doc = " Must match the `SemanticsAction` enum in semantics.dart."] pub type FlutterSemanticsAction = :: std :: os :: raw :: c_uint ; # [doc = " The semantics node has the quality of either being \"checked\" or"] # [doc = " \"unchecked\"."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagHasCheckedState : FlutterSemanticsFlag = 1 ; # [doc = " Whether a semantics node is checked."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsChecked : FlutterSemanticsFlag = 2 ; # [doc = " Whether a semantics node is selected."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsSelected : FlutterSemanticsFlag = 4 ; # [doc = " Whether the semantic node represents a button."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsButton : FlutterSemanticsFlag = 8 ; # [doc = " Whether the semantic node represents a text field."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsTextField : FlutterSemanticsFlag = 16 ; # [doc = " Whether the semantic node currently holds the user's focus."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsFocused : FlutterSemanticsFlag = 32 ; # [doc = " The semantics node has the quality of either being \"enabled\" or"] # [doc = " \"disabled\"."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagHasEnabledState : FlutterSemanticsFlag = 64 ; # [doc = " Whether a semantic node that hasEnabledState is currently enabled."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsEnabled : FlutterSemanticsFlag = 128 ; # [doc = " Whether a semantic node is in a mutually exclusive group."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsInMutuallyExclusiveGroup : FlutterSemanticsFlag = 256 ; # [doc = " Whether a semantic node is a header that divides content into sections."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsHeader : FlutterSemanticsFlag = 512 ; # [doc = " Whether the value of the semantics node is obscured."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsObscured : FlutterSemanticsFlag = 1024 ; # [doc = " Whether the semantics node is the root of a subtree for which a route name"] # [doc = " should be announced."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagScopesRoute : FlutterSemanticsFlag = 2048 ; # [doc = " Whether the semantics node label is the name of a visually distinct route."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagNamesRoute : FlutterSemanticsFlag = 4096 ; # [doc = " Whether the semantics node is considered hidden."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsHidden : FlutterSemanticsFlag = 8192 ; # [doc = " Whether the semantics node represents an image."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsImage : FlutterSemanticsFlag = 16384 ; # [doc = " Whether the semantics node is a live region."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsLiveRegion : FlutterSemanticsFlag = 32768 ; # [doc = " The semantics node has the quality of either being \"on\" or \"off\"."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagHasToggledState : FlutterSemanticsFlag = 65536 ; # [doc = " If true, the semantics node is \"on\". If false, the semantics node is"] # [doc = " \"off\"."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsToggled : FlutterSemanticsFlag = 131072 ; # [doc = " Whether the platform can scroll the semantics node when the user attempts"] # [doc = " to move the accessibility focus to an offscreen child."] # [doc = ""] # [doc = " For example, a `ListView` widget has implicit scrolling so that users can"] # [doc = " easily move the accessibility focus to the next set of children. A"] # [doc = " `PageView` widget does not have implicit scrolling, so that users don't"] # [doc = " navigate to the next page when reaching the end of the current one."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagHasImplicitScrolling : FlutterSemanticsFlag = 262144 ; # [doc = " Whether the value of the semantics node is coming from a multi-line text"] # [doc = " field."] # [doc = ""] # [doc = " This is used for text fields to distinguish single-line text fields from"] # [doc = " multi-line ones."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsMultiline : FlutterSemanticsFlag = 524288 ; # [doc = " Whether the semantic node is read only."] # [doc = ""] # [doc = " Only applicable when kFlutterSemanticsFlagIsTextField flag is on."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsReadOnly : FlutterSemanticsFlag = 1048576 ; # [doc = " Whether the semantic node can hold the user's focus."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsFocusable : FlutterSemanticsFlag = 2097152 ; # [doc = " Whether the semantics node represents a link."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsLink : FlutterSemanticsFlag = 4194304 ; # [doc = " Whether the semantics node represents a slider."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsSlider : FlutterSemanticsFlag = 8388608 ; # [doc = " Whether the semantics node represents a keyboard key."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsKeyboardKey : FlutterSemanticsFlag = 16777216 ; # [doc = " The set of properties that may be associated with a semantics node."] # [doc = ""] # [doc = " Must match the `SemanticsFlag` enum in semantics.dart."] pub type FlutterSemanticsFlag = :: std :: os :: raw :: c_uint ; # [doc = " Text has unknown text direction."] pub const FlutterTextDirection_kFlutterTextDirectionUnknown : FlutterTextDirection = 0 ; # [doc = " Text is read from right to left."] pub const FlutterTextDirection_kFlutterTextDirectionRTL : FlutterTextDirection = 1 ; # [doc = " Text is read from left to right."] pub const FlutterTextDirection_kFlutterTextDirectionLTR : FlutterTextDirection = 2 ; pub type FlutterTextDirection = :: std :: os :: raw :: c_uint ; # [doc = " Suitable for threads that shouldn't disrupt high priority work."] pub const FlutterThreadPriority_kBackground : FlutterThreadPriority = 0 ; # [doc = " Default priority level."] pub const FlutterThreadPriority_kNormal : FlutterThreadPriority = 1 ; # [doc = " Suitable for threads which generate data for the display."] pub const FlutterThreadPriority_kDisplay : FlutterThreadPriority = 2 ; # [doc = " Suitable for thread which raster data."] pub const FlutterThreadPriority_kRaster : FlutterThreadPriority = 3 ; # [doc = " Valid values for priority of Thread."] pub type FlutterThreadPriority = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _FlutterEngine { _unused : [u8 ; 0] , } pub type FlutterEngine = * mut _FlutterEngine ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterTransformation { # [doc = " horizontal scale factor"] pub scaleX : f64 , # [doc = " horizontal skew factor"] pub skewX : f64 , # [doc = " horizontal translation"] pub transX : f64 , # [doc = " vertical skew factor"] pub skewY : f64 , # [doc = " vertical scale factor"] pub scaleY : f64 , # [doc = " vertical translation"] pub transY : f64 , # [doc = " input x-axis perspective factor"] pub pers0 : f64 , # [doc = " input y-axis perspective factor"] pub pers1 : f64 , # [doc = " perspective scale factor"] pub pers2 : f64 , } # [test] fn bindgen_test_layout_FlutterTransformation () { assert_eq ! (:: std :: mem :: size_of :: < FlutterTransformation > () , 72usize , concat ! ("Size of: " , stringify ! (FlutterTransformation))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterTransformation > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterTransformation))) ; fn test_field_scaleX () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scaleX) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (scaleX))) ; } test_field_scaleX () ; fn test_field_skewX () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . skewX) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (skewX))) ; } test_field_skewX () ; fn test_field_transX () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . transX) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (transX))) ; } test_field_transX () ; fn test_field_skewY () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . skewY) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (skewY))) ; } test_field_skewY () ; fn test_field_scaleY () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scaleY) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (scaleY))) ; } test_field_scaleY () ; fn test_field_transY () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . transY) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (transY))) ; } test_field_transY () ; fn test_field_pers0 () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . pers0) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (pers0))) ; } test_field_pers0 () ; fn test_field_pers1 () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . pers1) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (pers1))) ; } test_field_pers1 () ; fn test_field_pers2 () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . pers2) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (pers2))) ; } test_field_pers2 () ; } pub type VoidCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void) > ; # [doc = " Specifies an OpenGL texture target type. Textures are specified using"] # [doc = " the FlutterOpenGLTexture struct."] pub const FlutterOpenGLTargetType_kFlutterOpenGLTargetTypeTexture : FlutterOpenGLTargetType = 0 ; # [doc = " Specifies an OpenGL frame-buffer target type. Framebuffers are specified"] # [doc = " using the FlutterOpenGLFramebuffer struct."] pub const FlutterOpenGLTargetType_kFlutterOpenGLTargetTypeFramebuffer : FlutterOpenGLTargetType = 1 ; pub type FlutterOpenGLTargetType = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterOpenGLTexture { # [doc = " Target texture of the active texture unit (example GL_TEXTURE_2D or"] # [doc = " GL_TEXTURE_RECTANGLE)."] pub target : u32 , # [doc = " The name of the texture."] pub name : u32 , # [doc = " The texture format (example GL_RGBA8)."] pub format : u32 , # [doc = " User data to be returned on the invocation of the destruction callback."] pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " Callback invoked (on an engine managed thread) that asks the embedder to"] # [doc = " collect the texture."] pub destruction_callback : VoidCallback , # [doc = " Optional parameters for texture height/width, default is 0, non-zero means"] # [doc = " the texture has the specified width/height. Usually, when the texture type"] # [doc = " is GL_TEXTURE_RECTANGLE, we need to specify the texture width/height to"] # [doc = " tell the embedder to scale when rendering."] # [doc = " Width of the texture."] pub width : size_t , # [doc = " Height of the texture."] pub height : size_t , } # [test] fn bindgen_test_layout_FlutterOpenGLTexture () { assert_eq ! (:: std :: mem :: size_of :: < FlutterOpenGLTexture > () , 48usize , concat ! ("Size of: " , stringify ! (FlutterOpenGLTexture))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterOpenGLTexture > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterOpenGLTexture))) ; fn test_field_target () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . target) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLTexture) , "::" , stringify ! (target))) ; } test_field_target () ; fn test_field_name () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLTexture) , "::" , stringify ! (name))) ; } test_field_name () ; fn test_field_format () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . format) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLTexture) , "::" , stringify ! (format))) ; } test_field_format () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLTexture) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_destruction_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . destruction_callback) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLTexture) , "::" , stringify ! (destruction_callback))) ; } test_field_destruction_callback () ; fn test_field_width () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . width) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLTexture) , "::" , stringify ! (width))) ; } test_field_width () ; fn test_field_height () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . height) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLTexture) , "::" , stringify ! (height))) ; } test_field_height () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterOpenGLFramebuffer { # [doc = " The target of the color attachment of the frame-buffer. For example,"] # [doc = " GL_TEXTURE_2D or GL_RENDERBUFFER. In case of ambiguity when dealing with"] # [doc = " Window bound frame-buffers, 0 may be used."] pub target : u32 , # [doc = " The name of the framebuffer."] pub name : u32 , # [doc = " User data to be returned on the invocation of the destruction callback."] pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " Callback invoked (on an engine managed thread) that asks the embedder to"] # [doc = " collect the framebuffer."] pub destruction_callback : VoidCallback , } # [test] fn bindgen_test_layout_FlutterOpenGLFramebuffer () { assert_eq ! (:: std :: mem :: size_of :: < FlutterOpenGLFramebuffer > () , 24usize , concat ! ("Size of: " , stringify ! (FlutterOpenGLFramebuffer))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterOpenGLFramebuffer > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterOpenGLFramebuffer))) ; fn test_field_target () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLFramebuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . target) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLFramebuffer) , "::" , stringify ! (target))) ; } test_field_target () ; fn test_field_name () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLFramebuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLFramebuffer) , "::" , stringify ! (name))) ; } test_field_name () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLFramebuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLFramebuffer) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_destruction_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLFramebuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . destruction_callback) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLFramebuffer) , "::" , stringify ! (destruction_callback))) ; } test_field_destruction_callback () ; } pub type BoolCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void) -> bool > ; pub type TransformationCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void) -> FlutterTransformation > ; pub type UIntCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void) -> u32 > ; pub type SoftwareSurfacePresentCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void , arg3 : size_t , arg4 : size_t) -> bool > ; pub type ProcResolver = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_void > ; pub type TextureFrameCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : i64 , arg3 : size_t , arg4 : size_t , arg5 : * mut FlutterOpenGLTexture) -> bool > ; pub type VsyncCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : isize) > ; pub type OnPreEngineRestartCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void) > ; # [doc = " A structure to represent the width and height."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterSize { pub width : f64 , pub height : f64 , } # [test] fn bindgen_test_layout_FlutterSize () { assert_eq ! (:: std :: mem :: size_of :: < FlutterSize > () , 16usize , concat ! ("Size of: " , stringify ! (FlutterSize))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterSize > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterSize))) ; fn test_field_width () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSize > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . width) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterSize) , "::" , stringify ! (width))) ; } test_field_width () ; fn test_field_height () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSize > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . height) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterSize) , "::" , stringify ! (height))) ; } test_field_height () ; } # [doc = " A structure to represent the width and height."] # [doc = ""] # [doc = " See: \\ref FlutterSize when the value are not integers."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterUIntSize { pub width : u32 , pub height : u32 , } # [test] fn bindgen_test_layout_FlutterUIntSize () { assert_eq ! (:: std :: mem :: size_of :: < FlutterUIntSize > () , 8usize , concat ! ("Size of: " , stringify ! (FlutterUIntSize))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterUIntSize > () , 4usize , concat ! ("Alignment of " , stringify ! (FlutterUIntSize))) ; fn test_field_width () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterUIntSize > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . width) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterUIntSize) , "::" , stringify ! (width))) ; } test_field_width () ; fn test_field_height () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterUIntSize > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . height) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (FlutterUIntSize) , "::" , stringify ! (height))) ; } test_field_height () ; } # [doc = " A structure to represent a rectangle."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterRect { pub left : f64 , pub top : f64 , pub right : f64 , pub bottom : f64 , } # [test] fn bindgen_test_layout_FlutterRect () { assert_eq ! (:: std :: mem :: size_of :: < FlutterRect > () , 32usize , concat ! ("Size of: " , stringify ! (FlutterRect))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterRect > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterRect))) ; fn test_field_left () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . left) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterRect) , "::" , stringify ! (left))) ; } test_field_left () ; fn test_field_top () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . top) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterRect) , "::" , stringify ! (top))) ; } test_field_top () ; fn test_field_right () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . right) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterRect) , "::" , stringify ! (right))) ; } test_field_right () ; fn test_field_bottom () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . bottom) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterRect) , "::" , stringify ! (bottom))) ; } test_field_bottom () ; } # [doc = " A structure to represent a 2D point."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterPoint { pub x : f64 , pub y : f64 , } # [test] fn bindgen_test_layout_FlutterPoint () { assert_eq ! (:: std :: mem :: size_of :: < FlutterPoint > () , 16usize , concat ! ("Size of: " , stringify ! (FlutterPoint))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterPoint > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterPoint))) ; fn test_field_x () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPoint > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . x) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPoint) , "::" , stringify ! (x))) ; } test_field_x () ; fn test_field_y () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPoint > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . y) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterPoint) , "::" , stringify ! (y))) ; } test_field_y () ; } # [doc = " A structure to represent a rounded rectangle."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterRoundedRect { pub rect : FlutterRect , pub upper_left_corner_radius : FlutterSize , pub upper_right_corner_radius : FlutterSize , pub lower_right_corner_radius : FlutterSize , pub lower_left_corner_radius : FlutterSize , } # [test] fn bindgen_test_layout_FlutterRoundedRect () { assert_eq ! (:: std :: mem :: size_of :: < FlutterRoundedRect > () , 96usize , concat ! ("Size of: " , stringify ! (FlutterRoundedRect))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterRoundedRect > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterRoundedRect))) ; fn test_field_rect () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRoundedRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . rect) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterRoundedRect) , "::" , stringify ! (rect))) ; } test_field_rect () ; fn test_field_upper_left_corner_radius () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRoundedRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . upper_left_corner_radius) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterRoundedRect) , "::" , stringify ! (upper_left_corner_radius))) ; } test_field_upper_left_corner_radius () ; fn test_field_upper_right_corner_radius () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRoundedRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . upper_right_corner_radius) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterRoundedRect) , "::" , stringify ! (upper_right_corner_radius))) ; } test_field_upper_right_corner_radius () ; fn test_field_lower_right_corner_radius () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRoundedRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . lower_right_corner_radius) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterRoundedRect) , "::" , stringify ! (lower_right_corner_radius))) ; } test_field_lower_right_corner_radius () ; fn test_field_lower_left_corner_radius () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRoundedRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . lower_left_corner_radius) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (FlutterRoundedRect) , "::" , stringify ! (lower_left_corner_radius))) ; } test_field_lower_left_corner_radius () ; } # [doc = " This information is passed to the embedder when requesting a frame buffer"] # [doc = " object."] # [doc = ""] # [doc = " See: \\ref FlutterOpenGLRendererConfig.fbo_with_frame_info_callback."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterFrameInfo { # [doc = " The size of this struct. Must be sizeof(FlutterFrameInfo)."] pub struct_size : size_t , # [doc = " The size of the surface that will be backed by the fbo."] pub size : FlutterUIntSize , } # [test] fn bindgen_test_layout_FlutterFrameInfo () { assert_eq ! (:: std :: mem :: size_of :: < FlutterFrameInfo > () , 16usize , concat ! ("Size of: " , stringify ! (FlutterFrameInfo))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterFrameInfo > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterFrameInfo))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterFrameInfo > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterFrameInfo) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterFrameInfo > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterFrameInfo) , "::" , stringify ! (size))) ; } test_field_size () ; } # [doc = " Callback for when a frame buffer object is requested."] pub type UIntFrameInfoCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * const FlutterFrameInfo) -> u32 > ; # [doc = " This information is passed to the embedder when a surface is presented."] # [doc = ""] # [doc = " See: \\ref FlutterOpenGLRendererConfig.present_with_info."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterPresentInfo { # [doc = " The size of this struct. Must be sizeof(FlutterPresentInfo)."] pub struct_size : size_t , # [doc = " Id of the fbo backing the surface that was presented."] pub fbo_id : u32 , } # [test] fn bindgen_test_layout_FlutterPresentInfo () { assert_eq ! (:: std :: mem :: size_of :: < FlutterPresentInfo > () , 16usize , concat ! ("Size of: " , stringify ! (FlutterPresentInfo))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterPresentInfo > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterPresentInfo))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPresentInfo > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPresentInfo) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_fbo_id () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPresentInfo > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . fbo_id) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterPresentInfo) , "::" , stringify ! (fbo_id))) ; } test_field_fbo_id () ; } # [doc = " Callback for when a surface is presented."] pub type BoolPresentInfoCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * const FlutterPresentInfo) -> bool > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterOpenGLRendererConfig { # [doc = " The size of this struct. Must be sizeof(FlutterOpenGLRendererConfig)."] pub struct_size : size_t , pub make_current : BoolCallback , pub clear_current : BoolCallback , # [doc = " Specifying one (and only one) of `present` or `present_with_info` is"] # [doc = " required. Specifying both is an error and engine initialization will be"] # [doc = " terminated. The return value indicates success of the present call."] pub present : BoolCallback , # [doc = " Specifying one (and only one) of the `fbo_callback` or"] # [doc = " `fbo_with_frame_info_callback` is required. Specifying both is an error"] # [doc = " and engine intialization will be terminated. The return value indicates"] # [doc = " the id of the frame buffer object that flutter will obtain the gl surface"] # [doc = " from."] pub fbo_callback : UIntCallback , # [doc = " This is an optional callback. Flutter will ask the emebdder to create a GL"] # [doc = " context current on a background thread. If the embedder is able to do so,"] # [doc = " Flutter will assume that this context is in the same sharegroup as the"] # [doc = " main rendering context and use this context for asynchronous texture"] # [doc = " uploads. Though optional, it is recommended that all embedders set this"] # [doc = " callback as it will lead to better performance in texture handling."] pub make_resource_current : BoolCallback , # [doc = " By default, the renderer config assumes that the FBO does not change for"] # [doc = " the duration of the engine run. If this argument is true, the"] # [doc = " engine will ask the embedder for an updated FBO target (via an"] # [doc = " fbo_callback invocation) after a present call."] pub fbo_reset_after_present : bool , # [doc = " The transformation to apply to the render target before any rendering"] # [doc = " operations. This callback is optional."] # [doc = " @attention      When using a custom compositor, the layer offset and sizes"] # [doc = "                 will be affected by this transformation. It will be"] # [doc = "                 embedder responsibility to render contents at the"] # [doc = "                 transformed offset and size. This is useful for embedders"] # [doc = "                 that want to render transformed contents directly into"] # [doc = "                 hardware overlay planes without having to apply extra"] # [doc = "                 transformations to layer contents (which may necessitate"] # [doc = "                 an expensive off-screen render pass)."] pub surface_transformation : TransformationCallback , pub gl_proc_resolver : ProcResolver , # [doc = " When the embedder specifies that a texture has a frame available, the"] # [doc = " engine will call this method (on an internal engine managed thread) so"] # [doc = " that external texture details can be supplied to the engine for subsequent"] # [doc = " composition."] pub gl_external_texture_frame_callback : TextureFrameCallback , # [doc = " Specifying one (and only one) of the `fbo_callback` or"] # [doc = " `fbo_with_frame_info_callback` is required. Specifying both is an error"] # [doc = " and engine intialization will be terminated. The return value indicates"] # [doc = " the id of the frame buffer object (fbo) that flutter will obtain the gl"] # [doc = " surface from. When using this variant, the embedder is passed a"] # [doc = " `FlutterFrameInfo` struct that indicates the properties of the surface"] # [doc = " that flutter will acquire from the returned fbo."] pub fbo_with_frame_info_callback : UIntFrameInfoCallback , # [doc = " Specifying one (and only one) of `present` or `present_with_info` is"] # [doc = " required. Specifying both is an error and engine initialization will be"] # [doc = " terminated. When using this variant, the embedder is passed a"] # [doc = " `FlutterPresentInfo` struct that the embedder can use to release any"] # [doc = " resources. The return value indicates success of the present call."] pub present_with_info : BoolPresentInfoCallback , } # [test] fn bindgen_test_layout_FlutterOpenGLRendererConfig () { assert_eq ! (:: std :: mem :: size_of :: < FlutterOpenGLRendererConfig > () , 96usize , concat ! ("Size of: " , stringify ! (FlutterOpenGLRendererConfig))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterOpenGLRendererConfig > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterOpenGLRendererConfig))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_make_current () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . make_current) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (make_current))) ; } test_field_make_current () ; fn test_field_clear_current () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . clear_current) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (clear_current))) ; } test_field_clear_current () ; fn test_field_present () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . present) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (present))) ; } test_field_present () ; fn test_field_fbo_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . fbo_callback) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (fbo_callback))) ; } test_field_fbo_callback () ; fn test_field_make_resource_current () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . make_resource_current) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (make_resource_current))) ; } test_field_make_resource_current () ; fn test_field_fbo_reset_after_present () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . fbo_reset_after_present) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (fbo_reset_after_present))) ; } test_field_fbo_reset_after_present () ; fn test_field_surface_transformation () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . surface_transformation) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (surface_transformation))) ; } test_field_surface_transformation () ; fn test_field_gl_proc_resolver () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . gl_proc_resolver) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (gl_proc_resolver))) ; } test_field_gl_proc_resolver () ; fn test_field_gl_external_texture_frame_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . gl_external_texture_frame_callback) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (gl_external_texture_frame_callback))) ; } test_field_gl_external_texture_frame_callback () ; fn test_field_fbo_with_frame_info_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . fbo_with_frame_info_callback) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (fbo_with_frame_info_callback))) ; } test_field_fbo_with_frame_info_callback () ; fn test_field_present_with_info () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . present_with_info) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (present_with_info))) ; } test_field_present_with_info () ; } # [doc = " Alias for id<MTLDevice>."] pub type FlutterMetalDeviceHandle = * const :: std :: os :: raw :: c_void ; `# [doc = " Alias for id<MTLCommandQueue>."]` pub type FlutterMetalCommandQueueHandle = * const :: std :: os :: raw :: c_void ; # [doc = " Alias for id<MTLTexture>."] pub type FlutterMetalTextureHandle = * const :: std :: os :: raw :: c_void ; pub const FlutterMetalExternalTexturePixelFormat_kYUVA : FlutterMetalExternalTexturePixelFormat = 0 ; pub const FlutterMetalExternalTexturePixelFormat_kRGBA : FlutterMetalExternalTexturePixelFormat = 1 ; # [doc = " Pixel format for the external texture."] pub type FlutterMetalExternalTexturePixelFormat = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterMetalExternalTexture { # [doc = " The size of this struct. Must be sizeof(FlutterMetalExternalTexture)."] pub struct_size : size_t , # [doc = " Height of the texture."] pub width : size_t , # [doc = " Height of the texture."] pub height : size_t , # [doc = " The pixel format type of the external."] pub pixel_format : FlutterMetalExternalTexturePixelFormat , # [doc = " Represents the size of the `textures` array."] pub num_textures : size_t , # [doc = " Supported textures are YUVA and RGBA, in case of YUVA we expect 2 texture"] # [doc = " handles to be provided by the embedder, Y first and UV next. In case of"] # [doc = " RGBA only one should be passed."] # [doc = " These are individually aliases for id<MTLTexture>. These textures are"] # [doc = " retained by the engine for the period of the composition. Once these"] # [doc = " textures have been unregistered via the"] # [doc = " `FlutterEngineUnregisterExternalTexture`, the embedder has to release"] # [doc = " these textures."] pub textures : * mut FlutterMetalTextureHandle , } # [test] fn bindgen_test_layout_FlutterMetalExternalTexture () { assert_eq ! (:: std :: mem :: size_of :: < FlutterMetalExternalTexture > () , 48usize , concat ! ("Size of: " , stringify ! (FlutterMetalExternalTexture))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterMetalExternalTexture > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterMetalExternalTexture))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalExternalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalExternalTexture) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_width () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalExternalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . width) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalExternalTexture) , "::" , stringify ! (width))) ; } test_field_width () ; fn test_field_height () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalExternalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . height) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalExternalTexture) , "::" , stringify ! (height))) ; } test_field_height () ; fn test_field_pixel_format () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalExternalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . pixel_format) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalExternalTexture) , "::" , stringify ! (pixel_format))) ; } test_field_pixel_format () ; fn test_field_num_textures () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalExternalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . num_textures) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalExternalTexture) , "::" , stringify ! (num_textures))) ; } test_field_num_textures () ; fn test_field_textures () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalExternalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . textures) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalExternalTexture) , "::" , stringify ! (textures))) ; } test_field_textures () ; } # [doc = " Callback to provide an external texture for a given texture_id."] # [doc = " See: external_texture_frame_callback."] pub type FlutterMetalTextureFrameCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : i64 , arg3 : size_t , arg4 : size_t , arg5 : * mut FlutterMetalExternalTexture) -> bool > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterMetalTexture { # [doc = " The size of this struct. Must be sizeof(FlutterMetalTexture)."] pub struct_size : size_t , # [doc = " Embedder provided unique identifier to the texture buffer. Given that the"] # [doc = " `texture` handle is passed to the engine to render to, the texture buffer"] # [doc = " is itself owned by the embedder. This `texture_id` is then also given to"] # [doc = " the embedder in the present callback."] pub texture_id : i64 , # [doc = " Handle to the MTLTexture that is owned by the embedder. Engine will render"] # [doc = " the frame into this texture."] pub texture : FlutterMetalTextureHandle , # [doc = " A baton that is not interpreted by the engine in any way. It will be given"] # [doc = " back to the embedder in the destruction callback below. Embedder resources"] # [doc = " may be associated with this baton."] pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " The callback invoked by the engine when it no longer needs this backing"] # [doc = " store."] pub destruction_callback : VoidCallback , } # [test] fn bindgen_test_layout_FlutterMetalTexture () { assert_eq ! (:: std :: mem :: size_of :: < FlutterMetalTexture > () , 40usize , concat ! ("Size of: " , stringify ! (FlutterMetalTexture))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterMetalTexture > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterMetalTexture))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalTexture) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_texture_id () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . texture_id) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalTexture) , "::" , stringify ! (texture_id))) ; } test_field_texture_id () ; fn test_field_texture () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . texture) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalTexture) , "::" , stringify ! (texture))) ; } test_field_texture () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalTexture) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_destruction_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . destruction_callback) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalTexture) , "::" , stringify ! (destruction_callback))) ; } test_field_destruction_callback () ; } # [doc = " Callback for when a metal texture is requested."] pub type FlutterMetalTextureCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * const FlutterFrameInfo) -> FlutterMetalTexture > ; # [doc = " Callback for when a metal texture is presented. The texture_id here"] # [doc = " corresponds to the texture_id provided by the embedder in the"] # [doc = " `FlutterMetalTextureCallback` callback."] pub type FlutterMetalPresentCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * const FlutterMetalTexture) -> bool > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterMetalRendererConfig { # [doc = " The size of this struct. Must be sizeof(FlutterMetalRendererConfig)."] pub struct_size : size_t , # [doc = " Alias for id<MTLDevice>."] pub device : FlutterMetalDeviceHandle , # [doc = " Alias for id<MTLCommandQueue>."] pub present_command_queue : FlutterMetalCommandQueueHandle , # [doc = " The callback that gets invoked when the engine requests the embedder for a"] # [doc = " texture to render to."] pub get_next_drawable_callback : FlutterMetalTextureCallback , # [doc = " The callback presented to the embedder to present a fully populated metal"] # [doc = " texture to the user."] pub present_drawable_callback : FlutterMetalPresentCallback , # [doc = " When the embedder specifies that a texture has a frame available, the"] # [doc = " engine will call this method (on an internal engine managed thread) so"] # [doc = " that external texture details can be supplied to the engine for subsequent"] # [doc = " composition."] pub external_texture_frame_callback : FlutterMetalTextureFrameCallback , } # [test] fn bindgen_test_layout_FlutterMetalRendererConfig () { assert_eq ! (:: std :: mem :: size_of :: < FlutterMetalRendererConfig > () , 48usize , concat ! ("Size of: " , stringify ! (FlutterMetalRendererConfig))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterMetalRendererConfig > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterMetalRendererConfig))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalRendererConfig) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_device () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . device) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalRendererConfig) , "::" , stringify ! (device))) ; } test_field_device () ; fn test_field_present_command_queue () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . present_command_queue) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalRendererConfig) , "::" , stringify ! (present_command_queue))) ; } test_field_present_command_queue () ; fn test_field_get_next_drawable_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . get_next_drawable_callback) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalRendererConfig) , "::" , stringify ! (get_next_drawable_callback))) ; } test_field_get_next_drawable_callback () ; fn test_field_present_drawable_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . present_drawable_callback) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalRendererConfig) , "::" , stringify ! (present_drawable_callback))) ; } test_field_present_drawable_callback () ; fn test_field_external_texture_frame_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . external_texture_frame_callback) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalRendererConfig) , "::" , stringify ! (external_texture_frame_callback))) ; } test_field_external_texture_frame_callback () ; } # [doc = " Alias for VkInstance."] pub type FlutterVulkanInstanceHandle = * mut :: std :: os :: raw :: c_void ; # [doc = " Alias for VkPhysicalDevice."] pub type FlutterVulkanPhysicalDeviceHandle = * mut :: std :: os :: raw :: c_void ; # [doc = " Alias for VkDevice."] pub type FlutterVulkanDeviceHandle = * mut :: std :: os :: raw :: c_void ; # [doc = " Alias for VkQueue."] pub type FlutterVulkanQueueHandle = * mut :: std :: os :: raw :: c_void ; # [doc = " Alias for VkImage."] pub type FlutterVulkanImageHandle = u64 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterVulkanImage { # [doc = " The size of this struct. Must be sizeof(FlutterVulkanImage)."] pub struct_size : size_t , # [doc = " Handle to the VkImage that is owned by the embedder. The engine will"] # [doc = " bind this image for writing the frame."] pub image : FlutterVulkanImageHandle , # [doc = " The VkFormat of the image (for example: VK_FORMAT_R8G8B8A8_UNORM)."] pub format : u32 , } # [test] fn bindgen_test_layout_FlutterVulkanImage () { assert_eq ! (:: std :: mem :: size_of :: < FlutterVulkanImage > () , 24usize , concat ! ("Size of: " , stringify ! (FlutterVulkanImage))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterVulkanImage > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterVulkanImage))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanImage > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanImage) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_image () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanImage > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . image) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanImage) , "::" , stringify ! (image))) ; } test_field_image () ; fn test_field_format () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanImage > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . format) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanImage) , "::" , stringify ! (format))) ; } test_field_format () ; } # [doc = " Callback to fetch a Vulkan function pointer for a given instance. Normally,"] # [doc = " this should return the results of vkGetInstanceProcAddr."] pub type FlutterVulkanInstanceProcAddressCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : FlutterVulkanInstanceHandle , arg3 : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_void > ; # [doc = " Callback for when a VkImage is requested."] pub type FlutterVulkanImageCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * const FlutterFrameInfo) -> FlutterVulkanImage > ; # [doc = " Callback for when a VkImage has been written to and is ready for use by the"] # [doc = " embedder."] pub type FlutterVulkanPresentCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * const FlutterVulkanImage) -> bool > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterVulkanRendererConfig { # [doc = " The size of this struct. Must be sizeof(FlutterVulkanRendererConfig)."] pub struct_size : size_t , # [doc = " The Vulkan API version. This should match the value set in"] # [doc = " VkApplicationInfo::apiVersion when the VkInstance was created."] pub version : u32 , # [doc = " VkInstance handle. Must not be destroyed before `FlutterEngineShutdown` is"] # [doc = " called."] pub instance : FlutterVulkanInstanceHandle , # [doc = " VkPhysicalDevice handle."] pub physical_device : FlutterVulkanPhysicalDeviceHandle , # [doc = " VkDevice handle. Must not be destroyed before `FlutterEngineShutdown` is"] # [doc = " called."] pub device : FlutterVulkanDeviceHandle , # [doc = " The queue family index of the VkQueue supplied in the next field."] pub queue_family_index : u32 , # [doc = " VkQueue handle."] pub queue : FlutterVulkanQueueHandle , # [doc = " The number of instance extensions available for enumerating in the next"] # [doc = " field."] pub enabled_instance_extension_count : size_t , # [doc = " Array of enabled instance extension names. This should match the names"] # [doc = " passed to `VkInstanceCreateInfo.ppEnabledExtensionNames` when the instance"] # [doc = " was created, but any subset of enabled instance extensions may be"] # [doc = " specified."] # [doc = " This field is optional; `nullptr` may be specified."] # [doc = " This memory is only accessed during the call to FlutterEngineInitialize."] pub enabled_instance_extensions : * mut * const :: std :: os :: raw :: c_char , # [doc = " The number of device extensions available for enumerating in the next"] # [doc = " field."] pub enabled_device_extension_count : size_t , # [doc = " Array of enabled logical device extension names. This should match the"] # [doc = " names passed to `VkDeviceCreateInfo.ppEnabledExtensionNames` when the"] # [doc = " logical device was created, but any subset of enabled logical device"] # [doc = " extensions may be specified."] # [doc = " This field is optional; `nullptr` may be specified."] # [doc = " This memory is only accessed during the call to FlutterEngineInitialize."] # [doc = " For example: VK_KHR_GET_MEMORY_REQUIREMENTS_2_EXTENSION_NAME"] pub enabled_device_extensions : * mut * const :: std :: os :: raw :: c_char , # [doc = " The callback invoked when resolving Vulkan function pointers."] pub get_instance_proc_address_callback : FlutterVulkanInstanceProcAddressCallback , # [doc = " The callback invoked when the engine requests a VkImage from the embedder"] # [doc = " for rendering the next frame."] # [doc = " Not used if a FlutterCompositor is supplied in FlutterProjectArgs."] pub get_next_image_callback : FlutterVulkanImageCallback , # [doc = " The callback invoked when a VkImage has been written to and is ready for"] # [doc = " use by the embedder. Prior to calling this callback, the engine performs"] # [doc = " a host sync, and so the VkImage can be used in a pipeline by the embedder"] # [doc = " without any additional synchronization."] # [doc = " Not used if a FlutterCompositor is supplied in FlutterProjectArgs."] pub present_image_callback : FlutterVulkanPresentCallback , } # [test] fn bindgen_test_layout_FlutterVulkanRendererConfig () { assert_eq ! (:: std :: mem :: size_of :: < FlutterVulkanRendererConfig > () , 112usize , concat ! ("Size of: " , stringify ! (FlutterVulkanRendererConfig))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterVulkanRendererConfig > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterVulkanRendererConfig))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_version () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . version) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (version))) ; } test_field_version () ; fn test_field_instance () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . instance) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (instance))) ; } test_field_instance () ; fn test_field_physical_device () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . physical_device) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (physical_device))) ; } test_field_physical_device () ; fn test_field_device () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . device) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (device))) ; } test_field_device () ; fn test_field_queue_family_index () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . queue_family_index) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (queue_family_index))) ; } test_field_queue_family_index () ; fn test_field_queue () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . queue) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (queue))) ; } test_field_queue () ; fn test_field_enabled_instance_extension_count () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . enabled_instance_extension_count) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (enabled_instance_extension_count))) ; } test_field_enabled_instance_extension_count () ; fn test_field_enabled_instance_extensions () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . enabled_instance_extensions) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (enabled_instance_extensions))) ; } test_field_enabled_instance_extensions () ; fn test_field_enabled_device_extension_count () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . enabled_device_extension_count) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (enabled_device_extension_count))) ; } test_field_enabled_device_extension_count () ; fn test_field_enabled_device_extensions () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . enabled_device_extensions) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (enabled_device_extensions))) ; } test_field_enabled_device_extensions () ; fn test_field_get_instance_proc_address_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . get_instance_proc_address_callback) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (get_instance_proc_address_callback))) ; } test_field_get_instance_proc_address_callback () ; fn test_field_get_next_image_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . get_next_image_callback) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (get_next_image_callback))) ; } test_field_get_next_image_callback () ; fn test_field_present_image_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . present_image_callback) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (present_image_callback))) ; } test_field_present_image_callback () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterSoftwareRendererConfig { # [doc = " The size of this struct. Must be sizeof(FlutterSoftwareRendererConfig)."] pub struct_size : size_t , # [doc = " The callback presented to the embedder to present a fully populated buffer"] # [doc = " to the user. The pixel format of the buffer is the native 32-bit RGBA"] # [doc = " format. The buffer is owned by the Flutter engine and must be copied in"] # [doc = " this callback if needed."] pub surface_present_callback : SoftwareSurfacePresentCallback , } # [test] fn bindgen_test_layout_FlutterSoftwareRendererConfig () { assert_eq ! (:: std :: mem :: size_of :: < FlutterSoftwareRendererConfig > () , 16usize , concat ! ("Size of: " , stringify ! (FlutterSoftwareRendererConfig))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterSoftwareRendererConfig > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterSoftwareRendererConfig))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSoftwareRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterSoftwareRendererConfig) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_surface_present_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSoftwareRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . surface_present_callback) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterSoftwareRendererConfig) , "::" , stringify ! (surface_present_callback))) ; } test_field_surface_present_callback () ; } # [repr (C)] # [derive (Copy , Clone)] pub struct FlutterRendererConfig { pub type_ : FlutterRendererType , pub __bindgen_anon_1 : FlutterRendererConfig__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union FlutterRendererConfig__bindgen_ty_1 { pub open_gl : FlutterOpenGLRendererConfig , pub software : FlutterSoftwareRendererConfig , pub metal : FlutterMetalRendererConfig , pub vulkan : FlutterVulkanRendererConfig , } # [test] fn bindgen_test_layout_FlutterRendererConfig__bindgen_ty_1 () { assert_eq ! (:: std :: mem :: size_of :: < FlutterRendererConfig__bindgen_ty_1 > () , 112usize , concat ! ("Size of: " , stringify ! (FlutterRendererConfig__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterRendererConfig__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterRendererConfig__bindgen_ty_1))) ; fn test_field_open_gl () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRendererConfig__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . open_gl) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterRendererConfig__bindgen_ty_1) , "::" , stringify ! (open_gl))) ; } test_field_open_gl () ; fn test_field_software () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRendererConfig__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . software) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterRendererConfig__bindgen_ty_1) , "::" , stringify ! (software))) ; } test_field_software () ; fn test_field_metal () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRendererConfig__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . metal) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterRendererConfig__bindgen_ty_1) , "::" , stringify ! (metal))) ; } test_field_metal () ; fn test_field_vulkan () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRendererConfig__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . vulkan) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterRendererConfig__bindgen_ty_1) , "::" , stringify ! (vulkan))) ; } test_field_vulkan () ; } # [test] fn bindgen_test_layout_FlutterRendererConfig () { assert_eq ! (:: std :: mem :: size_of :: < FlutterRendererConfig > () , 120usize , concat ! ("Size of: " , stringify ! (FlutterRendererConfig))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterRendererConfig > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterRendererConfig))) ; fn test_field_type () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . type_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterRendererConfig) , "::" , stringify ! (type_))) ; } test_field_type () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterWindowMetricsEvent { # [doc = " The size of this struct. Must be sizeof(FlutterWindowMetricsEvent)."] pub struct_size : size_t , # [doc = " Physical width of the window."] pub width : size_t , # [doc = " Physical height of the window."] pub height : size_t , # [doc = " Scale factor for the physical screen."] pub pixel_ratio : f64 , # [doc = " Horizontal physical location of the left side of the window on the screen."] pub left : size_t , # [doc = " Vertical physical location of the top of the window on the screen."] pub top : size_t , # [doc = " Top inset of window."] pub physical_view_inset_top : f64 , # [doc = " Right inset of window."] pub physical_view_inset_right : f64 , # [doc = " Bottom inset of window."] pub physical_view_inset_bottom : f64 , # [doc = " Left inset of window."] pub physical_view_inset_left : f64 , } # [test] fn bindgen_test_layout_FlutterWindowMetricsEvent () { assert_eq ! (:: std :: mem :: size_of :: < FlutterWindowMetricsEvent > () , 80usize , concat ! ("Size of: " , stringify ! (FlutterWindowMetricsEvent))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterWindowMetricsEvent > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterWindowMetricsEvent))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_width () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . width) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (width))) ; } test_field_width () ; fn test_field_height () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . height) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (height))) ; } test_field_height () ; fn test_field_pixel_ratio () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . pixel_ratio) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (pixel_ratio))) ; } test_field_pixel_ratio () ; fn test_field_left () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . left) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (left))) ; } test_field_left () ; fn test_field_top () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . top) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (top))) ; } test_field_top () ; fn test_field_physical_view_inset_top () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . physical_view_inset_top) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (physical_view_inset_top))) ; } test_field_physical_view_inset_top () ; fn test_field_physical_view_inset_right () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . physical_view_inset_right) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (physical_view_inset_right))) ; } test_field_physical_view_inset_right () ; fn test_field_physical_view_inset_bottom () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . physical_view_inset_bottom) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (physical_view_inset_bottom))) ; } test_field_physical_view_inset_bottom () ; fn test_field_physical_view_inset_left () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . physical_view_inset_left) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (physical_view_inset_left))) ; } test_field_physical_view_inset_left () ; } pub const FlutterPointerPhase_kCancel : FlutterPointerPhase = 0 ; # [doc = " The pointer, which must have been down (see kDown), is now up."] # [doc = ""] # [doc = " For touch, this means that the pointer is no longer in contact with the"] # [doc = " screen. For a mouse, it means the last button was released. Note that if"] # [doc = " any other buttons are still pressed when one button is released, that"] # [doc = " should be sent as a kMove rather than a kUp."] pub const FlutterPointerPhase_kUp : FlutterPointerPhase = 1 ; # [doc = " The pointer, which must have been been up, is now down."] # [doc = ""] # [doc = " For touch, this means that the pointer has come into contact with the"] # [doc = " screen. For a mouse, it means a button is now pressed. Note that if any"] # [doc = " other buttons are already pressed when a new button is pressed, that"] # [doc = " should be sent as a kMove rather than a kDown."] pub const FlutterPointerPhase_kDown : FlutterPointerPhase = 2 ; # [doc = " The pointer moved while down."] # [doc = ""] # [doc = " This is also used for changes in button state that don't cause a kDown or"] # [doc = " kUp, such as releasing one of two pressed buttons."] pub const FlutterPointerPhase_kMove : FlutterPointerPhase = 3 ; # [doc = " The pointer is now sending input to Flutter. For instance, a mouse has"] # [doc = " entered the area where the Flutter content is displayed."] # [doc = ""] # [doc = " A pointer should always be added before sending any other events."] pub const FlutterPointerPhase_kAdd : FlutterPointerPhase = 4 ; # [doc = " The pointer is no longer sending input to Flutter. For instance, a mouse"] # [doc = " has left the area where the Flutter content is displayed."] # [doc = ""] # [doc = " A removed pointer should no longer send events until sending a new kAdd."] pub const FlutterPointerPhase_kRemove : FlutterPointerPhase = 5 ; # [doc = " The pointer moved while up."] pub const FlutterPointerPhase_kHover : FlutterPointerPhase = 6 ; # [doc = " A pan/zoom started on this pointer."] pub const FlutterPointerPhase_kPanZoomStart : FlutterPointerPhase = 7 ; # [doc = " The pan/zoom updated."] pub const FlutterPointerPhase_kPanZoomUpdate : FlutterPointerPhase = 8 ; # [doc = " The pan/zoom ended."] pub const FlutterPointerPhase_kPanZoomEnd : FlutterPointerPhase = 9 ; # [doc = " The phase of the pointer event."] pub type FlutterPointerPhase = :: std :: os :: raw :: c_uint ; pub const FlutterPointerDeviceKind_kFlutterPointerDeviceKindMouse : FlutterPointerDeviceKind = 1 ; pub const FlutterPointerDeviceKind_kFlutterPointerDeviceKindTouch : FlutterPointerDeviceKind = 2 ; pub const FlutterPointerDeviceKind_kFlutterPointerDeviceKindStylus : FlutterPointerDeviceKind = 3 ; pub const FlutterPointerDeviceKind_kFlutterPointerDeviceKindTrackpad : FlutterPointerDeviceKind = 4 ; # [doc = " The device type that created a pointer event."] pub type FlutterPointerDeviceKind = :: std :: os :: raw :: c_uint ; pub const FlutterPointerMouseButtons_kFlutterPointerButtonMousePrimary : FlutterPointerMouseButtons = 1 ; pub const FlutterPointerMouseButtons_kFlutterPointerButtonMouseSecondary : FlutterPointerMouseButtons = 2 ; pub const FlutterPointerMouseButtons_kFlutterPointerButtonMouseMiddle : FlutterPointerMouseButtons = 4 ; pub const FlutterPointerMouseButtons_kFlutterPointerButtonMouseBack : FlutterPointerMouseButtons = 8 ; pub const FlutterPointerMouseButtons_kFlutterPointerButtonMouseForward : FlutterPointerMouseButtons = 16 ; # [doc = " Flags for the `buttons` field of `FlutterPointerEvent` when `device_kind`"] # [doc = " is `kFlutterPointerDeviceKindMouse`."] pub type FlutterPointerMouseButtons = :: std :: os :: raw :: c_uint ; pub const FlutterPointerSignalKind_kFlutterPointerSignalKindNone : FlutterPointerSignalKind = 0 ; pub const FlutterPointerSignalKind_kFlutterPointerSignalKindScroll : FlutterPointerSignalKind = 1 ; # [doc = " The type of a pointer signal."] pub type FlutterPointerSignalKind = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterPointerEvent { # [doc = " The size of this struct. Must be sizeof(FlutterPointerEvent)."] pub struct_size : size_t , pub phase : FlutterPointerPhase , # [doc = " The timestamp at which the pointer event was generated. The timestamp"] # [doc = " should be specified in microseconds and the clock should be the same as"] # [doc = " that used by `FlutterEngineGetCurrentTime`."] pub timestamp : size_t , # [doc = " The x coordinate of the pointer event in physical pixels."] pub x : f64 , # [doc = " The y coordinate of the pointer event in physical pixels."] pub y : f64 , # [doc = " An optional device identifier. If this is not specified, it is assumed"] # [doc = " that the embedder has no multi-touch capability."] pub device : i32 , pub signal_kind : FlutterPointerSignalKind , # [doc = " The x offset of the scroll in physical pixels."] pub scroll_delta_x : f64 , # [doc = " The y offset of the scroll in physical pixels."] pub scroll_delta_y : f64 , # [doc = " The type of the device generating this event."] # [doc = " Backwards compatibility note: If this is not set, the device will be"] # [doc = " treated as a mouse, with the primary button set for `kDown` and `kMove`."] # [doc = " If set explicitly to `kFlutterPointerDeviceKindMouse`, you must set the"] # [doc = " correct buttons."] pub device_kind : FlutterPointerDeviceKind , # [doc = " The buttons currently pressed, if any."] pub buttons : i64 , # [doc = " The x offset of the pan/zoom in physical pixels."] pub pan_x : f64 , # [doc = " The y offset of the pan/zoom in physical pixels."] pub pan_y : f64 , # [doc = " The scale of the pan/zoom, where 1.0 is the initial scale."] pub scale : f64 , # [doc = " The rotation of the pan/zoom in radians, where 0.0 is the initial angle."] pub rotation : f64 , } # [test] fn bindgen_test_layout_FlutterPointerEvent () { assert_eq ! (:: std :: mem :: size_of :: < FlutterPointerEvent > () , 112usize , concat ! ("Size of: " , stringify ! (FlutterPointerEvent))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterPointerEvent > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterPointerEvent))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_phase () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . phase) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (phase))) ; } test_field_phase () ; fn test_field_timestamp () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . timestamp) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (timestamp))) ; } test_field_timestamp () ; fn test_field_x () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . x) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (x))) ; } test_field_x () ; fn test_field_y () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . y) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (y))) ; } test_field_y () ; fn test_field_device () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . device) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (device))) ; } test_field_device () ; fn test_field_signal_kind () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . signal_kind) as usize - ptr as usize } , 44usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (signal_kind))) ; } test_field_signal_kind () ; fn test_field_scroll_delta_x () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scroll_delta_x) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (scroll_delta_x))) ; } test_field_scroll_delta_x () ; fn test_field_scroll_delta_y () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scroll_delta_y) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (scroll_delta_y))) ; } test_field_scroll_delta_y () ; fn test_field_device_kind () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . device_kind) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (device_kind))) ; } test_field_device_kind () ; fn test_field_buttons () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . buttons) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (buttons))) ; } test_field_buttons () ; fn test_field_pan_x () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . pan_x) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (pan_x))) ; } test_field_pan_x () ; fn test_field_pan_y () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . pan_y) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (pan_y))) ; } test_field_pan_y () ; fn test_field_scale () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scale) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (scale))) ; } test_field_scale () ; fn test_field_rotation () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . rotation) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (rotation))) ; } test_field_rotation () ; } pub const FlutterKeyEventType_kFlutterKeyEventTypeUp : FlutterKeyEventType = 1 ; pub const FlutterKeyEventType_kFlutterKeyEventTypeDown : FlutterKeyEventType = 2 ; pub const FlutterKeyEventType_kFlutterKeyEventTypeRepeat : FlutterKeyEventType = 3 ; pub type FlutterKeyEventType = :: std :: os :: raw :: c_uint ; # [doc = " A structure to represent a key event."] # [doc = ""] # [doc = " Sending `FlutterKeyEvent` via `FlutterEngineSendKeyEvent` results in a"] # [doc = " corresponding `FlutterKeyEvent` to be dispatched in the framework. It is"] # [doc = " embedder's responsibility to ensure the regularity of sent events, since the"] # [doc = " framework only performs simple one-to-one mapping. The events must conform"] # [doc = " the following rules:"] # [doc = ""] # [doc = "  * Each key press sequence shall consist of one key down event (`kind` being"] # [doc = "    `kFlutterKeyEventTypeDown`), zero or more repeat events, and one key up"] # [doc = "    event, representing a physical key button being pressed, held, and"] # [doc = "    released."] # [doc = "  * All events throughout a key press sequence shall have the same `physical`"] # [doc = "    and `logical`. Having different `character`s is allowed."] # [doc = ""] # [doc = " A `FlutterKeyEvent` with `physical` 0 and `logical` 0 is an empty event."] # [doc = " This is the only case either `physical` or `logical` can be 0. An empty"] # [doc = " event must be sent if a key message should be converted to no"] # [doc = " `FlutterKeyEvent`s, for example, when a key down message is received for a"] # [doc = " key that has already been pressed according to the record. This is to ensure"] # [doc = " some `FlutterKeyEvent` arrives at the framework before raw key message."] # [doc = " See https://github.com/flutter/flutter/issues/87230."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterKeyEvent { # [doc = " The size of this struct. Must be sizeof(FlutterKeyEvent)."] pub struct_size : size_t , # [doc = " The timestamp at which the key event was generated. The timestamp should"] # [doc = " be specified in microseconds and the clock should be the same as that used"] # [doc = " by `FlutterEngineGetCurrentTime`."] pub timestamp : f64 , # [doc = " The event kind."] pub type_ : FlutterKeyEventType , # [doc = " The USB HID code for the physical key of the event."] # [doc = ""] # [doc = " For the full definition and list of pre-defined physical keys, see"] # [doc = " `PhysicalKeyboardKey` from the framework."] # [doc = ""] # [doc = " The only case that `physical` might be 0 is when this is an empty event."] # [doc = " See `FlutterKeyEvent` for introduction."] pub physical : u64 , # [doc = " The key ID for the logical key of this event."] # [doc = ""] # [doc = " For the full definition and a list of pre-defined logical keys, see"] # [doc = " `LogicalKeyboardKey` from the framework."] # [doc = ""] # [doc = " The only case that `logical` might be 0 is when this is an empty event."] # [doc = " See `FlutterKeyEvent` for introduction."] pub logical : u64 , # [doc = " Null-terminated character input from the event. Can be null. Ignored for"] # [doc = " up events."] pub character : * const :: std :: os :: raw :: c_char , # [doc = " True if this event does not correspond to a native event."] # [doc = ""] # [doc = " The embedder is likely to skip events and/or construct new events that do"] # [doc = " not correspond to any native events in order to conform the regularity"] # [doc = " of events (as documented in `FlutterKeyEvent`). An example is when a key"] # [doc = " up is missed due to loss of window focus, on a platform that provides"] # [doc = " query to key pressing status, the embedder might realize that the key has"] # [doc = " been released at the next key event, and should construct a synthesized up"] # [doc = " event immediately before the actual event."] # [doc = ""] # [doc = " An event being synthesized means that the `timestamp` might greatly"] # [doc = " deviate from the actual time when the event occurs physically."] pub synthesized : bool , } # [test] fn bindgen_test_layout_FlutterKeyEvent () { assert_eq ! (:: std :: mem :: size_of :: < FlutterKeyEvent > () , 56usize , concat ! ("Size of: " , stringify ! (FlutterKeyEvent))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterKeyEvent > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterKeyEvent))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterKeyEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterKeyEvent) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_timestamp () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterKeyEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . timestamp) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterKeyEvent) , "::" , stringify ! (timestamp))) ; } test_field_timestamp () ; fn test_field_type () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterKeyEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . type_) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterKeyEvent) , "::" , stringify ! (type_))) ; } test_field_type () ; fn test_field_physical () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterKeyEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . physical) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterKeyEvent) , "::" , stringify ! (physical))) ; } test_field_physical () ; fn test_field_logical () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterKeyEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . logical) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterKeyEvent) , "::" , stringify ! (logical))) ; } test_field_logical () ; fn test_field_character () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterKeyEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . character) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterKeyEvent) , "::" , stringify ! (character))) ; } test_field_character () ; fn test_field_synthesized () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterKeyEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . synthesized) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterKeyEvent) , "::" , stringify ! (synthesized))) ; } test_field_synthesized () ; } pub type FlutterKeyEventCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : bool , arg2 : * mut :: std :: os :: raw :: c_void) > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _FlutterPlatformMessageResponseHandle { _unused : [u8 ; 0] , } pub type FlutterPlatformMessageResponseHandle = _FlutterPlatformMessageResponseHandle ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterPlatformMessage { # [doc = " The size of this struct. Must be sizeof(FlutterPlatformMessage)."] pub struct_size : size_t , pub channel : * const :: std :: os :: raw :: c_char , pub message : * const u8 , pub message_size : size_t , # [doc = " The response handle on which to invoke"] # [doc = " `FlutterEngineSendPlatformMessageResponse` when the response is ready."] # [doc = " `FlutterEngineSendPlatformMessageResponse` must be called for all messages"] # [doc = " received by the embedder. Failure to call"] # [doc = " `FlutterEngineSendPlatformMessageResponse` will cause a memory leak. It is"] # [doc = " not safe to send multiple responses on a single response object."] pub response_handle : * const FlutterPlatformMessageResponseHandle , } # [test] fn bindgen_test_layout_FlutterPlatformMessage () { assert_eq ! (:: std :: mem :: size_of :: < FlutterPlatformMessage > () , 40usize , concat ! ("Size of: " , stringify ! (FlutterPlatformMessage))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterPlatformMessage > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterPlatformMessage))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformMessage > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformMessage) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_channel () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformMessage > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . channel) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformMessage) , "::" , stringify ! (channel))) ; } test_field_channel () ; fn test_field_message () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformMessage > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . message) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformMessage) , "::" , stringify ! (message))) ; } test_field_message () ; fn test_field_message_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformMessage > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . message_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformMessage) , "::" , stringify ! (message_size))) ; } test_field_message_size () ; fn test_field_response_handle () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformMessage > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . response_handle) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformMessage) , "::" , stringify ! (response_handle))) ; } test_field_response_handle () ; } pub type FlutterPlatformMessageCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const FlutterPlatformMessage , arg2 : * mut :: std :: os :: raw :: c_void) > ; pub type FlutterDataCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const u8 , arg2 : size_t , arg3 : * mut :: std :: os :: raw :: c_void) > ; # [doc = " The identifier of the platform view. This identifier is specified by the"] # [doc = " application when a platform view is added to the scene via the"] # [doc = " `SceneBuilder.addPlatformView` call."] pub type FlutterPlatformViewIdentifier = i64 ; extern "C" { # [doc = " `FlutterSemanticsNode` ID used as a sentinel to signal the end of a batch of"] # [doc = " semantics node updates."] pub static kFlutterSemanticsNodeIdBatchEnd : i32 ; } # [doc = " A node that represents some semantic data."] # [doc = ""] # [doc = " The semantics tree is maintained during the semantics phase of the pipeline"] # [doc = " (i.e., during PipelineOwner.flushSemantics), which happens after"] # [doc = " compositing. Updates are then pushed to embedders via the registered"] # [doc = " `FlutterUpdateSemanticsNodeCallback`."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterSemanticsNode { # [doc = " The size of this struct. Must be sizeof(FlutterSemanticsNode)."] pub struct_size : size_t , # [doc = " The unique identifier for this node."] pub id : i32 , # [doc = " The set of semantics flags associated with this node."] pub flags : FlutterSemanticsFlag , # [doc = " The set of semantics actions applicable to this node."] pub actions : FlutterSemanticsAction , # [doc = " The position at which the text selection originates."] pub text_selection_base : i32 , # [doc = " The position at which the text selection terminates."] pub text_selection_extent : i32 , # [doc = " The total number of scrollable children that contribute to semantics."] pub scroll_child_count : i32 , # [doc = " The index of the first visible semantic child of a scroll node."] pub scroll_index : i32 , # [doc = " The current scrolling position in logical pixels if the node is"] # [doc = " scrollable."] pub scroll_position : f64 , # [doc = " The maximum in-range value for `scrollPosition` if the node is scrollable."] pub scroll_extent_max : f64 , # [doc = " The minimum in-range value for `scrollPosition` if the node is scrollable."] pub scroll_extent_min : f64 , # [doc = " The elevation along the z-axis at which the rect of this semantics node is"] # [doc = " located above its parent."] pub elevation : f64 , # [doc = " Describes how much space the semantics node takes up along the z-axis."] pub thickness : f64 , # [doc = " A textual description of the node."] pub label : * const :: std :: os :: raw :: c_char , # [doc = " A brief description of the result of performing an action on the node."] pub hint : * const :: std :: os :: raw :: c_char , # [doc = " A textual description of the current value of the node."] pub value : * const :: std :: os :: raw :: c_char , # [doc = " A value that `value` will have after a kFlutterSemanticsActionIncrease`"] # [doc = " action has been performed."] pub increased_value : * const :: std :: os :: raw :: c_char , # [doc = " A value that `value` will have after a kFlutterSemanticsActionDecrease`"] # [doc = " action has been performed."] pub decreased_value : * const :: std :: os :: raw :: c_char , # [doc = " The reading direction for `label`, `value`, `hint`, `increasedValue`, and"] # [doc = " `decreasedValue`."] pub text_direction : FlutterTextDirection , # [doc = " The bounding box for this node in its coordinate system."] pub rect : FlutterRect , # [doc = " The transform from this node's coordinate system to its parent's"] # [doc = " coordinate system."] pub transform : FlutterTransformation , # [doc = " The number of children this node has."] pub child_count : size_t , # [doc = " Array of child node IDs in traversal order. Has length `child_count`."] pub children_in_traversal_order : * const i32 , # [doc = " Array of child node IDs in hit test order. Has length `child_count`."] pub children_in_hit_test_order : * const i32 , # [doc = " The number of custom accessibility action associated with this node."] pub custom_accessibility_actions_count : size_t , # [doc = " Array of `FlutterSemanticsCustomAction` IDs associated with this node."] # [doc = " Has length `custom_accessibility_actions_count`."] pub custom_accessibility_actions : * const i32 , # [doc = " Identifier of the platform view associated with this semantics node, or"] # [doc = " -1 if none."] pub platform_view_id : FlutterPlatformViewIdentifier , } # [test] fn bindgen_test_layout_FlutterSemanticsNode () { assert_eq ! (:: std :: mem :: size_of :: < FlutterSemanticsNode > () , 280usize , concat ! ("Size of: " , stringify ! (FlutterSemanticsNode))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterSemanticsNode > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterSemanticsNode))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_id () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . id) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (id))) ; } test_field_id () ; fn test_field_flags () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . flags) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (flags))) ; } test_field_flags () ; fn test_field_actions () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . actions) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (actions))) ; } test_field_actions () ; fn test_field_text_selection_base () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . text_selection_base) as usize - ptr as usize } , 20usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (text_selection_base))) ; } test_field_text_selection_base () ; fn test_field_text_selection_extent () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . text_selection_extent) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (text_selection_extent))) ; } test_field_text_selection_extent () ; fn test_field_scroll_child_count () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scroll_child_count) as usize - ptr as usize } , 28usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (scroll_child_count))) ; } test_field_scroll_child_count () ; fn test_field_scroll_index () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scroll_index) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (scroll_index))) ; } test_field_scroll_index () ; fn test_field_scroll_position () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scroll_position) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (scroll_position))) ; } test_field_scroll_position () ; fn test_field_scroll_extent_max () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scroll_extent_max) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (scroll_extent_max))) ; } test_field_scroll_extent_max () ; fn test_field_scroll_extent_min () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scroll_extent_min) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (scroll_extent_min))) ; } test_field_scroll_extent_min () ; fn test_field_elevation () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . elevation) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (elevation))) ; } test_field_elevation () ; fn test_field_thickness () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . thickness) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (thickness))) ; } test_field_thickness () ; fn test_field_label () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . label) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (label))) ; } test_field_label () ; fn test_field_hint () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . hint) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (hint))) ; } test_field_hint () ; fn test_field_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . value) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (value))) ; } test_field_value () ; fn test_field_increased_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . increased_value) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (increased_value))) ; } test_field_increased_value () ; fn test_field_decreased_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . decreased_value) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (decreased_value))) ; } test_field_decreased_value () ; fn test_field_text_direction () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . text_direction) as usize - ptr as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (text_direction))) ; } test_field_text_direction () ; fn test_field_rect () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . rect) as usize - ptr as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (rect))) ; } test_field_rect () ; fn test_field_transform () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . transform) as usize - ptr as usize } , 160usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (transform))) ; } test_field_transform () ; fn test_field_child_count () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . child_count) as usize - ptr as usize } , 232usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (child_count))) ; } test_field_child_count () ; fn test_field_children_in_traversal_order () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . children_in_traversal_order) as usize - ptr as usize } , 240usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (children_in_traversal_order))) ; } test_field_children_in_traversal_order () ; fn test_field_children_in_hit_test_order () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . children_in_hit_test_order) as usize - ptr as usize } , 248usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (children_in_hit_test_order))) ; } test_field_children_in_hit_test_order () ; fn test_field_custom_accessibility_actions_count () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . custom_accessibility_actions_count) as usize - ptr as usize } , 256usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (custom_accessibility_actions_count))) ; } test_field_custom_accessibility_actions_count () ; fn test_field_custom_accessibility_actions () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . custom_accessibility_actions) as usize - ptr as usize } , 264usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (custom_accessibility_actions))) ; } test_field_custom_accessibility_actions () ; fn test_field_platform_view_id () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . platform_view_id) as usize - ptr as usize } , 272usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (platform_view_id))) ; } test_field_platform_view_id () ; } extern "C" { # [doc = " `FlutterSemanticsCustomAction` ID used as a sentinel to signal the end of a"] # [doc = " batch of semantics custom action updates."] pub static kFlutterSemanticsCustomActionIdBatchEnd : i32 ; } # [doc = " A custom semantics action, or action override."] # [doc = ""] # [doc = " Custom actions can be registered by applications in order to provide"] # [doc = " semantic actions other than the standard actions available through the"] # [doc = " `FlutterSemanticsAction` enum."] # [doc = ""] # [doc = " Action overrides are custom actions that the application developer requests"] # [doc = " to be used in place of the standard actions in the `FlutterSemanticsAction`"] # [doc = " enum."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterSemanticsCustomAction { # [doc = " The size of the struct. Must be sizeof(FlutterSemanticsCustomAction)."] pub struct_size : size_t , # [doc = " The unique custom action or action override ID."] pub id : i32 , # [doc = " For overridden standard actions, corresponds to the"] # [doc = " `FlutterSemanticsAction` to override."] pub override_action : FlutterSemanticsAction , # [doc = " The user-readable name of this custom semantics action."] pub label : * const :: std :: os :: raw :: c_char , # [doc = " The hint description of this custom semantics action."] pub hint : * const :: std :: os :: raw :: c_char , } # [test] fn bindgen_test_layout_FlutterSemanticsCustomAction () { assert_eq ! (:: std :: mem :: size_of :: < FlutterSemanticsCustomAction > () , 32usize , concat ! ("Size of: " , stringify ! (FlutterSemanticsCustomAction))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterSemanticsCustomAction > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterSemanticsCustomAction))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsCustomAction > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsCustomAction) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_id () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsCustomAction > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . id) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsCustomAction) , "::" , stringify ! (id))) ; } test_field_id () ; fn test_field_override_action () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsCustomAction > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . override_action) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsCustomAction) , "::" , stringify ! (override_action))) ; } test_field_override_action () ; fn test_field_label () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsCustomAction > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . label) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsCustomAction) , "::" , stringify ! (label))) ; } test_field_label () ; fn test_field_hint () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsCustomAction > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . hint) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsCustomAction) , "::" , stringify ! (hint))) ; } test_field_hint () ; } pub type FlutterUpdateSemanticsNodeCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const FlutterSemanticsNode , arg2 : * mut :: std :: os :: raw :: c_void) > ; pub type FlutterUpdateSemanticsCustomActionCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const FlutterSemanticsCustomAction , arg2 : * mut :: std :: os :: raw :: c_void) > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _FlutterTaskRunner { _unused : [u8 ; 0] , } pub type FlutterTaskRunner = * mut _FlutterTaskRunner ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterTask { pub runner : FlutterTaskRunner , pub task : u64 , } # [test] fn bindgen_test_layout_FlutterTask () { assert_eq ! (:: std :: mem :: size_of :: < FlutterTask > () , 16usize , concat ! ("Size of: " , stringify ! (FlutterTask))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterTask > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterTask))) ; fn test_field_runner () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTask > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . runner) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterTask) , "::" , stringify ! (runner))) ; } test_field_runner () ; fn test_field_task () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTask > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . task) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterTask) , "::" , stringify ! (task))) ; } test_field_task () ; } pub type FlutterTaskRunnerPostTaskCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : FlutterTask , arg2 : u64 , arg3 : * mut :: std :: os :: raw :: c_void) > ; # [doc = " An interface used by the Flutter engine to execute tasks at the target time"] # [doc = " on a specified thread. There should be a 1-1 relationship between a thread"] # [doc = " and a task runner. It is undefined behavior to run a task on a thread that"] # [doc = " is not associated with its task runner."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterTaskRunnerDescription { # [doc = " The size of this struct. Must be sizeof(FlutterTaskRunnerDescription)."] pub struct_size : size_t , pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " May be called from any thread. Should return true if tasks posted on the"] # [doc = " calling thread will be run on that same thread."] # [doc = ""] # [doc = " @attention     This field is required."] pub runs_task_on_current_thread_callback : BoolCallback , # [doc = " May be called from any thread. The given task should be executed by the"] # [doc = " embedder on the thread associated with that task runner by calling"] # [doc = " `FlutterEngineRunTask` at the given target time. The system monotonic"] # [doc = " clock should be used for the target time. The target time is the absolute"] # [doc = " time from epoch (NOT a delta) at which the task must be returned back to"] # [doc = " the engine on the correct thread. If the embedder needs to calculate a"] # [doc = " delta, `FlutterEngineGetCurrentTime` may be called and the difference used"] # [doc = " as the delta."] # [doc = ""] # [doc = " @attention     This field is required."] pub post_task_callback : FlutterTaskRunnerPostTaskCallback , # [doc = " A unique identifier for the task runner. If multiple task runners service"] # [doc = " tasks on the same thread, their identifiers must match."] pub identifier : size_t , } # [test] fn bindgen_test_layout_FlutterTaskRunnerDescription () { assert_eq ! (:: std :: mem :: size_of :: < FlutterTaskRunnerDescription > () , 40usize , concat ! ("Size of: " , stringify ! (FlutterTaskRunnerDescription))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterTaskRunnerDescription > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterTaskRunnerDescription))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTaskRunnerDescription > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterTaskRunnerDescription) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTaskRunnerDescription > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterTaskRunnerDescription) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_runs_task_on_current_thread_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTaskRunnerDescription > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . runs_task_on_current_thread_callback) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterTaskRunnerDescription) , "::" , stringify ! (runs_task_on_current_thread_callback))) ; } test_field_runs_task_on_current_thread_callback () ; fn test_field_post_task_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTaskRunnerDescription > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . post_task_callback) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterTaskRunnerDescription) , "::" , stringify ! (post_task_callback))) ; } test_field_post_task_callback () ; fn test_field_identifier () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTaskRunnerDescription > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . identifier) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterTaskRunnerDescription) , "::" , stringify ! (identifier))) ; } test_field_identifier () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterCustomTaskRunners { # [doc = " The size of this struct. Must be sizeof(FlutterCustomTaskRunners)."] pub struct_size : size_t , # [doc = " Specify the task runner for the thread on which the `FlutterEngineRun`"] # [doc = " call is made. The same task runner description can be specified for both"] # [doc = " the render and platform task runners. This makes the Flutter engine use"] # [doc = " the same thread for both task runners."] pub platform_task_runner : * const FlutterTaskRunnerDescription , # [doc = " Specify the task runner for the thread on which the render tasks will be"] # [doc = " run. The same task runner description can be specified for both the render"] # [doc = " and platform task runners. This makes the Flutter engine use the same"] # [doc = " thread for both task runners."] pub render_task_runner : * const FlutterTaskRunnerDescription , # [doc = " Specify a callback that is used to set the thread priority for embedder"] # [doc = " task runners."] pub thread_priority_setter : :: std :: option :: Option < unsafe extern "C" fn (arg1 : FlutterThreadPriority) > , } # [test] fn bindgen_test_layout_FlutterCustomTaskRunners () { assert_eq ! (:: std :: mem :: size_of :: < FlutterCustomTaskRunners > () , 32usize , concat ! ("Size of: " , stringify ! (FlutterCustomTaskRunners))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterCustomTaskRunners > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterCustomTaskRunners))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCustomTaskRunners > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterCustomTaskRunners) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_platform_task_runner () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCustomTaskRunners > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . platform_task_runner) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterCustomTaskRunners) , "::" , stringify ! (platform_task_runner))) ; } test_field_platform_task_runner () ; fn test_field_render_task_runner () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCustomTaskRunners > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . render_task_runner) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterCustomTaskRunners) , "::" , stringify ! (render_task_runner))) ; } test_field_render_task_runner () ; fn test_field_thread_priority_setter () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCustomTaskRunners > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . thread_priority_setter) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterCustomTaskRunners) , "::" , stringify ! (thread_priority_setter))) ; } test_field_thread_priority_setter () ; } # [repr (C)] # [derive (Copy , Clone)] pub struct FlutterOpenGLBackingStore { # [doc = " The type of the OpenGL backing store. Currently, it can either be a"] # [doc = " texture or a framebuffer."] pub type_ : FlutterOpenGLTargetType , pub __bindgen_anon_1 : FlutterOpenGLBackingStore__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union FlutterOpenGLBackingStore__bindgen_ty_1 { # [doc = " A texture for Flutter to render into."] pub texture : FlutterOpenGLTexture , # [doc = " A framebuffer for Flutter to render into. The embedder must ensure that"] # [doc = " the framebuffer is complete."] pub framebuffer : FlutterOpenGLFramebuffer , } # [test] fn bindgen_test_layout_FlutterOpenGLBackingStore__bindgen_ty_1 () { assert_eq ! (:: std :: mem :: size_of :: < FlutterOpenGLBackingStore__bindgen_ty_1 > () , 48usize , concat ! ("Size of: " , stringify ! (FlutterOpenGLBackingStore__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterOpenGLBackingStore__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterOpenGLBackingStore__bindgen_ty_1))) ; fn test_field_texture () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLBackingStore__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . texture) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLBackingStore__bindgen_ty_1) , "::" , stringify ! (texture))) ; } test_field_texture () ; fn test_field_framebuffer () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLBackingStore__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . framebuffer) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLBackingStore__bindgen_ty_1) , "::" , stringify ! (framebuffer))) ; } test_field_framebuffer () ; } # [test] fn bindgen_test_layout_FlutterOpenGLBackingStore () { assert_eq ! (:: std :: mem :: size_of :: < FlutterOpenGLBackingStore > () , 56usize , concat ! ("Size of: " , stringify ! (FlutterOpenGLBackingStore))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterOpenGLBackingStore > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterOpenGLBackingStore))) ; fn test_field_type () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . type_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLBackingStore) , "::" , stringify ! (type_))) ; } test_field_type () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterSoftwareBackingStore { # [doc = " A pointer to the raw bytes of the allocation described by this software"] # [doc = " backing store."] pub allocation : * const :: std :: os :: raw :: c_void , # [doc = " The number of bytes in a single row of the allocation."] pub row_bytes : size_t , # [doc = " The number of rows in the allocation."] pub height : size_t , # [doc = " A baton that is not interpreted by the engine in any way. It will be given"] # [doc = " back to the embedder in the destruction callback below. Embedder resources"] # [doc = " may be associated with this baton."] pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " The callback invoked by the engine when it no longer needs this backing"] # [doc = " store."] pub destruction_callback : VoidCallback , } # [test] fn bindgen_test_layout_FlutterSoftwareBackingStore () { assert_eq ! (:: std :: mem :: size_of :: < FlutterSoftwareBackingStore > () , 40usize , concat ! ("Size of: " , stringify ! (FlutterSoftwareBackingStore))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterSoftwareBackingStore > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterSoftwareBackingStore))) ; fn test_field_allocation () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSoftwareBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . allocation) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterSoftwareBackingStore) , "::" , stringify ! (allocation))) ; } test_field_allocation () ; fn test_field_row_bytes () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSoftwareBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . row_bytes) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterSoftwareBackingStore) , "::" , stringify ! (row_bytes))) ; } test_field_row_bytes () ; fn test_field_height () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSoftwareBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . height) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterSoftwareBackingStore) , "::" , stringify ! (height))) ; } test_field_height () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSoftwareBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterSoftwareBackingStore) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_destruction_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSoftwareBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . destruction_callback) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterSoftwareBackingStore) , "::" , stringify ! (destruction_callback))) ; } test_field_destruction_callback () ; } # [repr (C)] # [derive (Copy , Clone)] pub struct FlutterMetalBackingStore { # [doc = " The size of this struct. Must be sizeof(FlutterMetalBackingStore)."] pub struct_size : size_t , pub __bindgen_anon_1 : FlutterMetalBackingStore__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union FlutterMetalBackingStore__bindgen_ty_1 { pub texture : FlutterMetalTexture , } # [test] fn bindgen_test_layout_FlutterMetalBackingStore__bindgen_ty_1 () { assert_eq ! (:: std :: mem :: size_of :: < FlutterMetalBackingStore__bindgen_ty_1 > () , 40usize , concat ! ("Size of: " , stringify ! (FlutterMetalBackingStore__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterMetalBackingStore__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterMetalBackingStore__bindgen_ty_1))) ; fn test_field_texture () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalBackingStore__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . texture) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalBackingStore__bindgen_ty_1) , "::" , stringify ! (texture))) ; } test_field_texture () ; } # [test] fn bindgen_test_layout_FlutterMetalBackingStore () { assert_eq ! (:: std :: mem :: size_of :: < FlutterMetalBackingStore > () , 48usize , concat ! ("Size of: " , stringify ! (FlutterMetalBackingStore))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterMetalBackingStore > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterMetalBackingStore))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalBackingStore) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterVulkanBackingStore { # [doc = " The size of this struct. Must be sizeof(FlutterVulkanBackingStore)."] pub struct_size : size_t , # [doc = " The image that the layer will be rendered to. This image must already be"] # [doc = " available for the engine to bind for writing when it's given to the engine"] # [doc = " via the backing store creation callback. The engine will perform a host"] # [doc = " sync for all layers prior to calling the compositor present callback, and"] # [doc = " so the written layer images can be freely bound by the embedder without"] # [doc = " any additional synchronization."] pub image : * const FlutterVulkanImage , # [doc = " A baton that is not interpreted by the engine in any way. It will be given"] # [doc = " back to the embedder in the destruction callback below. Embedder resources"] # [doc = " may be associated with this baton."] pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " The callback invoked by the engine when it no longer needs this backing"] # [doc = " store."] pub destruction_callback : VoidCallback , } # [test] fn bindgen_test_layout_FlutterVulkanBackingStore () { assert_eq ! (:: std :: mem :: size_of :: < FlutterVulkanBackingStore > () , 32usize , concat ! ("Size of: " , stringify ! (FlutterVulkanBackingStore))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterVulkanBackingStore > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterVulkanBackingStore))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanBackingStore) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_image () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . image) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanBackingStore) , "::" , stringify ! (image))) ; } test_field_image () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanBackingStore) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_destruction_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . destruction_callback) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanBackingStore) , "::" , stringify ! (destruction_callback))) ; } test_field_destruction_callback () ; } # [doc = " Indicates that the Flutter application requested that an opacity be"] # [doc = " applied to the platform view."] pub const FlutterPlatformViewMutationType_kFlutterPlatformViewMutationTypeOpacity : FlutterPlatformViewMutationType = 0 ; # [doc = " Indicates that the Flutter application requested that the platform view be"] # [doc = " clipped using a rectangle."] pub const FlutterPlatformViewMutationType_kFlutterPlatformViewMutationTypeClipRect : FlutterPlatformViewMutationType = 1 ; # [doc = " Indicates that the Flutter application requested that the platform view be"] # [doc = " clipped using a rounded rectangle."] pub const FlutterPlatformViewMutationType_kFlutterPlatformViewMutationTypeClipRoundedRect : FlutterPlatformViewMutationType = 2 ; # [doc = " Indicates that the Flutter application requested that the platform view be"] # [doc = " transformed before composition."] pub const FlutterPlatformViewMutationType_kFlutterPlatformViewMutationTypeTransformation : FlutterPlatformViewMutationType = 3 ; pub type FlutterPlatformViewMutationType = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct FlutterPlatformViewMutation { # [doc = " The type of the mutation described by the subsequent union."] pub type_ : FlutterPlatformViewMutationType , pub __bindgen_anon_1 : FlutterPlatformViewMutation__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union FlutterPlatformViewMutation__bindgen_ty_1 { pub opacity : f64 , pub clip_rect : FlutterRect , pub clip_rounded_rect : FlutterRoundedRect , pub transformation : FlutterTransformation , } # [test] fn bindgen_test_layout_FlutterPlatformViewMutation__bindgen_ty_1 () { assert_eq ! (:: std :: mem :: size_of :: < FlutterPlatformViewMutation__bindgen_ty_1 > () , 96usize , concat ! ("Size of: " , stringify ! (FlutterPlatformViewMutation__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterPlatformViewMutation__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterPlatformViewMutation__bindgen_ty_1))) ; fn test_field_opacity () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformViewMutation__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . opacity) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformViewMutation__bindgen_ty_1) , "::" , stringify ! (opacity))) ; } test_field_opacity () ; fn test_field_clip_rect () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformViewMutation__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . clip_rect) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformViewMutation__bindgen_ty_1) , "::" , stringify ! (clip_rect))) ; } test_field_clip_rect () ; fn test_field_clip_rounded_rect () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformViewMutation__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . clip_rounded_rect) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformViewMutation__bindgen_ty_1) , "::" , stringify ! (clip_rounded_rect))) ; } test_field_clip_rounded_rect () ; fn test_field_transformation () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformViewMutation__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . transformation) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformViewMutation__bindgen_ty_1) , "::" , stringify ! (transformation))) ; } test_field_transformation () ; } # [test] fn bindgen_test_layout_FlutterPlatformViewMutation () { assert_eq ! (:: std :: mem :: size_of :: < FlutterPlatformViewMutation > () , 104usize , concat ! ("Size of: " , stringify ! (FlutterPlatformViewMutation))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterPlatformViewMutation > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterPlatformViewMutation))) ; fn test_field_type () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformViewMutation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . type_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformViewMutation) , "::" , stringify ! (type_))) ; } test_field_type () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterPlatformView { # [doc = " The size of this struct. Must be sizeof(FlutterPlatformView)."] pub struct_size : size_t , # [doc = " The identifier of this platform view. This identifier is specified by the"] # [doc = " application when a platform view is added to the scene via the"] # [doc = " `SceneBuilder.addPlatformView` call."] pub identifier : FlutterPlatformViewIdentifier , # [doc = " The number of mutations to be applied to the platform view by the embedder"] # [doc = " before on-screen composition."] pub mutations_count : size_t , # [doc = " The mutations to be applied by this platform view before it is composited"] # [doc = " on-screen. The Flutter application may transform the platform view but"] # [doc = " these transformations cannot be affected by the Flutter compositor because"] # [doc = " it does not render platform views. Since the embedder is responsible for"] # [doc = " composition of these views, it is also the embedder's responsibility to"] # [doc = " affect the appropriate transformation."] # [doc = ""] # [doc = " The mutations must be applied in order. The mutations done in the"] # [doc = " collection don't take into account the device pixel ratio or the root"] # [doc = " surface transformation. If these exist, the first mutation in the list"] # [doc = " will be a transformation mutation to make sure subsequent mutations are in"] # [doc = " the correct coordinate space."] pub mutations : * mut * const FlutterPlatformViewMutation , } # [test] fn bindgen_test_layout_FlutterPlatformView () { assert_eq ! (:: std :: mem :: size_of :: < FlutterPlatformView > () , 32usize , concat ! ("Size of: " , stringify ! (FlutterPlatformView))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterPlatformView > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterPlatformView))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformView > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformView) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_identifier () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformView > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . identifier) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformView) , "::" , stringify ! (identifier))) ; } test_field_identifier () ; fn test_field_mutations_count () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformView > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . mutations_count) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformView) , "::" , stringify ! (mutations_count))) ; } test_field_mutations_count () ; fn test_field_mutations () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformView > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . mutations) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformView) , "::" , stringify ! (mutations))) ; } test_field_mutations () ; } # [doc = " Specifies an OpenGL backing store. Can either be an OpenGL texture or"] # [doc = " framebuffer."] pub const FlutterBackingStoreType_kFlutterBackingStoreTypeOpenGL : FlutterBackingStoreType = 0 ; # [doc = " Specified an software allocation for Flutter to render into using the CPU."] pub const FlutterBackingStoreType_kFlutterBackingStoreTypeSoftware : FlutterBackingStoreType = 1 ; # [doc = " Specifies a Metal backing store. This is backed by a Metal texture."] pub const FlutterBackingStoreType_kFlutterBackingStoreTypeMetal : FlutterBackingStoreType = 2 ; # [doc = " Specifies a Vulkan backing store. This is backed by a Vulkan VkImage."] pub const FlutterBackingStoreType_kFlutterBackingStoreTypeVulkan : FlutterBackingStoreType = 3 ; pub type FlutterBackingStoreType = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct FlutterBackingStore { # [doc = " The size of this struct. Must be sizeof(FlutterBackingStore)."] pub struct_size : size_t , # [doc = " A baton that is not interpreted by the engine in any way. The embedder may"] # [doc = " use this to associate resources that are tied to the lifecycle of the"] # [doc = " `FlutterBackingStore`."] pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " Specifies the type of backing store."] pub type_ : FlutterBackingStoreType , # [doc = " Indicates if this backing store was updated since the last time it was"] # [doc = " associated with a presented layer."] pub did_update : bool , pub __bindgen_anon_1 : FlutterBackingStore__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union FlutterBackingStore__bindgen_ty_1 { # [doc = " The description of the OpenGL backing store."] pub open_gl : FlutterOpenGLBackingStore , # [doc = " The description of the software backing store."] pub software : FlutterSoftwareBackingStore , pub metal : FlutterMetalBackingStore , pub vulkan : FlutterVulkanBackingStore , } # [test] fn bindgen_test_layout_FlutterBackingStore__bindgen_ty_1 () { assert_eq ! (:: std :: mem :: size_of :: < FlutterBackingStore__bindgen_ty_1 > () , 56usize , concat ! ("Size of: " , stringify ! (FlutterBackingStore__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterBackingStore__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterBackingStore__bindgen_ty_1))) ; fn test_field_open_gl () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStore__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . open_gl) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStore__bindgen_ty_1) , "::" , stringify ! (open_gl))) ; } test_field_open_gl () ; fn test_field_software () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStore__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . software) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStore__bindgen_ty_1) , "::" , stringify ! (software))) ; } test_field_software () ; fn test_field_metal () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStore__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . metal) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStore__bindgen_ty_1) , "::" , stringify ! (metal))) ; } test_field_metal () ; fn test_field_vulkan () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStore__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . vulkan) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStore__bindgen_ty_1) , "::" , stringify ! (vulkan))) ; } test_field_vulkan () ; } # [test] fn bindgen_test_layout_FlutterBackingStore () { assert_eq ! (:: std :: mem :: size_of :: < FlutterBackingStore > () , 80usize , concat ! ("Size of: " , stringify ! (FlutterBackingStore))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterBackingStore > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterBackingStore))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStore) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStore) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_type () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . type_) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStore) , "::" , stringify ! (type_))) ; } test_field_type () ; fn test_field_did_update () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . did_update) as usize - ptr as usize } , 20usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStore) , "::" , stringify ! (did_update))) ; } test_field_did_update () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterBackingStoreConfig { # [doc = " The size of this struct. Must be sizeof(FlutterBackingStoreConfig)."] pub struct_size : size_t , # [doc = " The size of the render target the engine expects to render into."] pub size : FlutterSize , } # [test] fn bindgen_test_layout_FlutterBackingStoreConfig () { assert_eq ! (:: std :: mem :: size_of :: < FlutterBackingStoreConfig > () , 24usize , concat ! ("Size of: " , stringify ! (FlutterBackingStoreConfig))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterBackingStoreConfig > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterBackingStoreConfig))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStoreConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStoreConfig) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStoreConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStoreConfig) , "::" , stringify ! (size))) ; } test_field_size () ; } # [doc = " Indicates that the contents of this layer are rendered by Flutter into a"] # [doc = " backing store."] pub const FlutterLayerContentType_kFlutterLayerContentTypeBackingStore : FlutterLayerContentType = 0 ; # [doc = " Indicates that the contents of this layer are determined by the embedder."] pub const FlutterLayerContentType_kFlutterLayerContentTypePlatformView : FlutterLayerContentType = 1 ; pub type FlutterLayerContentType = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct FlutterLayer { # [doc = " This size of this struct. Must be sizeof(FlutterLayer)."] pub struct_size : size_t , # [doc = " Each layer displays contents in one way or another. The type indicates"] # [doc = " whether those contents are specified by Flutter or the embedder."] pub type_ : FlutterLayerContentType , pub __bindgen_anon_1 : FlutterLayer__bindgen_ty_1 , # [doc = " The offset of this layer (in physical pixels) relative to the top left of"] # [doc = " the root surface used by the engine."] pub offset : FlutterPoint , # [doc = " The size of the layer (in physical pixels)."] pub size : FlutterSize , } # [repr (C)] # [derive (Copy , Clone)] pub union FlutterLayer__bindgen_ty_1 { # [doc = " Indicates that the contents of this layer are rendered by Flutter into a"] # [doc = " backing store."] pub backing_store : * const FlutterBackingStore , # [doc = " Indicates that the contents of this layer are determined by the"] # [doc = " embedder."] pub platform_view : * const FlutterPlatformView , } # [test] fn bindgen_test_layout_FlutterLayer__bindgen_ty_1 () { assert_eq ! (:: std :: mem :: size_of :: < FlutterLayer__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (FlutterLayer__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterLayer__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterLayer__bindgen_ty_1))) ; fn test_field_backing_store () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLayer__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . backing_store) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterLayer__bindgen_ty_1) , "::" , stringify ! (backing_store))) ; } test_field_backing_store () ; fn test_field_platform_view () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLayer__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . platform_view) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterLayer__bindgen_ty_1) , "::" , stringify ! (platform_view))) ; } test_field_platform_view () ; } # [test] fn bindgen_test_layout_FlutterLayer () { assert_eq ! (:: std :: mem :: size_of :: < FlutterLayer > () , 56usize , concat ! ("Size of: " , stringify ! (FlutterLayer))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterLayer > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterLayer))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLayer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterLayer) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_type () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLayer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . type_) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterLayer) , "::" , stringify ! (type_))) ; } test_field_type () ; fn test_field_offset () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLayer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . offset) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterLayer) , "::" , stringify ! (offset))) ; } test_field_offset () ; fn test_field_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLayer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . size) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterLayer) , "::" , stringify ! (size))) ; } test_field_size () ; } pub type FlutterBackingStoreCreateCallback = :: std :: option :: Option < unsafe extern "C" fn (config : * const FlutterBackingStoreConfig , backing_store_out : * mut FlutterBackingStore , user_data : * mut :: std :: os :: raw :: c_void) -> bool > ; pub type FlutterBackingStoreCollectCallback = :: std :: option :: Option < unsafe extern "C" fn (renderer : * const FlutterBackingStore , user_data : * mut :: std :: os :: raw :: c_void) -> bool > ; pub type FlutterLayersPresentCallback = :: std :: option :: Option < unsafe extern "C" fn (layers : * mut * const FlutterLayer , layers_count : size_t , user_data : * mut :: std :: os :: raw :: c_void) -> bool > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterCompositor { # [doc = " This size of this struct. Must be sizeof(FlutterCompositor)."] pub struct_size : size_t , # [doc = " A baton that in not interpreted by the engine in any way. If it passed"] # [doc = " back to the embedder in `FlutterCompositor.create_backing_store_callback`,"] # [doc = " `FlutterCompositor.collect_backing_store_callback` and"] # [doc = " `FlutterCompositor.present_layers_callback`"] pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " A callback invoked by the engine to obtain a backing store for a specific"] # [doc = " `FlutterLayer`."] # [doc = ""] # [doc = " On ABI stability: Callers must take care to restrict access within"] # [doc = " `FlutterBackingStore::struct_size` when specifying a new backing store to"] # [doc = " the engine. This only matters if the embedder expects to be used with"] # [doc = " engines older than the version whose headers it used during compilation."] pub create_backing_store_callback : FlutterBackingStoreCreateCallback , # [doc = " A callback invoked by the engine to release the backing store. The"] # [doc = " embedder may collect any resources associated with the backing store."] pub collect_backing_store_callback : FlutterBackingStoreCollectCallback , # [doc = " Callback invoked by the engine to composite the contents of each layer"] # [doc = " onto the screen."] pub present_layers_callback : FlutterLayersPresentCallback , # [doc = " Avoid caching backing stores provided by this compositor."] pub avoid_backing_store_cache : bool , } # [test] fn bindgen_test_layout_FlutterCompositor () { assert_eq ! (:: std :: mem :: size_of :: < FlutterCompositor > () , 48usize , concat ! ("Size of: " , stringify ! (FlutterCompositor))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterCompositor > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterCompositor))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCompositor > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterCompositor) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCompositor > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterCompositor) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_create_backing_store_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCompositor > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . create_backing_store_callback) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterCompositor) , "::" , stringify ! (create_backing_store_callback))) ; } test_field_create_backing_store_callback () ; fn test_field_collect_backing_store_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCompositor > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . collect_backing_store_callback) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterCompositor) , "::" , stringify ! (collect_backing_store_callback))) ; } test_field_collect_backing_store_callback () ; fn test_field_present_layers_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCompositor > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . present_layers_callback) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterCompositor) , "::" , stringify ! (present_layers_callback))) ; } test_field_present_layers_callback () ; fn test_field_avoid_backing_store_cache () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCompositor > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . avoid_backing_store_cache) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterCompositor) , "::" , stringify ! (avoid_backing_store_cache))) ; } test_field_avoid_backing_store_cache () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterLocale { # [doc = " This size of this struct. Must be sizeof(FlutterLocale)."] pub struct_size : size_t , # [doc = " The language code of the locale. For example, \"en\". This is a required"] # [doc = " field. The string must be null terminated. It may be collected after the"] # [doc = " call to `FlutterEngineUpdateLocales`."] pub language_code : * const :: std :: os :: raw :: c_char , # [doc = " The country code of the locale. For example, \"US\". This is a an optional"] # [doc = " field. The string must be null terminated if present. It may be collected"] # [doc = " after the call to `FlutterEngineUpdateLocales`. If not present, a"] # [doc = " `nullptr` may be specified."] pub country_code : * const :: std :: os :: raw :: c_char , # [doc = " The script code of the locale. This is a an optional field. The string"] # [doc = " must be null terminated if present. It may be collected after the call to"] # [doc = " `FlutterEngineUpdateLocales`. If not present, a `nullptr` may be"] # [doc = " specified."] pub script_code : * const :: std :: os :: raw :: c_char , # [doc = " The variant code of the locale. This is a an optional field. The string"] # [doc = " must be null terminated if present. It may be collected after the call to"] # [doc = " `FlutterEngineUpdateLocales`. If not present, a `nullptr` may be"] # [doc = " specified."] pub variant_code : * const :: std :: os :: raw :: c_char , } # [test] fn bindgen_test_layout_FlutterLocale () { assert_eq ! (:: std :: mem :: size_of :: < FlutterLocale > () , 40usize , concat ! ("Size of: " , stringify ! (FlutterLocale))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterLocale > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterLocale))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLocale > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterLocale) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_language_code () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLocale > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . language_code) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterLocale) , "::" , stringify ! (language_code))) ; } test_field_language_code () ; fn test_field_country_code () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLocale > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . country_code) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterLocale) , "::" , stringify ! (country_code))) ; } test_field_country_code () ; fn test_field_script_code () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLocale > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . script_code) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterLocale) , "::" , stringify ! (script_code))) ; } test_field_script_code () ; fn test_field_variant_code () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLocale > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . variant_code) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterLocale) , "::" , stringify ! (variant_code))) ; } test_field_variant_code () ; } # [doc = " Callback that returns the system locale."] # [doc = ""] # [doc = " Embedders that implement this callback should return the `FlutterLocale`"] # [doc = " from the `supported_locales` list that most closely matches the"] # [doc = " user/device's preferred locale."] # [doc = ""] # [doc = " This callback does not currently provide the user_data baton."] # [doc = " https://github.com/flutter/flutter/issues/79826"] pub type FlutterComputePlatformResolvedLocaleCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut * const FlutterLocale , arg2 : size_t) -> * const FlutterLocale > ; # [doc = " Display refers to a graphics hardware system consisting of a framebuffer,"] # [doc = " typically a monitor or a screen. This ID is unique per display and is"] # [doc = " stable until the Flutter application restarts."] pub type FlutterEngineDisplayId = u64 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterEngineDisplay { # [doc = " This size of this struct. Must be sizeof(FlutterDisplay)."] pub struct_size : size_t , pub display_id : FlutterEngineDisplayId , # [doc = " This is set to true if the embedder only has one display. In cases where"] # [doc = " this is set to true, the value of display_id is ignored. In cases where"] # [doc = " this is not set to true, it is expected that a valid display_id be"] # [doc = " provided."] pub single_display : bool , # [doc = " This represents the refresh period in frames per second. This value may be"] # [doc = " zero if the device is not running or unavailable or unknown."] pub refresh_rate : f64 , } # [test] fn bindgen_test_layout_FlutterEngineDisplay () { assert_eq ! (:: std :: mem :: size_of :: < FlutterEngineDisplay > () , 32usize , concat ! ("Size of: " , stringify ! (FlutterEngineDisplay))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterEngineDisplay > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterEngineDisplay))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDisplay > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDisplay) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_display_id () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDisplay > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . display_id) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDisplay) , "::" , stringify ! (display_id))) ; } test_field_display_id () ; fn test_field_single_display () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDisplay > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . single_display) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDisplay) , "::" , stringify ! (single_display))) ; } test_field_single_display () ; fn test_field_refresh_rate () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDisplay > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . refresh_rate) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDisplay) , "::" , stringify ! (refresh_rate))) ; } test_field_refresh_rate () ; } # [doc = " `FlutterEngineDisplay`s that were active during start-up. A display is"] # [doc = " considered active if:"] # [doc = "    1. The frame buffer hardware is connected."] # [doc = "    2. The display is drawable, e.g. it isn't being mirrored from another"] # [doc = "    connected display or sleeping."] pub const FlutterEngineDisplaysUpdateType_kFlutterEngineDisplaysUpdateTypeStartup : FlutterEngineDisplaysUpdateType = 0 ; # [doc = " `FlutterEngineDisplay`s that were active during start-up. A display is"] # [doc = " considered active if:"] # [doc = "    1. The frame buffer hardware is connected."] # [doc = "    2. The display is drawable, e.g. it isn't being mirrored from another"] # [doc = "    connected display or sleeping."] pub const FlutterEngineDisplaysUpdateType_kFlutterEngineDisplaysUpdateTypeCount : FlutterEngineDisplaysUpdateType = 1 ; # [doc = " The update type parameter that is passed to"] # [doc = " `FlutterEngineNotifyDisplayUpdate`."] pub type FlutterEngineDisplaysUpdateType = :: std :: os :: raw :: c_uint ; pub type FlutterEngineDartPort = i64 ; pub const FlutterEngineDartObjectType_kFlutterEngineDartObjectTypeNull : FlutterEngineDartObjectType = 0 ; pub const FlutterEngineDartObjectType_kFlutterEngineDartObjectTypeBool : FlutterEngineDartObjectType = 1 ; pub const FlutterEngineDartObjectType_kFlutterEngineDartObjectTypeInt32 : FlutterEngineDartObjectType = 2 ; pub const FlutterEngineDartObjectType_kFlutterEngineDartObjectTypeInt64 : FlutterEngineDartObjectType = 3 ; pub const FlutterEngineDartObjectType_kFlutterEngineDartObjectTypeDouble : FlutterEngineDartObjectType = 4 ; pub const FlutterEngineDartObjectType_kFlutterEngineDartObjectTypeString : FlutterEngineDartObjectType = 5 ; # [doc = " The object will be made available to Dart code as an instance of"] # [doc = " Uint8List."] pub const FlutterEngineDartObjectType_kFlutterEngineDartObjectTypeBuffer : FlutterEngineDartObjectType = 6 ; pub type FlutterEngineDartObjectType = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterEngineDartBuffer { # [doc = " The size of this struct. Must be sizeof(FlutterEngineDartBuffer)."] pub struct_size : size_t , # [doc = " An opaque baton passed back to the embedder when the"] # [doc = " buffer_collect_callback is invoked. The engine does not interpret this"] # [doc = " field in any way."] pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " This is an optional field."] # [doc = ""] # [doc = " When specified, the engine will assume that the buffer is owned by the"] # [doc = " embedder. When the data is no longer needed by any isolate, this callback"] # [doc = " will be made on an internal engine managed thread. The embedder is free to"] # [doc = " collect the buffer here. When this field is specified, it is the embedders"] # [doc = " responsibility to keep the buffer alive and not modify it till this"] # [doc = " callback is invoked by the engine. The user data specified in the callback"] # [doc = " is the value of `user_data` field in this struct."] # [doc = ""] # [doc = " When NOT specified, the VM creates an internal copy of the buffer. The"] # [doc = " caller is free to modify the buffer as necessary or collect it immediately"] # [doc = " after the call to `FlutterEnginePostDartObject`."] # [doc = ""] # [doc = " @attention      The buffer_collect_callback is will only be invoked by the"] # [doc = "                 engine when the `FlutterEnginePostDartObject` method"] # [doc = "                 returns kSuccess. In case of non-successful calls to this"] # [doc = "                 method, it is the embedders responsibility to collect the"] # [doc = "                 buffer."] pub buffer_collect_callback : VoidCallback , # [doc = " A pointer to the bytes of the buffer. When the buffer is owned by the"] # [doc = " embedder (by specifying the `buffer_collect_callback`), Dart code may"] # [doc = " modify that embedder owned buffer. For this reason, it is important that"] # [doc = " this buffer not have page protections that restrict writing to this"] # [doc = " buffer."] pub buffer : * mut u8 , # [doc = " The size of the buffer."] pub buffer_size : size_t , } # [test] fn bindgen_test_layout_FlutterEngineDartBuffer () { assert_eq ! (:: std :: mem :: size_of :: < FlutterEngineDartBuffer > () , 40usize , concat ! ("Size of: " , stringify ! (FlutterEngineDartBuffer))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterEngineDartBuffer > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterEngineDartBuffer))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartBuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartBuffer) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartBuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartBuffer) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_buffer_collect_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartBuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . buffer_collect_callback) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartBuffer) , "::" , stringify ! (buffer_collect_callback))) ; } test_field_buffer_collect_callback () ; fn test_field_buffer () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartBuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . buffer) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartBuffer) , "::" , stringify ! (buffer))) ; } test_field_buffer () ; fn test_field_buffer_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartBuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . buffer_size) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartBuffer) , "::" , stringify ! (buffer_size))) ; } test_field_buffer_size () ; } # [doc = " This struct specifies the native representation of a Dart object that can be"] # [doc = " sent via a send port to any isolate in the VM that has the corresponding"] # [doc = " receive port."] # [doc = ""] # [doc = " All fields in this struct are copied out in the call to"] # [doc = " `FlutterEnginePostDartObject` and the caller is free to reuse or collect"] # [doc = " this struct after that call."] # [repr (C)] # [derive (Copy , Clone)] pub struct FlutterEngineDartObject { pub type_ : FlutterEngineDartObjectType , pub __bindgen_anon_1 : FlutterEngineDartObject__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union FlutterEngineDartObject__bindgen_ty_1 { pub bool_value : bool , pub int32_value : i32 , pub int64_value : i64 , pub double_value : f64 , # [doc = " A null terminated string. This string will be copied by the VM in the"] # [doc = " call to `FlutterEnginePostDartObject` and must be collected by the"] # [doc = " embedder after that call is made."] pub string_value : * const :: std :: os :: raw :: c_char , pub buffer_value : * const FlutterEngineDartBuffer , } # [test] fn bindgen_test_layout_FlutterEngineDartObject__bindgen_ty_1 () { assert_eq ! (:: std :: mem :: size_of :: < FlutterEngineDartObject__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (FlutterEngineDartObject__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterEngineDartObject__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterEngineDartObject__bindgen_ty_1))) ; fn test_field_bool_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartObject__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . bool_value) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartObject__bindgen_ty_1) , "::" , stringify ! (bool_value))) ; } test_field_bool_value () ; fn test_field_int32_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartObject__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . int32_value) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartObject__bindgen_ty_1) , "::" , stringify ! (int32_value))) ; } test_field_int32_value () ; fn test_field_int64_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartObject__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . int64_value) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartObject__bindgen_ty_1) , "::" , stringify ! (int64_value))) ; } test_field_int64_value () ; fn test_field_double_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartObject__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . double_value) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartObject__bindgen_ty_1) , "::" , stringify ! (double_value))) ; } test_field_double_value () ; fn test_field_string_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartObject__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . string_value) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartObject__bindgen_ty_1) , "::" , stringify ! (string_value))) ; } test_field_string_value () ; fn test_field_buffer_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartObject__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . buffer_value) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartObject__bindgen_ty_1) , "::" , stringify ! (buffer_value))) ; } test_field_buffer_value () ; } # [test] fn bindgen_test_layout_FlutterEngineDartObject () { assert_eq ! (:: std :: mem :: size_of :: < FlutterEngineDartObject > () , 16usize , concat ! ("Size of: " , stringify ! (FlutterEngineDartObject))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterEngineDartObject > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterEngineDartObject))) ; fn test_field_type () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartObject > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . type_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartObject) , "::" , stringify ! (type_))) ; } test_field_type () ; } # [doc = " The Flutter Engine considers the thread on which the FlutterEngineRun call"] # [doc = " is made to be the platform thread. There is only one such thread per"] # [doc = " engine instance."] pub const FlutterNativeThreadType_kFlutterNativeThreadTypePlatform : FlutterNativeThreadType = 0 ; # [doc = " This is the thread the Flutter Engine uses to execute rendering commands"] # [doc = " based on the selected client rendering API. There is only one such thread"] # [doc = " per engine instance."] pub const FlutterNativeThreadType_kFlutterNativeThreadTypeRender : FlutterNativeThreadType = 1 ; # [doc = " This is a dedicated thread on which the root Dart isolate is serviced."] # [doc = " There is only one such thread per engine instance."] pub const FlutterNativeThreadType_kFlutterNativeThreadTypeUI : FlutterNativeThreadType = 2 ; # [doc = " Multiple threads are used by the Flutter engine to perform long running"] # [doc = " background tasks."] pub const FlutterNativeThreadType_kFlutterNativeThreadTypeWorker : FlutterNativeThreadType = 3 ; # [doc = " This enum allows embedders to determine the type of the engine thread in the"] # [doc = " FlutterNativeThreadCallback. Based on the thread type, the embedder may be"] # [doc = " able to tweak the thread priorities for optimum performance."] pub type FlutterNativeThreadType = :: std :: os :: raw :: c_uint ; # [doc = " A callback made by the engine in response to"] # [doc = " `FlutterEnginePostCallbackOnAllNativeThreads` on all internal thread."] pub type FlutterNativeThreadCallback = :: std :: option :: Option < unsafe extern "C" fn (type_ : FlutterNativeThreadType , user_data : * mut :: std :: os :: raw :: c_void) > ; pub const FlutterEngineAOTDataSourceType_kFlutterEngineAOTDataSourceTypeElfPath : FlutterEngineAOTDataSourceType = 0 ; # [doc = " AOT data source type."] pub type FlutterEngineAOTDataSourceType = :: std :: os :: raw :: c_uint ; # [doc = " This struct specifies one of the various locations the engine can look for"] # [doc = " AOT data sources."] # [repr (C)] # [derive (Copy , Clone)] pub struct FlutterEngineAOTDataSource { pub type_ : FlutterEngineAOTDataSourceType , pub __bindgen_anon_1 : FlutterEngineAOTDataSource__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union FlutterEngineAOTDataSource__bindgen_ty_1 { # [doc = " Absolute path to an ELF library file."] pub elf_path : * const :: std :: os :: raw :: c_char , } # [test] fn bindgen_test_layout_FlutterEngineAOTDataSource__bindgen_ty_1 () { assert_eq ! (:: std :: mem :: size_of :: < FlutterEngineAOTDataSource__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (FlutterEngineAOTDataSource__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterEngineAOTDataSource__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterEngineAOTDataSource__bindgen_ty_1))) ; fn test_field_elf_path () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineAOTDataSource__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . elf_path) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineAOTDataSource__bindgen_ty_1) , "::" , stringify ! (elf_path))) ; } test_field_elf_path () ; } # [test] fn bindgen_test_layout_FlutterEngineAOTDataSource () { assert_eq ! (:: std :: mem :: size_of :: < FlutterEngineAOTDataSource > () , 16usize , concat ! ("Size of: " , stringify ! (FlutterEngineAOTDataSource))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterEngineAOTDataSource > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterEngineAOTDataSource))) ; fn test_field_type () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineAOTDataSource > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . type_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineAOTDataSource) , "::" , stringify ! (type_))) ; } test_field_type () ; } pub type FlutterLogMessageCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_char , arg2 : * const :: std :: os :: raw :: c_char , arg3 : * mut :: std :: os :: raw :: c_void) > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _FlutterEngineAOTData { _unused : [u8 ; 0] , } # [doc = " An opaque object that describes the AOT data that can be used to launch a"] # [doc = " FlutterEngine instance in AOT mode."] pub type FlutterEngineAOTData = * mut _FlutterEngineAOTData ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterProjectArgs { # [doc = " The size of this struct. Must be sizeof(FlutterProjectArgs)."] pub struct_size : size_t , # [doc = " The path to the Flutter assets directory containing project assets. The"] # [doc = " string can be collected after the call to `FlutterEngineRun` returns. The"] # [doc = " string must be NULL terminated."] pub assets_path : * const :: std :: os :: raw :: c_char , # [doc = " The path to the Dart file containing the `main` entry point."] # [doc = " The string can be collected after the call to `FlutterEngineRun` returns."] # [doc = " The string must be NULL terminated."] # [doc = ""] # [doc = " @deprecated     As of Dart 2, running from Dart source is no longer"] # [doc = "                 supported. Dart code should now be compiled to kernel form"] # [doc = "                 and will be loaded by from `kernel_blob.bin` in the assets"] # [doc = "                 directory. This struct member is retained for ABI"] # [doc = "                 stability."] pub main_path__unused__ : * const :: std :: os :: raw :: c_char , # [doc = " The path to the `.packages` file for the project. The string can be"] # [doc = " collected after the call to `FlutterEngineRun` returns. The string must be"] # [doc = " NULL terminated."] # [doc = ""] # [doc = " @deprecated    As of Dart 2, running from Dart source is no longer"] # [doc = "                supported. Dart code should now be compiled to kernel form"] # [doc = "                and will be loaded by from `kernel_blob.bin` in the assets"] # [doc = "                directory. This struct member is retained for ABI"] # [doc = "                stability."] pub packages_path__unused__ : * const :: std :: os :: raw :: c_char , # [doc = " The path to the `icudtl.dat` file for the project. The string can be"] # [doc = " collected after the call to `FlutterEngineRun` returns. The string must"] # [doc = " be NULL terminated."] pub icu_data_path : * const :: std :: os :: raw :: c_char , # [doc = " The command line argument count used to initialize the project."] pub command_line_argc : :: std :: os :: raw :: c_int , # [doc = " The command line arguments used to initialize the project. The strings can"] # [doc = " be collected after the call to `FlutterEngineRun` returns. The strings"] # [doc = " must be `NULL` terminated."] # [doc = ""] # [doc = " @attention     The first item in the command line (if specified at all) is"] # [doc = "                interpreted as the executable name. So if an engine flag"] # [doc = "                needs to be passed into the same, it needs to not be the"] # [doc = "                very first item in the list."] # [doc = ""] # [doc = " The set of engine flags are only meant to control"] # [doc = " unstable features in the engine. Deployed applications should not pass any"] # [doc = " command line arguments at all as they may affect engine stability at"] # [doc = " runtime in the presence of un-sanitized input. The list of currently"] # [doc = " recognized engine flags and their descriptions can be retrieved from the"] # [doc = " `switches.h` engine source file."] pub command_line_argv : * const * const :: std :: os :: raw :: c_char , # [doc = " The callback invoked by the engine in order to give the embedder the"] # [doc = " chance to respond to platform messages from the Dart application."] # [doc = " The callback will be invoked on the thread on which the `FlutterEngineRun`"] # [doc = " call is made. The second parameter, `user_data`, is supplied when"] # [doc = " `FlutterEngineRun` or `FlutterEngineInitialize` is called."] pub platform_message_callback : FlutterPlatformMessageCallback , # [doc = " The VM snapshot data buffer used in AOT operation. This buffer must be"] # [doc = " mapped in as read-only. For more information refer to the documentation on"] # [doc = " the Wiki at"] # [doc = " https://github.com/flutter/flutter/wiki/Flutter-engine-operation-in-AOT-Mode"] pub vm_snapshot_data : * const u8 , # [doc = " The size of the VM snapshot data buffer.  If vm_snapshot_data is a symbol"] # [doc = " reference, 0 may be passed here."] pub vm_snapshot_data_size : size_t , # [doc = " The VM snapshot instructions buffer used in AOT operation. This buffer"] # [doc = " must be mapped in as read-execute. For more information refer to the"] # [doc = " documentation on the Wiki at"] # [doc = " https://github.com/flutter/flutter/wiki/Flutter-engine-operation-in-AOT-Mode"] pub vm_snapshot_instructions : * const u8 , # [doc = " The size of the VM snapshot instructions buffer. If"] # [doc = " vm_snapshot_instructions is a symbol reference, 0 may be passed here."] pub vm_snapshot_instructions_size : size_t , # [doc = " The isolate snapshot data buffer used in AOT operation. This buffer must"] # [doc = " be mapped in as read-only. For more information refer to the documentation"] # [doc = " on the Wiki at"] # [doc = " https://github.com/flutter/flutter/wiki/Flutter-engine-operation-in-AOT-Mode"] pub isolate_snapshot_data : * const u8 , # [doc = " The size of the isolate snapshot data buffer.  If isolate_snapshot_data is"] # [doc = " a symbol reference, 0 may be passed here."] pub isolate_snapshot_data_size : size_t , # [doc = " The isolate snapshot instructions buffer used in AOT operation. This"] # [doc = " buffer must be mapped in as read-execute. For more information refer to"] # [doc = " the documentation on the Wiki at"] # [doc = " https://github.com/flutter/flutter/wiki/Flutter-engine-operation-in-AOT-Mode"] pub isolate_snapshot_instructions : * const u8 , # [doc = " The size of the isolate snapshot instructions buffer. If"] # [doc = " isolate_snapshot_instructions is a symbol reference, 0 may be passed here."] pub isolate_snapshot_instructions_size : size_t , # [doc = " The callback invoked by the engine in root isolate scope. Called"] # [doc = " immediately after the root isolate has been created and marked runnable."] pub root_isolate_create_callback : VoidCallback , # [doc = " The callback invoked by the engine in order to give the embedder the"] # [doc = " chance to respond to semantics node updates from the Dart application."] # [doc = " Semantics node updates are sent in batches terminated by a 'batch end'"] # [doc = " callback that is passed a sentinel `FlutterSemanticsNode` whose `id` field"] # [doc = " has the value `kFlutterSemanticsNodeIdBatchEnd`."] # [doc = ""] # [doc = " The callback will be invoked on the thread on which the `FlutterEngineRun`"] # [doc = " call is made."] pub update_semantics_node_callback : FlutterUpdateSemanticsNodeCallback , # [doc = " The callback invoked by the engine in order to give the embedder the"] # [doc = " chance to respond to updates to semantics custom actions from the Dart"] # [doc = " application.  Custom action updates are sent in batches terminated by a"] # [doc = " 'batch end' callback that is passed a sentinel"] # [doc = " `FlutterSemanticsCustomAction` whose `id` field has the value"] # [doc = " `kFlutterSemanticsCustomActionIdBatchEnd`."] # [doc = ""] # [doc = " The callback will be invoked on the thread on which the `FlutterEngineRun`"] # [doc = " call is made."] pub update_semantics_custom_action_callback : FlutterUpdateSemanticsCustomActionCallback , # [doc = " Path to a directory used to store data that is cached across runs of a"] # [doc = " Flutter application (such as compiled shader programs used by Skia)."] # [doc = " This is optional.  The string must be NULL terminated."] # [doc = ""] pub persistent_cache_path : * const :: std :: os :: raw :: c_char , # [doc = " If true, the engine would only read the existing cache, but not write new"] # [doc = " ones."] pub is_persistent_cache_read_only : bool , # [doc = " A callback that gets invoked by the engine when it attempts to wait for a"] # [doc = " platform vsync event. The engine will give the platform a baton that needs"] # [doc = " to be returned back to the engine via `FlutterEngineOnVsync`. All batons"] # [doc = " must be retured to the engine before initializing a"] # [doc = " `FlutterEngineShutdown`. Not doing the same will result in a memory leak."] # [doc = " While the call to `FlutterEngineOnVsync` must occur on the thread that"] # [doc = " made the call to `FlutterEngineRun`, the engine will make this callback on"] # [doc = " an internal engine-managed thread. If the components accessed on the"] # [doc = " embedder are not thread safe, the appropriate re-threading must be done."] pub vsync_callback : VsyncCallback , # [doc = " The name of a custom Dart entrypoint. This is optional and specifying a"] # [doc = " null or empty entrypoint makes the engine look for a method named \"main\""] # [doc = " in the root library of the application."] # [doc = ""] # [doc = " Care must be taken to ensure that the custom entrypoint is not tree-shaken"] # [doc = " away. Usually, this is done using the `@pragma('vm:entry-point')`"] # [doc = " decoration."] pub custom_dart_entrypoint : * const :: std :: os :: raw :: c_char , # [doc = " Typically the Flutter engine create and manages its internal threads. This"] # [doc = " optional argument allows for the specification of task runner interfaces"] # [doc = " to event loops managed by the embedder on threads it creates."] pub custom_task_runners : * const FlutterCustomTaskRunners , # [doc = " All `FlutterEngine` instances in the process share the same Dart VM. When"] # [doc = " the first engine is launched, it starts the Dart VM as well. It used to be"] # [doc = " the case that it was not possible to shutdown the Dart VM cleanly and"] # [doc = " start it back up in the process in a safe manner. This issue has since"] # [doc = " been patched. Unfortunately, applications already began to make use of the"] # [doc = " fact that shutting down the Flutter engine instance left a running VM in"] # [doc = " the process. Since a Flutter engine could be launched on any thread,"] # [doc = " applications would \"warm up\" the VM on another thread by launching"] # [doc = " an engine with no isolates and then shutting it down immediately. The main"] # [doc = " Flutter application could then be started on the main thread without"] # [doc = " having to incur the Dart VM startup costs at that time. With the new"] # [doc = " behavior, this \"optimization\" immediately becomes massive performance"] # [doc = " pessimization as the VM would be started up in the \"warm up\" phase, shut"] # [doc = " down there and then started again on the main thread. Changing this"] # [doc = " behavior was deemed to be an unacceptable breaking change. Embedders that"] # [doc = " wish to shutdown the Dart VM when the last engine is terminated in the"] # [doc = " process should opt into this behavior by setting this flag to true."] pub shutdown_dart_vm_when_done : bool , # [doc = " Typically, Flutter renders the layer hierarchy into a single root surface."] # [doc = " However, when embedders need to interleave their own contents within the"] # [doc = " Flutter layer hierarchy, their applications can push platform views within"] # [doc = " the Flutter scene. This is done using the `SceneBuilder.addPlatformView`"] # [doc = " call. When this happens, the Flutter rasterizer divides the effective view"] # [doc = " hierarchy into multiple layers. Each layer gets its own backing store and"] # [doc = " Flutter renders into the same. Once the layers contents have been"] # [doc = " fulfilled, the embedder is asked to composite these layers on-screen. At"] # [doc = " this point, it can interleave its own contents within the effective"] # [doc = " hierarchy. The interface for the specification of these layer backing"] # [doc = " stores and the hooks to listen for the composition of layers on-screen can"] # [doc = " be controlled using this field. This field is completely optional. In its"] # [doc = " absence, platforms views in the scene are ignored and Flutter renders to"] # [doc = " the root surface as normal."] pub compositor : * const FlutterCompositor , # [doc = " Max size of the old gen heap for the Dart VM in MB, or 0 for unlimited, -1"] # [doc = " for default value."] # [doc = ""] # [doc = " See also:"] # [doc = " https://github.com/dart-lang/sdk/blob/ca64509108b3e7219c50d6c52877c85ab6a35ff2/runtime/vm/flag_list.h#L150"] pub dart_old_gen_heap_size : i64 , # [doc = " The AOT data to be used in AOT operation."] # [doc = ""] # [doc = " Embedders should instantiate and destroy this object via the"] # [doc = " FlutterEngineCreateAOTData and FlutterEngineCollectAOTData methods."] # [doc = ""] # [doc = " Embedders can provide either snapshot buffers or aot_data, but not both."] pub aot_data : FlutterEngineAOTData , # [doc = " A callback that computes the locale the platform would natively resolve"] # [doc = " to."] # [doc = ""] # [doc = " The input parameter is an array of FlutterLocales which represent the"] # [doc = " locales supported by the app. One of the input supported locales should"] # [doc = " be selected and returned to best match with the user/device's preferred"] # [doc = " locale. The implementation should produce a result that as closely"] # [doc = " matches what the platform would natively resolve to as possible."] pub compute_platform_resolved_locale_callback : FlutterComputePlatformResolvedLocaleCallback , # [doc = " The command line argument count for arguments passed through to the Dart"] # [doc = " entrypoint."] pub dart_entrypoint_argc : :: std :: os :: raw :: c_int , # [doc = " The command line arguments passed through to the Dart entrypoint. The"] # [doc = " strings must be `NULL` terminated."] # [doc = ""] # [doc = " The strings will be copied out and so any strings passed in here can"] # [doc = " be safely collected after initializing the engine with"] # [doc = " `FlutterProjectArgs`."] pub dart_entrypoint_argv : * const * const :: std :: os :: raw :: c_char , pub log_message_callback : FlutterLogMessageCallback , pub log_tag : * const :: std :: os :: raw :: c_char , pub on_pre_engine_restart_callback : OnPreEngineRestartCallback , } # [test] fn bindgen_test_layout_FlutterProjectArgs () { assert_eq ! (:: std :: mem :: size_of :: < FlutterProjectArgs > () , 272usize , concat ! ("Size of: " , stringify ! (FlutterProjectArgs))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterProjectArgs > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterProjectArgs))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_assets_path () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . assets_path) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (assets_path))) ; } test_field_assets_path () ; fn test_field_main_path__unused__ () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . main_path__unused__) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (main_path__unused__))) ; } test_field_main_path__unused__ () ; fn test_field_packages_path__unused__ () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . packages_path__unused__) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (packages_path__unused__))) ; } test_field_packages_path__unused__ () ; fn test_field_icu_data_path () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . icu_data_path) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (icu_data_path))) ; } test_field_icu_data_path () ; fn test_field_command_line_argc () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . command_line_argc) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (command_line_argc))) ; } test_field_command_line_argc () ; fn test_field_command_line_argv () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . command_line_argv) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (command_line_argv))) ; } test_field_command_line_argv () ; fn test_field_platform_message_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . platform_message_callback) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (platform_message_callback))) ; } test_field_platform_message_callback () ; fn test_field_vm_snapshot_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . vm_snapshot_data) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (vm_snapshot_data))) ; } test_field_vm_snapshot_data () ; fn test_field_vm_snapshot_data_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . vm_snapshot_data_size) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (vm_snapshot_data_size))) ; } test_field_vm_snapshot_data_size () ; fn test_field_vm_snapshot_instructions () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . vm_snapshot_instructions) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (vm_snapshot_instructions))) ; } test_field_vm_snapshot_instructions () ; fn test_field_vm_snapshot_instructions_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . vm_snapshot_instructions_size) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (vm_snapshot_instructions_size))) ; } test_field_vm_snapshot_instructions_size () ; fn test_field_isolate_snapshot_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . isolate_snapshot_data) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (isolate_snapshot_data))) ; } test_field_isolate_snapshot_data () ; fn test_field_isolate_snapshot_data_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . isolate_snapshot_data_size) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (isolate_snapshot_data_size))) ; } test_field_isolate_snapshot_data_size () ; fn test_field_isolate_snapshot_instructions () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . isolate_snapshot_instructions) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (isolate_snapshot_instructions))) ; } test_field_isolate_snapshot_instructions () ; fn test_field_isolate_snapshot_instructions_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . isolate_snapshot_instructions_size) as usize - ptr as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (isolate_snapshot_instructions_size))) ; } test_field_isolate_snapshot_instructions_size () ; fn test_field_root_isolate_create_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . root_isolate_create_callback) as usize - ptr as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (root_isolate_create_callback))) ; } test_field_root_isolate_create_callback () ; fn test_field_update_semantics_node_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . update_semantics_node_callback) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (update_semantics_node_callback))) ; } test_field_update_semantics_node_callback () ; fn test_field_update_semantics_custom_action_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . update_semantics_custom_action_callback) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (update_semantics_custom_action_callback))) ; } test_field_update_semantics_custom_action_callback () ; fn test_field_persistent_cache_path () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . persistent_cache_path) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (persistent_cache_path))) ; } test_field_persistent_cache_path () ; fn test_field_is_persistent_cache_read_only () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . is_persistent_cache_read_only) as usize - ptr as usize } , 160usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (is_persistent_cache_read_only))) ; } test_field_is_persistent_cache_read_only () ; fn test_field_vsync_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . vsync_callback) as usize - ptr as usize } , 168usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (vsync_callback))) ; } test_field_vsync_callback () ; fn test_field_custom_dart_entrypoint () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . custom_dart_entrypoint) as usize - ptr as usize } , 176usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (custom_dart_entrypoint))) ; } test_field_custom_dart_entrypoint () ; fn test_field_custom_task_runners () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . custom_task_runners) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (custom_task_runners))) ; } test_field_custom_task_runners () ; fn test_field_shutdown_dart_vm_when_done () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . shutdown_dart_vm_when_done) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (shutdown_dart_vm_when_done))) ; } test_field_shutdown_dart_vm_when_done () ; fn test_field_compositor () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . compositor) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (compositor))) ; } test_field_compositor () ; fn test_field_dart_old_gen_heap_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . dart_old_gen_heap_size) as usize - ptr as usize } , 208usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (dart_old_gen_heap_size))) ; } test_field_dart_old_gen_heap_size () ; fn test_field_aot_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . aot_data) as usize - ptr as usize } , 216usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (aot_data))) ; } test_field_aot_data () ; fn test_field_compute_platform_resolved_locale_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . compute_platform_resolved_locale_callback) as usize - ptr as usize } , 224usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (compute_platform_resolved_locale_callback))) ; } test_field_compute_platform_resolved_locale_callback () ; fn test_field_dart_entrypoint_argc () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . dart_entrypoint_argc) as usize - ptr as usize } , 232usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (dart_entrypoint_argc))) ; } test_field_dart_entrypoint_argc () ; fn test_field_dart_entrypoint_argv () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . dart_entrypoint_argv) as usize - ptr as usize } , 240usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (dart_entrypoint_argv))) ; } test_field_dart_entrypoint_argv () ; fn test_field_log_message_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . log_message_callback) as usize - ptr as usize } , 248usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (log_message_callback))) ; } test_field_log_message_callback () ; fn test_field_log_tag () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . log_tag) as usize - ptr as usize } , 256usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (log_tag))) ; } test_field_log_tag () ; fn test_field_on_pre_engine_restart_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . on_pre_engine_restart_callback) as usize - ptr as usize } , 264usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (on_pre_engine_restart_callback))) ; } test_field_on_pre_engine_restart_callback () ; } extern "C" { # [doc = " @brief      Creates the necessary data structures to launch a Flutter Dart"] # [doc = "             application in AOT mode. The data may only be collected after"] # [doc = "             all FlutterEngine instances launched using this data have been"] # [doc = "             terminated."] # [doc = ""] # [doc = " @param[in]  source    The source of the AOT data."] # [doc = " @param[out] data_out  The AOT data on success. Unchanged on failure."] # [doc = ""] # [doc = " @return     Returns if the AOT data could be successfully resolved."] # [doc = ""] pub fn FlutterEngineCreateAOTData (source : * const FlutterEngineAOTDataSource , data_out : * mut FlutterEngineAOTData) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Collects the AOT data."] # [doc = ""] # [doc = " @warning    The embedder must ensure that this call is made only after all"] # [doc = "             FlutterEngine instances launched using this data have been"] # [doc = "             terminated, and that all of those instances were launched with"] # [doc = "             the FlutterProjectArgs::shutdown_dart_vm_when_done flag set to"] # [doc = "             true."] # [doc = ""] # [doc = " @param[in]  data   The data to collect."] # [doc = ""] # [doc = " @return     Returns if the AOT data was successfully collected."] # [doc = ""] pub fn FlutterEngineCollectAOTData (data : FlutterEngineAOTData) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Initialize and run a Flutter engine instance and return a handle"] # [doc = "             to it. This is a convenience method for the pair of calls to"] # [doc = "             `FlutterEngineInitialize` and `FlutterEngineRunInitialized`."] # [doc = ""] # [doc = " @note       This method of running a Flutter engine works well except in"] # [doc = "             cases where the embedder specifies custom task runners via"] # [doc = "             `FlutterProjectArgs::custom_task_runners`. In such cases, the"] # [doc = "             engine may need the embedder to post tasks back to it before"] # [doc = "             `FlutterEngineRun` has returned. Embedders can only post tasks"] # [doc = "             to the engine if they have a handle to the engine. In such"] # [doc = "             cases, embedders are advised to get the engine handle via the"] # [doc = "             `FlutterInitializeCall`. Then they can call"] # [doc = "             `FlutterEngineRunInitialized` knowing that they will be able to"] # [doc = "             service custom tasks on other threads with the engine handle."] # [doc = ""] # [doc = " @param[in]  version    The Flutter embedder API version. Must be"] # [doc = "                        FLUTTER_ENGINE_VERSION."] # [doc = " @param[in]  config     The renderer configuration."] # [doc = " @param[in]  args       The Flutter project arguments."] # [doc = " @param      user_data  A user data baton passed back to embedders in"] # [doc = "                        callbacks."] # [doc = " @param[out] engine_out The engine handle on successful engine creation."] # [doc = ""] # [doc = " @return     The result of the call to run the Flutter engine."] # [doc = ""] pub fn FlutterEngineRun (version : size_t , config : * const FlutterRendererConfig , args : * const FlutterProjectArgs , user_data : * mut :: std :: os :: raw :: c_void , engine_out : * mut FlutterEngine) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Shuts down a Flutter engine instance. The engine handle is no"] # [doc = "             longer valid for any calls in the embedder API after this point."] # [doc = "             Making additional calls with this handle is undefined behavior."] # [doc = ""] # [doc = " @note       This de-initializes the Flutter engine instance (via an implicit"] # [doc = "             call to `FlutterEngineDeinitialize`) if necessary."] # [doc = ""] # [doc = " @param[in]  engine  The Flutter engine instance to collect."] # [doc = ""] # [doc = " @return     The result of the call to shutdown the Flutter engine instance."] # [doc = ""] pub fn FlutterEngineShutdown (engine : FlutterEngine) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Initialize a Flutter engine instance. This does not run the"] # [doc = "             Flutter application code till the `FlutterEngineRunInitialized`"] # [doc = "             call is made. Besides Flutter application code, no tasks are"] # [doc = "             scheduled on embedder managed task runners either. This allows"] # [doc = "             embedders providing custom task runners to the Flutter engine to"] # [doc = "             obtain a handle to the Flutter engine before the engine can post"] # [doc = "             tasks on these task runners."] # [doc = ""] # [doc = " @param[in]  version    The Flutter embedder API version. Must be"] # [doc = "                        FLUTTER_ENGINE_VERSION."] # [doc = " @param[in]  config     The renderer configuration."] # [doc = " @param[in]  args       The Flutter project arguments."] # [doc = " @param      user_data  A user data baton passed back to embedders in"] # [doc = "                        callbacks."] # [doc = " @param[out] engine_out The engine handle on successful engine creation."] # [doc = ""] # [doc = " @return     The result of the call to initialize the Flutter engine."] # [doc = ""] pub fn FlutterEngineInitialize (version : size_t , config : * const FlutterRendererConfig , args : * const FlutterProjectArgs , user_data : * mut :: std :: os :: raw :: c_void , engine_out : * mut FlutterEngine) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Stops running the Flutter engine instance. After this call, the"] # [doc = "             embedder is also guaranteed that no more calls to post tasks"] # [doc = "             onto custom task runners specified by the embedder are made. The"] # [doc = "             Flutter engine handle still needs to be collected via a call to"] # [doc = "             `FlutterEngineShutdown`."] # [doc = ""] # [doc = " @param[in]  engine    The running engine instance to de-initialize."] # [doc = ""] # [doc = " @return     The result of the call to de-initialize the Flutter engine."] # [doc = ""] pub fn FlutterEngineDeinitialize (engine : FlutterEngine) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Runs an initialized engine instance. An engine can be"] # [doc = "             initialized via `FlutterEngineInitialize`. An initialized"] # [doc = "             instance can only be run once. During and after this call,"] # [doc = "             custom task runners supplied by the embedder are expected to"] # [doc = "             start servicing tasks."] # [doc = ""] # [doc = " @param[in]  engine  An initialized engine instance that has not previously"] # [doc = "                     been run."] # [doc = ""] # [doc = " @return     The result of the call to run the initialized Flutter"] # [doc = "             engine instance."] # [doc = ""] pub fn FlutterEngineRunInitialized (engine : FlutterEngine) -> FlutterEngineResult ; } extern "C" { pub fn FlutterEngineSendWindowMetricsEvent (engine : FlutterEngine , event : * const FlutterWindowMetricsEvent) -> FlutterEngineResult ; } extern "C" { pub fn FlutterEngineSendPointerEvent (engine : FlutterEngine , events : * const FlutterPointerEvent , events_count : size_t) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Sends a key event to the engine. The framework will decide"] # [doc = "             whether to handle this event in a synchronous fashion, although"] # [doc = "             due to technical limitation, the result is always reported"] # [doc = "             asynchronously. The `callback` is guaranteed to be called"] # [doc = "             exactly once."] # [doc = ""] # [doc = " @param[in]  engine         A running engine instance."] # [doc = " @param[in]  event          The event data to be sent. This function will no"] # [doc = "                            longer access `event` after returning."] # [doc = " @param[in]  callback       The callback invoked by the engine when the"] # [doc = "                            Flutter application has decided whether it"] # [doc = "                            handles this event. Accepts nullptr."] # [doc = " @param[in]  user_data      The context associated with the callback. The"] # [doc = "                            exact same value will used to invoke `callback`."] # [doc = "                            Accepts nullptr."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineSendKeyEvent (engine : FlutterEngine , event : * const FlutterKeyEvent , callback : FlutterKeyEventCallback , user_data : * mut :: std :: os :: raw :: c_void) -> FlutterEngineResult ; } extern "C" { pub fn FlutterEngineSendPlatformMessage (engine : FlutterEngine , message : * const FlutterPlatformMessage) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief     Creates a platform message response handle that allows the"] # [doc = "            embedder to set a native callback for a response to a message."] # [doc = "            This handle may be set on the `response_handle` field of any"] # [doc = "            `FlutterPlatformMessage` sent to the engine."] # [doc = ""] # [doc = "            The handle must be collected via a call to"] # [doc = "            `FlutterPlatformMessageReleaseResponseHandle`. This may be done"] # [doc = "            immediately after a call to `FlutterEngineSendPlatformMessage`"] # [doc = "            with a platform message whose response handle contains the handle"] # [doc = "            created using this call. In case a handle is created but never"] # [doc = "            sent in a message, the release call must still be made. Not"] # [doc = "            calling release on the handle results in a small memory leak."] # [doc = ""] # [doc = "            The user data baton passed to the data callback is the one"] # [doc = "            specified in this call as the third argument."] # [doc = ""] # [doc = " @see       FlutterPlatformMessageReleaseResponseHandle()"] # [doc = ""] # [doc = " @param[in]  engine         A running engine instance."] # [doc = " @param[in]  data_callback  The callback invoked by the engine when the"] # [doc = "                            Flutter application send a response on the"] # [doc = "                            handle."] # [doc = " @param[in]  user_data      The user data associated with the data callback."] # [doc = " @param[out] response_out   The response handle created when this call is"] # [doc = "                            successful."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterPlatformMessageCreateResponseHandle (engine : FlutterEngine , data_callback : FlutterDataCallback , user_data : * mut :: std :: os :: raw :: c_void , response_out : * mut * mut FlutterPlatformMessageResponseHandle) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Collects the handle created using"] # [doc = "             `FlutterPlatformMessageCreateResponseHandle`."] # [doc = ""] # [doc = " @see        FlutterPlatformMessageCreateResponseHandle()"] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance."] # [doc = " @param[in]  response   The platform message response handle to collect."] # [doc = "                        These handles are created using"] # [doc = "                        `FlutterPlatformMessageCreateResponseHandle()`."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterPlatformMessageReleaseResponseHandle (engine : FlutterEngine , response : * mut FlutterPlatformMessageResponseHandle) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Send a response from the native side to a platform message from"] # [doc = "             the Dart Flutter application."] # [doc = ""] # [doc = " @param[in]  engine       The running engine instance."] # [doc = " @param[in]  handle       The platform message response handle."] # [doc = " @param[in]  data         The data to associate with the platform message"] # [doc = "                          response."] # [doc = " @param[in]  data_length  The length of the platform message response data."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineSendPlatformMessageResponse (engine : FlutterEngine , handle : * const FlutterPlatformMessageResponseHandle , data : * const u8 , data_length : size_t) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      This API is only meant to be used by platforms that need to"] # [doc = "             flush tasks on a message loop not controlled by the Flutter"] # [doc = "             engine."] # [doc = ""] # [doc = " @deprecated This API will be deprecated and is not part of the stable API."] # [doc = "             Please use the custom task runners API by setting an"] # [doc = "             appropriate `FlutterProjectArgs::custom_task_runners`"] # [doc = "             interface. This will yield better performance and the"] # [doc = "             interface is stable."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn __FlutterEngineFlushPendingTasksNow () -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Register an external texture with a unique (per engine)"] # [doc = "             identifier. Only rendering backends that support external"] # [doc = "             textures accept external texture registrations. After the"] # [doc = "             external texture is registered, the application can mark that a"] # [doc = "             frame is available by calling"] # [doc = "             `FlutterEngineMarkExternalTextureFrameAvailable`."] # [doc = ""] # [doc = " @see        FlutterEngineUnregisterExternalTexture()"] # [doc = " @see        FlutterEngineMarkExternalTextureFrameAvailable()"] # [doc = ""] # [doc = " @param[in]  engine              A running engine instance."] # [doc = " @param[in]  texture_identifier  The identifier of the texture to register"] # [doc = "                                 with the engine. The embedder may supply new"] # [doc = "                                 frames to this texture using the same"] # [doc = "                                 identifier."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineRegisterExternalTexture (engine : FlutterEngine , texture_identifier : i64) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Unregister a previous texture registration."] # [doc = ""] # [doc = " @see        FlutterEngineRegisterExternalTexture()"] # [doc = " @see        FlutterEngineMarkExternalTextureFrameAvailable()"] # [doc = ""] # [doc = " @param[in]  engine              A running engine instance."] # [doc = " @param[in]  texture_identifier  The identifier of the texture for which new"] # [doc = "                                 frame will not be available."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineUnregisterExternalTexture (engine : FlutterEngine , texture_identifier : i64) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Mark that a new texture frame is available for a given texture"] # [doc = "             identifier."] # [doc = ""] # [doc = " @see        FlutterEngineRegisterExternalTexture()"] # [doc = " @see        FlutterEngineUnregisterExternalTexture()"] # [doc = ""] # [doc = " @param[in]  engine              A running engine instance."] # [doc = " @param[in]  texture_identifier  The identifier of the texture whose frame"] # [doc = "                                 has been updated."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineMarkExternalTextureFrameAvailable (engine : FlutterEngine , texture_identifier : i64) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Enable or disable accessibility semantics."] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance."] # [doc = " @param[in]  enabled    When enabled, changes to the semantic contents of the"] # [doc = "                        window are sent via the"] # [doc = "                        `FlutterUpdateSemanticsNodeCallback` registered to"] # [doc = "                        `update_semantics_node_callback` in"] # [doc = "                        `FlutterProjectArgs`."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineUpdateSemanticsEnabled (engine : FlutterEngine , enabled : bool) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Sets additional accessibility features."] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance"] # [doc = " @param[in]  features   The accessibility features to set."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineUpdateAccessibilityFeatures (engine : FlutterEngine , features : FlutterAccessibilityFeature) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Dispatch a semantics action to the specified semantics node."] # [doc = ""] # [doc = " @param[in]  engine       A running engine instance."] # [doc = " @param[in]  identifier   The semantics action identifier."] # [doc = " @param[in]  action       The semantics action."] # [doc = " @param[in]  data         Data associated with the action."] # [doc = " @param[in]  data_length  The data length."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineDispatchSemanticsAction (engine : FlutterEngine , id : u64 , action : FlutterSemanticsAction , data : * const u8 , data_length : size_t) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Notify the engine that a vsync event occurred. A baton passed to"] # [doc = "             the platform via the vsync callback must be returned. This call"] # [doc = "             must be made on the thread on which the call to"] # [doc = "             `FlutterEngineRun` was made."] # [doc = ""] # [doc = " @see        FlutterEngineGetCurrentTime()"] # [doc = ""] # [doc = " @attention  That frame timepoints are in nanoseconds."] # [doc = ""] # [doc = " @attention  The system monotonic clock is used as the timebase."] # [doc = ""] # [doc = " @param[in]  engine.                  A running engine instance."] # [doc = " @param[in]  baton                    The baton supplied by the engine."] # [doc = " @param[in]  frame_start_time_nanos   The point at which the vsync event"] # [doc = "                                      occurred or will occur. If the time"] # [doc = "                                      point is in the future, the engine will"] # [doc = "                                      wait till that point to begin its frame"] # [doc = "                                      workload."] # [doc = " @param[in]  frame_target_time_nanos  The point at which the embedder"] # [doc = "                                      anticipates the next vsync to occur."] # [doc = "                                      This is a hint the engine uses to"] # [doc = "                                      schedule Dart VM garbage collection in"] # [doc = "                                      periods in which the various threads"] # [doc = "                                      are most likely to be idle. For"] # [doc = "                                      example, for a 60Hz display, embedders"] # [doc = "                                      should add 16.6 * 1e6 to the frame time"] # [doc = "                                      field."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineOnVsync (engine : FlutterEngine , baton : isize , frame_start_time_nanos : u64 , frame_target_time_nanos : u64) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Reloads the system fonts in engine."] # [doc = ""] # [doc = " @param[in]  engine.                  A running engine instance."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineReloadSystemFonts (engine : FlutterEngine) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      A profiling utility. Logs a trace duration begin event to the"] # [doc = "             timeline. If the timeline is unavailable or disabled, this has"] # [doc = "             no effect. Must be balanced with an duration end event (via"] # [doc = "             `FlutterEngineTraceEventDurationEnd`) with the same name on the"] # [doc = "             same thread. Can be called on any thread. Strings passed into"] # [doc = "             the function will NOT be copied when added to the timeline. Only"] # [doc = "             string literals may be passed in."] # [doc = ""] # [doc = " @param[in]  name  The name of the trace event."] # [doc = ""] pub fn FlutterEngineTraceEventDurationBegin (name : * const :: std :: os :: raw :: c_char) ; } extern "C" { # [doc = " @brief      A profiling utility. Logs a trace duration end event to the"] # [doc = "             timeline. If the timeline is unavailable or disabled, this has"] # [doc = "             no effect. This call must be preceded by a trace duration begin"] # [doc = "             call (via `FlutterEngineTraceEventDurationBegin`) with the same"] # [doc = "             name on the same thread. Can be called on any thread. Strings"] # [doc = "             passed into the function will NOT be copied when added to the"] # [doc = "             timeline. Only string literals may be passed in."] # [doc = ""] # [doc = " @param[in]  name  The name of the trace event."] # [doc = ""] pub fn FlutterEngineTraceEventDurationEnd (name : * const :: std :: os :: raw :: c_char) ; } extern "C" { # [doc = " @brief      A profiling utility. Logs a trace duration instant event to the"] # [doc = "             timeline. If the timeline is unavailable or disabled, this has"] # [doc = "             no effect. Can be called on any thread. Strings passed into the"] # [doc = "             function will NOT be copied when added to the timeline. Only"] # [doc = "             string literals may be passed in."] # [doc = ""] # [doc = " @param[in]  name  The name of the trace event."] # [doc = ""] pub fn FlutterEngineTraceEventInstant (name : * const :: std :: os :: raw :: c_char) ; } extern "C" { # [doc = " @brief      Posts a task onto the Flutter render thread. Typically, this may"] # [doc = "             be called from any thread as long as a `FlutterEngineShutdown`"] # [doc = "             on the specific engine has not already been initiated."] # [doc = ""] # [doc = " @param[in]  engine         A running engine instance."] # [doc = " @param[in]  callback       The callback to execute on the render thread."] # [doc = " @param      callback_data  The callback context."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEnginePostRenderThreadTask (engine : FlutterEngine , callback : VoidCallback , callback_data : * mut :: std :: os :: raw :: c_void) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Get the current time in nanoseconds from the clock used by the"] # [doc = "             flutter engine. This is the system monotonic clock."] # [doc = ""] # [doc = " @return     The current time in nanoseconds."] # [doc = ""] pub fn FlutterEngineGetCurrentTime () -> u64 ; } extern "C" { # [doc = " @brief      Inform the engine to run the specified task. This task has been"] # [doc = "             given to the engine via the"] # [doc = "             `FlutterTaskRunnerDescription.post_task_callback`. This call"] # [doc = "             must only be made at the target time specified in that callback."] # [doc = "             Running the task before that time is undefined behavior."] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance."] # [doc = " @param[in]  task       the task handle."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineRunTask (engine : FlutterEngine , task : * const FlutterTask) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Notify a running engine instance that the locale has been"] # [doc = "             updated. The preferred locale must be the first item in the list"] # [doc = "             of locales supplied. The other entries will be used as a"] # [doc = "             fallback."] # [doc = ""] # [doc = " @param[in]  engine         A running engine instance."] # [doc = " @param[in]  locales        The updated locales in the order of preference."] # [doc = " @param[in]  locales_count  The count of locales supplied."] # [doc = ""] # [doc = " @return     Whether the locale updates were applied."] # [doc = ""] pub fn FlutterEngineUpdateLocales (engine : FlutterEngine , locales : * mut * const FlutterLocale , locales_count : size_t) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Returns if the Flutter engine instance will run AOT compiled"] # [doc = "             Dart code. This call has no threading restrictions."] # [doc = ""] # [doc = "             For embedder code that is configured for both AOT and JIT mode"] # [doc = "             Dart execution based on the Flutter engine being linked to, this"] # [doc = "             runtime check may be used to appropriately configure the"] # [doc = "             `FlutterProjectArgs`. In JIT mode execution, the kernel"] # [doc = "             snapshots must be present in the Flutter assets directory"] # [doc = "             specified in the `FlutterProjectArgs`. For AOT execution, the"] # [doc = "             fields `vm_snapshot_data`, `vm_snapshot_instructions`,"] # [doc = "             `isolate_snapshot_data` and `isolate_snapshot_instructions`"] # [doc = "             (along with their size fields) must be specified in"] # [doc = "             `FlutterProjectArgs`."] # [doc = ""] # [doc = " @return     True, if AOT Dart code is run. JIT otherwise."] # [doc = ""] pub fn FlutterEngineRunsAOTCompiledDartCode () -> bool ; } extern "C" { # [doc = " @brief      Posts a Dart object to specified send port. The corresponding"] # [doc = "             receive port for send port can be in any isolate running in the"] # [doc = "             VM. This isolate can also be the root isolate for an"] # [doc = "             unrelated engine. The engine parameter is necessary only to"] # [doc = "             ensure the call is not made when no engine (and hence no VM) is"] # [doc = "             running."] # [doc = ""] # [doc = "             Unlike the platform messages mechanism, there are no threading"] # [doc = "             restrictions when using this API. Message can be posted on any"] # [doc = "             thread and they will be made available to isolate on which the"] # [doc = "             corresponding send port is listening."] # [doc = ""] # [doc = "             However, it is the embedders responsibility to ensure that the"] # [doc = "             call is not made during an ongoing call the"] # [doc = "             `FlutterEngineDeinitialize` or `FlutterEngineShutdown` on"] # [doc = "             another thread."] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance."] # [doc = " @param[in]  port       The send port to send the object to."] # [doc = " @param[in]  object     The object to send to the isolate with the"] # [doc = "                        corresponding receive port."] # [doc = ""] # [doc = " @return     If the message was posted to the send port."] # [doc = ""] pub fn FlutterEnginePostDartObject (engine : FlutterEngine , port : FlutterEngineDartPort , object : * const FlutterEngineDartObject) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Posts a low memory notification to a running engine instance."] # [doc = "             The engine will do its best to release non-critical resources in"] # [doc = "             response. It is not guaranteed that the resource would have been"] # [doc = "             collected by the time this call returns however. The"] # [doc = "             notification is posted to engine subsystems that may be"] # [doc = "             operating on other threads."] # [doc = ""] # [doc = "             Flutter applications can respond to these notifications by"] # [doc = "             setting `WidgetsBindingObserver.didHaveMemoryPressure`"] # [doc = "             observers."] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance."] # [doc = ""] # [doc = " @return     If the low memory notification was sent to the running engine"] # [doc = "             instance."] # [doc = ""] pub fn FlutterEngineNotifyLowMemoryWarning (engine : FlutterEngine) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Schedule a callback to be run on all engine managed threads."] # [doc = "             The engine will attempt to service this callback the next time"] # [doc = "             the message loop for each managed thread is idle. Since the"] # [doc = "             engine manages the entire lifecycle of multiple threads, there"] # [doc = "             is no opportunity for the embedders to finely tune the"] # [doc = "             priorities of threads directly, or, perform other thread"] # [doc = "             specific configuration (for example, setting thread names for"] # [doc = "             tracing). This callback gives embedders a chance to affect such"] # [doc = "             tuning."] # [doc = ""] # [doc = " @attention  This call is expensive and must be made as few times as"] # [doc = "             possible. The callback must also return immediately as not doing"] # [doc = "             so may risk performance issues (especially for callbacks of type"] # [doc = "             kFlutterNativeThreadTypeUI and kFlutterNativeThreadTypeRender)."] # [doc = ""] # [doc = " @attention  Some callbacks (especially the ones of type"] # [doc = "             kFlutterNativeThreadTypeWorker) may be called after the"] # [doc = "             FlutterEngine instance has shut down. Embedders must be careful"] # [doc = "             in handling the lifecycle of objects associated with the user"] # [doc = "             data baton."] # [doc = ""] # [doc = " @attention  In case there are multiple running Flutter engine instances,"] # [doc = "             their workers are shared."] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance."] # [doc = " @param[in]  callback   The callback that will get called multiple times on"] # [doc = "                        each engine managed thread."] # [doc = " @param[in]  user_data  A baton passed by the engine to the callback. This"] # [doc = "                        baton is not interpreted by the engine in any way."] # [doc = ""] # [doc = " @return     Returns if the callback was successfully posted to all threads."] # [doc = ""] pub fn FlutterEnginePostCallbackOnAllNativeThreads (engine : FlutterEngine , callback : FlutterNativeThreadCallback , user_data : * mut :: std :: os :: raw :: c_void) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief    Posts updates corresponding to display changes to a running engine"] # [doc = "           instance."] # [doc = ""] # [doc = " @param[in] update_type      The type of update pushed to the engine."] # [doc = " @param[in] displays         The displays affected by this update."] # [doc = " @param[in] display_count    Size of the displays array, must be at least 1."] # [doc = ""] # [doc = " @return the result of the call made to the engine."] # [doc = ""] pub fn FlutterEngineNotifyDisplayUpdate (engine : FlutterEngine , update_type : FlutterEngineDisplaysUpdateType , displays : * const FlutterEngineDisplay , display_count : size_t) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Schedule a new frame to redraw the content."] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance."] # [doc = ""] # [doc = " @return the result of the call made to the engine."] # [doc = ""] pub fn FlutterEngineScheduleFrame (engine : FlutterEngine) -> FlutterEngineResult ; } pub type FlutterEngineCreateAOTDataFnPtr = :: std :: option :: Option < unsafe extern "C" fn (source : * const FlutterEngineAOTDataSource , data_out : * mut FlutterEngineAOTData) -> FlutterEngineResult > ; pub type FlutterEngineCollectAOTDataFnPtr = :: std :: option :: Option < unsafe extern "C" fn (data : FlutterEngineAOTData) -> FlutterEngineResult > ; pub type FlutterEngineRunFnPtr = :: std :: option :: Option < unsafe extern "C" fn (version : size_t , config : * const FlutterRendererConfig , args : * const FlutterProjectArgs , user_data : * mut :: std :: os :: raw :: c_void , engine_out : * mut FlutterEngine) -> FlutterEngineResult > ; pub type FlutterEngineShutdownFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine) -> FlutterEngineResult > ; pub type FlutterEngineInitializeFnPtr = :: std :: option :: Option < unsafe extern "C" fn (version : size_t , config : * const FlutterRendererConfig , args : * const FlutterProjectArgs , user_data : * mut :: std :: os :: raw :: c_void , engine_out : * mut FlutterEngine) -> FlutterEngineResult > ; pub type FlutterEngineDeinitializeFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine) -> FlutterEngineResult > ; pub type FlutterEngineRunInitializedFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine) -> FlutterEngineResult > ; pub type FlutterEngineSendWindowMetricsEventFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , event : * const FlutterWindowMetricsEvent) -> FlutterEngineResult > ; pub type FlutterEngineSendPointerEventFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , events : * const FlutterPointerEvent , events_count : size_t) -> FlutterEngineResult > ; pub type FlutterEngineSendKeyEventFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , event : * const FlutterKeyEvent , callback : FlutterKeyEventCallback , user_data : * mut :: std :: os :: raw :: c_void) -> FlutterEngineResult > ; pub type FlutterEngineSendPlatformMessageFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , message : * const FlutterPlatformMessage) -> FlutterEngineResult > ; pub type FlutterEnginePlatformMessageCreateResponseHandleFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , data_callback : FlutterDataCallback , user_data : * mut :: std :: os :: raw :: c_void , response_out : * mut * mut FlutterPlatformMessageResponseHandle) -> FlutterEngineResult > ; pub type FlutterEnginePlatformMessageReleaseResponseHandleFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , response : * mut FlutterPlatformMessageResponseHandle) -> FlutterEngineResult > ; pub type FlutterEngineSendPlatformMessageResponseFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , handle : * const FlutterPlatformMessageResponseHandle , data : * const u8 , data_length : size_t) -> FlutterEngineResult > ; pub type FlutterEngineRegisterExternalTextureFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , texture_identifier : i64) -> FlutterEngineResult > ; pub type FlutterEngineUnregisterExternalTextureFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , texture_identifier : i64) -> FlutterEngineResult > ; pub type FlutterEngineMarkExternalTextureFrameAvailableFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , texture_identifier : i64) -> FlutterEngineResult > ; pub type FlutterEngineUpdateSemanticsEnabledFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , enabled : bool) -> FlutterEngineResult > ; pub type FlutterEngineUpdateAccessibilityFeaturesFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , features : FlutterAccessibilityFeature) -> FlutterEngineResult > ; pub type FlutterEngineDispatchSemanticsActionFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , id : u64 , action : FlutterSemanticsAction , data : * const u8 , data_length : size_t) -> FlutterEngineResult > ; pub type FlutterEngineOnVsyncFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , baton : isize , frame_start_time_nanos : u64 , frame_target_time_nanos : u64) -> FlutterEngineResult > ; pub type FlutterEngineReloadSystemFontsFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine) -> FlutterEngineResult > ; pub type FlutterEngineTraceEventDurationBeginFnPtr = :: std :: option :: Option < unsafe extern "C" fn (name : * const :: std :: os :: raw :: c_char) > ; pub type FlutterEngineTraceEventDurationEndFnPtr = :: std :: option :: Option < unsafe extern "C" fn (name : * const :: std :: os :: raw :: c_char) > ; pub type FlutterEngineTraceEventInstantFnPtr = :: std :: option :: Option < unsafe extern "C" fn (name : * const :: std :: os :: raw :: c_char) > ; pub type FlutterEnginePostRenderThreadTaskFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , callback : VoidCallback , callback_data : * mut :: std :: os :: raw :: c_void) -> FlutterEngineResult > ; pub type FlutterEngineGetCurrentTimeFnPtr = :: std :: option :: Option < unsafe extern "C" fn () -> u64 > ; pub type FlutterEngineRunTaskFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , task : * const FlutterTask) -> FlutterEngineResult > ; pub type FlutterEngineUpdateLocalesFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , locales : * mut * const FlutterLocale , locales_count : size_t) -> FlutterEngineResult > ; pub type FlutterEngineRunsAOTCompiledDartCodeFnPtr = :: std :: option :: Option < unsafe extern "C" fn () -> bool > ; pub type FlutterEnginePostDartObjectFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , port : FlutterEngineDartPort , object : * const FlutterEngineDartObject) -> FlutterEngineResult > ; pub type FlutterEngineNotifyLowMemoryWarningFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine) -> FlutterEngineResult > ; pub type FlutterEnginePostCallbackOnAllNativeThreadsFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , callback : FlutterNativeThreadCallback , user_data : * mut :: std :: os :: raw :: c_void) -> FlutterEngineResult > ; pub type FlutterEngineNotifyDisplayUpdateFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , update_type : FlutterEngineDisplaysUpdateType , displays : * const FlutterEngineDisplay , display_count : size_t) -> FlutterEngineResult > ; pub type FlutterEngineScheduleFrameFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine) -> FlutterEngineResult > ; # [doc = " Function-pointer-based versions of the APIs above."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterEngineProcTable { # [doc = " The size of this struct. Must be sizeof(FlutterEngineProcs)."] pub struct_size : size_t , pub CreateAOTData : FlutterEngineCreateAOTDataFnPtr , pub CollectAOTData : FlutterEngineCollectAOTDataFnPtr , pub Run : FlutterEngineRunFnPtr , pub Shutdown : FlutterEngineShutdownFnPtr , pub Initialize : FlutterEngineInitializeFnPtr , pub Deinitialize : FlutterEngineDeinitializeFnPtr , pub RunInitialized : FlutterEngineRunInitializedFnPtr , pub SendWindowMetricsEvent : FlutterEngineSendWindowMetricsEventFnPtr , pub SendPointerEvent : FlutterEngineSendPointerEventFnPtr , pub SendKeyEvent : FlutterEngineSendKeyEventFnPtr , pub SendPlatformMessage : FlutterEngineSendPlatformMessageFnPtr , pub PlatformMessageCreateResponseHandle : FlutterEnginePlatformMessageCreateResponseHandleFnPtr , pub PlatformMessageReleaseResponseHandle : FlutterEnginePlatformMessageReleaseResponseHandleFnPtr , pub SendPlatformMessageResponse : FlutterEngineSendPlatformMessageResponseFnPtr , pub RegisterExternalTexture : FlutterEngineRegisterExternalTextureFnPtr , pub UnregisterExternalTexture : FlutterEngineUnregisterExternalTextureFnPtr , pub MarkExternalTextureFrameAvailable : FlutterEngineMarkExternalTextureFrameAvailableFnPtr , pub UpdateSemanticsEnabled : FlutterEngineUpdateSemanticsEnabledFnPtr , pub UpdateAccessibilityFeatures : FlutterEngineUpdateAccessibilityFeaturesFnPtr , pub DispatchSemanticsAction : FlutterEngineDispatchSemanticsActionFnPtr , pub OnVsync : FlutterEngineOnVsyncFnPtr , pub ReloadSystemFonts : FlutterEngineReloadSystemFontsFnPtr , pub TraceEventDurationBegin : FlutterEngineTraceEventDurationBeginFnPtr , pub TraceEventDurationEnd : FlutterEngineTraceEventDurationEndFnPtr , pub TraceEventInstant : FlutterEngineTraceEventInstantFnPtr , pub PostRenderThreadTask : FlutterEnginePostRenderThreadTaskFnPtr , pub GetCurrentTime : FlutterEngineGetCurrentTimeFnPtr , pub RunTask : FlutterEngineRunTaskFnPtr , pub UpdateLocales : FlutterEngineUpdateLocalesFnPtr , pub RunsAOTCompiledDartCode : FlutterEngineRunsAOTCompiledDartCodeFnPtr , pub PostDartObject : FlutterEnginePostDartObjectFnPtr , pub NotifyLowMemoryWarning : FlutterEngineNotifyLowMemoryWarningFnPtr , pub PostCallbackOnAllNativeThreads : FlutterEnginePostCallbackOnAllNativeThreadsFnPtr , pub NotifyDisplayUpdate : FlutterEngineNotifyDisplayUpdateFnPtr , pub ScheduleFrame : FlutterEngineScheduleFrameFnPtr , } # [test] fn bindgen_test_layout_FlutterEngineProcTable () { assert_eq ! (:: std :: mem :: size_of :: < FlutterEngineProcTable > () , 288usize , concat ! ("Size of: " , stringify ! (FlutterEngineProcTable))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterEngineProcTable > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterEngineProcTable))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_CreateAOTData () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . CreateAOTData) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (CreateAOTData))) ; } test_field_CreateAOTData () ; fn test_field_CollectAOTData () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . CollectAOTData) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (CollectAOTData))) ; } test_field_CollectAOTData () ; fn test_field_Run () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . Run) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (Run))) ; } test_field_Run () ; fn test_field_Shutdown () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . Shutdown) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (Shutdown))) ; } test_field_Shutdown () ; fn test_field_Initialize () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . Initialize) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (Initialize))) ; } test_field_Initialize () ; fn test_field_Deinitialize () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . Deinitialize) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (Deinitialize))) ; } test_field_Deinitialize () ; fn test_field_RunInitialized () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . RunInitialized) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (RunInitialized))) ; } test_field_RunInitialized () ; fn test_field_SendWindowMetricsEvent () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . SendWindowMetricsEvent) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (SendWindowMetricsEvent))) ; } test_field_SendWindowMetricsEvent () ; fn test_field_SendPointerEvent () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . SendPointerEvent) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (SendPointerEvent))) ; } test_field_SendPointerEvent () ; fn test_field_SendKeyEvent () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . SendKeyEvent) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (SendKeyEvent))) ; } test_field_SendKeyEvent () ; fn test_field_SendPlatformMessage () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . SendPlatformMessage) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (SendPlatformMessage))) ; } test_field_SendPlatformMessage () ; fn test_field_PlatformMessageCreateResponseHandle () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . PlatformMessageCreateResponseHandle) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (PlatformMessageCreateResponseHandle))) ; } test_field_PlatformMessageCreateResponseHandle () ; fn test_field_PlatformMessageReleaseResponseHandle () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . PlatformMessageReleaseResponseHandle) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (PlatformMessageReleaseResponseHandle))) ; } test_field_PlatformMessageReleaseResponseHandle () ; fn test_field_SendPlatformMessageResponse () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . SendPlatformMessageResponse) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (SendPlatformMessageResponse))) ; } test_field_SendPlatformMessageResponse () ; fn test_field_RegisterExternalTexture () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . RegisterExternalTexture) as usize - ptr as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (RegisterExternalTexture))) ; } test_field_RegisterExternalTexture () ; fn test_field_UnregisterExternalTexture () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . UnregisterExternalTexture) as usize - ptr as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (UnregisterExternalTexture))) ; } test_field_UnregisterExternalTexture () ; fn test_field_MarkExternalTextureFrameAvailable () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . MarkExternalTextureFrameAvailable) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (MarkExternalTextureFrameAvailable))) ; } test_field_MarkExternalTextureFrameAvailable () ; fn test_field_UpdateSemanticsEnabled () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . UpdateSemanticsEnabled) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (UpdateSemanticsEnabled))) ; } test_field_UpdateSemanticsEnabled () ; fn test_field_UpdateAccessibilityFeatures () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . UpdateAccessibilityFeatures) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (UpdateAccessibilityFeatures))) ; } test_field_UpdateAccessibilityFeatures () ; fn test_field_DispatchSemanticsAction () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . DispatchSemanticsAction) as usize - ptr as usize } , 160usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (DispatchSemanticsAction))) ; } test_field_DispatchSemanticsAction () ; fn test_field_OnVsync () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . OnVsync) as usize - ptr as usize } , 168usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (OnVsync))) ; } test_field_OnVsync () ; fn test_field_ReloadSystemFonts () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . ReloadSystemFonts) as usize - ptr as usize } , 176usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (ReloadSystemFonts))) ; } test_field_ReloadSystemFonts () ; fn test_field_TraceEventDurationBegin () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . TraceEventDurationBegin) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (TraceEventDurationBegin))) ; } test_field_TraceEventDurationBegin () ; fn test_field_TraceEventDurationEnd () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . TraceEventDurationEnd) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (TraceEventDurationEnd))) ; } test_field_TraceEventDurationEnd () ; fn test_field_TraceEventInstant () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . TraceEventInstant) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (TraceEventInstant))) ; } test_field_TraceEventInstant () ; fn test_field_PostRenderThreadTask () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . PostRenderThreadTask) as usize - ptr as usize } , 208usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (PostRenderThreadTask))) ; } test_field_PostRenderThreadTask () ; fn test_field_GetCurrentTime () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . GetCurrentTime) as usize - ptr as usize } , 216usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (GetCurrentTime))) ; } test_field_GetCurrentTime () ; fn test_field_RunTask () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . RunTask) as usize - ptr as usize } , 224usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (RunTask))) ; } test_field_RunTask () ; fn test_field_UpdateLocales () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . UpdateLocales) as usize - ptr as usize } , 232usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (UpdateLocales))) ; } test_field_UpdateLocales () ; fn test_field_RunsAOTCompiledDartCode () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . RunsAOTCompiledDartCode) as usize - ptr as usize } , 240usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (RunsAOTCompiledDartCode))) ; } test_field_RunsAOTCompiledDartCode () ; fn test_field_PostDartObject () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . PostDartObject) as usize - ptr as usize } , 248usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (PostDartObject))) ; } test_field_PostDartObject () ; fn test_field_NotifyLowMemoryWarning () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . NotifyLowMemoryWarning) as usize - ptr as usize } , 256usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (NotifyLowMemoryWarning))) ; } test_field_NotifyLowMemoryWarning () ; fn test_field_PostCallbackOnAllNativeThreads () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . PostCallbackOnAllNativeThreads) as usize - ptr as usize } , 264usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (PostCallbackOnAllNativeThreads))) ; } test_field_PostCallbackOnAllNativeThreads () ; fn test_field_NotifyDisplayUpdate () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . NotifyDisplayUpdate) as usize - ptr as usize } , 272usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (NotifyDisplayUpdate))) ; } test_field_NotifyDisplayUpdate () ; fn test_field_ScheduleFrame () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . ScheduleFrame) as usize - ptr as usize } , 280usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (ScheduleFrame))) ; } test_field_ScheduleFrame () ; } extern "C" { # [doc = " @brief      Gets the table of engine function pointers."] # [doc = ""] # [doc = " @param[out] table   The table to fill with pointers. This should be"] # [doc = "                     zero-initialized, except for struct_size."] # [doc = ""] # [doc = " @return     Returns whether the table was successfully populated."] # [doc = ""] pub fn FlutterEngineGetProcAddresses (table : * mut FlutterEngineProcTable) -> FlutterEngineResult ; }
[INFO] [stdout]   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +                                           +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unclosed HTML tag `MTLTexture`
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/flutter_embedder-b39e10e859f308b8/out/embedder.rs:3:58758
[INFO] [stdout]   |
[INFO] [stdout] 3 | ...andle = * const :: std :: os :: raw :: c_void ; # [doc = " Alias for id<MTLTexture>."] pub type FlutterMetalTextureHandle = * const ::...
[INFO] [stdout]   |                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout] help: try marking as source code
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub const true_ : u32 = 1 ; pub const false_ : u32 = 0 ; pub const __bool_true_false_are_defined : u32 = 1 ; pub const _STDINT_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2X : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 200809 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __WORDSIZE : u32 = 64 ; pub const __WORDSIZE_TIME64_COMPAT32 : u32 = 1 ; pub const __SYSCALL_WORDSIZE : u32 = 64 ; pub const __TIMESIZE : u32 = 64 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 35 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C2X : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const FLUTTER_ENGINE_VERSION : u32 = 1 ; pub type size_t = :: std :: os :: raw :: c_ulong ; pub type wchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [repr (align (16))] # [derive (Debug , Copy , Clone)] pub struct max_align_t { pub __clang_max_align_nonce1 : :: std :: os :: raw :: c_longlong , pub __bindgen_padding_0 : u64 , pub __clang_max_align_nonce2 : u128 , } # [test] fn bindgen_test_layout_max_align_t () { assert_eq ! (:: std :: mem :: size_of :: < max_align_t > () , 32usize , concat ! ("Size of: " , stringify ! (max_align_t))) ; assert_eq ! (:: std :: mem :: align_of :: < max_align_t > () , 16usize , concat ! ("Alignment of " , stringify ! (max_align_t))) ; fn test_field___clang_max_align_nonce1 () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < max_align_t > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . __clang_max_align_nonce1) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (max_align_t) , "::" , stringify ! (__clang_max_align_nonce1))) ; } test_field___clang_max_align_nonce1 () ; fn test_field___clang_max_align_nonce2 () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < max_align_t > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . __clang_max_align_nonce2) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (max_align_t) , "::" , stringify ! (__clang_max_align_nonce2))) ; } test_field___clang_max_align_nonce2 () ; } pub type __u_char = :: std :: os :: raw :: c_uchar ; pub type __u_short = :: std :: os :: raw :: c_ushort ; pub type __u_int = :: std :: os :: raw :: c_uint ; pub type __u_long = :: std :: os :: raw :: c_ulong ; pub type __int8_t = :: std :: os :: raw :: c_schar ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __int16_t = :: std :: os :: raw :: c_short ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; pub type __int32_t = :: std :: os :: raw :: c_int ; pub type __uint32_t = :: std :: os :: raw :: c_uint ; pub type __int64_t = :: std :: os :: raw :: c_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: std :: os :: raw :: c_long ; pub type __u_quad_t = :: std :: os :: raw :: c_ulong ; pub type __intmax_t = :: std :: os :: raw :: c_long ; pub type __uintmax_t = :: std :: os :: raw :: c_ulong ; pub type __dev_t = :: std :: os :: raw :: c_ulong ; pub type __uid_t = :: std :: os :: raw :: c_uint ; pub type __gid_t = :: std :: os :: raw :: c_uint ; pub type __ino_t = :: std :: os :: raw :: c_ulong ; pub type __ino64_t = :: std :: os :: raw :: c_ulong ; pub type __mode_t = :: std :: os :: raw :: c_uint ; pub type __nlink_t = :: std :: os :: raw :: c_ulong ; pub type __off_t = :: std :: os :: raw :: c_long ; pub type __off64_t = :: std :: os :: raw :: c_long ; pub type __pid_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: std :: os :: raw :: c_int ; 2usize] , } # [test] fn bindgen_test_layout___fsid_t () { assert_eq ! (:: std :: mem :: size_of :: < __fsid_t > () , 8usize , concat ! ("Size of: " , stringify ! (__fsid_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __fsid_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__fsid_t))) ; fn test_field___val () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < __fsid_t > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . __val) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__fsid_t) , "::" , stringify ! (__val))) ; } test_field___val () ; } pub type __clock_t = :: std :: os :: raw :: c_long ; pub type __rlim_t = :: std :: os :: raw :: c_ulong ; pub type __rlim64_t = :: std :: os :: raw :: c_ulong ; pub type __id_t = :: std :: os :: raw :: c_uint ; pub type __time_t = :: std :: os :: raw :: c_long ; pub type __useconds_t = :: std :: os :: raw :: c_uint ; pub type __suseconds_t = :: std :: os :: raw :: c_long ; pub type __suseconds64_t = :: std :: os :: raw :: c_long ; pub type __daddr_t = :: std :: os :: raw :: c_int ; pub type __key_t = :: std :: os :: raw :: c_int ; pub type __clockid_t = :: std :: os :: raw :: c_int ; pub type __timer_t = * mut :: std :: os :: raw :: c_void ; pub type __blksize_t = :: std :: os :: raw :: c_long ; pub type __blkcnt_t = :: std :: os :: raw :: c_long ; pub type __blkcnt64_t = :: std :: os :: raw :: c_long ; pub type __fsblkcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsblkcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsword_t = :: std :: os :: raw :: c_long ; pub type __ssize_t = :: std :: os :: raw :: c_long ; pub type __syscall_slong_t = :: std :: os :: raw :: c_long ; pub type __syscall_ulong_t = :: std :: os :: raw :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: std :: os :: raw :: c_char ; pub type __intptr_t = :: std :: os :: raw :: c_long ; pub type __socklen_t = :: std :: os :: raw :: c_uint ; pub type __sig_atomic_t = :: std :: os :: raw :: c_int ; pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = :: std :: os :: raw :: c_schar ; pub type int_fast16_t = :: std :: os :: raw :: c_long ; pub type int_fast32_t = :: std :: os :: raw :: c_long ; pub type int_fast64_t = :: std :: os :: raw :: c_long ; pub type uint_fast8_t = :: std :: os :: raw :: c_uchar ; pub type uint_fast16_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast32_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast64_t = :: std :: os :: raw :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const FlutterEngineResult_kSuccess : FlutterEngineResult = 0 ; pub const FlutterEngineResult_kInvalidLibraryVersion : FlutterEngineResult = 1 ; pub const FlutterEngineResult_kInvalidArguments : FlutterEngineResult = 2 ; pub const FlutterEngineResult_kInternalInconsistency : FlutterEngineResult = 3 ; pub type FlutterEngineResult = :: std :: os :: raw :: c_uint ; pub const FlutterRendererType_kOpenGL : FlutterRendererType = 0 ; pub const FlutterRendererType_kSoftware : FlutterRendererType = 1 ; # [doc = " Metal is only supported on Darwin platforms (macOS / iOS)."] # [doc = " iOS version >= 10.0 (device), 13.0 (simulator)"] # [doc = " macOS version >= 10.14"] pub const FlutterRendererType_kMetal : FlutterRendererType = 2 ; # [doc = " Metal is only supported on Darwin platforms (macOS / iOS)."] # [doc = " iOS version >= 10.0 (device), 13.0 (simulator)"] # [doc = " macOS version >= 10.14"] pub const FlutterRendererType_kVulkan : FlutterRendererType = 3 ; pub type FlutterRendererType = :: std :: os :: raw :: c_uint ; # [doc = " Indicate there is a running accessibility service which is changing the"] # [doc = " interaction model of the device."] pub const FlutterAccessibilityFeature_kFlutterAccessibilityFeatureAccessibleNavigation : FlutterAccessibilityFeature = 1 ; # [doc = " Indicate the platform is inverting the colors of the application."] pub const FlutterAccessibilityFeature_kFlutterAccessibilityFeatureInvertColors : FlutterAccessibilityFeature = 2 ; # [doc = " Request that animations be disabled or simplified."] pub const FlutterAccessibilityFeature_kFlutterAccessibilityFeatureDisableAnimations : FlutterAccessibilityFeature = 4 ; # [doc = " Request that text be rendered at a bold font weight."] pub const FlutterAccessibilityFeature_kFlutterAccessibilityFeatureBoldText : FlutterAccessibilityFeature = 8 ; # [doc = " Request that certain animations be simplified and parallax effects"] # [doc = " removed."] pub const FlutterAccessibilityFeature_kFlutterAccessibilityFeatureReduceMotion : FlutterAccessibilityFeature = 16 ; # [doc = " Request that UI be rendered with darker colors."] pub const FlutterAccessibilityFeature_kFlutterAccessibilityFeatureHighContrast : FlutterAccessibilityFeature = 32 ; # [doc = " Request to show on/off labels inside switches."] pub const FlutterAccessibilityFeature_kFlutterAccessibilityFeatureOnOffSwitchLabels : FlutterAccessibilityFeature = 64 ; # [doc = " Additional accessibility features that may be enabled by the platform."] # [doc = " Must match the `AccessibilityFeatures` enum in window.dart."] pub type FlutterAccessibilityFeature = :: std :: os :: raw :: c_uint ; # [doc = " The equivalent of a user briefly tapping the screen with the finger"] # [doc = " without moving it."] pub const FlutterSemanticsAction_kFlutterSemanticsActionTap : FlutterSemanticsAction = 1 ; # [doc = " The equivalent of a user pressing and holding the screen with the finger"] # [doc = " for a few seconds without moving it."] pub const FlutterSemanticsAction_kFlutterSemanticsActionLongPress : FlutterSemanticsAction = 2 ; # [doc = " The equivalent of a user moving their finger across the screen from right"] # [doc = " to left."] pub const FlutterSemanticsAction_kFlutterSemanticsActionScrollLeft : FlutterSemanticsAction = 4 ; # [doc = " The equivalent of a user moving their finger across the screen from left"] # [doc = " to"] # [doc = " right."] pub const FlutterSemanticsAction_kFlutterSemanticsActionScrollRight : FlutterSemanticsAction = 8 ; # [doc = " The equivalent of a user moving their finger across the screen from bottom"] # [doc = " to top."] pub const FlutterSemanticsAction_kFlutterSemanticsActionScrollUp : FlutterSemanticsAction = 16 ; # [doc = " The equivalent of a user moving their finger across the screen from top to"] # [doc = " bottom."] pub const FlutterSemanticsAction_kFlutterSemanticsActionScrollDown : FlutterSemanticsAction = 32 ; # [doc = " Increase the value represented by the semantics node."] pub const FlutterSemanticsAction_kFlutterSemanticsActionIncrease : FlutterSemanticsAction = 64 ; # [doc = " Decrease the value represented by the semantics node."] pub const FlutterSemanticsAction_kFlutterSemanticsActionDecrease : FlutterSemanticsAction = 128 ; # [doc = " A request to fully show the semantics node on screen."] pub const FlutterSemanticsAction_kFlutterSemanticsActionShowOnScreen : FlutterSemanticsAction = 256 ; # [doc = " Move the cursor forward by one character."] pub const FlutterSemanticsAction_kFlutterSemanticsActionMoveCursorForwardByCharacter : FlutterSemanticsAction = 512 ; # [doc = " Move the cursor backward by one character."] pub const FlutterSemanticsAction_kFlutterSemanticsActionMoveCursorBackwardByCharacter : FlutterSemanticsAction = 1024 ; # [doc = " Set the text selection to the given range."] pub const FlutterSemanticsAction_kFlutterSemanticsActionSetSelection : FlutterSemanticsAction = 2048 ; # [doc = " Copy the current selection to the clipboard."] pub const FlutterSemanticsAction_kFlutterSemanticsActionCopy : FlutterSemanticsAction = 4096 ; # [doc = " Cut the current selection and place it in the clipboard."] pub const FlutterSemanticsAction_kFlutterSemanticsActionCut : FlutterSemanticsAction = 8192 ; # [doc = " Paste the current content of the clipboard."] pub const FlutterSemanticsAction_kFlutterSemanticsActionPaste : FlutterSemanticsAction = 16384 ; # [doc = " Indicate that the node has gained accessibility focus."] pub const FlutterSemanticsAction_kFlutterSemanticsActionDidGainAccessibilityFocus : FlutterSemanticsAction = 32768 ; # [doc = " Indicate that the node has lost accessibility focus."] pub const FlutterSemanticsAction_kFlutterSemanticsActionDidLoseAccessibilityFocus : FlutterSemanticsAction = 65536 ; # [doc = " Indicate that the user has invoked a custom accessibility action."] pub const FlutterSemanticsAction_kFlutterSemanticsActionCustomAction : FlutterSemanticsAction = 131072 ; # [doc = " A request that the node should be dismissed."] pub const FlutterSemanticsAction_kFlutterSemanticsActionDismiss : FlutterSemanticsAction = 262144 ; # [doc = " Move the cursor forward by one word."] pub const FlutterSemanticsAction_kFlutterSemanticsActionMoveCursorForwardByWord : FlutterSemanticsAction = 524288 ; # [doc = " Move the cursor backward by one word."] pub const FlutterSemanticsAction_kFlutterSemanticsActionMoveCursorBackwardByWord : FlutterSemanticsAction = 1048576 ; # [doc = " Replace the current text in the text field."] pub const FlutterSemanticsAction_kFlutterSemanticsActionSetText : FlutterSemanticsAction = 2097152 ; # [doc = " The set of possible actions that can be conveyed to a semantics node."] # [doc = ""] # [doc = " Must match the `SemanticsAction` enum in semantics.dart."] pub type FlutterSemanticsAction = :: std :: os :: raw :: c_uint ; # [doc = " The semantics node has the quality of either being \"checked\" or"] # [doc = " \"unchecked\"."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagHasCheckedState : FlutterSemanticsFlag = 1 ; # [doc = " Whether a semantics node is checked."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsChecked : FlutterSemanticsFlag = 2 ; # [doc = " Whether a semantics node is selected."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsSelected : FlutterSemanticsFlag = 4 ; # [doc = " Whether the semantic node represents a button."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsButton : FlutterSemanticsFlag = 8 ; # [doc = " Whether the semantic node represents a text field."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsTextField : FlutterSemanticsFlag = 16 ; # [doc = " Whether the semantic node currently holds the user's focus."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsFocused : FlutterSemanticsFlag = 32 ; # [doc = " The semantics node has the quality of either being \"enabled\" or"] # [doc = " \"disabled\"."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagHasEnabledState : FlutterSemanticsFlag = 64 ; # [doc = " Whether a semantic node that hasEnabledState is currently enabled."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsEnabled : FlutterSemanticsFlag = 128 ; # [doc = " Whether a semantic node is in a mutually exclusive group."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsInMutuallyExclusiveGroup : FlutterSemanticsFlag = 256 ; # [doc = " Whether a semantic node is a header that divides content into sections."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsHeader : FlutterSemanticsFlag = 512 ; # [doc = " Whether the value of the semantics node is obscured."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsObscured : FlutterSemanticsFlag = 1024 ; # [doc = " Whether the semantics node is the root of a subtree for which a route name"] # [doc = " should be announced."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagScopesRoute : FlutterSemanticsFlag = 2048 ; # [doc = " Whether the semantics node label is the name of a visually distinct route."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagNamesRoute : FlutterSemanticsFlag = 4096 ; # [doc = " Whether the semantics node is considered hidden."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsHidden : FlutterSemanticsFlag = 8192 ; # [doc = " Whether the semantics node represents an image."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsImage : FlutterSemanticsFlag = 16384 ; # [doc = " Whether the semantics node is a live region."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsLiveRegion : FlutterSemanticsFlag = 32768 ; # [doc = " The semantics node has the quality of either being \"on\" or \"off\"."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagHasToggledState : FlutterSemanticsFlag = 65536 ; # [doc = " If true, the semantics node is \"on\". If false, the semantics node is"] # [doc = " \"off\"."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsToggled : FlutterSemanticsFlag = 131072 ; # [doc = " Whether the platform can scroll the semantics node when the user attempts"] # [doc = " to move the accessibility focus to an offscreen child."] # [doc = ""] # [doc = " For example, a `ListView` widget has implicit scrolling so that users can"] # [doc = " easily move the accessibility focus to the next set of children. A"] # [doc = " `PageView` widget does not have implicit scrolling, so that users don't"] # [doc = " navigate to the next page when reaching the end of the current one."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagHasImplicitScrolling : FlutterSemanticsFlag = 262144 ; # [doc = " Whether the value of the semantics node is coming from a multi-line text"] # [doc = " field."] # [doc = ""] # [doc = " This is used for text fields to distinguish single-line text fields from"] # [doc = " multi-line ones."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsMultiline : FlutterSemanticsFlag = 524288 ; # [doc = " Whether the semantic node is read only."] # [doc = ""] # [doc = " Only applicable when kFlutterSemanticsFlagIsTextField flag is on."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsReadOnly : FlutterSemanticsFlag = 1048576 ; # [doc = " Whether the semantic node can hold the user's focus."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsFocusable : FlutterSemanticsFlag = 2097152 ; # [doc = " Whether the semantics node represents a link."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsLink : FlutterSemanticsFlag = 4194304 ; # [doc = " Whether the semantics node represents a slider."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsSlider : FlutterSemanticsFlag = 8388608 ; # [doc = " Whether the semantics node represents a keyboard key."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsKeyboardKey : FlutterSemanticsFlag = 16777216 ; # [doc = " The set of properties that may be associated with a semantics node."] # [doc = ""] # [doc = " Must match the `SemanticsFlag` enum in semantics.dart."] pub type FlutterSemanticsFlag = :: std :: os :: raw :: c_uint ; # [doc = " Text has unknown text direction."] pub const FlutterTextDirection_kFlutterTextDirectionUnknown : FlutterTextDirection = 0 ; # [doc = " Text is read from right to left."] pub const FlutterTextDirection_kFlutterTextDirectionRTL : FlutterTextDirection = 1 ; # [doc = " Text is read from left to right."] pub const FlutterTextDirection_kFlutterTextDirectionLTR : FlutterTextDirection = 2 ; pub type FlutterTextDirection = :: std :: os :: raw :: c_uint ; # [doc = " Suitable for threads that shouldn't disrupt high priority work."] pub const FlutterThreadPriority_kBackground : FlutterThreadPriority = 0 ; # [doc = " Default priority level."] pub const FlutterThreadPriority_kNormal : FlutterThreadPriority = 1 ; # [doc = " Suitable for threads which generate data for the display."] pub const FlutterThreadPriority_kDisplay : FlutterThreadPriority = 2 ; # [doc = " Suitable for thread which raster data."] pub const FlutterThreadPriority_kRaster : FlutterThreadPriority = 3 ; # [doc = " Valid values for priority of Thread."] pub type FlutterThreadPriority = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _FlutterEngine { _unused : [u8 ; 0] , } pub type FlutterEngine = * mut _FlutterEngine ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterTransformation { # [doc = " horizontal scale factor"] pub scaleX : f64 , # [doc = " horizontal skew factor"] pub skewX : f64 , # [doc = " horizontal translation"] pub transX : f64 , # [doc = " vertical skew factor"] pub skewY : f64 , # [doc = " vertical scale factor"] pub scaleY : f64 , # [doc = " vertical translation"] pub transY : f64 , # [doc = " input x-axis perspective factor"] pub pers0 : f64 , # [doc = " input y-axis perspective factor"] pub pers1 : f64 , # [doc = " perspective scale factor"] pub pers2 : f64 , } # [test] fn bindgen_test_layout_FlutterTransformation () { assert_eq ! (:: std :: mem :: size_of :: < FlutterTransformation > () , 72usize , concat ! ("Size of: " , stringify ! (FlutterTransformation))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterTransformation > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterTransformation))) ; fn test_field_scaleX () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scaleX) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (scaleX))) ; } test_field_scaleX () ; fn test_field_skewX () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . skewX) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (skewX))) ; } test_field_skewX () ; fn test_field_transX () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . transX) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (transX))) ; } test_field_transX () ; fn test_field_skewY () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . skewY) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (skewY))) ; } test_field_skewY () ; fn test_field_scaleY () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scaleY) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (scaleY))) ; } test_field_scaleY () ; fn test_field_transY () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . transY) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (transY))) ; } test_field_transY () ; fn test_field_pers0 () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . pers0) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (pers0))) ; } test_field_pers0 () ; fn test_field_pers1 () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . pers1) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (pers1))) ; } test_field_pers1 () ; fn test_field_pers2 () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . pers2) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (pers2))) ; } test_field_pers2 () ; } pub type VoidCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void) > ; # [doc = " Specifies an OpenGL texture target type. Textures are specified using"] # [doc = " the FlutterOpenGLTexture struct."] pub const FlutterOpenGLTargetType_kFlutterOpenGLTargetTypeTexture : FlutterOpenGLTargetType = 0 ; # [doc = " Specifies an OpenGL frame-buffer target type. Framebuffers are specified"] # [doc = " using the FlutterOpenGLFramebuffer struct."] pub const FlutterOpenGLTargetType_kFlutterOpenGLTargetTypeFramebuffer : FlutterOpenGLTargetType = 1 ; pub type FlutterOpenGLTargetType = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterOpenGLTexture { # [doc = " Target texture of the active texture unit (example GL_TEXTURE_2D or"] # [doc = " GL_TEXTURE_RECTANGLE)."] pub target : u32 , # [doc = " The name of the texture."] pub name : u32 , # [doc = " The texture format (example GL_RGBA8)."] pub format : u32 , # [doc = " User data to be returned on the invocation of the destruction callback."] pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " Callback invoked (on an engine managed thread) that asks the embedder to"] # [doc = " collect the texture."] pub destruction_callback : VoidCallback , # [doc = " Optional parameters for texture height/width, default is 0, non-zero means"] # [doc = " the texture has the specified width/height. Usually, when the texture type"] # [doc = " is GL_TEXTURE_RECTANGLE, we need to specify the texture width/height to"] # [doc = " tell the embedder to scale when rendering."] # [doc = " Width of the texture."] pub width : size_t , # [doc = " Height of the texture."] pub height : size_t , } # [test] fn bindgen_test_layout_FlutterOpenGLTexture () { assert_eq ! (:: std :: mem :: size_of :: < FlutterOpenGLTexture > () , 48usize , concat ! ("Size of: " , stringify ! (FlutterOpenGLTexture))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterOpenGLTexture > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterOpenGLTexture))) ; fn test_field_target () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . target) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLTexture) , "::" , stringify ! (target))) ; } test_field_target () ; fn test_field_name () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLTexture) , "::" , stringify ! (name))) ; } test_field_name () ; fn test_field_format () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . format) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLTexture) , "::" , stringify ! (format))) ; } test_field_format () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLTexture) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_destruction_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . destruction_callback) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLTexture) , "::" , stringify ! (destruction_callback))) ; } test_field_destruction_callback () ; fn test_field_width () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . width) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLTexture) , "::" , stringify ! (width))) ; } test_field_width () ; fn test_field_height () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . height) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLTexture) , "::" , stringify ! (height))) ; } test_field_height () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterOpenGLFramebuffer { # [doc = " The target of the color attachment of the frame-buffer. For example,"] # [doc = " GL_TEXTURE_2D or GL_RENDERBUFFER. In case of ambiguity when dealing with"] # [doc = " Window bound frame-buffers, 0 may be used."] pub target : u32 , # [doc = " The name of the framebuffer."] pub name : u32 , # [doc = " User data to be returned on the invocation of the destruction callback."] pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " Callback invoked (on an engine managed thread) that asks the embedder to"] # [doc = " collect the framebuffer."] pub destruction_callback : VoidCallback , } # [test] fn bindgen_test_layout_FlutterOpenGLFramebuffer () { assert_eq ! (:: std :: mem :: size_of :: < FlutterOpenGLFramebuffer > () , 24usize , concat ! ("Size of: " , stringify ! (FlutterOpenGLFramebuffer))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterOpenGLFramebuffer > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterOpenGLFramebuffer))) ; fn test_field_target () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLFramebuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . target) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLFramebuffer) , "::" , stringify ! (target))) ; } test_field_target () ; fn test_field_name () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLFramebuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLFramebuffer) , "::" , stringify ! (name))) ; } test_field_name () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLFramebuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLFramebuffer) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_destruction_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLFramebuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . destruction_callback) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLFramebuffer) , "::" , stringify ! (destruction_callback))) ; } test_field_destruction_callback () ; } pub type BoolCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void) -> bool > ; pub type TransformationCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void) -> FlutterTransformation > ; pub type UIntCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void) -> u32 > ; pub type SoftwareSurfacePresentCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void , arg3 : size_t , arg4 : size_t) -> bool > ; pub type ProcResolver = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_void > ; pub type TextureFrameCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : i64 , arg3 : size_t , arg4 : size_t , arg5 : * mut FlutterOpenGLTexture) -> bool > ; pub type VsyncCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : isize) > ; pub type OnPreEngineRestartCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void) > ; # [doc = " A structure to represent the width and height."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterSize { pub width : f64 , pub height : f64 , } # [test] fn bindgen_test_layout_FlutterSize () { assert_eq ! (:: std :: mem :: size_of :: < FlutterSize > () , 16usize , concat ! ("Size of: " , stringify ! (FlutterSize))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterSize > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterSize))) ; fn test_field_width () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSize > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . width) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterSize) , "::" , stringify ! (width))) ; } test_field_width () ; fn test_field_height () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSize > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . height) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterSize) , "::" , stringify ! (height))) ; } test_field_height () ; } # [doc = " A structure to represent the width and height."] # [doc = ""] # [doc = " See: \\ref FlutterSize when the value are not integers."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterUIntSize { pub width : u32 , pub height : u32 , } # [test] fn bindgen_test_layout_FlutterUIntSize () { assert_eq ! (:: std :: mem :: size_of :: < FlutterUIntSize > () , 8usize , concat ! ("Size of: " , stringify ! (FlutterUIntSize))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterUIntSize > () , 4usize , concat ! ("Alignment of " , stringify ! (FlutterUIntSize))) ; fn test_field_width () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterUIntSize > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . width) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterUIntSize) , "::" , stringify ! (width))) ; } test_field_width () ; fn test_field_height () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterUIntSize > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . height) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (FlutterUIntSize) , "::" , stringify ! (height))) ; } test_field_height () ; } # [doc = " A structure to represent a rectangle."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterRect { pub left : f64 , pub top : f64 , pub right : f64 , pub bottom : f64 , } # [test] fn bindgen_test_layout_FlutterRect () { assert_eq ! (:: std :: mem :: size_of :: < FlutterRect > () , 32usize , concat ! ("Size of: " , stringify ! (FlutterRect))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterRect > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterRect))) ; fn test_field_left () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . left) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterRect) , "::" , stringify ! (left))) ; } test_field_left () ; fn test_field_top () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . top) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterRect) , "::" , stringify ! (top))) ; } test_field_top () ; fn test_field_right () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . right) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterRect) , "::" , stringify ! (right))) ; } test_field_right () ; fn test_field_bottom () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . bottom) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterRect) , "::" , stringify ! (bottom))) ; } test_field_bottom () ; } # [doc = " A structure to represent a 2D point."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterPoint { pub x : f64 , pub y : f64 , } # [test] fn bindgen_test_layout_FlutterPoint () { assert_eq ! (:: std :: mem :: size_of :: < FlutterPoint > () , 16usize , concat ! ("Size of: " , stringify ! (FlutterPoint))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterPoint > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterPoint))) ; fn test_field_x () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPoint > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . x) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPoint) , "::" , stringify ! (x))) ; } test_field_x () ; fn test_field_y () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPoint > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . y) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterPoint) , "::" , stringify ! (y))) ; } test_field_y () ; } # [doc = " A structure to represent a rounded rectangle."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterRoundedRect { pub rect : FlutterRect , pub upper_left_corner_radius : FlutterSize , pub upper_right_corner_radius : FlutterSize , pub lower_right_corner_radius : FlutterSize , pub lower_left_corner_radius : FlutterSize , } # [test] fn bindgen_test_layout_FlutterRoundedRect () { assert_eq ! (:: std :: mem :: size_of :: < FlutterRoundedRect > () , 96usize , concat ! ("Size of: " , stringify ! (FlutterRoundedRect))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterRoundedRect > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterRoundedRect))) ; fn test_field_rect () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRoundedRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . rect) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterRoundedRect) , "::" , stringify ! (rect))) ; } test_field_rect () ; fn test_field_upper_left_corner_radius () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRoundedRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . upper_left_corner_radius) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterRoundedRect) , "::" , stringify ! (upper_left_corner_radius))) ; } test_field_upper_left_corner_radius () ; fn test_field_upper_right_corner_radius () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRoundedRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . upper_right_corner_radius) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterRoundedRect) , "::" , stringify ! (upper_right_corner_radius))) ; } test_field_upper_right_corner_radius () ; fn test_field_lower_right_corner_radius () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRoundedRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . lower_right_corner_radius) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterRoundedRect) , "::" , stringify ! (lower_right_corner_radius))) ; } test_field_lower_right_corner_radius () ; fn test_field_lower_left_corner_radius () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRoundedRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . lower_left_corner_radius) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (FlutterRoundedRect) , "::" , stringify ! (lower_left_corner_radius))) ; } test_field_lower_left_corner_radius () ; } # [doc = " This information is passed to the embedder when requesting a frame buffer"] # [doc = " object."] # [doc = ""] # [doc = " See: \\ref FlutterOpenGLRendererConfig.fbo_with_frame_info_callback."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterFrameInfo { # [doc = " The size of this struct. Must be sizeof(FlutterFrameInfo)."] pub struct_size : size_t , # [doc = " The size of the surface that will be backed by the fbo."] pub size : FlutterUIntSize , } # [test] fn bindgen_test_layout_FlutterFrameInfo () { assert_eq ! (:: std :: mem :: size_of :: < FlutterFrameInfo > () , 16usize , concat ! ("Size of: " , stringify ! (FlutterFrameInfo))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterFrameInfo > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterFrameInfo))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterFrameInfo > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterFrameInfo) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterFrameInfo > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterFrameInfo) , "::" , stringify ! (size))) ; } test_field_size () ; } # [doc = " Callback for when a frame buffer object is requested."] pub type UIntFrameInfoCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * const FlutterFrameInfo) -> u32 > ; # [doc = " This information is passed to the embedder when a surface is presented."] # [doc = ""] # [doc = " See: \\ref FlutterOpenGLRendererConfig.present_with_info."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterPresentInfo { # [doc = " The size of this struct. Must be sizeof(FlutterPresentInfo)."] pub struct_size : size_t , # [doc = " Id of the fbo backing the surface that was presented."] pub fbo_id : u32 , } # [test] fn bindgen_test_layout_FlutterPresentInfo () { assert_eq ! (:: std :: mem :: size_of :: < FlutterPresentInfo > () , 16usize , concat ! ("Size of: " , stringify ! (FlutterPresentInfo))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterPresentInfo > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterPresentInfo))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPresentInfo > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPresentInfo) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_fbo_id () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPresentInfo > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . fbo_id) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterPresentInfo) , "::" , stringify ! (fbo_id))) ; } test_field_fbo_id () ; } # [doc = " Callback for when a surface is presented."] pub type BoolPresentInfoCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * const FlutterPresentInfo) -> bool > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterOpenGLRendererConfig { # [doc = " The size of this struct. Must be sizeof(FlutterOpenGLRendererConfig)."] pub struct_size : size_t , pub make_current : BoolCallback , pub clear_current : BoolCallback , # [doc = " Specifying one (and only one) of `present` or `present_with_info` is"] # [doc = " required. Specifying both is an error and engine initialization will be"] # [doc = " terminated. The return value indicates success of the present call."] pub present : BoolCallback , # [doc = " Specifying one (and only one) of the `fbo_callback` or"] # [doc = " `fbo_with_frame_info_callback` is required. Specifying both is an error"] # [doc = " and engine intialization will be terminated. The return value indicates"] # [doc = " the id of the frame buffer object that flutter will obtain the gl surface"] # [doc = " from."] pub fbo_callback : UIntCallback , # [doc = " This is an optional callback. Flutter will ask the emebdder to create a GL"] # [doc = " context current on a background thread. If the embedder is able to do so,"] # [doc = " Flutter will assume that this context is in the same sharegroup as the"] # [doc = " main rendering context and use this context for asynchronous texture"] # [doc = " uploads. Though optional, it is recommended that all embedders set this"] # [doc = " callback as it will lead to better performance in texture handling."] pub make_resource_current : BoolCallback , # [doc = " By default, the renderer config assumes that the FBO does not change for"] # [doc = " the duration of the engine run. If this argument is true, the"] # [doc = " engine will ask the embedder for an updated FBO target (via an"] # [doc = " fbo_callback invocation) after a present call."] pub fbo_reset_after_present : bool , # [doc = " The transformation to apply to the render target before any rendering"] # [doc = " operations. This callback is optional."] # [doc = " @attention      When using a custom compositor, the layer offset and sizes"] # [doc = "                 will be affected by this transformation. It will be"] # [doc = "                 embedder responsibility to render contents at the"] # [doc = "                 transformed offset and size. This is useful for embedders"] # [doc = "                 that want to render transformed contents directly into"] # [doc = "                 hardware overlay planes without having to apply extra"] # [doc = "                 transformations to layer contents (which may necessitate"] # [doc = "                 an expensive off-screen render pass)."] pub surface_transformation : TransformationCallback , pub gl_proc_resolver : ProcResolver , # [doc = " When the embedder specifies that a texture has a frame available, the"] # [doc = " engine will call this method (on an internal engine managed thread) so"] # [doc = " that external texture details can be supplied to the engine for subsequent"] # [doc = " composition."] pub gl_external_texture_frame_callback : TextureFrameCallback , # [doc = " Specifying one (and only one) of the `fbo_callback` or"] # [doc = " `fbo_with_frame_info_callback` is required. Specifying both is an error"] # [doc = " and engine intialization will be terminated. The return value indicates"] # [doc = " the id of the frame buffer object (fbo) that flutter will obtain the gl"] # [doc = " surface from. When using this variant, the embedder is passed a"] # [doc = " `FlutterFrameInfo` struct that indicates the properties of the surface"] # [doc = " that flutter will acquire from the returned fbo."] pub fbo_with_frame_info_callback : UIntFrameInfoCallback , # [doc = " Specifying one (and only one) of `present` or `present_with_info` is"] # [doc = " required. Specifying both is an error and engine initialization will be"] # [doc = " terminated. When using this variant, the embedder is passed a"] # [doc = " `FlutterPresentInfo` struct that the embedder can use to release any"] # [doc = " resources. The return value indicates success of the present call."] pub present_with_info : BoolPresentInfoCallback , } # [test] fn bindgen_test_layout_FlutterOpenGLRendererConfig () { assert_eq ! (:: std :: mem :: size_of :: < FlutterOpenGLRendererConfig > () , 96usize , concat ! ("Size of: " , stringify ! (FlutterOpenGLRendererConfig))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterOpenGLRendererConfig > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterOpenGLRendererConfig))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_make_current () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . make_current) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (make_current))) ; } test_field_make_current () ; fn test_field_clear_current () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . clear_current) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (clear_current))) ; } test_field_clear_current () ; fn test_field_present () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . present) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (present))) ; } test_field_present () ; fn test_field_fbo_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . fbo_callback) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (fbo_callback))) ; } test_field_fbo_callback () ; fn test_field_make_resource_current () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . make_resource_current) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (make_resource_current))) ; } test_field_make_resource_current () ; fn test_field_fbo_reset_after_present () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . fbo_reset_after_present) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (fbo_reset_after_present))) ; } test_field_fbo_reset_after_present () ; fn test_field_surface_transformation () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . surface_transformation) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (surface_transformation))) ; } test_field_surface_transformation () ; fn test_field_gl_proc_resolver () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . gl_proc_resolver) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (gl_proc_resolver))) ; } test_field_gl_proc_resolver () ; fn test_field_gl_external_texture_frame_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . gl_external_texture_frame_callback) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (gl_external_texture_frame_callback))) ; } test_field_gl_external_texture_frame_callback () ; fn test_field_fbo_with_frame_info_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . fbo_with_frame_info_callback) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (fbo_with_frame_info_callback))) ; } test_field_fbo_with_frame_info_callback () ; fn test_field_present_with_info () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . present_with_info) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (present_with_info))) ; } test_field_present_with_info () ; } # [doc = " Alias for id<MTLDevice>."] pub type FlutterMetalDeviceHandle = * const :: std :: os :: raw :: c_void ; # [doc = " Alias for id<MTLCommandQueue>."] pub type FlutterMetalCommandQueueHandle = * const :: std :: os :: raw :: c_void ; `# [doc = " Alias for id<MTLTexture>."]` pub type FlutterMetalTextureHandle = * const :: std :: os :: raw :: c_void ; pub const FlutterMetalExternalTexturePixelFormat_kYUVA : FlutterMetalExternalTexturePixelFormat = 0 ; pub const FlutterMetalExternalTexturePixelFormat_kRGBA : FlutterMetalExternalTexturePixelFormat = 1 ; # [doc = " Pixel format for the external texture."] pub type FlutterMetalExternalTexturePixelFormat = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterMetalExternalTexture { # [doc = " The size of this struct. Must be sizeof(FlutterMetalExternalTexture)."] pub struct_size : size_t , # [doc = " Height of the texture."] pub width : size_t , # [doc = " Height of the texture."] pub height : size_t , # [doc = " The pixel format type of the external."] pub pixel_format : FlutterMetalExternalTexturePixelFormat , # [doc = " Represents the size of the `textures` array."] pub num_textures : size_t , # [doc = " Supported textures are YUVA and RGBA, in case of YUVA we expect 2 texture"] # [doc = " handles to be provided by the embedder, Y first and UV next. In case of"] # [doc = " RGBA only one should be passed."] # [doc = " These are individually aliases for id<MTLTexture>. These textures are"] # [doc = " retained by the engine for the period of the composition. Once these"] # [doc = " textures have been unregistered via the"] # [doc = " `FlutterEngineUnregisterExternalTexture`, the embedder has to release"] # [doc = " these textures."] pub textures : * mut FlutterMetalTextureHandle , } # [test] fn bindgen_test_layout_FlutterMetalExternalTexture () { assert_eq ! (:: std :: mem :: size_of :: < FlutterMetalExternalTexture > () , 48usize , concat ! ("Size of: " , stringify ! (FlutterMetalExternalTexture))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterMetalExternalTexture > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterMetalExternalTexture))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalExternalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalExternalTexture) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_width () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalExternalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . width) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalExternalTexture) , "::" , stringify ! (width))) ; } test_field_width () ; fn test_field_height () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalExternalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . height) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalExternalTexture) , "::" , stringify ! (height))) ; } test_field_height () ; fn test_field_pixel_format () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalExternalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . pixel_format) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalExternalTexture) , "::" , stringify ! (pixel_format))) ; } test_field_pixel_format () ; fn test_field_num_textures () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalExternalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . num_textures) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalExternalTexture) , "::" , stringify ! (num_textures))) ; } test_field_num_textures () ; fn test_field_textures () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalExternalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . textures) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalExternalTexture) , "::" , stringify ! (textures))) ; } test_field_textures () ; } # [doc = " Callback to provide an external texture for a given texture_id."] # [doc = " See: external_texture_frame_callback."] pub type FlutterMetalTextureFrameCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : i64 , arg3 : size_t , arg4 : size_t , arg5 : * mut FlutterMetalExternalTexture) -> bool > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterMetalTexture { # [doc = " The size of this struct. Must be sizeof(FlutterMetalTexture)."] pub struct_size : size_t , # [doc = " Embedder provided unique identifier to the texture buffer. Given that the"] # [doc = " `texture` handle is passed to the engine to render to, the texture buffer"] # [doc = " is itself owned by the embedder. This `texture_id` is then also given to"] # [doc = " the embedder in the present callback."] pub texture_id : i64 , # [doc = " Handle to the MTLTexture that is owned by the embedder. Engine will render"] # [doc = " the frame into this texture."] pub texture : FlutterMetalTextureHandle , # [doc = " A baton that is not interpreted by the engine in any way. It will be given"] # [doc = " back to the embedder in the destruction callback below. Embedder resources"] # [doc = " may be associated with this baton."] pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " The callback invoked by the engine when it no longer needs this backing"] # [doc = " store."] pub destruction_callback : VoidCallback , } # [test] fn bindgen_test_layout_FlutterMetalTexture () { assert_eq ! (:: std :: mem :: size_of :: < FlutterMetalTexture > () , 40usize , concat ! ("Size of: " , stringify ! (FlutterMetalTexture))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterMetalTexture > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterMetalTexture))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalTexture) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_texture_id () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . texture_id) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalTexture) , "::" , stringify ! (texture_id))) ; } test_field_texture_id () ; fn test_field_texture () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . texture) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalTexture) , "::" , stringify ! (texture))) ; } test_field_texture () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalTexture) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_destruction_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . destruction_callback) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalTexture) , "::" , stringify ! (destruction_callback))) ; } test_field_destruction_callback () ; } # [doc = " Callback for when a metal texture is requested."] pub type FlutterMetalTextureCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * const FlutterFrameInfo) -> FlutterMetalTexture > ; # [doc = " Callback for when a metal texture is presented. The texture_id here"] # [doc = " corresponds to the texture_id provided by the embedder in the"] # [doc = " `FlutterMetalTextureCallback` callback."] pub type FlutterMetalPresentCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * const FlutterMetalTexture) -> bool > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterMetalRendererConfig { # [doc = " The size of this struct. Must be sizeof(FlutterMetalRendererConfig)."] pub struct_size : size_t , # [doc = " Alias for id<MTLDevice>."] pub device : FlutterMetalDeviceHandle , # [doc = " Alias for id<MTLCommandQueue>."] pub present_command_queue : FlutterMetalCommandQueueHandle , # [doc = " The callback that gets invoked when the engine requests the embedder for a"] # [doc = " texture to render to."] pub get_next_drawable_callback : FlutterMetalTextureCallback , # [doc = " The callback presented to the embedder to present a fully populated metal"] # [doc = " texture to the user."] pub present_drawable_callback : FlutterMetalPresentCallback , # [doc = " When the embedder specifies that a texture has a frame available, the"] # [doc = " engine will call this method (on an internal engine managed thread) so"] # [doc = " that external texture details can be supplied to the engine for subsequent"] # [doc = " composition."] pub external_texture_frame_callback : FlutterMetalTextureFrameCallback , } # [test] fn bindgen_test_layout_FlutterMetalRendererConfig () { assert_eq ! (:: std :: mem :: size_of :: < FlutterMetalRendererConfig > () , 48usize , concat ! ("Size of: " , stringify ! (FlutterMetalRendererConfig))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterMetalRendererConfig > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterMetalRendererConfig))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalRendererConfig) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_device () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . device) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalRendererConfig) , "::" , stringify ! (device))) ; } test_field_device () ; fn test_field_present_command_queue () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . present_command_queue) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalRendererConfig) , "::" , stringify ! (present_command_queue))) ; } test_field_present_command_queue () ; fn test_field_get_next_drawable_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . get_next_drawable_callback) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalRendererConfig) , "::" , stringify ! (get_next_drawable_callback))) ; } test_field_get_next_drawable_callback () ; fn test_field_present_drawable_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . present_drawable_callback) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalRendererConfig) , "::" , stringify ! (present_drawable_callback))) ; } test_field_present_drawable_callback () ; fn test_field_external_texture_frame_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . external_texture_frame_callback) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalRendererConfig) , "::" , stringify ! (external_texture_frame_callback))) ; } test_field_external_texture_frame_callback () ; } # [doc = " Alias for VkInstance."] pub type FlutterVulkanInstanceHandle = * mut :: std :: os :: raw :: c_void ; # [doc = " Alias for VkPhysicalDevice."] pub type FlutterVulkanPhysicalDeviceHandle = * mut :: std :: os :: raw :: c_void ; # [doc = " Alias for VkDevice."] pub type FlutterVulkanDeviceHandle = * mut :: std :: os :: raw :: c_void ; # [doc = " Alias for VkQueue."] pub type FlutterVulkanQueueHandle = * mut :: std :: os :: raw :: c_void ; # [doc = " Alias for VkImage."] pub type FlutterVulkanImageHandle = u64 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterVulkanImage { # [doc = " The size of this struct. Must be sizeof(FlutterVulkanImage)."] pub struct_size : size_t , # [doc = " Handle to the VkImage that is owned by the embedder. The engine will"] # [doc = " bind this image for writing the frame."] pub image : FlutterVulkanImageHandle , # [doc = " The VkFormat of the image (for example: VK_FORMAT_R8G8B8A8_UNORM)."] pub format : u32 , } # [test] fn bindgen_test_layout_FlutterVulkanImage () { assert_eq ! (:: std :: mem :: size_of :: < FlutterVulkanImage > () , 24usize , concat ! ("Size of: " , stringify ! (FlutterVulkanImage))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterVulkanImage > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterVulkanImage))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanImage > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanImage) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_image () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanImage > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . image) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanImage) , "::" , stringify ! (image))) ; } test_field_image () ; fn test_field_format () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanImage > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . format) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanImage) , "::" , stringify ! (format))) ; } test_field_format () ; } # [doc = " Callback to fetch a Vulkan function pointer for a given instance. Normally,"] # [doc = " this should return the results of vkGetInstanceProcAddr."] pub type FlutterVulkanInstanceProcAddressCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : FlutterVulkanInstanceHandle , arg3 : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_void > ; # [doc = " Callback for when a VkImage is requested."] pub type FlutterVulkanImageCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * const FlutterFrameInfo) -> FlutterVulkanImage > ; # [doc = " Callback for when a VkImage has been written to and is ready for use by the"] # [doc = " embedder."] pub type FlutterVulkanPresentCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * const FlutterVulkanImage) -> bool > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterVulkanRendererConfig { # [doc = " The size of this struct. Must be sizeof(FlutterVulkanRendererConfig)."] pub struct_size : size_t , # [doc = " The Vulkan API version. This should match the value set in"] # [doc = " VkApplicationInfo::apiVersion when the VkInstance was created."] pub version : u32 , # [doc = " VkInstance handle. Must not be destroyed before `FlutterEngineShutdown` is"] # [doc = " called."] pub instance : FlutterVulkanInstanceHandle , # [doc = " VkPhysicalDevice handle."] pub physical_device : FlutterVulkanPhysicalDeviceHandle , # [doc = " VkDevice handle. Must not be destroyed before `FlutterEngineShutdown` is"] # [doc = " called."] pub device : FlutterVulkanDeviceHandle , # [doc = " The queue family index of the VkQueue supplied in the next field."] pub queue_family_index : u32 , # [doc = " VkQueue handle."] pub queue : FlutterVulkanQueueHandle , # [doc = " The number of instance extensions available for enumerating in the next"] # [doc = " field."] pub enabled_instance_extension_count : size_t , # [doc = " Array of enabled instance extension names. This should match the names"] # [doc = " passed to `VkInstanceCreateInfo.ppEnabledExtensionNames` when the instance"] # [doc = " was created, but any subset of enabled instance extensions may be"] # [doc = " specified."] # [doc = " This field is optional; `nullptr` may be specified."] # [doc = " This memory is only accessed during the call to FlutterEngineInitialize."] pub enabled_instance_extensions : * mut * const :: std :: os :: raw :: c_char , # [doc = " The number of device extensions available for enumerating in the next"] # [doc = " field."] pub enabled_device_extension_count : size_t , # [doc = " Array of enabled logical device extension names. This should match the"] # [doc = " names passed to `VkDeviceCreateInfo.ppEnabledExtensionNames` when the"] # [doc = " logical device was created, but any subset of enabled logical device"] # [doc = " extensions may be specified."] # [doc = " This field is optional; `nullptr` may be specified."] # [doc = " This memory is only accessed during the call to FlutterEngineInitialize."] # [doc = " For example: VK_KHR_GET_MEMORY_REQUIREMENTS_2_EXTENSION_NAME"] pub enabled_device_extensions : * mut * const :: std :: os :: raw :: c_char , # [doc = " The callback invoked when resolving Vulkan function pointers."] pub get_instance_proc_address_callback : FlutterVulkanInstanceProcAddressCallback , # [doc = " The callback invoked when the engine requests a VkImage from the embedder"] # [doc = " for rendering the next frame."] # [doc = " Not used if a FlutterCompositor is supplied in FlutterProjectArgs."] pub get_next_image_callback : FlutterVulkanImageCallback , # [doc = " The callback invoked when a VkImage has been written to and is ready for"] # [doc = " use by the embedder. Prior to calling this callback, the engine performs"] # [doc = " a host sync, and so the VkImage can be used in a pipeline by the embedder"] # [doc = " without any additional synchronization."] # [doc = " Not used if a FlutterCompositor is supplied in FlutterProjectArgs."] pub present_image_callback : FlutterVulkanPresentCallback , } # [test] fn bindgen_test_layout_FlutterVulkanRendererConfig () { assert_eq ! (:: std :: mem :: size_of :: < FlutterVulkanRendererConfig > () , 112usize , concat ! ("Size of: " , stringify ! (FlutterVulkanRendererConfig))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterVulkanRendererConfig > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterVulkanRendererConfig))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_version () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . version) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (version))) ; } test_field_version () ; fn test_field_instance () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . instance) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (instance))) ; } test_field_instance () ; fn test_field_physical_device () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . physical_device) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (physical_device))) ; } test_field_physical_device () ; fn test_field_device () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . device) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (device))) ; } test_field_device () ; fn test_field_queue_family_index () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . queue_family_index) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (queue_family_index))) ; } test_field_queue_family_index () ; fn test_field_queue () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . queue) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (queue))) ; } test_field_queue () ; fn test_field_enabled_instance_extension_count () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . enabled_instance_extension_count) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (enabled_instance_extension_count))) ; } test_field_enabled_instance_extension_count () ; fn test_field_enabled_instance_extensions () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . enabled_instance_extensions) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (enabled_instance_extensions))) ; } test_field_enabled_instance_extensions () ; fn test_field_enabled_device_extension_count () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . enabled_device_extension_count) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (enabled_device_extension_count))) ; } test_field_enabled_device_extension_count () ; fn test_field_enabled_device_extensions () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . enabled_device_extensions) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (enabled_device_extensions))) ; } test_field_enabled_device_extensions () ; fn test_field_get_instance_proc_address_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . get_instance_proc_address_callback) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (get_instance_proc_address_callback))) ; } test_field_get_instance_proc_address_callback () ; fn test_field_get_next_image_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . get_next_image_callback) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (get_next_image_callback))) ; } test_field_get_next_image_callback () ; fn test_field_present_image_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . present_image_callback) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (present_image_callback))) ; } test_field_present_image_callback () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterSoftwareRendererConfig { # [doc = " The size of this struct. Must be sizeof(FlutterSoftwareRendererConfig)."] pub struct_size : size_t , # [doc = " The callback presented to the embedder to present a fully populated buffer"] # [doc = " to the user. The pixel format of the buffer is the native 32-bit RGBA"] # [doc = " format. The buffer is owned by the Flutter engine and must be copied in"] # [doc = " this callback if needed."] pub surface_present_callback : SoftwareSurfacePresentCallback , } # [test] fn bindgen_test_layout_FlutterSoftwareRendererConfig () { assert_eq ! (:: std :: mem :: size_of :: < FlutterSoftwareRendererConfig > () , 16usize , concat ! ("Size of: " , stringify ! (FlutterSoftwareRendererConfig))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterSoftwareRendererConfig > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterSoftwareRendererConfig))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSoftwareRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterSoftwareRendererConfig) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_surface_present_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSoftwareRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . surface_present_callback) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterSoftwareRendererConfig) , "::" , stringify ! (surface_present_callback))) ; } test_field_surface_present_callback () ; } # [repr (C)] # [derive (Copy , Clone)] pub struct FlutterRendererConfig { pub type_ : FlutterRendererType , pub __bindgen_anon_1 : FlutterRendererConfig__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union FlutterRendererConfig__bindgen_ty_1 { pub open_gl : FlutterOpenGLRendererConfig , pub software : FlutterSoftwareRendererConfig , pub metal : FlutterMetalRendererConfig , pub vulkan : FlutterVulkanRendererConfig , } # [test] fn bindgen_test_layout_FlutterRendererConfig__bindgen_ty_1 () { assert_eq ! (:: std :: mem :: size_of :: < FlutterRendererConfig__bindgen_ty_1 > () , 112usize , concat ! ("Size of: " , stringify ! (FlutterRendererConfig__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterRendererConfig__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterRendererConfig__bindgen_ty_1))) ; fn test_field_open_gl () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRendererConfig__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . open_gl) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterRendererConfig__bindgen_ty_1) , "::" , stringify ! (open_gl))) ; } test_field_open_gl () ; fn test_field_software () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRendererConfig__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . software) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterRendererConfig__bindgen_ty_1) , "::" , stringify ! (software))) ; } test_field_software () ; fn test_field_metal () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRendererConfig__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . metal) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterRendererConfig__bindgen_ty_1) , "::" , stringify ! (metal))) ; } test_field_metal () ; fn test_field_vulkan () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRendererConfig__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . vulkan) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterRendererConfig__bindgen_ty_1) , "::" , stringify ! (vulkan))) ; } test_field_vulkan () ; } # [test] fn bindgen_test_layout_FlutterRendererConfig () { assert_eq ! (:: std :: mem :: size_of :: < FlutterRendererConfig > () , 120usize , concat ! ("Size of: " , stringify ! (FlutterRendererConfig))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterRendererConfig > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterRendererConfig))) ; fn test_field_type () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . type_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterRendererConfig) , "::" , stringify ! (type_))) ; } test_field_type () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterWindowMetricsEvent { # [doc = " The size of this struct. Must be sizeof(FlutterWindowMetricsEvent)."] pub struct_size : size_t , # [doc = " Physical width of the window."] pub width : size_t , # [doc = " Physical height of the window."] pub height : size_t , # [doc = " Scale factor for the physical screen."] pub pixel_ratio : f64 , # [doc = " Horizontal physical location of the left side of the window on the screen."] pub left : size_t , # [doc = " Vertical physical location of the top of the window on the screen."] pub top : size_t , # [doc = " Top inset of window."] pub physical_view_inset_top : f64 , # [doc = " Right inset of window."] pub physical_view_inset_right : f64 , # [doc = " Bottom inset of window."] pub physical_view_inset_bottom : f64 , # [doc = " Left inset of window."] pub physical_view_inset_left : f64 , } # [test] fn bindgen_test_layout_FlutterWindowMetricsEvent () { assert_eq ! (:: std :: mem :: size_of :: < FlutterWindowMetricsEvent > () , 80usize , concat ! ("Size of: " , stringify ! (FlutterWindowMetricsEvent))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterWindowMetricsEvent > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterWindowMetricsEvent))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_width () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . width) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (width))) ; } test_field_width () ; fn test_field_height () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . height) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (height))) ; } test_field_height () ; fn test_field_pixel_ratio () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . pixel_ratio) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (pixel_ratio))) ; } test_field_pixel_ratio () ; fn test_field_left () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . left) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (left))) ; } test_field_left () ; fn test_field_top () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . top) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (top))) ; } test_field_top () ; fn test_field_physical_view_inset_top () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . physical_view_inset_top) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (physical_view_inset_top))) ; } test_field_physical_view_inset_top () ; fn test_field_physical_view_inset_right () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . physical_view_inset_right) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (physical_view_inset_right))) ; } test_field_physical_view_inset_right () ; fn test_field_physical_view_inset_bottom () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . physical_view_inset_bottom) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (physical_view_inset_bottom))) ; } test_field_physical_view_inset_bottom () ; fn test_field_physical_view_inset_left () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . physical_view_inset_left) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (physical_view_inset_left))) ; } test_field_physical_view_inset_left () ; } pub const FlutterPointerPhase_kCancel : FlutterPointerPhase = 0 ; # [doc = " The pointer, which must have been down (see kDown), is now up."] # [doc = ""] # [doc = " For touch, this means that the pointer is no longer in contact with the"] # [doc = " screen. For a mouse, it means the last button was released. Note that if"] # [doc = " any other buttons are still pressed when one button is released, that"] # [doc = " should be sent as a kMove rather than a kUp."] pub const FlutterPointerPhase_kUp : FlutterPointerPhase = 1 ; # [doc = " The pointer, which must have been been up, is now down."] # [doc = ""] # [doc = " For touch, this means that the pointer has come into contact with the"] # [doc = " screen. For a mouse, it means a button is now pressed. Note that if any"] # [doc = " other buttons are already pressed when a new button is pressed, that"] # [doc = " should be sent as a kMove rather than a kDown."] pub const FlutterPointerPhase_kDown : FlutterPointerPhase = 2 ; # [doc = " The pointer moved while down."] # [doc = ""] # [doc = " This is also used for changes in button state that don't cause a kDown or"] # [doc = " kUp, such as releasing one of two pressed buttons."] pub const FlutterPointerPhase_kMove : FlutterPointerPhase = 3 ; # [doc = " The pointer is now sending input to Flutter. For instance, a mouse has"] # [doc = " entered the area where the Flutter content is displayed."] # [doc = ""] # [doc = " A pointer should always be added before sending any other events."] pub const FlutterPointerPhase_kAdd : FlutterPointerPhase = 4 ; # [doc = " The pointer is no longer sending input to Flutter. For instance, a mouse"] # [doc = " has left the area where the Flutter content is displayed."] # [doc = ""] # [doc = " A removed pointer should no longer send events until sending a new kAdd."] pub const FlutterPointerPhase_kRemove : FlutterPointerPhase = 5 ; # [doc = " The pointer moved while up."] pub const FlutterPointerPhase_kHover : FlutterPointerPhase = 6 ; # [doc = " A pan/zoom started on this pointer."] pub const FlutterPointerPhase_kPanZoomStart : FlutterPointerPhase = 7 ; # [doc = " The pan/zoom updated."] pub const FlutterPointerPhase_kPanZoomUpdate : FlutterPointerPhase = 8 ; # [doc = " The pan/zoom ended."] pub const FlutterPointerPhase_kPanZoomEnd : FlutterPointerPhase = 9 ; # [doc = " The phase of the pointer event."] pub type FlutterPointerPhase = :: std :: os :: raw :: c_uint ; pub const FlutterPointerDeviceKind_kFlutterPointerDeviceKindMouse : FlutterPointerDeviceKind = 1 ; pub const FlutterPointerDeviceKind_kFlutterPointerDeviceKindTouch : FlutterPointerDeviceKind = 2 ; pub const FlutterPointerDeviceKind_kFlutterPointerDeviceKindStylus : FlutterPointerDeviceKind = 3 ; pub const FlutterPointerDeviceKind_kFlutterPointerDeviceKindTrackpad : FlutterPointerDeviceKind = 4 ; # [doc = " The device type that created a pointer event."] pub type FlutterPointerDeviceKind = :: std :: os :: raw :: c_uint ; pub const FlutterPointerMouseButtons_kFlutterPointerButtonMousePrimary : FlutterPointerMouseButtons = 1 ; pub const FlutterPointerMouseButtons_kFlutterPointerButtonMouseSecondary : FlutterPointerMouseButtons = 2 ; pub const FlutterPointerMouseButtons_kFlutterPointerButtonMouseMiddle : FlutterPointerMouseButtons = 4 ; pub const FlutterPointerMouseButtons_kFlutterPointerButtonMouseBack : FlutterPointerMouseButtons = 8 ; pub const FlutterPointerMouseButtons_kFlutterPointerButtonMouseForward : FlutterPointerMouseButtons = 16 ; # [doc = " Flags for the `buttons` field of `FlutterPointerEvent` when `device_kind`"] # [doc = " is `kFlutterPointerDeviceKindMouse`."] pub type FlutterPointerMouseButtons = :: std :: os :: raw :: c_uint ; pub const FlutterPointerSignalKind_kFlutterPointerSignalKindNone : FlutterPointerSignalKind = 0 ; pub const FlutterPointerSignalKind_kFlutterPointerSignalKindScroll : FlutterPointerSignalKind = 1 ; # [doc = " The type of a pointer signal."] pub type FlutterPointerSignalKind = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterPointerEvent { # [doc = " The size of this struct. Must be sizeof(FlutterPointerEvent)."] pub struct_size : size_t , pub phase : FlutterPointerPhase , # [doc = " The timestamp at which the pointer event was generated. The timestamp"] # [doc = " should be specified in microseconds and the clock should be the same as"] # [doc = " that used by `FlutterEngineGetCurrentTime`."] pub timestamp : size_t , # [doc = " The x coordinate of the pointer event in physical pixels."] pub x : f64 , # [doc = " The y coordinate of the pointer event in physical pixels."] pub y : f64 , # [doc = " An optional device identifier. If this is not specified, it is assumed"] # [doc = " that the embedder has no multi-touch capability."] pub device : i32 , pub signal_kind : FlutterPointerSignalKind , # [doc = " The x offset of the scroll in physical pixels."] pub scroll_delta_x : f64 , # [doc = " The y offset of the scroll in physical pixels."] pub scroll_delta_y : f64 , # [doc = " The type of the device generating this event."] # [doc = " Backwards compatibility note: If this is not set, the device will be"] # [doc = " treated as a mouse, with the primary button set for `kDown` and `kMove`."] # [doc = " If set explicitly to `kFlutterPointerDeviceKindMouse`, you must set the"] # [doc = " correct buttons."] pub device_kind : FlutterPointerDeviceKind , # [doc = " The buttons currently pressed, if any."] pub buttons : i64 , # [doc = " The x offset of the pan/zoom in physical pixels."] pub pan_x : f64 , # [doc = " The y offset of the pan/zoom in physical pixels."] pub pan_y : f64 , # [doc = " The scale of the pan/zoom, where 1.0 is the initial scale."] pub scale : f64 , # [doc = " The rotation of the pan/zoom in radians, where 0.0 is the initial angle."] pub rotation : f64 , } # [test] fn bindgen_test_layout_FlutterPointerEvent () { assert_eq ! (:: std :: mem :: size_of :: < FlutterPointerEvent > () , 112usize , concat ! ("Size of: " , stringify ! (FlutterPointerEvent))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterPointerEvent > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterPointerEvent))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_phase () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . phase) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (phase))) ; } test_field_phase () ; fn test_field_timestamp () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . timestamp) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (timestamp))) ; } test_field_timestamp () ; fn test_field_x () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . x) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (x))) ; } test_field_x () ; fn test_field_y () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . y) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (y))) ; } test_field_y () ; fn test_field_device () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . device) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (device))) ; } test_field_device () ; fn test_field_signal_kind () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . signal_kind) as usize - ptr as usize } , 44usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (signal_kind))) ; } test_field_signal_kind () ; fn test_field_scroll_delta_x () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scroll_delta_x) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (scroll_delta_x))) ; } test_field_scroll_delta_x () ; fn test_field_scroll_delta_y () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scroll_delta_y) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (scroll_delta_y))) ; } test_field_scroll_delta_y () ; fn test_field_device_kind () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . device_kind) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (device_kind))) ; } test_field_device_kind () ; fn test_field_buttons () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . buttons) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (buttons))) ; } test_field_buttons () ; fn test_field_pan_x () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . pan_x) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (pan_x))) ; } test_field_pan_x () ; fn test_field_pan_y () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . pan_y) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (pan_y))) ; } test_field_pan_y () ; fn test_field_scale () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scale) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (scale))) ; } test_field_scale () ; fn test_field_rotation () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . rotation) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (rotation))) ; } test_field_rotation () ; } pub const FlutterKeyEventType_kFlutterKeyEventTypeUp : FlutterKeyEventType = 1 ; pub const FlutterKeyEventType_kFlutterKeyEventTypeDown : FlutterKeyEventType = 2 ; pub const FlutterKeyEventType_kFlutterKeyEventTypeRepeat : FlutterKeyEventType = 3 ; pub type FlutterKeyEventType = :: std :: os :: raw :: c_uint ; # [doc = " A structure to represent a key event."] # [doc = ""] # [doc = " Sending `FlutterKeyEvent` via `FlutterEngineSendKeyEvent` results in a"] # [doc = " corresponding `FlutterKeyEvent` to be dispatched in the framework. It is"] # [doc = " embedder's responsibility to ensure the regularity of sent events, since the"] # [doc = " framework only performs simple one-to-one mapping. The events must conform"] # [doc = " the following rules:"] # [doc = ""] # [doc = "  * Each key press sequence shall consist of one key down event (`kind` being"] # [doc = "    `kFlutterKeyEventTypeDown`), zero or more repeat events, and one key up"] # [doc = "    event, representing a physical key button being pressed, held, and"] # [doc = "    released."] # [doc = "  * All events throughout a key press sequence shall have the same `physical`"] # [doc = "    and `logical`. Having different `character`s is allowed."] # [doc = ""] # [doc = " A `FlutterKeyEvent` with `physical` 0 and `logical` 0 is an empty event."] # [doc = " This is the only case either `physical` or `logical` can be 0. An empty"] # [doc = " event must be sent if a key message should be converted to no"] # [doc = " `FlutterKeyEvent`s, for example, when a key down message is received for a"] # [doc = " key that has already been pressed according to the record. This is to ensure"] # [doc = " some `FlutterKeyEvent` arrives at the framework before raw key message."] # [doc = " See https://github.com/flutter/flutter/issues/87230."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterKeyEvent { # [doc = " The size of this struct. Must be sizeof(FlutterKeyEvent)."] pub struct_size : size_t , # [doc = " The timestamp at which the key event was generated. The timestamp should"] # [doc = " be specified in microseconds and the clock should be the same as that used"] # [doc = " by `FlutterEngineGetCurrentTime`."] pub timestamp : f64 , # [doc = " The event kind."] pub type_ : FlutterKeyEventType , # [doc = " The USB HID code for the physical key of the event."] # [doc = ""] # [doc = " For the full definition and list of pre-defined physical keys, see"] # [doc = " `PhysicalKeyboardKey` from the framework."] # [doc = ""] # [doc = " The only case that `physical` might be 0 is when this is an empty event."] # [doc = " See `FlutterKeyEvent` for introduction."] pub physical : u64 , # [doc = " The key ID for the logical key of this event."] # [doc = ""] # [doc = " For the full definition and a list of pre-defined logical keys, see"] # [doc = " `LogicalKeyboardKey` from the framework."] # [doc = ""] # [doc = " The only case that `logical` might be 0 is when this is an empty event."] # [doc = " See `FlutterKeyEvent` for introduction."] pub logical : u64 , # [doc = " Null-terminated character input from the event. Can be null. Ignored for"] # [doc = " up events."] pub character : * const :: std :: os :: raw :: c_char , # [doc = " True if this event does not correspond to a native event."] # [doc = ""] # [doc = " The embedder is likely to skip events and/or construct new events that do"] # [doc = " not correspond to any native events in order to conform the regularity"] # [doc = " of events (as documented in `FlutterKeyEvent`). An example is when a key"] # [doc = " up is missed due to loss of window focus, on a platform that provides"] # [doc = " query to key pressing status, the embedder might realize that the key has"] # [doc = " been released at the next key event, and should construct a synthesized up"] # [doc = " event immediately before the actual event."] # [doc = ""] # [doc = " An event being synthesized means that the `timestamp` might greatly"] # [doc = " deviate from the actual time when the event occurs physically."] pub synthesized : bool , } # [test] fn bindgen_test_layout_FlutterKeyEvent () { assert_eq ! (:: std :: mem :: size_of :: < FlutterKeyEvent > () , 56usize , concat ! ("Size of: " , stringify ! (FlutterKeyEvent))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterKeyEvent > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterKeyEvent))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterKeyEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterKeyEvent) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_timestamp () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterKeyEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . timestamp) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterKeyEvent) , "::" , stringify ! (timestamp))) ; } test_field_timestamp () ; fn test_field_type () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterKeyEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . type_) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterKeyEvent) , "::" , stringify ! (type_))) ; } test_field_type () ; fn test_field_physical () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterKeyEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . physical) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterKeyEvent) , "::" , stringify ! (physical))) ; } test_field_physical () ; fn test_field_logical () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterKeyEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . logical) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterKeyEvent) , "::" , stringify ! (logical))) ; } test_field_logical () ; fn test_field_character () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterKeyEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . character) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterKeyEvent) , "::" , stringify ! (character))) ; } test_field_character () ; fn test_field_synthesized () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterKeyEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . synthesized) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterKeyEvent) , "::" , stringify ! (synthesized))) ; } test_field_synthesized () ; } pub type FlutterKeyEventCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : bool , arg2 : * mut :: std :: os :: raw :: c_void) > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _FlutterPlatformMessageResponseHandle { _unused : [u8 ; 0] , } pub type FlutterPlatformMessageResponseHandle = _FlutterPlatformMessageResponseHandle ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterPlatformMessage { # [doc = " The size of this struct. Must be sizeof(FlutterPlatformMessage)."] pub struct_size : size_t , pub channel : * const :: std :: os :: raw :: c_char , pub message : * const u8 , pub message_size : size_t , # [doc = " The response handle on which to invoke"] # [doc = " `FlutterEngineSendPlatformMessageResponse` when the response is ready."] # [doc = " `FlutterEngineSendPlatformMessageResponse` must be called for all messages"] # [doc = " received by the embedder. Failure to call"] # [doc = " `FlutterEngineSendPlatformMessageResponse` will cause a memory leak. It is"] # [doc = " not safe to send multiple responses on a single response object."] pub response_handle : * const FlutterPlatformMessageResponseHandle , } # [test] fn bindgen_test_layout_FlutterPlatformMessage () { assert_eq ! (:: std :: mem :: size_of :: < FlutterPlatformMessage > () , 40usize , concat ! ("Size of: " , stringify ! (FlutterPlatformMessage))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterPlatformMessage > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterPlatformMessage))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformMessage > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformMessage) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_channel () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformMessage > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . channel) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformMessage) , "::" , stringify ! (channel))) ; } test_field_channel () ; fn test_field_message () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformMessage > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . message) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformMessage) , "::" , stringify ! (message))) ; } test_field_message () ; fn test_field_message_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformMessage > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . message_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformMessage) , "::" , stringify ! (message_size))) ; } test_field_message_size () ; fn test_field_response_handle () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformMessage > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . response_handle) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformMessage) , "::" , stringify ! (response_handle))) ; } test_field_response_handle () ; } pub type FlutterPlatformMessageCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const FlutterPlatformMessage , arg2 : * mut :: std :: os :: raw :: c_void) > ; pub type FlutterDataCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const u8 , arg2 : size_t , arg3 : * mut :: std :: os :: raw :: c_void) > ; # [doc = " The identifier of the platform view. This identifier is specified by the"] # [doc = " application when a platform view is added to the scene via the"] # [doc = " `SceneBuilder.addPlatformView` call."] pub type FlutterPlatformViewIdentifier = i64 ; extern "C" { # [doc = " `FlutterSemanticsNode` ID used as a sentinel to signal the end of a batch of"] # [doc = " semantics node updates."] pub static kFlutterSemanticsNodeIdBatchEnd : i32 ; } # [doc = " A node that represents some semantic data."] # [doc = ""] # [doc = " The semantics tree is maintained during the semantics phase of the pipeline"] # [doc = " (i.e., during PipelineOwner.flushSemantics), which happens after"] # [doc = " compositing. Updates are then pushed to embedders via the registered"] # [doc = " `FlutterUpdateSemanticsNodeCallback`."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterSemanticsNode { # [doc = " The size of this struct. Must be sizeof(FlutterSemanticsNode)."] pub struct_size : size_t , # [doc = " The unique identifier for this node."] pub id : i32 , # [doc = " The set of semantics flags associated with this node."] pub flags : FlutterSemanticsFlag , # [doc = " The set of semantics actions applicable to this node."] pub actions : FlutterSemanticsAction , # [doc = " The position at which the text selection originates."] pub text_selection_base : i32 , # [doc = " The position at which the text selection terminates."] pub text_selection_extent : i32 , # [doc = " The total number of scrollable children that contribute to semantics."] pub scroll_child_count : i32 , # [doc = " The index of the first visible semantic child of a scroll node."] pub scroll_index : i32 , # [doc = " The current scrolling position in logical pixels if the node is"] # [doc = " scrollable."] pub scroll_position : f64 , # [doc = " The maximum in-range value for `scrollPosition` if the node is scrollable."] pub scroll_extent_max : f64 , # [doc = " The minimum in-range value for `scrollPosition` if the node is scrollable."] pub scroll_extent_min : f64 , # [doc = " The elevation along the z-axis at which the rect of this semantics node is"] # [doc = " located above its parent."] pub elevation : f64 , # [doc = " Describes how much space the semantics node takes up along the z-axis."] pub thickness : f64 , # [doc = " A textual description of the node."] pub label : * const :: std :: os :: raw :: c_char , # [doc = " A brief description of the result of performing an action on the node."] pub hint : * const :: std :: os :: raw :: c_char , # [doc = " A textual description of the current value of the node."] pub value : * const :: std :: os :: raw :: c_char , # [doc = " A value that `value` will have after a kFlutterSemanticsActionIncrease`"] # [doc = " action has been performed."] pub increased_value : * const :: std :: os :: raw :: c_char , # [doc = " A value that `value` will have after a kFlutterSemanticsActionDecrease`"] # [doc = " action has been performed."] pub decreased_value : * const :: std :: os :: raw :: c_char , # [doc = " The reading direction for `label`, `value`, `hint`, `increasedValue`, and"] # [doc = " `decreasedValue`."] pub text_direction : FlutterTextDirection , # [doc = " The bounding box for this node in its coordinate system."] pub rect : FlutterRect , # [doc = " The transform from this node's coordinate system to its parent's"] # [doc = " coordinate system."] pub transform : FlutterTransformation , # [doc = " The number of children this node has."] pub child_count : size_t , # [doc = " Array of child node IDs in traversal order. Has length `child_count`."] pub children_in_traversal_order : * const i32 , # [doc = " Array of child node IDs in hit test order. Has length `child_count`."] pub children_in_hit_test_order : * const i32 , # [doc = " The number of custom accessibility action associated with this node."] pub custom_accessibility_actions_count : size_t , # [doc = " Array of `FlutterSemanticsCustomAction` IDs associated with this node."] # [doc = " Has length `custom_accessibility_actions_count`."] pub custom_accessibility_actions : * const i32 , # [doc = " Identifier of the platform view associated with this semantics node, or"] # [doc = " -1 if none."] pub platform_view_id : FlutterPlatformViewIdentifier , } # [test] fn bindgen_test_layout_FlutterSemanticsNode () { assert_eq ! (:: std :: mem :: size_of :: < FlutterSemanticsNode > () , 280usize , concat ! ("Size of: " , stringify ! (FlutterSemanticsNode))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterSemanticsNode > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterSemanticsNode))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_id () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . id) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (id))) ; } test_field_id () ; fn test_field_flags () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . flags) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (flags))) ; } test_field_flags () ; fn test_field_actions () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . actions) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (actions))) ; } test_field_actions () ; fn test_field_text_selection_base () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . text_selection_base) as usize - ptr as usize } , 20usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (text_selection_base))) ; } test_field_text_selection_base () ; fn test_field_text_selection_extent () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . text_selection_extent) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (text_selection_extent))) ; } test_field_text_selection_extent () ; fn test_field_scroll_child_count () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scroll_child_count) as usize - ptr as usize } , 28usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (scroll_child_count))) ; } test_field_scroll_child_count () ; fn test_field_scroll_index () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scroll_index) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (scroll_index))) ; } test_field_scroll_index () ; fn test_field_scroll_position () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scroll_position) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (scroll_position))) ; } test_field_scroll_position () ; fn test_field_scroll_extent_max () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scroll_extent_max) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (scroll_extent_max))) ; } test_field_scroll_extent_max () ; fn test_field_scroll_extent_min () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scroll_extent_min) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (scroll_extent_min))) ; } test_field_scroll_extent_min () ; fn test_field_elevation () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . elevation) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (elevation))) ; } test_field_elevation () ; fn test_field_thickness () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . thickness) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (thickness))) ; } test_field_thickness () ; fn test_field_label () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . label) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (label))) ; } test_field_label () ; fn test_field_hint () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . hint) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (hint))) ; } test_field_hint () ; fn test_field_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . value) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (value))) ; } test_field_value () ; fn test_field_increased_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . increased_value) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (increased_value))) ; } test_field_increased_value () ; fn test_field_decreased_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . decreased_value) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (decreased_value))) ; } test_field_decreased_value () ; fn test_field_text_direction () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . text_direction) as usize - ptr as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (text_direction))) ; } test_field_text_direction () ; fn test_field_rect () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . rect) as usize - ptr as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (rect))) ; } test_field_rect () ; fn test_field_transform () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . transform) as usize - ptr as usize } , 160usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (transform))) ; } test_field_transform () ; fn test_field_child_count () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . child_count) as usize - ptr as usize } , 232usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (child_count))) ; } test_field_child_count () ; fn test_field_children_in_traversal_order () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . children_in_traversal_order) as usize - ptr as usize } , 240usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (children_in_traversal_order))) ; } test_field_children_in_traversal_order () ; fn test_field_children_in_hit_test_order () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . children_in_hit_test_order) as usize - ptr as usize } , 248usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (children_in_hit_test_order))) ; } test_field_children_in_hit_test_order () ; fn test_field_custom_accessibility_actions_count () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . custom_accessibility_actions_count) as usize - ptr as usize } , 256usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (custom_accessibility_actions_count))) ; } test_field_custom_accessibility_actions_count () ; fn test_field_custom_accessibility_actions () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . custom_accessibility_actions) as usize - ptr as usize } , 264usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (custom_accessibility_actions))) ; } test_field_custom_accessibility_actions () ; fn test_field_platform_view_id () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . platform_view_id) as usize - ptr as usize } , 272usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (platform_view_id))) ; } test_field_platform_view_id () ; } extern "C" { # [doc = " `FlutterSemanticsCustomAction` ID used as a sentinel to signal the end of a"] # [doc = " batch of semantics custom action updates."] pub static kFlutterSemanticsCustomActionIdBatchEnd : i32 ; } # [doc = " A custom semantics action, or action override."] # [doc = ""] # [doc = " Custom actions can be registered by applications in order to provide"] # [doc = " semantic actions other than the standard actions available through the"] # [doc = " `FlutterSemanticsAction` enum."] # [doc = ""] # [doc = " Action overrides are custom actions that the application developer requests"] # [doc = " to be used in place of the standard actions in the `FlutterSemanticsAction`"] # [doc = " enum."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterSemanticsCustomAction { # [doc = " The size of the struct. Must be sizeof(FlutterSemanticsCustomAction)."] pub struct_size : size_t , # [doc = " The unique custom action or action override ID."] pub id : i32 , # [doc = " For overridden standard actions, corresponds to the"] # [doc = " `FlutterSemanticsAction` to override."] pub override_action : FlutterSemanticsAction , # [doc = " The user-readable name of this custom semantics action."] pub label : * const :: std :: os :: raw :: c_char , # [doc = " The hint description of this custom semantics action."] pub hint : * const :: std :: os :: raw :: c_char , } # [test] fn bindgen_test_layout_FlutterSemanticsCustomAction () { assert_eq ! (:: std :: mem :: size_of :: < FlutterSemanticsCustomAction > () , 32usize , concat ! ("Size of: " , stringify ! (FlutterSemanticsCustomAction))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterSemanticsCustomAction > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterSemanticsCustomAction))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsCustomAction > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsCustomAction) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_id () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsCustomAction > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . id) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsCustomAction) , "::" , stringify ! (id))) ; } test_field_id () ; fn test_field_override_action () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsCustomAction > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . override_action) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsCustomAction) , "::" , stringify ! (override_action))) ; } test_field_override_action () ; fn test_field_label () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsCustomAction > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . label) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsCustomAction) , "::" , stringify ! (label))) ; } test_field_label () ; fn test_field_hint () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsCustomAction > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . hint) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsCustomAction) , "::" , stringify ! (hint))) ; } test_field_hint () ; } pub type FlutterUpdateSemanticsNodeCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const FlutterSemanticsNode , arg2 : * mut :: std :: os :: raw :: c_void) > ; pub type FlutterUpdateSemanticsCustomActionCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const FlutterSemanticsCustomAction , arg2 : * mut :: std :: os :: raw :: c_void) > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _FlutterTaskRunner { _unused : [u8 ; 0] , } pub type FlutterTaskRunner = * mut _FlutterTaskRunner ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterTask { pub runner : FlutterTaskRunner , pub task : u64 , } # [test] fn bindgen_test_layout_FlutterTask () { assert_eq ! (:: std :: mem :: size_of :: < FlutterTask > () , 16usize , concat ! ("Size of: " , stringify ! (FlutterTask))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterTask > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterTask))) ; fn test_field_runner () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTask > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . runner) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterTask) , "::" , stringify ! (runner))) ; } test_field_runner () ; fn test_field_task () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTask > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . task) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterTask) , "::" , stringify ! (task))) ; } test_field_task () ; } pub type FlutterTaskRunnerPostTaskCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : FlutterTask , arg2 : u64 , arg3 : * mut :: std :: os :: raw :: c_void) > ; # [doc = " An interface used by the Flutter engine to execute tasks at the target time"] # [doc = " on a specified thread. There should be a 1-1 relationship between a thread"] # [doc = " and a task runner. It is undefined behavior to run a task on a thread that"] # [doc = " is not associated with its task runner."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterTaskRunnerDescription { # [doc = " The size of this struct. Must be sizeof(FlutterTaskRunnerDescription)."] pub struct_size : size_t , pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " May be called from any thread. Should return true if tasks posted on the"] # [doc = " calling thread will be run on that same thread."] # [doc = ""] # [doc = " @attention     This field is required."] pub runs_task_on_current_thread_callback : BoolCallback , # [doc = " May be called from any thread. The given task should be executed by the"] # [doc = " embedder on the thread associated with that task runner by calling"] # [doc = " `FlutterEngineRunTask` at the given target time. The system monotonic"] # [doc = " clock should be used for the target time. The target time is the absolute"] # [doc = " time from epoch (NOT a delta) at which the task must be returned back to"] # [doc = " the engine on the correct thread. If the embedder needs to calculate a"] # [doc = " delta, `FlutterEngineGetCurrentTime` may be called and the difference used"] # [doc = " as the delta."] # [doc = ""] # [doc = " @attention     This field is required."] pub post_task_callback : FlutterTaskRunnerPostTaskCallback , # [doc = " A unique identifier for the task runner. If multiple task runners service"] # [doc = " tasks on the same thread, their identifiers must match."] pub identifier : size_t , } # [test] fn bindgen_test_layout_FlutterTaskRunnerDescription () { assert_eq ! (:: std :: mem :: size_of :: < FlutterTaskRunnerDescription > () , 40usize , concat ! ("Size of: " , stringify ! (FlutterTaskRunnerDescription))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterTaskRunnerDescription > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterTaskRunnerDescription))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTaskRunnerDescription > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterTaskRunnerDescription) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTaskRunnerDescription > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterTaskRunnerDescription) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_runs_task_on_current_thread_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTaskRunnerDescription > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . runs_task_on_current_thread_callback) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterTaskRunnerDescription) , "::" , stringify ! (runs_task_on_current_thread_callback))) ; } test_field_runs_task_on_current_thread_callback () ; fn test_field_post_task_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTaskRunnerDescription > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . post_task_callback) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterTaskRunnerDescription) , "::" , stringify ! (post_task_callback))) ; } test_field_post_task_callback () ; fn test_field_identifier () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTaskRunnerDescription > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . identifier) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterTaskRunnerDescription) , "::" , stringify ! (identifier))) ; } test_field_identifier () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterCustomTaskRunners { # [doc = " The size of this struct. Must be sizeof(FlutterCustomTaskRunners)."] pub struct_size : size_t , # [doc = " Specify the task runner for the thread on which the `FlutterEngineRun`"] # [doc = " call is made. The same task runner description can be specified for both"] # [doc = " the render and platform task runners. This makes the Flutter engine use"] # [doc = " the same thread for both task runners."] pub platform_task_runner : * const FlutterTaskRunnerDescription , # [doc = " Specify the task runner for the thread on which the render tasks will be"] # [doc = " run. The same task runner description can be specified for both the render"] # [doc = " and platform task runners. This makes the Flutter engine use the same"] # [doc = " thread for both task runners."] pub render_task_runner : * const FlutterTaskRunnerDescription , # [doc = " Specify a callback that is used to set the thread priority for embedder"] # [doc = " task runners."] pub thread_priority_setter : :: std :: option :: Option < unsafe extern "C" fn (arg1 : FlutterThreadPriority) > , } # [test] fn bindgen_test_layout_FlutterCustomTaskRunners () { assert_eq ! (:: std :: mem :: size_of :: < FlutterCustomTaskRunners > () , 32usize , concat ! ("Size of: " , stringify ! (FlutterCustomTaskRunners))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterCustomTaskRunners > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterCustomTaskRunners))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCustomTaskRunners > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterCustomTaskRunners) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_platform_task_runner () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCustomTaskRunners > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . platform_task_runner) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterCustomTaskRunners) , "::" , stringify ! (platform_task_runner))) ; } test_field_platform_task_runner () ; fn test_field_render_task_runner () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCustomTaskRunners > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . render_task_runner) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterCustomTaskRunners) , "::" , stringify ! (render_task_runner))) ; } test_field_render_task_runner () ; fn test_field_thread_priority_setter () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCustomTaskRunners > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . thread_priority_setter) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterCustomTaskRunners) , "::" , stringify ! (thread_priority_setter))) ; } test_field_thread_priority_setter () ; } # [repr (C)] # [derive (Copy , Clone)] pub struct FlutterOpenGLBackingStore { # [doc = " The type of the OpenGL backing store. Currently, it can either be a"] # [doc = " texture or a framebuffer."] pub type_ : FlutterOpenGLTargetType , pub __bindgen_anon_1 : FlutterOpenGLBackingStore__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union FlutterOpenGLBackingStore__bindgen_ty_1 { # [doc = " A texture for Flutter to render into."] pub texture : FlutterOpenGLTexture , # [doc = " A framebuffer for Flutter to render into. The embedder must ensure that"] # [doc = " the framebuffer is complete."] pub framebuffer : FlutterOpenGLFramebuffer , } # [test] fn bindgen_test_layout_FlutterOpenGLBackingStore__bindgen_ty_1 () { assert_eq ! (:: std :: mem :: size_of :: < FlutterOpenGLBackingStore__bindgen_ty_1 > () , 48usize , concat ! ("Size of: " , stringify ! (FlutterOpenGLBackingStore__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterOpenGLBackingStore__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterOpenGLBackingStore__bindgen_ty_1))) ; fn test_field_texture () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLBackingStore__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . texture) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLBackingStore__bindgen_ty_1) , "::" , stringify ! (texture))) ; } test_field_texture () ; fn test_field_framebuffer () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLBackingStore__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . framebuffer) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLBackingStore__bindgen_ty_1) , "::" , stringify ! (framebuffer))) ; } test_field_framebuffer () ; } # [test] fn bindgen_test_layout_FlutterOpenGLBackingStore () { assert_eq ! (:: std :: mem :: size_of :: < FlutterOpenGLBackingStore > () , 56usize , concat ! ("Size of: " , stringify ! (FlutterOpenGLBackingStore))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterOpenGLBackingStore > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterOpenGLBackingStore))) ; fn test_field_type () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . type_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLBackingStore) , "::" , stringify ! (type_))) ; } test_field_type () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterSoftwareBackingStore { # [doc = " A pointer to the raw bytes of the allocation described by this software"] # [doc = " backing store."] pub allocation : * const :: std :: os :: raw :: c_void , # [doc = " The number of bytes in a single row of the allocation."] pub row_bytes : size_t , # [doc = " The number of rows in the allocation."] pub height : size_t , # [doc = " A baton that is not interpreted by the engine in any way. It will be given"] # [doc = " back to the embedder in the destruction callback below. Embedder resources"] # [doc = " may be associated with this baton."] pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " The callback invoked by the engine when it no longer needs this backing"] # [doc = " store."] pub destruction_callback : VoidCallback , } # [test] fn bindgen_test_layout_FlutterSoftwareBackingStore () { assert_eq ! (:: std :: mem :: size_of :: < FlutterSoftwareBackingStore > () , 40usize , concat ! ("Size of: " , stringify ! (FlutterSoftwareBackingStore))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterSoftwareBackingStore > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterSoftwareBackingStore))) ; fn test_field_allocation () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSoftwareBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . allocation) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterSoftwareBackingStore) , "::" , stringify ! (allocation))) ; } test_field_allocation () ; fn test_field_row_bytes () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSoftwareBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . row_bytes) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterSoftwareBackingStore) , "::" , stringify ! (row_bytes))) ; } test_field_row_bytes () ; fn test_field_height () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSoftwareBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . height) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterSoftwareBackingStore) , "::" , stringify ! (height))) ; } test_field_height () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSoftwareBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterSoftwareBackingStore) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_destruction_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSoftwareBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . destruction_callback) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterSoftwareBackingStore) , "::" , stringify ! (destruction_callback))) ; } test_field_destruction_callback () ; } # [repr (C)] # [derive (Copy , Clone)] pub struct FlutterMetalBackingStore { # [doc = " The size of this struct. Must be sizeof(FlutterMetalBackingStore)."] pub struct_size : size_t , pub __bindgen_anon_1 : FlutterMetalBackingStore__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union FlutterMetalBackingStore__bindgen_ty_1 { pub texture : FlutterMetalTexture , } # [test] fn bindgen_test_layout_FlutterMetalBackingStore__bindgen_ty_1 () { assert_eq ! (:: std :: mem :: size_of :: < FlutterMetalBackingStore__bindgen_ty_1 > () , 40usize , concat ! ("Size of: " , stringify ! (FlutterMetalBackingStore__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterMetalBackingStore__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterMetalBackingStore__bindgen_ty_1))) ; fn test_field_texture () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalBackingStore__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . texture) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalBackingStore__bindgen_ty_1) , "::" , stringify ! (texture))) ; } test_field_texture () ; } # [test] fn bindgen_test_layout_FlutterMetalBackingStore () { assert_eq ! (:: std :: mem :: size_of :: < FlutterMetalBackingStore > () , 48usize , concat ! ("Size of: " , stringify ! (FlutterMetalBackingStore))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterMetalBackingStore > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterMetalBackingStore))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalBackingStore) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterVulkanBackingStore { # [doc = " The size of this struct. Must be sizeof(FlutterVulkanBackingStore)."] pub struct_size : size_t , # [doc = " The image that the layer will be rendered to. This image must already be"] # [doc = " available for the engine to bind for writing when it's given to the engine"] # [doc = " via the backing store creation callback. The engine will perform a host"] # [doc = " sync for all layers prior to calling the compositor present callback, and"] # [doc = " so the written layer images can be freely bound by the embedder without"] # [doc = " any additional synchronization."] pub image : * const FlutterVulkanImage , # [doc = " A baton that is not interpreted by the engine in any way. It will be given"] # [doc = " back to the embedder in the destruction callback below. Embedder resources"] # [doc = " may be associated with this baton."] pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " The callback invoked by the engine when it no longer needs this backing"] # [doc = " store."] pub destruction_callback : VoidCallback , } # [test] fn bindgen_test_layout_FlutterVulkanBackingStore () { assert_eq ! (:: std :: mem :: size_of :: < FlutterVulkanBackingStore > () , 32usize , concat ! ("Size of: " , stringify ! (FlutterVulkanBackingStore))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterVulkanBackingStore > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterVulkanBackingStore))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanBackingStore) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_image () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . image) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanBackingStore) , "::" , stringify ! (image))) ; } test_field_image () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanBackingStore) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_destruction_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . destruction_callback) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanBackingStore) , "::" , stringify ! (destruction_callback))) ; } test_field_destruction_callback () ; } # [doc = " Indicates that the Flutter application requested that an opacity be"] # [doc = " applied to the platform view."] pub const FlutterPlatformViewMutationType_kFlutterPlatformViewMutationTypeOpacity : FlutterPlatformViewMutationType = 0 ; # [doc = " Indicates that the Flutter application requested that the platform view be"] # [doc = " clipped using a rectangle."] pub const FlutterPlatformViewMutationType_kFlutterPlatformViewMutationTypeClipRect : FlutterPlatformViewMutationType = 1 ; # [doc = " Indicates that the Flutter application requested that the platform view be"] # [doc = " clipped using a rounded rectangle."] pub const FlutterPlatformViewMutationType_kFlutterPlatformViewMutationTypeClipRoundedRect : FlutterPlatformViewMutationType = 2 ; # [doc = " Indicates that the Flutter application requested that the platform view be"] # [doc = " transformed before composition."] pub const FlutterPlatformViewMutationType_kFlutterPlatformViewMutationTypeTransformation : FlutterPlatformViewMutationType = 3 ; pub type FlutterPlatformViewMutationType = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct FlutterPlatformViewMutation { # [doc = " The type of the mutation described by the subsequent union."] pub type_ : FlutterPlatformViewMutationType , pub __bindgen_anon_1 : FlutterPlatformViewMutation__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union FlutterPlatformViewMutation__bindgen_ty_1 { pub opacity : f64 , pub clip_rect : FlutterRect , pub clip_rounded_rect : FlutterRoundedRect , pub transformation : FlutterTransformation , } # [test] fn bindgen_test_layout_FlutterPlatformViewMutation__bindgen_ty_1 () { assert_eq ! (:: std :: mem :: size_of :: < FlutterPlatformViewMutation__bindgen_ty_1 > () , 96usize , concat ! ("Size of: " , stringify ! (FlutterPlatformViewMutation__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterPlatformViewMutation__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterPlatformViewMutation__bindgen_ty_1))) ; fn test_field_opacity () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformViewMutation__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . opacity) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformViewMutation__bindgen_ty_1) , "::" , stringify ! (opacity))) ; } test_field_opacity () ; fn test_field_clip_rect () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformViewMutation__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . clip_rect) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformViewMutation__bindgen_ty_1) , "::" , stringify ! (clip_rect))) ; } test_field_clip_rect () ; fn test_field_clip_rounded_rect () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformViewMutation__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . clip_rounded_rect) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformViewMutation__bindgen_ty_1) , "::" , stringify ! (clip_rounded_rect))) ; } test_field_clip_rounded_rect () ; fn test_field_transformation () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformViewMutation__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . transformation) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformViewMutation__bindgen_ty_1) , "::" , stringify ! (transformation))) ; } test_field_transformation () ; } # [test] fn bindgen_test_layout_FlutterPlatformViewMutation () { assert_eq ! (:: std :: mem :: size_of :: < FlutterPlatformViewMutation > () , 104usize , concat ! ("Size of: " , stringify ! (FlutterPlatformViewMutation))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterPlatformViewMutation > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterPlatformViewMutation))) ; fn test_field_type () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformViewMutation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . type_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformViewMutation) , "::" , stringify ! (type_))) ; } test_field_type () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterPlatformView { # [doc = " The size of this struct. Must be sizeof(FlutterPlatformView)."] pub struct_size : size_t , # [doc = " The identifier of this platform view. This identifier is specified by the"] # [doc = " application when a platform view is added to the scene via the"] # [doc = " `SceneBuilder.addPlatformView` call."] pub identifier : FlutterPlatformViewIdentifier , # [doc = " The number of mutations to be applied to the platform view by the embedder"] # [doc = " before on-screen composition."] pub mutations_count : size_t , # [doc = " The mutations to be applied by this platform view before it is composited"] # [doc = " on-screen. The Flutter application may transform the platform view but"] # [doc = " these transformations cannot be affected by the Flutter compositor because"] # [doc = " it does not render platform views. Since the embedder is responsible for"] # [doc = " composition of these views, it is also the embedder's responsibility to"] # [doc = " affect the appropriate transformation."] # [doc = ""] # [doc = " The mutations must be applied in order. The mutations done in the"] # [doc = " collection don't take into account the device pixel ratio or the root"] # [doc = " surface transformation. If these exist, the first mutation in the list"] # [doc = " will be a transformation mutation to make sure subsequent mutations are in"] # [doc = " the correct coordinate space."] pub mutations : * mut * const FlutterPlatformViewMutation , } # [test] fn bindgen_test_layout_FlutterPlatformView () { assert_eq ! (:: std :: mem :: size_of :: < FlutterPlatformView > () , 32usize , concat ! ("Size of: " , stringify ! (FlutterPlatformView))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterPlatformView > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterPlatformView))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformView > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformView) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_identifier () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformView > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . identifier) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformView) , "::" , stringify ! (identifier))) ; } test_field_identifier () ; fn test_field_mutations_count () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformView > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . mutations_count) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformView) , "::" , stringify ! (mutations_count))) ; } test_field_mutations_count () ; fn test_field_mutations () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformView > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . mutations) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformView) , "::" , stringify ! (mutations))) ; } test_field_mutations () ; } # [doc = " Specifies an OpenGL backing store. Can either be an OpenGL texture or"] # [doc = " framebuffer."] pub const FlutterBackingStoreType_kFlutterBackingStoreTypeOpenGL : FlutterBackingStoreType = 0 ; # [doc = " Specified an software allocation for Flutter to render into using the CPU."] pub const FlutterBackingStoreType_kFlutterBackingStoreTypeSoftware : FlutterBackingStoreType = 1 ; # [doc = " Specifies a Metal backing store. This is backed by a Metal texture."] pub const FlutterBackingStoreType_kFlutterBackingStoreTypeMetal : FlutterBackingStoreType = 2 ; # [doc = " Specifies a Vulkan backing store. This is backed by a Vulkan VkImage."] pub const FlutterBackingStoreType_kFlutterBackingStoreTypeVulkan : FlutterBackingStoreType = 3 ; pub type FlutterBackingStoreType = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct FlutterBackingStore { # [doc = " The size of this struct. Must be sizeof(FlutterBackingStore)."] pub struct_size : size_t , # [doc = " A baton that is not interpreted by the engine in any way. The embedder may"] # [doc = " use this to associate resources that are tied to the lifecycle of the"] # [doc = " `FlutterBackingStore`."] pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " Specifies the type of backing store."] pub type_ : FlutterBackingStoreType , # [doc = " Indicates if this backing store was updated since the last time it was"] # [doc = " associated with a presented layer."] pub did_update : bool , pub __bindgen_anon_1 : FlutterBackingStore__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union FlutterBackingStore__bindgen_ty_1 { # [doc = " The description of the OpenGL backing store."] pub open_gl : FlutterOpenGLBackingStore , # [doc = " The description of the software backing store."] pub software : FlutterSoftwareBackingStore , pub metal : FlutterMetalBackingStore , pub vulkan : FlutterVulkanBackingStore , } # [test] fn bindgen_test_layout_FlutterBackingStore__bindgen_ty_1 () { assert_eq ! (:: std :: mem :: size_of :: < FlutterBackingStore__bindgen_ty_1 > () , 56usize , concat ! ("Size of: " , stringify ! (FlutterBackingStore__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterBackingStore__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterBackingStore__bindgen_ty_1))) ; fn test_field_open_gl () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStore__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . open_gl) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStore__bindgen_ty_1) , "::" , stringify ! (open_gl))) ; } test_field_open_gl () ; fn test_field_software () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStore__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . software) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStore__bindgen_ty_1) , "::" , stringify ! (software))) ; } test_field_software () ; fn test_field_metal () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStore__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . metal) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStore__bindgen_ty_1) , "::" , stringify ! (metal))) ; } test_field_metal () ; fn test_field_vulkan () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStore__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . vulkan) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStore__bindgen_ty_1) , "::" , stringify ! (vulkan))) ; } test_field_vulkan () ; } # [test] fn bindgen_test_layout_FlutterBackingStore () { assert_eq ! (:: std :: mem :: size_of :: < FlutterBackingStore > () , 80usize , concat ! ("Size of: " , stringify ! (FlutterBackingStore))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterBackingStore > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterBackingStore))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStore) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStore) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_type () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . type_) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStore) , "::" , stringify ! (type_))) ; } test_field_type () ; fn test_field_did_update () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . did_update) as usize - ptr as usize } , 20usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStore) , "::" , stringify ! (did_update))) ; } test_field_did_update () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterBackingStoreConfig { # [doc = " The size of this struct. Must be sizeof(FlutterBackingStoreConfig)."] pub struct_size : size_t , # [doc = " The size of the render target the engine expects to render into."] pub size : FlutterSize , } # [test] fn bindgen_test_layout_FlutterBackingStoreConfig () { assert_eq ! (:: std :: mem :: size_of :: < FlutterBackingStoreConfig > () , 24usize , concat ! ("Size of: " , stringify ! (FlutterBackingStoreConfig))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterBackingStoreConfig > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterBackingStoreConfig))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStoreConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStoreConfig) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStoreConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStoreConfig) , "::" , stringify ! (size))) ; } test_field_size () ; } # [doc = " Indicates that the contents of this layer are rendered by Flutter into a"] # [doc = " backing store."] pub const FlutterLayerContentType_kFlutterLayerContentTypeBackingStore : FlutterLayerContentType = 0 ; # [doc = " Indicates that the contents of this layer are determined by the embedder."] pub const FlutterLayerContentType_kFlutterLayerContentTypePlatformView : FlutterLayerContentType = 1 ; pub type FlutterLayerContentType = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct FlutterLayer { # [doc = " This size of this struct. Must be sizeof(FlutterLayer)."] pub struct_size : size_t , # [doc = " Each layer displays contents in one way or another. The type indicates"] # [doc = " whether those contents are specified by Flutter or the embedder."] pub type_ : FlutterLayerContentType , pub __bindgen_anon_1 : FlutterLayer__bindgen_ty_1 , # [doc = " The offset of this layer (in physical pixels) relative to the top left of"] # [doc = " the root surface used by the engine."] pub offset : FlutterPoint , # [doc = " The size of the layer (in physical pixels)."] pub size : FlutterSize , } # [repr (C)] # [derive (Copy , Clone)] pub union FlutterLayer__bindgen_ty_1 { # [doc = " Indicates that the contents of this layer are rendered by Flutter into a"] # [doc = " backing store."] pub backing_store : * const FlutterBackingStore , # [doc = " Indicates that the contents of this layer are determined by the"] # [doc = " embedder."] pub platform_view : * const FlutterPlatformView , } # [test] fn bindgen_test_layout_FlutterLayer__bindgen_ty_1 () { assert_eq ! (:: std :: mem :: size_of :: < FlutterLayer__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (FlutterLayer__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterLayer__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterLayer__bindgen_ty_1))) ; fn test_field_backing_store () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLayer__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . backing_store) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterLayer__bindgen_ty_1) , "::" , stringify ! (backing_store))) ; } test_field_backing_store () ; fn test_field_platform_view () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLayer__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . platform_view) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterLayer__bindgen_ty_1) , "::" , stringify ! (platform_view))) ; } test_field_platform_view () ; } # [test] fn bindgen_test_layout_FlutterLayer () { assert_eq ! (:: std :: mem :: size_of :: < FlutterLayer > () , 56usize , concat ! ("Size of: " , stringify ! (FlutterLayer))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterLayer > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterLayer))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLayer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterLayer) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_type () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLayer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . type_) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterLayer) , "::" , stringify ! (type_))) ; } test_field_type () ; fn test_field_offset () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLayer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . offset) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterLayer) , "::" , stringify ! (offset))) ; } test_field_offset () ; fn test_field_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLayer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . size) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterLayer) , "::" , stringify ! (size))) ; } test_field_size () ; } pub type FlutterBackingStoreCreateCallback = :: std :: option :: Option < unsafe extern "C" fn (config : * const FlutterBackingStoreConfig , backing_store_out : * mut FlutterBackingStore , user_data : * mut :: std :: os :: raw :: c_void) -> bool > ; pub type FlutterBackingStoreCollectCallback = :: std :: option :: Option < unsafe extern "C" fn (renderer : * const FlutterBackingStore , user_data : * mut :: std :: os :: raw :: c_void) -> bool > ; pub type FlutterLayersPresentCallback = :: std :: option :: Option < unsafe extern "C" fn (layers : * mut * const FlutterLayer , layers_count : size_t , user_data : * mut :: std :: os :: raw :: c_void) -> bool > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterCompositor { # [doc = " This size of this struct. Must be sizeof(FlutterCompositor)."] pub struct_size : size_t , # [doc = " A baton that in not interpreted by the engine in any way. If it passed"] # [doc = " back to the embedder in `FlutterCompositor.create_backing_store_callback`,"] # [doc = " `FlutterCompositor.collect_backing_store_callback` and"] # [doc = " `FlutterCompositor.present_layers_callback`"] pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " A callback invoked by the engine to obtain a backing store for a specific"] # [doc = " `FlutterLayer`."] # [doc = ""] # [doc = " On ABI stability: Callers must take care to restrict access within"] # [doc = " `FlutterBackingStore::struct_size` when specifying a new backing store to"] # [doc = " the engine. This only matters if the embedder expects to be used with"] # [doc = " engines older than the version whose headers it used during compilation."] pub create_backing_store_callback : FlutterBackingStoreCreateCallback , # [doc = " A callback invoked by the engine to release the backing store. The"] # [doc = " embedder may collect any resources associated with the backing store."] pub collect_backing_store_callback : FlutterBackingStoreCollectCallback , # [doc = " Callback invoked by the engine to composite the contents of each layer"] # [doc = " onto the screen."] pub present_layers_callback : FlutterLayersPresentCallback , # [doc = " Avoid caching backing stores provided by this compositor."] pub avoid_backing_store_cache : bool , } # [test] fn bindgen_test_layout_FlutterCompositor () { assert_eq ! (:: std :: mem :: size_of :: < FlutterCompositor > () , 48usize , concat ! ("Size of: " , stringify ! (FlutterCompositor))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterCompositor > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterCompositor))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCompositor > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterCompositor) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCompositor > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterCompositor) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_create_backing_store_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCompositor > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . create_backing_store_callback) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterCompositor) , "::" , stringify ! (create_backing_store_callback))) ; } test_field_create_backing_store_callback () ; fn test_field_collect_backing_store_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCompositor > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . collect_backing_store_callback) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterCompositor) , "::" , stringify ! (collect_backing_store_callback))) ; } test_field_collect_backing_store_callback () ; fn test_field_present_layers_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCompositor > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . present_layers_callback) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterCompositor) , "::" , stringify ! (present_layers_callback))) ; } test_field_present_layers_callback () ; fn test_field_avoid_backing_store_cache () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCompositor > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . avoid_backing_store_cache) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterCompositor) , "::" , stringify ! (avoid_backing_store_cache))) ; } test_field_avoid_backing_store_cache () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterLocale { # [doc = " This size of this struct. Must be sizeof(FlutterLocale)."] pub struct_size : size_t , # [doc = " The language code of the locale. For example, \"en\". This is a required"] # [doc = " field. The string must be null terminated. It may be collected after the"] # [doc = " call to `FlutterEngineUpdateLocales`."] pub language_code : * const :: std :: os :: raw :: c_char , # [doc = " The country code of the locale. For example, \"US\". This is a an optional"] # [doc = " field. The string must be null terminated if present. It may be collected"] # [doc = " after the call to `FlutterEngineUpdateLocales`. If not present, a"] # [doc = " `nullptr` may be specified."] pub country_code : * const :: std :: os :: raw :: c_char , # [doc = " The script code of the locale. This is a an optional field. The string"] # [doc = " must be null terminated if present. It may be collected after the call to"] # [doc = " `FlutterEngineUpdateLocales`. If not present, a `nullptr` may be"] # [doc = " specified."] pub script_code : * const :: std :: os :: raw :: c_char , # [doc = " The variant code of the locale. This is a an optional field. The string"] # [doc = " must be null terminated if present. It may be collected after the call to"] # [doc = " `FlutterEngineUpdateLocales`. If not present, a `nullptr` may be"] # [doc = " specified."] pub variant_code : * const :: std :: os :: raw :: c_char , } # [test] fn bindgen_test_layout_FlutterLocale () { assert_eq ! (:: std :: mem :: size_of :: < FlutterLocale > () , 40usize , concat ! ("Size of: " , stringify ! (FlutterLocale))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterLocale > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterLocale))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLocale > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterLocale) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_language_code () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLocale > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . language_code) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterLocale) , "::" , stringify ! (language_code))) ; } test_field_language_code () ; fn test_field_country_code () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLocale > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . country_code) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterLocale) , "::" , stringify ! (country_code))) ; } test_field_country_code () ; fn test_field_script_code () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLocale > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . script_code) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterLocale) , "::" , stringify ! (script_code))) ; } test_field_script_code () ; fn test_field_variant_code () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLocale > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . variant_code) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterLocale) , "::" , stringify ! (variant_code))) ; } test_field_variant_code () ; } # [doc = " Callback that returns the system locale."] # [doc = ""] # [doc = " Embedders that implement this callback should return the `FlutterLocale`"] # [doc = " from the `supported_locales` list that most closely matches the"] # [doc = " user/device's preferred locale."] # [doc = ""] # [doc = " This callback does not currently provide the user_data baton."] # [doc = " https://github.com/flutter/flutter/issues/79826"] pub type FlutterComputePlatformResolvedLocaleCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut * const FlutterLocale , arg2 : size_t) -> * const FlutterLocale > ; # [doc = " Display refers to a graphics hardware system consisting of a framebuffer,"] # [doc = " typically a monitor or a screen. This ID is unique per display and is"] # [doc = " stable until the Flutter application restarts."] pub type FlutterEngineDisplayId = u64 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterEngineDisplay { # [doc = " This size of this struct. Must be sizeof(FlutterDisplay)."] pub struct_size : size_t , pub display_id : FlutterEngineDisplayId , # [doc = " This is set to true if the embedder only has one display. In cases where"] # [doc = " this is set to true, the value of display_id is ignored. In cases where"] # [doc = " this is not set to true, it is expected that a valid display_id be"] # [doc = " provided."] pub single_display : bool , # [doc = " This represents the refresh period in frames per second. This value may be"] # [doc = " zero if the device is not running or unavailable or unknown."] pub refresh_rate : f64 , } # [test] fn bindgen_test_layout_FlutterEngineDisplay () { assert_eq ! (:: std :: mem :: size_of :: < FlutterEngineDisplay > () , 32usize , concat ! ("Size of: " , stringify ! (FlutterEngineDisplay))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterEngineDisplay > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterEngineDisplay))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDisplay > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDisplay) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_display_id () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDisplay > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . display_id) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDisplay) , "::" , stringify ! (display_id))) ; } test_field_display_id () ; fn test_field_single_display () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDisplay > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . single_display) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDisplay) , "::" , stringify ! (single_display))) ; } test_field_single_display () ; fn test_field_refresh_rate () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDisplay > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . refresh_rate) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDisplay) , "::" , stringify ! (refresh_rate))) ; } test_field_refresh_rate () ; } # [doc = " `FlutterEngineDisplay`s that were active during start-up. A display is"] # [doc = " considered active if:"] # [doc = "    1. The frame buffer hardware is connected."] # [doc = "    2. The display is drawable, e.g. it isn't being mirrored from another"] # [doc = "    connected display or sleeping."] pub const FlutterEngineDisplaysUpdateType_kFlutterEngineDisplaysUpdateTypeStartup : FlutterEngineDisplaysUpdateType = 0 ; # [doc = " `FlutterEngineDisplay`s that were active during start-up. A display is"] # [doc = " considered active if:"] # [doc = "    1. The frame buffer hardware is connected."] # [doc = "    2. The display is drawable, e.g. it isn't being mirrored from another"] # [doc = "    connected display or sleeping."] pub const FlutterEngineDisplaysUpdateType_kFlutterEngineDisplaysUpdateTypeCount : FlutterEngineDisplaysUpdateType = 1 ; # [doc = " The update type parameter that is passed to"] # [doc = " `FlutterEngineNotifyDisplayUpdate`."] pub type FlutterEngineDisplaysUpdateType = :: std :: os :: raw :: c_uint ; pub type FlutterEngineDartPort = i64 ; pub const FlutterEngineDartObjectType_kFlutterEngineDartObjectTypeNull : FlutterEngineDartObjectType = 0 ; pub const FlutterEngineDartObjectType_kFlutterEngineDartObjectTypeBool : FlutterEngineDartObjectType = 1 ; pub const FlutterEngineDartObjectType_kFlutterEngineDartObjectTypeInt32 : FlutterEngineDartObjectType = 2 ; pub const FlutterEngineDartObjectType_kFlutterEngineDartObjectTypeInt64 : FlutterEngineDartObjectType = 3 ; pub const FlutterEngineDartObjectType_kFlutterEngineDartObjectTypeDouble : FlutterEngineDartObjectType = 4 ; pub const FlutterEngineDartObjectType_kFlutterEngineDartObjectTypeString : FlutterEngineDartObjectType = 5 ; # [doc = " The object will be made available to Dart code as an instance of"] # [doc = " Uint8List."] pub const FlutterEngineDartObjectType_kFlutterEngineDartObjectTypeBuffer : FlutterEngineDartObjectType = 6 ; pub type FlutterEngineDartObjectType = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterEngineDartBuffer { # [doc = " The size of this struct. Must be sizeof(FlutterEngineDartBuffer)."] pub struct_size : size_t , # [doc = " An opaque baton passed back to the embedder when the"] # [doc = " buffer_collect_callback is invoked. The engine does not interpret this"] # [doc = " field in any way."] pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " This is an optional field."] # [doc = ""] # [doc = " When specified, the engine will assume that the buffer is owned by the"] # [doc = " embedder. When the data is no longer needed by any isolate, this callback"] # [doc = " will be made on an internal engine managed thread. The embedder is free to"] # [doc = " collect the buffer here. When this field is specified, it is the embedders"] # [doc = " responsibility to keep the buffer alive and not modify it till this"] # [doc = " callback is invoked by the engine. The user data specified in the callback"] # [doc = " is the value of `user_data` field in this struct."] # [doc = ""] # [doc = " When NOT specified, the VM creates an internal copy of the buffer. The"] # [doc = " caller is free to modify the buffer as necessary or collect it immediately"] # [doc = " after the call to `FlutterEnginePostDartObject`."] # [doc = ""] # [doc = " @attention      The buffer_collect_callback is will only be invoked by the"] # [doc = "                 engine when the `FlutterEnginePostDartObject` method"] # [doc = "                 returns kSuccess. In case of non-successful calls to this"] # [doc = "                 method, it is the embedders responsibility to collect the"] # [doc = "                 buffer."] pub buffer_collect_callback : VoidCallback , # [doc = " A pointer to the bytes of the buffer. When the buffer is owned by the"] # [doc = " embedder (by specifying the `buffer_collect_callback`), Dart code may"] # [doc = " modify that embedder owned buffer. For this reason, it is important that"] # [doc = " this buffer not have page protections that restrict writing to this"] # [doc = " buffer."] pub buffer : * mut u8 , # [doc = " The size of the buffer."] pub buffer_size : size_t , } # [test] fn bindgen_test_layout_FlutterEngineDartBuffer () { assert_eq ! (:: std :: mem :: size_of :: < FlutterEngineDartBuffer > () , 40usize , concat ! ("Size of: " , stringify ! (FlutterEngineDartBuffer))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterEngineDartBuffer > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterEngineDartBuffer))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartBuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartBuffer) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartBuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartBuffer) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_buffer_collect_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartBuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . buffer_collect_callback) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartBuffer) , "::" , stringify ! (buffer_collect_callback))) ; } test_field_buffer_collect_callback () ; fn test_field_buffer () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartBuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . buffer) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartBuffer) , "::" , stringify ! (buffer))) ; } test_field_buffer () ; fn test_field_buffer_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartBuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . buffer_size) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartBuffer) , "::" , stringify ! (buffer_size))) ; } test_field_buffer_size () ; } # [doc = " This struct specifies the native representation of a Dart object that can be"] # [doc = " sent via a send port to any isolate in the VM that has the corresponding"] # [doc = " receive port."] # [doc = ""] # [doc = " All fields in this struct are copied out in the call to"] # [doc = " `FlutterEnginePostDartObject` and the caller is free to reuse or collect"] # [doc = " this struct after that call."] # [repr (C)] # [derive (Copy , Clone)] pub struct FlutterEngineDartObject { pub type_ : FlutterEngineDartObjectType , pub __bindgen_anon_1 : FlutterEngineDartObject__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union FlutterEngineDartObject__bindgen_ty_1 { pub bool_value : bool , pub int32_value : i32 , pub int64_value : i64 , pub double_value : f64 , # [doc = " A null terminated string. This string will be copied by the VM in the"] # [doc = " call to `FlutterEnginePostDartObject` and must be collected by the"] # [doc = " embedder after that call is made."] pub string_value : * const :: std :: os :: raw :: c_char , pub buffer_value : * const FlutterEngineDartBuffer , } # [test] fn bindgen_test_layout_FlutterEngineDartObject__bindgen_ty_1 () { assert_eq ! (:: std :: mem :: size_of :: < FlutterEngineDartObject__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (FlutterEngineDartObject__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterEngineDartObject__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterEngineDartObject__bindgen_ty_1))) ; fn test_field_bool_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartObject__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . bool_value) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartObject__bindgen_ty_1) , "::" , stringify ! (bool_value))) ; } test_field_bool_value () ; fn test_field_int32_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartObject__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . int32_value) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartObject__bindgen_ty_1) , "::" , stringify ! (int32_value))) ; } test_field_int32_value () ; fn test_field_int64_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartObject__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . int64_value) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartObject__bindgen_ty_1) , "::" , stringify ! (int64_value))) ; } test_field_int64_value () ; fn test_field_double_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartObject__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . double_value) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartObject__bindgen_ty_1) , "::" , stringify ! (double_value))) ; } test_field_double_value () ; fn test_field_string_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartObject__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . string_value) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartObject__bindgen_ty_1) , "::" , stringify ! (string_value))) ; } test_field_string_value () ; fn test_field_buffer_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartObject__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . buffer_value) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartObject__bindgen_ty_1) , "::" , stringify ! (buffer_value))) ; } test_field_buffer_value () ; } # [test] fn bindgen_test_layout_FlutterEngineDartObject () { assert_eq ! (:: std :: mem :: size_of :: < FlutterEngineDartObject > () , 16usize , concat ! ("Size of: " , stringify ! (FlutterEngineDartObject))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterEngineDartObject > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterEngineDartObject))) ; fn test_field_type () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartObject > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . type_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartObject) , "::" , stringify ! (type_))) ; } test_field_type () ; } # [doc = " The Flutter Engine considers the thread on which the FlutterEngineRun call"] # [doc = " is made to be the platform thread. There is only one such thread per"] # [doc = " engine instance."] pub const FlutterNativeThreadType_kFlutterNativeThreadTypePlatform : FlutterNativeThreadType = 0 ; # [doc = " This is the thread the Flutter Engine uses to execute rendering commands"] # [doc = " based on the selected client rendering API. There is only one such thread"] # [doc = " per engine instance."] pub const FlutterNativeThreadType_kFlutterNativeThreadTypeRender : FlutterNativeThreadType = 1 ; # [doc = " This is a dedicated thread on which the root Dart isolate is serviced."] # [doc = " There is only one such thread per engine instance."] pub const FlutterNativeThreadType_kFlutterNativeThreadTypeUI : FlutterNativeThreadType = 2 ; # [doc = " Multiple threads are used by the Flutter engine to perform long running"] # [doc = " background tasks."] pub const FlutterNativeThreadType_kFlutterNativeThreadTypeWorker : FlutterNativeThreadType = 3 ; # [doc = " This enum allows embedders to determine the type of the engine thread in the"] # [doc = " FlutterNativeThreadCallback. Based on the thread type, the embedder may be"] # [doc = " able to tweak the thread priorities for optimum performance."] pub type FlutterNativeThreadType = :: std :: os :: raw :: c_uint ; # [doc = " A callback made by the engine in response to"] # [doc = " `FlutterEnginePostCallbackOnAllNativeThreads` on all internal thread."] pub type FlutterNativeThreadCallback = :: std :: option :: Option < unsafe extern "C" fn (type_ : FlutterNativeThreadType , user_data : * mut :: std :: os :: raw :: c_void) > ; pub const FlutterEngineAOTDataSourceType_kFlutterEngineAOTDataSourceTypeElfPath : FlutterEngineAOTDataSourceType = 0 ; # [doc = " AOT data source type."] pub type FlutterEngineAOTDataSourceType = :: std :: os :: raw :: c_uint ; # [doc = " This struct specifies one of the various locations the engine can look for"] # [doc = " AOT data sources."] # [repr (C)] # [derive (Copy , Clone)] pub struct FlutterEngineAOTDataSource { pub type_ : FlutterEngineAOTDataSourceType , pub __bindgen_anon_1 : FlutterEngineAOTDataSource__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union FlutterEngineAOTDataSource__bindgen_ty_1 { # [doc = " Absolute path to an ELF library file."] pub elf_path : * const :: std :: os :: raw :: c_char , } # [test] fn bindgen_test_layout_FlutterEngineAOTDataSource__bindgen_ty_1 () { assert_eq ! (:: std :: mem :: size_of :: < FlutterEngineAOTDataSource__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (FlutterEngineAOTDataSource__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterEngineAOTDataSource__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterEngineAOTDataSource__bindgen_ty_1))) ; fn test_field_elf_path () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineAOTDataSource__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . elf_path) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineAOTDataSource__bindgen_ty_1) , "::" , stringify ! (elf_path))) ; } test_field_elf_path () ; } # [test] fn bindgen_test_layout_FlutterEngineAOTDataSource () { assert_eq ! (:: std :: mem :: size_of :: < FlutterEngineAOTDataSource > () , 16usize , concat ! ("Size of: " , stringify ! (FlutterEngineAOTDataSource))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterEngineAOTDataSource > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterEngineAOTDataSource))) ; fn test_field_type () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineAOTDataSource > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . type_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineAOTDataSource) , "::" , stringify ! (type_))) ; } test_field_type () ; } pub type FlutterLogMessageCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_char , arg2 : * const :: std :: os :: raw :: c_char , arg3 : * mut :: std :: os :: raw :: c_void) > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _FlutterEngineAOTData { _unused : [u8 ; 0] , } # [doc = " An opaque object that describes the AOT data that can be used to launch a"] # [doc = " FlutterEngine instance in AOT mode."] pub type FlutterEngineAOTData = * mut _FlutterEngineAOTData ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterProjectArgs { # [doc = " The size of this struct. Must be sizeof(FlutterProjectArgs)."] pub struct_size : size_t , # [doc = " The path to the Flutter assets directory containing project assets. The"] # [doc = " string can be collected after the call to `FlutterEngineRun` returns. The"] # [doc = " string must be NULL terminated."] pub assets_path : * const :: std :: os :: raw :: c_char , # [doc = " The path to the Dart file containing the `main` entry point."] # [doc = " The string can be collected after the call to `FlutterEngineRun` returns."] # [doc = " The string must be NULL terminated."] # [doc = ""] # [doc = " @deprecated     As of Dart 2, running from Dart source is no longer"] # [doc = "                 supported. Dart code should now be compiled to kernel form"] # [doc = "                 and will be loaded by from `kernel_blob.bin` in the assets"] # [doc = "                 directory. This struct member is retained for ABI"] # [doc = "                 stability."] pub main_path__unused__ : * const :: std :: os :: raw :: c_char , # [doc = " The path to the `.packages` file for the project. The string can be"] # [doc = " collected after the call to `FlutterEngineRun` returns. The string must be"] # [doc = " NULL terminated."] # [doc = ""] # [doc = " @deprecated    As of Dart 2, running from Dart source is no longer"] # [doc = "                supported. Dart code should now be compiled to kernel form"] # [doc = "                and will be loaded by from `kernel_blob.bin` in the assets"] # [doc = "                directory. This struct member is retained for ABI"] # [doc = "                stability."] pub packages_path__unused__ : * const :: std :: os :: raw :: c_char , # [doc = " The path to the `icudtl.dat` file for the project. The string can be"] # [doc = " collected after the call to `FlutterEngineRun` returns. The string must"] # [doc = " be NULL terminated."] pub icu_data_path : * const :: std :: os :: raw :: c_char , # [doc = " The command line argument count used to initialize the project."] pub command_line_argc : :: std :: os :: raw :: c_int , # [doc = " The command line arguments used to initialize the project. The strings can"] # [doc = " be collected after the call to `FlutterEngineRun` returns. The strings"] # [doc = " must be `NULL` terminated."] # [doc = ""] # [doc = " @attention     The first item in the command line (if specified at all) is"] # [doc = "                interpreted as the executable name. So if an engine flag"] # [doc = "                needs to be passed into the same, it needs to not be the"] # [doc = "                very first item in the list."] # [doc = ""] # [doc = " The set of engine flags are only meant to control"] # [doc = " unstable features in the engine. Deployed applications should not pass any"] # [doc = " command line arguments at all as they may affect engine stability at"] # [doc = " runtime in the presence of un-sanitized input. The list of currently"] # [doc = " recognized engine flags and their descriptions can be retrieved from the"] # [doc = " `switches.h` engine source file."] pub command_line_argv : * const * const :: std :: os :: raw :: c_char , # [doc = " The callback invoked by the engine in order to give the embedder the"] # [doc = " chance to respond to platform messages from the Dart application."] # [doc = " The callback will be invoked on the thread on which the `FlutterEngineRun`"] # [doc = " call is made. The second parameter, `user_data`, is supplied when"] # [doc = " `FlutterEngineRun` or `FlutterEngineInitialize` is called."] pub platform_message_callback : FlutterPlatformMessageCallback , # [doc = " The VM snapshot data buffer used in AOT operation. This buffer must be"] # [doc = " mapped in as read-only. For more information refer to the documentation on"] # [doc = " the Wiki at"] # [doc = " https://github.com/flutter/flutter/wiki/Flutter-engine-operation-in-AOT-Mode"] pub vm_snapshot_data : * const u8 , # [doc = " The size of the VM snapshot data buffer.  If vm_snapshot_data is a symbol"] # [doc = " reference, 0 may be passed here."] pub vm_snapshot_data_size : size_t , # [doc = " The VM snapshot instructions buffer used in AOT operation. This buffer"] # [doc = " must be mapped in as read-execute. For more information refer to the"] # [doc = " documentation on the Wiki at"] # [doc = " https://github.com/flutter/flutter/wiki/Flutter-engine-operation-in-AOT-Mode"] pub vm_snapshot_instructions : * const u8 , # [doc = " The size of the VM snapshot instructions buffer. If"] # [doc = " vm_snapshot_instructions is a symbol reference, 0 may be passed here."] pub vm_snapshot_instructions_size : size_t , # [doc = " The isolate snapshot data buffer used in AOT operation. This buffer must"] # [doc = " be mapped in as read-only. For more information refer to the documentation"] # [doc = " on the Wiki at"] # [doc = " https://github.com/flutter/flutter/wiki/Flutter-engine-operation-in-AOT-Mode"] pub isolate_snapshot_data : * const u8 , # [doc = " The size of the isolate snapshot data buffer.  If isolate_snapshot_data is"] # [doc = " a symbol reference, 0 may be passed here."] pub isolate_snapshot_data_size : size_t , # [doc = " The isolate snapshot instructions buffer used in AOT operation. This"] # [doc = " buffer must be mapped in as read-execute. For more information refer to"] # [doc = " the documentation on the Wiki at"] # [doc = " https://github.com/flutter/flutter/wiki/Flutter-engine-operation-in-AOT-Mode"] pub isolate_snapshot_instructions : * const u8 , # [doc = " The size of the isolate snapshot instructions buffer. If"] # [doc = " isolate_snapshot_instructions is a symbol reference, 0 may be passed here."] pub isolate_snapshot_instructions_size : size_t , # [doc = " The callback invoked by the engine in root isolate scope. Called"] # [doc = " immediately after the root isolate has been created and marked runnable."] pub root_isolate_create_callback : VoidCallback , # [doc = " The callback invoked by the engine in order to give the embedder the"] # [doc = " chance to respond to semantics node updates from the Dart application."] # [doc = " Semantics node updates are sent in batches terminated by a 'batch end'"] # [doc = " callback that is passed a sentinel `FlutterSemanticsNode` whose `id` field"] # [doc = " has the value `kFlutterSemanticsNodeIdBatchEnd`."] # [doc = ""] # [doc = " The callback will be invoked on the thread on which the `FlutterEngineRun`"] # [doc = " call is made."] pub update_semantics_node_callback : FlutterUpdateSemanticsNodeCallback , # [doc = " The callback invoked by the engine in order to give the embedder the"] # [doc = " chance to respond to updates to semantics custom actions from the Dart"] # [doc = " application.  Custom action updates are sent in batches terminated by a"] # [doc = " 'batch end' callback that is passed a sentinel"] # [doc = " `FlutterSemanticsCustomAction` whose `id` field has the value"] # [doc = " `kFlutterSemanticsCustomActionIdBatchEnd`."] # [doc = ""] # [doc = " The callback will be invoked on the thread on which the `FlutterEngineRun`"] # [doc = " call is made."] pub update_semantics_custom_action_callback : FlutterUpdateSemanticsCustomActionCallback , # [doc = " Path to a directory used to store data that is cached across runs of a"] # [doc = " Flutter application (such as compiled shader programs used by Skia)."] # [doc = " This is optional.  The string must be NULL terminated."] # [doc = ""] pub persistent_cache_path : * const :: std :: os :: raw :: c_char , # [doc = " If true, the engine would only read the existing cache, but not write new"] # [doc = " ones."] pub is_persistent_cache_read_only : bool , # [doc = " A callback that gets invoked by the engine when it attempts to wait for a"] # [doc = " platform vsync event. The engine will give the platform a baton that needs"] # [doc = " to be returned back to the engine via `FlutterEngineOnVsync`. All batons"] # [doc = " must be retured to the engine before initializing a"] # [doc = " `FlutterEngineShutdown`. Not doing the same will result in a memory leak."] # [doc = " While the call to `FlutterEngineOnVsync` must occur on the thread that"] # [doc = " made the call to `FlutterEngineRun`, the engine will make this callback on"] # [doc = " an internal engine-managed thread. If the components accessed on the"] # [doc = " embedder are not thread safe, the appropriate re-threading must be done."] pub vsync_callback : VsyncCallback , # [doc = " The name of a custom Dart entrypoint. This is optional and specifying a"] # [doc = " null or empty entrypoint makes the engine look for a method named \"main\""] # [doc = " in the root library of the application."] # [doc = ""] # [doc = " Care must be taken to ensure that the custom entrypoint is not tree-shaken"] # [doc = " away. Usually, this is done using the `@pragma('vm:entry-point')`"] # [doc = " decoration."] pub custom_dart_entrypoint : * const :: std :: os :: raw :: c_char , # [doc = " Typically the Flutter engine create and manages its internal threads. This"] # [doc = " optional argument allows for the specification of task runner interfaces"] # [doc = " to event loops managed by the embedder on threads it creates."] pub custom_task_runners : * const FlutterCustomTaskRunners , # [doc = " All `FlutterEngine` instances in the process share the same Dart VM. When"] # [doc = " the first engine is launched, it starts the Dart VM as well. It used to be"] # [doc = " the case that it was not possible to shutdown the Dart VM cleanly and"] # [doc = " start it back up in the process in a safe manner. This issue has since"] # [doc = " been patched. Unfortunately, applications already began to make use of the"] # [doc = " fact that shutting down the Flutter engine instance left a running VM in"] # [doc = " the process. Since a Flutter engine could be launched on any thread,"] # [doc = " applications would \"warm up\" the VM on another thread by launching"] # [doc = " an engine with no isolates and then shutting it down immediately. The main"] # [doc = " Flutter application could then be started on the main thread without"] # [doc = " having to incur the Dart VM startup costs at that time. With the new"] # [doc = " behavior, this \"optimization\" immediately becomes massive performance"] # [doc = " pessimization as the VM would be started up in the \"warm up\" phase, shut"] # [doc = " down there and then started again on the main thread. Changing this"] # [doc = " behavior was deemed to be an unacceptable breaking change. Embedders that"] # [doc = " wish to shutdown the Dart VM when the last engine is terminated in the"] # [doc = " process should opt into this behavior by setting this flag to true."] pub shutdown_dart_vm_when_done : bool , # [doc = " Typically, Flutter renders the layer hierarchy into a single root surface."] # [doc = " However, when embedders need to interleave their own contents within the"] # [doc = " Flutter layer hierarchy, their applications can push platform views within"] # [doc = " the Flutter scene. This is done using the `SceneBuilder.addPlatformView`"] # [doc = " call. When this happens, the Flutter rasterizer divides the effective view"] # [doc = " hierarchy into multiple layers. Each layer gets its own backing store and"] # [doc = " Flutter renders into the same. Once the layers contents have been"] # [doc = " fulfilled, the embedder is asked to composite these layers on-screen. At"] # [doc = " this point, it can interleave its own contents within the effective"] # [doc = " hierarchy. The interface for the specification of these layer backing"] # [doc = " stores and the hooks to listen for the composition of layers on-screen can"] # [doc = " be controlled using this field. This field is completely optional. In its"] # [doc = " absence, platforms views in the scene are ignored and Flutter renders to"] # [doc = " the root surface as normal."] pub compositor : * const FlutterCompositor , # [doc = " Max size of the old gen heap for the Dart VM in MB, or 0 for unlimited, -1"] # [doc = " for default value."] # [doc = ""] # [doc = " See also:"] # [doc = " https://github.com/dart-lang/sdk/blob/ca64509108b3e7219c50d6c52877c85ab6a35ff2/runtime/vm/flag_list.h#L150"] pub dart_old_gen_heap_size : i64 , # [doc = " The AOT data to be used in AOT operation."] # [doc = ""] # [doc = " Embedders should instantiate and destroy this object via the"] # [doc = " FlutterEngineCreateAOTData and FlutterEngineCollectAOTData methods."] # [doc = ""] # [doc = " Embedders can provide either snapshot buffers or aot_data, but not both."] pub aot_data : FlutterEngineAOTData , # [doc = " A callback that computes the locale the platform would natively resolve"] # [doc = " to."] # [doc = ""] # [doc = " The input parameter is an array of FlutterLocales which represent the"] # [doc = " locales supported by the app. One of the input supported locales should"] # [doc = " be selected and returned to best match with the user/device's preferred"] # [doc = " locale. The implementation should produce a result that as closely"] # [doc = " matches what the platform would natively resolve to as possible."] pub compute_platform_resolved_locale_callback : FlutterComputePlatformResolvedLocaleCallback , # [doc = " The command line argument count for arguments passed through to the Dart"] # [doc = " entrypoint."] pub dart_entrypoint_argc : :: std :: os :: raw :: c_int , # [doc = " The command line arguments passed through to the Dart entrypoint. The"] # [doc = " strings must be `NULL` terminated."] # [doc = ""] # [doc = " The strings will be copied out and so any strings passed in here can"] # [doc = " be safely collected after initializing the engine with"] # [doc = " `FlutterProjectArgs`."] pub dart_entrypoint_argv : * const * const :: std :: os :: raw :: c_char , pub log_message_callback : FlutterLogMessageCallback , pub log_tag : * const :: std :: os :: raw :: c_char , pub on_pre_engine_restart_callback : OnPreEngineRestartCallback , } # [test] fn bindgen_test_layout_FlutterProjectArgs () { assert_eq ! (:: std :: mem :: size_of :: < FlutterProjectArgs > () , 272usize , concat ! ("Size of: " , stringify ! (FlutterProjectArgs))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterProjectArgs > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterProjectArgs))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_assets_path () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . assets_path) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (assets_path))) ; } test_field_assets_path () ; fn test_field_main_path__unused__ () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . main_path__unused__) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (main_path__unused__))) ; } test_field_main_path__unused__ () ; fn test_field_packages_path__unused__ () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . packages_path__unused__) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (packages_path__unused__))) ; } test_field_packages_path__unused__ () ; fn test_field_icu_data_path () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . icu_data_path) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (icu_data_path))) ; } test_field_icu_data_path () ; fn test_field_command_line_argc () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . command_line_argc) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (command_line_argc))) ; } test_field_command_line_argc () ; fn test_field_command_line_argv () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . command_line_argv) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (command_line_argv))) ; } test_field_command_line_argv () ; fn test_field_platform_message_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . platform_message_callback) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (platform_message_callback))) ; } test_field_platform_message_callback () ; fn test_field_vm_snapshot_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . vm_snapshot_data) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (vm_snapshot_data))) ; } test_field_vm_snapshot_data () ; fn test_field_vm_snapshot_data_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . vm_snapshot_data_size) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (vm_snapshot_data_size))) ; } test_field_vm_snapshot_data_size () ; fn test_field_vm_snapshot_instructions () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . vm_snapshot_instructions) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (vm_snapshot_instructions))) ; } test_field_vm_snapshot_instructions () ; fn test_field_vm_snapshot_instructions_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . vm_snapshot_instructions_size) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (vm_snapshot_instructions_size))) ; } test_field_vm_snapshot_instructions_size () ; fn test_field_isolate_snapshot_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . isolate_snapshot_data) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (isolate_snapshot_data))) ; } test_field_isolate_snapshot_data () ; fn test_field_isolate_snapshot_data_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . isolate_snapshot_data_size) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (isolate_snapshot_data_size))) ; } test_field_isolate_snapshot_data_size () ; fn test_field_isolate_snapshot_instructions () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . isolate_snapshot_instructions) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (isolate_snapshot_instructions))) ; } test_field_isolate_snapshot_instructions () ; fn test_field_isolate_snapshot_instructions_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . isolate_snapshot_instructions_size) as usize - ptr as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (isolate_snapshot_instructions_size))) ; } test_field_isolate_snapshot_instructions_size () ; fn test_field_root_isolate_create_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . root_isolate_create_callback) as usize - ptr as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (root_isolate_create_callback))) ; } test_field_root_isolate_create_callback () ; fn test_field_update_semantics_node_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . update_semantics_node_callback) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (update_semantics_node_callback))) ; } test_field_update_semantics_node_callback () ; fn test_field_update_semantics_custom_action_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . update_semantics_custom_action_callback) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (update_semantics_custom_action_callback))) ; } test_field_update_semantics_custom_action_callback () ; fn test_field_persistent_cache_path () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . persistent_cache_path) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (persistent_cache_path))) ; } test_field_persistent_cache_path () ; fn test_field_is_persistent_cache_read_only () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . is_persistent_cache_read_only) as usize - ptr as usize } , 160usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (is_persistent_cache_read_only))) ; } test_field_is_persistent_cache_read_only () ; fn test_field_vsync_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . vsync_callback) as usize - ptr as usize } , 168usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (vsync_callback))) ; } test_field_vsync_callback () ; fn test_field_custom_dart_entrypoint () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . custom_dart_entrypoint) as usize - ptr as usize } , 176usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (custom_dart_entrypoint))) ; } test_field_custom_dart_entrypoint () ; fn test_field_custom_task_runners () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . custom_task_runners) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (custom_task_runners))) ; } test_field_custom_task_runners () ; fn test_field_shutdown_dart_vm_when_done () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . shutdown_dart_vm_when_done) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (shutdown_dart_vm_when_done))) ; } test_field_shutdown_dart_vm_when_done () ; fn test_field_compositor () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . compositor) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (compositor))) ; } test_field_compositor () ; fn test_field_dart_old_gen_heap_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . dart_old_gen_heap_size) as usize - ptr as usize } , 208usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (dart_old_gen_heap_size))) ; } test_field_dart_old_gen_heap_size () ; fn test_field_aot_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . aot_data) as usize - ptr as usize } , 216usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (aot_data))) ; } test_field_aot_data () ; fn test_field_compute_platform_resolved_locale_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . compute_platform_resolved_locale_callback) as usize - ptr as usize } , 224usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (compute_platform_resolved_locale_callback))) ; } test_field_compute_platform_resolved_locale_callback () ; fn test_field_dart_entrypoint_argc () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . dart_entrypoint_argc) as usize - ptr as usize } , 232usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (dart_entrypoint_argc))) ; } test_field_dart_entrypoint_argc () ; fn test_field_dart_entrypoint_argv () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . dart_entrypoint_argv) as usize - ptr as usize } , 240usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (dart_entrypoint_argv))) ; } test_field_dart_entrypoint_argv () ; fn test_field_log_message_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . log_message_callback) as usize - ptr as usize } , 248usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (log_message_callback))) ; } test_field_log_message_callback () ; fn test_field_log_tag () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . log_tag) as usize - ptr as usize } , 256usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (log_tag))) ; } test_field_log_tag () ; fn test_field_on_pre_engine_restart_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . on_pre_engine_restart_callback) as usize - ptr as usize } , 264usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (on_pre_engine_restart_callback))) ; } test_field_on_pre_engine_restart_callback () ; } extern "C" { # [doc = " @brief      Creates the necessary data structures to launch a Flutter Dart"] # [doc = "             application in AOT mode. The data may only be collected after"] # [doc = "             all FlutterEngine instances launched using this data have been"] # [doc = "             terminated."] # [doc = ""] # [doc = " @param[in]  source    The source of the AOT data."] # [doc = " @param[out] data_out  The AOT data on success. Unchanged on failure."] # [doc = ""] # [doc = " @return     Returns if the AOT data could be successfully resolved."] # [doc = ""] pub fn FlutterEngineCreateAOTData (source : * const FlutterEngineAOTDataSource , data_out : * mut FlutterEngineAOTData) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Collects the AOT data."] # [doc = ""] # [doc = " @warning    The embedder must ensure that this call is made only after all"] # [doc = "             FlutterEngine instances launched using this data have been"] # [doc = "             terminated, and that all of those instances were launched with"] # [doc = "             the FlutterProjectArgs::shutdown_dart_vm_when_done flag set to"] # [doc = "             true."] # [doc = ""] # [doc = " @param[in]  data   The data to collect."] # [doc = ""] # [doc = " @return     Returns if the AOT data was successfully collected."] # [doc = ""] pub fn FlutterEngineCollectAOTData (data : FlutterEngineAOTData) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Initialize and run a Flutter engine instance and return a handle"] # [doc = "             to it. This is a convenience method for the pair of calls to"] # [doc = "             `FlutterEngineInitialize` and `FlutterEngineRunInitialized`."] # [doc = ""] # [doc = " @note       This method of running a Flutter engine works well except in"] # [doc = "             cases where the embedder specifies custom task runners via"] # [doc = "             `FlutterProjectArgs::custom_task_runners`. In such cases, the"] # [doc = "             engine may need the embedder to post tasks back to it before"] # [doc = "             `FlutterEngineRun` has returned. Embedders can only post tasks"] # [doc = "             to the engine if they have a handle to the engine. In such"] # [doc = "             cases, embedders are advised to get the engine handle via the"] # [doc = "             `FlutterInitializeCall`. Then they can call"] # [doc = "             `FlutterEngineRunInitialized` knowing that they will be able to"] # [doc = "             service custom tasks on other threads with the engine handle."] # [doc = ""] # [doc = " @param[in]  version    The Flutter embedder API version. Must be"] # [doc = "                        FLUTTER_ENGINE_VERSION."] # [doc = " @param[in]  config     The renderer configuration."] # [doc = " @param[in]  args       The Flutter project arguments."] # [doc = " @param      user_data  A user data baton passed back to embedders in"] # [doc = "                        callbacks."] # [doc = " @param[out] engine_out The engine handle on successful engine creation."] # [doc = ""] # [doc = " @return     The result of the call to run the Flutter engine."] # [doc = ""] pub fn FlutterEngineRun (version : size_t , config : * const FlutterRendererConfig , args : * const FlutterProjectArgs , user_data : * mut :: std :: os :: raw :: c_void , engine_out : * mut FlutterEngine) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Shuts down a Flutter engine instance. The engine handle is no"] # [doc = "             longer valid for any calls in the embedder API after this point."] # [doc = "             Making additional calls with this handle is undefined behavior."] # [doc = ""] # [doc = " @note       This de-initializes the Flutter engine instance (via an implicit"] # [doc = "             call to `FlutterEngineDeinitialize`) if necessary."] # [doc = ""] # [doc = " @param[in]  engine  The Flutter engine instance to collect."] # [doc = ""] # [doc = " @return     The result of the call to shutdown the Flutter engine instance."] # [doc = ""] pub fn FlutterEngineShutdown (engine : FlutterEngine) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Initialize a Flutter engine instance. This does not run the"] # [doc = "             Flutter application code till the `FlutterEngineRunInitialized`"] # [doc = "             call is made. Besides Flutter application code, no tasks are"] # [doc = "             scheduled on embedder managed task runners either. This allows"] # [doc = "             embedders providing custom task runners to the Flutter engine to"] # [doc = "             obtain a handle to the Flutter engine before the engine can post"] # [doc = "             tasks on these task runners."] # [doc = ""] # [doc = " @param[in]  version    The Flutter embedder API version. Must be"] # [doc = "                        FLUTTER_ENGINE_VERSION."] # [doc = " @param[in]  config     The renderer configuration."] # [doc = " @param[in]  args       The Flutter project arguments."] # [doc = " @param      user_data  A user data baton passed back to embedders in"] # [doc = "                        callbacks."] # [doc = " @param[out] engine_out The engine handle on successful engine creation."] # [doc = ""] # [doc = " @return     The result of the call to initialize the Flutter engine."] # [doc = ""] pub fn FlutterEngineInitialize (version : size_t , config : * const FlutterRendererConfig , args : * const FlutterProjectArgs , user_data : * mut :: std :: os :: raw :: c_void , engine_out : * mut FlutterEngine) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Stops running the Flutter engine instance. After this call, the"] # [doc = "             embedder is also guaranteed that no more calls to post tasks"] # [doc = "             onto custom task runners specified by the embedder are made. The"] # [doc = "             Flutter engine handle still needs to be collected via a call to"] # [doc = "             `FlutterEngineShutdown`."] # [doc = ""] # [doc = " @param[in]  engine    The running engine instance to de-initialize."] # [doc = ""] # [doc = " @return     The result of the call to de-initialize the Flutter engine."] # [doc = ""] pub fn FlutterEngineDeinitialize (engine : FlutterEngine) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Runs an initialized engine instance. An engine can be"] # [doc = "             initialized via `FlutterEngineInitialize`. An initialized"] # [doc = "             instance can only be run once. During and after this call,"] # [doc = "             custom task runners supplied by the embedder are expected to"] # [doc = "             start servicing tasks."] # [doc = ""] # [doc = " @param[in]  engine  An initialized engine instance that has not previously"] # [doc = "                     been run."] # [doc = ""] # [doc = " @return     The result of the call to run the initialized Flutter"] # [doc = "             engine instance."] # [doc = ""] pub fn FlutterEngineRunInitialized (engine : FlutterEngine) -> FlutterEngineResult ; } extern "C" { pub fn FlutterEngineSendWindowMetricsEvent (engine : FlutterEngine , event : * const FlutterWindowMetricsEvent) -> FlutterEngineResult ; } extern "C" { pub fn FlutterEngineSendPointerEvent (engine : FlutterEngine , events : * const FlutterPointerEvent , events_count : size_t) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Sends a key event to the engine. The framework will decide"] # [doc = "             whether to handle this event in a synchronous fashion, although"] # [doc = "             due to technical limitation, the result is always reported"] # [doc = "             asynchronously. The `callback` is guaranteed to be called"] # [doc = "             exactly once."] # [doc = ""] # [doc = " @param[in]  engine         A running engine instance."] # [doc = " @param[in]  event          The event data to be sent. This function will no"] # [doc = "                            longer access `event` after returning."] # [doc = " @param[in]  callback       The callback invoked by the engine when the"] # [doc = "                            Flutter application has decided whether it"] # [doc = "                            handles this event. Accepts nullptr."] # [doc = " @param[in]  user_data      The context associated with the callback. The"] # [doc = "                            exact same value will used to invoke `callback`."] # [doc = "                            Accepts nullptr."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineSendKeyEvent (engine : FlutterEngine , event : * const FlutterKeyEvent , callback : FlutterKeyEventCallback , user_data : * mut :: std :: os :: raw :: c_void) -> FlutterEngineResult ; } extern "C" { pub fn FlutterEngineSendPlatformMessage (engine : FlutterEngine , message : * const FlutterPlatformMessage) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief     Creates a platform message response handle that allows the"] # [doc = "            embedder to set a native callback for a response to a message."] # [doc = "            This handle may be set on the `response_handle` field of any"] # [doc = "            `FlutterPlatformMessage` sent to the engine."] # [doc = ""] # [doc = "            The handle must be collected via a call to"] # [doc = "            `FlutterPlatformMessageReleaseResponseHandle`. This may be done"] # [doc = "            immediately after a call to `FlutterEngineSendPlatformMessage`"] # [doc = "            with a platform message whose response handle contains the handle"] # [doc = "            created using this call. In case a handle is created but never"] # [doc = "            sent in a message, the release call must still be made. Not"] # [doc = "            calling release on the handle results in a small memory leak."] # [doc = ""] # [doc = "            The user data baton passed to the data callback is the one"] # [doc = "            specified in this call as the third argument."] # [doc = ""] # [doc = " @see       FlutterPlatformMessageReleaseResponseHandle()"] # [doc = ""] # [doc = " @param[in]  engine         A running engine instance."] # [doc = " @param[in]  data_callback  The callback invoked by the engine when the"] # [doc = "                            Flutter application send a response on the"] # [doc = "                            handle."] # [doc = " @param[in]  user_data      The user data associated with the data callback."] # [doc = " @param[out] response_out   The response handle created when this call is"] # [doc = "                            successful."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterPlatformMessageCreateResponseHandle (engine : FlutterEngine , data_callback : FlutterDataCallback , user_data : * mut :: std :: os :: raw :: c_void , response_out : * mut * mut FlutterPlatformMessageResponseHandle) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Collects the handle created using"] # [doc = "             `FlutterPlatformMessageCreateResponseHandle`."] # [doc = ""] # [doc = " @see        FlutterPlatformMessageCreateResponseHandle()"] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance."] # [doc = " @param[in]  response   The platform message response handle to collect."] # [doc = "                        These handles are created using"] # [doc = "                        `FlutterPlatformMessageCreateResponseHandle()`."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterPlatformMessageReleaseResponseHandle (engine : FlutterEngine , response : * mut FlutterPlatformMessageResponseHandle) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Send a response from the native side to a platform message from"] # [doc = "             the Dart Flutter application."] # [doc = ""] # [doc = " @param[in]  engine       The running engine instance."] # [doc = " @param[in]  handle       The platform message response handle."] # [doc = " @param[in]  data         The data to associate with the platform message"] # [doc = "                          response."] # [doc = " @param[in]  data_length  The length of the platform message response data."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineSendPlatformMessageResponse (engine : FlutterEngine , handle : * const FlutterPlatformMessageResponseHandle , data : * const u8 , data_length : size_t) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      This API is only meant to be used by platforms that need to"] # [doc = "             flush tasks on a message loop not controlled by the Flutter"] # [doc = "             engine."] # [doc = ""] # [doc = " @deprecated This API will be deprecated and is not part of the stable API."] # [doc = "             Please use the custom task runners API by setting an"] # [doc = "             appropriate `FlutterProjectArgs::custom_task_runners`"] # [doc = "             interface. This will yield better performance and the"] # [doc = "             interface is stable."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn __FlutterEngineFlushPendingTasksNow () -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Register an external texture with a unique (per engine)"] # [doc = "             identifier. Only rendering backends that support external"] # [doc = "             textures accept external texture registrations. After the"] # [doc = "             external texture is registered, the application can mark that a"] # [doc = "             frame is available by calling"] # [doc = "             `FlutterEngineMarkExternalTextureFrameAvailable`."] # [doc = ""] # [doc = " @see        FlutterEngineUnregisterExternalTexture()"] # [doc = " @see        FlutterEngineMarkExternalTextureFrameAvailable()"] # [doc = ""] # [doc = " @param[in]  engine              A running engine instance."] # [doc = " @param[in]  texture_identifier  The identifier of the texture to register"] # [doc = "                                 with the engine. The embedder may supply new"] # [doc = "                                 frames to this texture using the same"] # [doc = "                                 identifier."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineRegisterExternalTexture (engine : FlutterEngine , texture_identifier : i64) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Unregister a previous texture registration."] # [doc = ""] # [doc = " @see        FlutterEngineRegisterExternalTexture()"] # [doc = " @see        FlutterEngineMarkExternalTextureFrameAvailable()"] # [doc = ""] # [doc = " @param[in]  engine              A running engine instance."] # [doc = " @param[in]  texture_identifier  The identifier of the texture for which new"] # [doc = "                                 frame will not be available."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineUnregisterExternalTexture (engine : FlutterEngine , texture_identifier : i64) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Mark that a new texture frame is available for a given texture"] # [doc = "             identifier."] # [doc = ""] # [doc = " @see        FlutterEngineRegisterExternalTexture()"] # [doc = " @see        FlutterEngineUnregisterExternalTexture()"] # [doc = ""] # [doc = " @param[in]  engine              A running engine instance."] # [doc = " @param[in]  texture_identifier  The identifier of the texture whose frame"] # [doc = "                                 has been updated."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineMarkExternalTextureFrameAvailable (engine : FlutterEngine , texture_identifier : i64) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Enable or disable accessibility semantics."] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance."] # [doc = " @param[in]  enabled    When enabled, changes to the semantic contents of the"] # [doc = "                        window are sent via the"] # [doc = "                        `FlutterUpdateSemanticsNodeCallback` registered to"] # [doc = "                        `update_semantics_node_callback` in"] # [doc = "                        `FlutterProjectArgs`."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineUpdateSemanticsEnabled (engine : FlutterEngine , enabled : bool) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Sets additional accessibility features."] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance"] # [doc = " @param[in]  features   The accessibility features to set."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineUpdateAccessibilityFeatures (engine : FlutterEngine , features : FlutterAccessibilityFeature) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Dispatch a semantics action to the specified semantics node."] # [doc = ""] # [doc = " @param[in]  engine       A running engine instance."] # [doc = " @param[in]  identifier   The semantics action identifier."] # [doc = " @param[in]  action       The semantics action."] # [doc = " @param[in]  data         Data associated with the action."] # [doc = " @param[in]  data_length  The data length."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineDispatchSemanticsAction (engine : FlutterEngine , id : u64 , action : FlutterSemanticsAction , data : * const u8 , data_length : size_t) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Notify the engine that a vsync event occurred. A baton passed to"] # [doc = "             the platform via the vsync callback must be returned. This call"] # [doc = "             must be made on the thread on which the call to"] # [doc = "             `FlutterEngineRun` was made."] # [doc = ""] # [doc = " @see        FlutterEngineGetCurrentTime()"] # [doc = ""] # [doc = " @attention  That frame timepoints are in nanoseconds."] # [doc = ""] # [doc = " @attention  The system monotonic clock is used as the timebase."] # [doc = ""] # [doc = " @param[in]  engine.                  A running engine instance."] # [doc = " @param[in]  baton                    The baton supplied by the engine."] # [doc = " @param[in]  frame_start_time_nanos   The point at which the vsync event"] # [doc = "                                      occurred or will occur. If the time"] # [doc = "                                      point is in the future, the engine will"] # [doc = "                                      wait till that point to begin its frame"] # [doc = "                                      workload."] # [doc = " @param[in]  frame_target_time_nanos  The point at which the embedder"] # [doc = "                                      anticipates the next vsync to occur."] # [doc = "                                      This is a hint the engine uses to"] # [doc = "                                      schedule Dart VM garbage collection in"] # [doc = "                                      periods in which the various threads"] # [doc = "                                      are most likely to be idle. For"] # [doc = "                                      example, for a 60Hz display, embedders"] # [doc = "                                      should add 16.6 * 1e6 to the frame time"] # [doc = "                                      field."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineOnVsync (engine : FlutterEngine , baton : isize , frame_start_time_nanos : u64 , frame_target_time_nanos : u64) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Reloads the system fonts in engine."] # [doc = ""] # [doc = " @param[in]  engine.                  A running engine instance."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineReloadSystemFonts (engine : FlutterEngine) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      A profiling utility. Logs a trace duration begin event to the"] # [doc = "             timeline. If the timeline is unavailable or disabled, this has"] # [doc = "             no effect. Must be balanced with an duration end event (via"] # [doc = "             `FlutterEngineTraceEventDurationEnd`) with the same name on the"] # [doc = "             same thread. Can be called on any thread. Strings passed into"] # [doc = "             the function will NOT be copied when added to the timeline. Only"] # [doc = "             string literals may be passed in."] # [doc = ""] # [doc = " @param[in]  name  The name of the trace event."] # [doc = ""] pub fn FlutterEngineTraceEventDurationBegin (name : * const :: std :: os :: raw :: c_char) ; } extern "C" { # [doc = " @brief      A profiling utility. Logs a trace duration end event to the"] # [doc = "             timeline. If the timeline is unavailable or disabled, this has"] # [doc = "             no effect. This call must be preceded by a trace duration begin"] # [doc = "             call (via `FlutterEngineTraceEventDurationBegin`) with the same"] # [doc = "             name on the same thread. Can be called on any thread. Strings"] # [doc = "             passed into the function will NOT be copied when added to the"] # [doc = "             timeline. Only string literals may be passed in."] # [doc = ""] # [doc = " @param[in]  name  The name of the trace event."] # [doc = ""] pub fn FlutterEngineTraceEventDurationEnd (name : * const :: std :: os :: raw :: c_char) ; } extern "C" { # [doc = " @brief      A profiling utility. Logs a trace duration instant event to the"] # [doc = "             timeline. If the timeline is unavailable or disabled, this has"] # [doc = "             no effect. Can be called on any thread. Strings passed into the"] # [doc = "             function will NOT be copied when added to the timeline. Only"] # [doc = "             string literals may be passed in."] # [doc = ""] # [doc = " @param[in]  name  The name of the trace event."] # [doc = ""] pub fn FlutterEngineTraceEventInstant (name : * const :: std :: os :: raw :: c_char) ; } extern "C" { # [doc = " @brief      Posts a task onto the Flutter render thread. Typically, this may"] # [doc = "             be called from any thread as long as a `FlutterEngineShutdown`"] # [doc = "             on the specific engine has not already been initiated."] # [doc = ""] # [doc = " @param[in]  engine         A running engine instance."] # [doc = " @param[in]  callback       The callback to execute on the render thread."] # [doc = " @param      callback_data  The callback context."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEnginePostRenderThreadTask (engine : FlutterEngine , callback : VoidCallback , callback_data : * mut :: std :: os :: raw :: c_void) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Get the current time in nanoseconds from the clock used by the"] # [doc = "             flutter engine. This is the system monotonic clock."] # [doc = ""] # [doc = " @return     The current time in nanoseconds."] # [doc = ""] pub fn FlutterEngineGetCurrentTime () -> u64 ; } extern "C" { # [doc = " @brief      Inform the engine to run the specified task. This task has been"] # [doc = "             given to the engine via the"] # [doc = "             `FlutterTaskRunnerDescription.post_task_callback`. This call"] # [doc = "             must only be made at the target time specified in that callback."] # [doc = "             Running the task before that time is undefined behavior."] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance."] # [doc = " @param[in]  task       the task handle."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineRunTask (engine : FlutterEngine , task : * const FlutterTask) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Notify a running engine instance that the locale has been"] # [doc = "             updated. The preferred locale must be the first item in the list"] # [doc = "             of locales supplied. The other entries will be used as a"] # [doc = "             fallback."] # [doc = ""] # [doc = " @param[in]  engine         A running engine instance."] # [doc = " @param[in]  locales        The updated locales in the order of preference."] # [doc = " @param[in]  locales_count  The count of locales supplied."] # [doc = ""] # [doc = " @return     Whether the locale updates were applied."] # [doc = ""] pub fn FlutterEngineUpdateLocales (engine : FlutterEngine , locales : * mut * const FlutterLocale , locales_count : size_t) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Returns if the Flutter engine instance will run AOT compiled"] # [doc = "             Dart code. This call has no threading restrictions."] # [doc = ""] # [doc = "             For embedder code that is configured for both AOT and JIT mode"] # [doc = "             Dart execution based on the Flutter engine being linked to, this"] # [doc = "             runtime check may be used to appropriately configure the"] # [doc = "             `FlutterProjectArgs`. In JIT mode execution, the kernel"] # [doc = "             snapshots must be present in the Flutter assets directory"] # [doc = "             specified in the `FlutterProjectArgs`. For AOT execution, the"] # [doc = "             fields `vm_snapshot_data`, `vm_snapshot_instructions`,"] # [doc = "             `isolate_snapshot_data` and `isolate_snapshot_instructions`"] # [doc = "             (along with their size fields) must be specified in"] # [doc = "             `FlutterProjectArgs`."] # [doc = ""] # [doc = " @return     True, if AOT Dart code is run. JIT otherwise."] # [doc = ""] pub fn FlutterEngineRunsAOTCompiledDartCode () -> bool ; } extern "C" { # [doc = " @brief      Posts a Dart object to specified send port. The corresponding"] # [doc = "             receive port for send port can be in any isolate running in the"] # [doc = "             VM. This isolate can also be the root isolate for an"] # [doc = "             unrelated engine. The engine parameter is necessary only to"] # [doc = "             ensure the call is not made when no engine (and hence no VM) is"] # [doc = "             running."] # [doc = ""] # [doc = "             Unlike the platform messages mechanism, there are no threading"] # [doc = "             restrictions when using this API. Message can be posted on any"] # [doc = "             thread and they will be made available to isolate on which the"] # [doc = "             corresponding send port is listening."] # [doc = ""] # [doc = "             However, it is the embedders responsibility to ensure that the"] # [doc = "             call is not made during an ongoing call the"] # [doc = "             `FlutterEngineDeinitialize` or `FlutterEngineShutdown` on"] # [doc = "             another thread."] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance."] # [doc = " @param[in]  port       The send port to send the object to."] # [doc = " @param[in]  object     The object to send to the isolate with the"] # [doc = "                        corresponding receive port."] # [doc = ""] # [doc = " @return     If the message was posted to the send port."] # [doc = ""] pub fn FlutterEnginePostDartObject (engine : FlutterEngine , port : FlutterEngineDartPort , object : * const FlutterEngineDartObject) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Posts a low memory notification to a running engine instance."] # [doc = "             The engine will do its best to release non-critical resources in"] # [doc = "             response. It is not guaranteed that the resource would have been"] # [doc = "             collected by the time this call returns however. The"] # [doc = "             notification is posted to engine subsystems that may be"] # [doc = "             operating on other threads."] # [doc = ""] # [doc = "             Flutter applications can respond to these notifications by"] # [doc = "             setting `WidgetsBindingObserver.didHaveMemoryPressure`"] # [doc = "             observers."] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance."] # [doc = ""] # [doc = " @return     If the low memory notification was sent to the running engine"] # [doc = "             instance."] # [doc = ""] pub fn FlutterEngineNotifyLowMemoryWarning (engine : FlutterEngine) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Schedule a callback to be run on all engine managed threads."] # [doc = "             The engine will attempt to service this callback the next time"] # [doc = "             the message loop for each managed thread is idle. Since the"] # [doc = "             engine manages the entire lifecycle of multiple threads, there"] # [doc = "             is no opportunity for the embedders to finely tune the"] # [doc = "             priorities of threads directly, or, perform other thread"] # [doc = "             specific configuration (for example, setting thread names for"] # [doc = "             tracing). This callback gives embedders a chance to affect such"] # [doc = "             tuning."] # [doc = ""] # [doc = " @attention  This call is expensive and must be made as few times as"] # [doc = "             possible. The callback must also return immediately as not doing"] # [doc = "             so may risk performance issues (especially for callbacks of type"] # [doc = "             kFlutterNativeThreadTypeUI and kFlutterNativeThreadTypeRender)."] # [doc = ""] # [doc = " @attention  Some callbacks (especially the ones of type"] # [doc = "             kFlutterNativeThreadTypeWorker) may be called after the"] # [doc = "             FlutterEngine instance has shut down. Embedders must be careful"] # [doc = "             in handling the lifecycle of objects associated with the user"] # [doc = "             data baton."] # [doc = ""] # [doc = " @attention  In case there are multiple running Flutter engine instances,"] # [doc = "             their workers are shared."] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance."] # [doc = " @param[in]  callback   The callback that will get called multiple times on"] # [doc = "                        each engine managed thread."] # [doc = " @param[in]  user_data  A baton passed by the engine to the callback. This"] # [doc = "                        baton is not interpreted by the engine in any way."] # [doc = ""] # [doc = " @return     Returns if the callback was successfully posted to all threads."] # [doc = ""] pub fn FlutterEnginePostCallbackOnAllNativeThreads (engine : FlutterEngine , callback : FlutterNativeThreadCallback , user_data : * mut :: std :: os :: raw :: c_void) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief    Posts updates corresponding to display changes to a running engine"] # [doc = "           instance."] # [doc = ""] # [doc = " @param[in] update_type      The type of update pushed to the engine."] # [doc = " @param[in] displays         The displays affected by this update."] # [doc = " @param[in] display_count    Size of the displays array, must be at least 1."] # [doc = ""] # [doc = " @return the result of the call made to the engine."] # [doc = ""] pub fn FlutterEngineNotifyDisplayUpdate (engine : FlutterEngine , update_type : FlutterEngineDisplaysUpdateType , displays : * const FlutterEngineDisplay , display_count : size_t) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Schedule a new frame to redraw the content."] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance."] # [doc = ""] # [doc = " @return the result of the call made to the engine."] # [doc = ""] pub fn FlutterEngineScheduleFrame (engine : FlutterEngine) -> FlutterEngineResult ; } pub type FlutterEngineCreateAOTDataFnPtr = :: std :: option :: Option < unsafe extern "C" fn (source : * const FlutterEngineAOTDataSource , data_out : * mut FlutterEngineAOTData) -> FlutterEngineResult > ; pub type FlutterEngineCollectAOTDataFnPtr = :: std :: option :: Option < unsafe extern "C" fn (data : FlutterEngineAOTData) -> FlutterEngineResult > ; pub type FlutterEngineRunFnPtr = :: std :: option :: Option < unsafe extern "C" fn (version : size_t , config : * const FlutterRendererConfig , args : * const FlutterProjectArgs , user_data : * mut :: std :: os :: raw :: c_void , engine_out : * mut FlutterEngine) -> FlutterEngineResult > ; pub type FlutterEngineShutdownFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine) -> FlutterEngineResult > ; pub type FlutterEngineInitializeFnPtr = :: std :: option :: Option < unsafe extern "C" fn (version : size_t , config : * const FlutterRendererConfig , args : * const FlutterProjectArgs , user_data : * mut :: std :: os :: raw :: c_void , engine_out : * mut FlutterEngine) -> FlutterEngineResult > ; pub type FlutterEngineDeinitializeFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine) -> FlutterEngineResult > ; pub type FlutterEngineRunInitializedFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine) -> FlutterEngineResult > ; pub type FlutterEngineSendWindowMetricsEventFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , event : * const FlutterWindowMetricsEvent) -> FlutterEngineResult > ; pub type FlutterEngineSendPointerEventFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , events : * const FlutterPointerEvent , events_count : size_t) -> FlutterEngineResult > ; pub type FlutterEngineSendKeyEventFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , event : * const FlutterKeyEvent , callback : FlutterKeyEventCallback , user_data : * mut :: std :: os :: raw :: c_void) -> FlutterEngineResult > ; pub type FlutterEngineSendPlatformMessageFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , message : * const FlutterPlatformMessage) -> FlutterEngineResult > ; pub type FlutterEnginePlatformMessageCreateResponseHandleFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , data_callback : FlutterDataCallback , user_data : * mut :: std :: os :: raw :: c_void , response_out : * mut * mut FlutterPlatformMessageResponseHandle) -> FlutterEngineResult > ; pub type FlutterEnginePlatformMessageReleaseResponseHandleFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , response : * mut FlutterPlatformMessageResponseHandle) -> FlutterEngineResult > ; pub type FlutterEngineSendPlatformMessageResponseFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , handle : * const FlutterPlatformMessageResponseHandle , data : * const u8 , data_length : size_t) -> FlutterEngineResult > ; pub type FlutterEngineRegisterExternalTextureFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , texture_identifier : i64) -> FlutterEngineResult > ; pub type FlutterEngineUnregisterExternalTextureFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , texture_identifier : i64) -> FlutterEngineResult > ; pub type FlutterEngineMarkExternalTextureFrameAvailableFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , texture_identifier : i64) -> FlutterEngineResult > ; pub type FlutterEngineUpdateSemanticsEnabledFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , enabled : bool) -> FlutterEngineResult > ; pub type FlutterEngineUpdateAccessibilityFeaturesFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , features : FlutterAccessibilityFeature) -> FlutterEngineResult > ; pub type FlutterEngineDispatchSemanticsActionFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , id : u64 , action : FlutterSemanticsAction , data : * const u8 , data_length : size_t) -> FlutterEngineResult > ; pub type FlutterEngineOnVsyncFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , baton : isize , frame_start_time_nanos : u64 , frame_target_time_nanos : u64) -> FlutterEngineResult > ; pub type FlutterEngineReloadSystemFontsFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine) -> FlutterEngineResult > ; pub type FlutterEngineTraceEventDurationBeginFnPtr = :: std :: option :: Option < unsafe extern "C" fn (name : * const :: std :: os :: raw :: c_char) > ; pub type FlutterEngineTraceEventDurationEndFnPtr = :: std :: option :: Option < unsafe extern "C" fn (name : * const :: std :: os :: raw :: c_char) > ; pub type FlutterEngineTraceEventInstantFnPtr = :: std :: option :: Option < unsafe extern "C" fn (name : * const :: std :: os :: raw :: c_char) > ; pub type FlutterEnginePostRenderThreadTaskFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , callback : VoidCallback , callback_data : * mut :: std :: os :: raw :: c_void) -> FlutterEngineResult > ; pub type FlutterEngineGetCurrentTimeFnPtr = :: std :: option :: Option < unsafe extern "C" fn () -> u64 > ; pub type FlutterEngineRunTaskFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , task : * const FlutterTask) -> FlutterEngineResult > ; pub type FlutterEngineUpdateLocalesFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , locales : * mut * const FlutterLocale , locales_count : size_t) -> FlutterEngineResult > ; pub type FlutterEngineRunsAOTCompiledDartCodeFnPtr = :: std :: option :: Option < unsafe extern "C" fn () -> bool > ; pub type FlutterEnginePostDartObjectFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , port : FlutterEngineDartPort , object : * const FlutterEngineDartObject) -> FlutterEngineResult > ; pub type FlutterEngineNotifyLowMemoryWarningFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine) -> FlutterEngineResult > ; pub type FlutterEnginePostCallbackOnAllNativeThreadsFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , callback : FlutterNativeThreadCallback , user_data : * mut :: std :: os :: raw :: c_void) -> FlutterEngineResult > ; pub type FlutterEngineNotifyDisplayUpdateFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , update_type : FlutterEngineDisplaysUpdateType , displays : * const FlutterEngineDisplay , display_count : size_t) -> FlutterEngineResult > ; pub type FlutterEngineScheduleFrameFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine) -> FlutterEngineResult > ; # [doc = " Function-pointer-based versions of the APIs above."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterEngineProcTable { # [doc = " The size of this struct. Must be sizeof(FlutterEngineProcs)."] pub struct_size : size_t , pub CreateAOTData : FlutterEngineCreateAOTDataFnPtr , pub CollectAOTData : FlutterEngineCollectAOTDataFnPtr , pub Run : FlutterEngineRunFnPtr , pub Shutdown : FlutterEngineShutdownFnPtr , pub Initialize : FlutterEngineInitializeFnPtr , pub Deinitialize : FlutterEngineDeinitializeFnPtr , pub RunInitialized : FlutterEngineRunInitializedFnPtr , pub SendWindowMetricsEvent : FlutterEngineSendWindowMetricsEventFnPtr , pub SendPointerEvent : FlutterEngineSendPointerEventFnPtr , pub SendKeyEvent : FlutterEngineSendKeyEventFnPtr , pub SendPlatformMessage : FlutterEngineSendPlatformMessageFnPtr , pub PlatformMessageCreateResponseHandle : FlutterEnginePlatformMessageCreateResponseHandleFnPtr , pub PlatformMessageReleaseResponseHandle : FlutterEnginePlatformMessageReleaseResponseHandleFnPtr , pub SendPlatformMessageResponse : FlutterEngineSendPlatformMessageResponseFnPtr , pub RegisterExternalTexture : FlutterEngineRegisterExternalTextureFnPtr , pub UnregisterExternalTexture : FlutterEngineUnregisterExternalTextureFnPtr , pub MarkExternalTextureFrameAvailable : FlutterEngineMarkExternalTextureFrameAvailableFnPtr , pub UpdateSemanticsEnabled : FlutterEngineUpdateSemanticsEnabledFnPtr , pub UpdateAccessibilityFeatures : FlutterEngineUpdateAccessibilityFeaturesFnPtr , pub DispatchSemanticsAction : FlutterEngineDispatchSemanticsActionFnPtr , pub OnVsync : FlutterEngineOnVsyncFnPtr , pub ReloadSystemFonts : FlutterEngineReloadSystemFontsFnPtr , pub TraceEventDurationBegin : FlutterEngineTraceEventDurationBeginFnPtr , pub TraceEventDurationEnd : FlutterEngineTraceEventDurationEndFnPtr , pub TraceEventInstant : FlutterEngineTraceEventInstantFnPtr , pub PostRenderThreadTask : FlutterEnginePostRenderThreadTaskFnPtr , pub GetCurrentTime : FlutterEngineGetCurrentTimeFnPtr , pub RunTask : FlutterEngineRunTaskFnPtr , pub UpdateLocales : FlutterEngineUpdateLocalesFnPtr , pub RunsAOTCompiledDartCode : FlutterEngineRunsAOTCompiledDartCodeFnPtr , pub PostDartObject : FlutterEnginePostDartObjectFnPtr , pub NotifyLowMemoryWarning : FlutterEngineNotifyLowMemoryWarningFnPtr , pub PostCallbackOnAllNativeThreads : FlutterEnginePostCallbackOnAllNativeThreadsFnPtr , pub NotifyDisplayUpdate : FlutterEngineNotifyDisplayUpdateFnPtr , pub ScheduleFrame : FlutterEngineScheduleFrameFnPtr , } # [test] fn bindgen_test_layout_FlutterEngineProcTable () { assert_eq ! (:: std :: mem :: size_of :: < FlutterEngineProcTable > () , 288usize , concat ! ("Size of: " , stringify ! (FlutterEngineProcTable))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterEngineProcTable > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterEngineProcTable))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_CreateAOTData () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . CreateAOTData) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (CreateAOTData))) ; } test_field_CreateAOTData () ; fn test_field_CollectAOTData () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . CollectAOTData) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (CollectAOTData))) ; } test_field_CollectAOTData () ; fn test_field_Run () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . Run) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (Run))) ; } test_field_Run () ; fn test_field_Shutdown () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . Shutdown) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (Shutdown))) ; } test_field_Shutdown () ; fn test_field_Initialize () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . Initialize) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (Initialize))) ; } test_field_Initialize () ; fn test_field_Deinitialize () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . Deinitialize) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (Deinitialize))) ; } test_field_Deinitialize () ; fn test_field_RunInitialized () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . RunInitialized) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (RunInitialized))) ; } test_field_RunInitialized () ; fn test_field_SendWindowMetricsEvent () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . SendWindowMetricsEvent) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (SendWindowMetricsEvent))) ; } test_field_SendWindowMetricsEvent () ; fn test_field_SendPointerEvent () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . SendPointerEvent) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (SendPointerEvent))) ; } test_field_SendPointerEvent () ; fn test_field_SendKeyEvent () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . SendKeyEvent) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (SendKeyEvent))) ; } test_field_SendKeyEvent () ; fn test_field_SendPlatformMessage () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . SendPlatformMessage) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (SendPlatformMessage))) ; } test_field_SendPlatformMessage () ; fn test_field_PlatformMessageCreateResponseHandle () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . PlatformMessageCreateResponseHandle) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (PlatformMessageCreateResponseHandle))) ; } test_field_PlatformMessageCreateResponseHandle () ; fn test_field_PlatformMessageReleaseResponseHandle () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . PlatformMessageReleaseResponseHandle) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (PlatformMessageReleaseResponseHandle))) ; } test_field_PlatformMessageReleaseResponseHandle () ; fn test_field_SendPlatformMessageResponse () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . SendPlatformMessageResponse) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (SendPlatformMessageResponse))) ; } test_field_SendPlatformMessageResponse () ; fn test_field_RegisterExternalTexture () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . RegisterExternalTexture) as usize - ptr as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (RegisterExternalTexture))) ; } test_field_RegisterExternalTexture () ; fn test_field_UnregisterExternalTexture () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . UnregisterExternalTexture) as usize - ptr as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (UnregisterExternalTexture))) ; } test_field_UnregisterExternalTexture () ; fn test_field_MarkExternalTextureFrameAvailable () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . MarkExternalTextureFrameAvailable) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (MarkExternalTextureFrameAvailable))) ; } test_field_MarkExternalTextureFrameAvailable () ; fn test_field_UpdateSemanticsEnabled () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . UpdateSemanticsEnabled) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (UpdateSemanticsEnabled))) ; } test_field_UpdateSemanticsEnabled () ; fn test_field_UpdateAccessibilityFeatures () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . UpdateAccessibilityFeatures) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (UpdateAccessibilityFeatures))) ; } test_field_UpdateAccessibilityFeatures () ; fn test_field_DispatchSemanticsAction () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . DispatchSemanticsAction) as usize - ptr as usize } , 160usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (DispatchSemanticsAction))) ; } test_field_DispatchSemanticsAction () ; fn test_field_OnVsync () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . OnVsync) as usize - ptr as usize } , 168usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (OnVsync))) ; } test_field_OnVsync () ; fn test_field_ReloadSystemFonts () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . ReloadSystemFonts) as usize - ptr as usize } , 176usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (ReloadSystemFonts))) ; } test_field_ReloadSystemFonts () ; fn test_field_TraceEventDurationBegin () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . TraceEventDurationBegin) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (TraceEventDurationBegin))) ; } test_field_TraceEventDurationBegin () ; fn test_field_TraceEventDurationEnd () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . TraceEventDurationEnd) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (TraceEventDurationEnd))) ; } test_field_TraceEventDurationEnd () ; fn test_field_TraceEventInstant () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . TraceEventInstant) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (TraceEventInstant))) ; } test_field_TraceEventInstant () ; fn test_field_PostRenderThreadTask () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . PostRenderThreadTask) as usize - ptr as usize } , 208usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (PostRenderThreadTask))) ; } test_field_PostRenderThreadTask () ; fn test_field_GetCurrentTime () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . GetCurrentTime) as usize - ptr as usize } , 216usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (GetCurrentTime))) ; } test_field_GetCurrentTime () ; fn test_field_RunTask () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . RunTask) as usize - ptr as usize } , 224usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (RunTask))) ; } test_field_RunTask () ; fn test_field_UpdateLocales () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . UpdateLocales) as usize - ptr as usize } , 232usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (UpdateLocales))) ; } test_field_UpdateLocales () ; fn test_field_RunsAOTCompiledDartCode () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . RunsAOTCompiledDartCode) as usize - ptr as usize } , 240usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (RunsAOTCompiledDartCode))) ; } test_field_RunsAOTCompiledDartCode () ; fn test_field_PostDartObject () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . PostDartObject) as usize - ptr as usize } , 248usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (PostDartObject))) ; } test_field_PostDartObject () ; fn test_field_NotifyLowMemoryWarning () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . NotifyLowMemoryWarning) as usize - ptr as usize } , 256usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (NotifyLowMemoryWarning))) ; } test_field_NotifyLowMemoryWarning () ; fn test_field_PostCallbackOnAllNativeThreads () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . PostCallbackOnAllNativeThreads) as usize - ptr as usize } , 264usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (PostCallbackOnAllNativeThreads))) ; } test_field_PostCallbackOnAllNativeThreads () ; fn test_field_NotifyDisplayUpdate () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . NotifyDisplayUpdate) as usize - ptr as usize } , 272usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (NotifyDisplayUpdate))) ; } test_field_NotifyDisplayUpdate () ; fn test_field_ScheduleFrame () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . ScheduleFrame) as usize - ptr as usize } , 280usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (ScheduleFrame))) ; } test_field_ScheduleFrame () ; } extern "C" { # [doc = " @brief      Gets the table of engine function pointers."] # [doc = ""] # [doc = " @param[out] table   The table to fill with pointers. This should be"] # [doc = "                     zero-initialized, except for struct_size."] # [doc = ""] # [doc = " @return     Returns whether the table was successfully populated."] # [doc = ""] pub fn FlutterEngineGetProcAddresses (table : * mut FlutterEngineProcTable) -> FlutterEngineResult ; }
[INFO] [stdout]   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +                                      +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unclosed HTML tag `MTLTexture`
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/flutter_embedder-b39e10e859f308b8/out/embedder.rs:3:59723
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... , # [doc = " Supported textures are YUVA and RGBA, in case of YUVA we expect 2 texture"] # [doc = " handles to be provided by the embedder, Y first and UV next. In case of"] # [doc = " RGBA only one should be passed."] # [doc = " These are individually aliases for id<MTLTexture>. These textures are"] # [doc = " retained by the engine for the period of the composition. Once these"] # [doc = " textures have been unregistered via the"] # [doc = " `FlutterEngineUnregisterExternalTexture`, the embedder has to release"] # [doc = " these textures."] pu...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout] help: try marking as source code
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub const true_ : u32 = 1 ; pub const false_ : u32 = 0 ; pub const __bool_true_false_are_defined : u32 = 1 ; pub const _STDINT_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2X : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 200809 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __WORDSIZE : u32 = 64 ; pub const __WORDSIZE_TIME64_COMPAT32 : u32 = 1 ; pub const __SYSCALL_WORDSIZE : u32 = 64 ; pub const __TIMESIZE : u32 = 64 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 35 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C2X : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const FLUTTER_ENGINE_VERSION : u32 = 1 ; pub type size_t = :: std :: os :: raw :: c_ulong ; pub type wchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [repr (align (16))] # [derive (Debug , Copy , Clone)] pub struct max_align_t { pub __clang_max_align_nonce1 : :: std :: os :: raw :: c_longlong , pub __bindgen_padding_0 : u64 , pub __clang_max_align_nonce2 : u128 , } # [test] fn bindgen_test_layout_max_align_t () { assert_eq ! (:: std :: mem :: size_of :: < max_align_t > () , 32usize , concat ! ("Size of: " , stringify ! (max_align_t))) ; assert_eq ! (:: std :: mem :: align_of :: < max_align_t > () , 16usize , concat ! ("Alignment of " , stringify ! (max_align_t))) ; fn test_field___clang_max_align_nonce1 () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < max_align_t > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . __clang_max_align_nonce1) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (max_align_t) , "::" , stringify ! (__clang_max_align_nonce1))) ; } test_field___clang_max_align_nonce1 () ; fn test_field___clang_max_align_nonce2 () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < max_align_t > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . __clang_max_align_nonce2) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (max_align_t) , "::" , stringify ! (__clang_max_align_nonce2))) ; } test_field___clang_max_align_nonce2 () ; } pub type __u_char = :: std :: os :: raw :: c_uchar ; pub type __u_short = :: std :: os :: raw :: c_ushort ; pub type __u_int = :: std :: os :: raw :: c_uint ; pub type __u_long = :: std :: os :: raw :: c_ulong ; pub type __int8_t = :: std :: os :: raw :: c_schar ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __int16_t = :: std :: os :: raw :: c_short ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; pub type __int32_t = :: std :: os :: raw :: c_int ; pub type __uint32_t = :: std :: os :: raw :: c_uint ; pub type __int64_t = :: std :: os :: raw :: c_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: std :: os :: raw :: c_long ; pub type __u_quad_t = :: std :: os :: raw :: c_ulong ; pub type __intmax_t = :: std :: os :: raw :: c_long ; pub type __uintmax_t = :: std :: os :: raw :: c_ulong ; pub type __dev_t = :: std :: os :: raw :: c_ulong ; pub type __uid_t = :: std :: os :: raw :: c_uint ; pub type __gid_t = :: std :: os :: raw :: c_uint ; pub type __ino_t = :: std :: os :: raw :: c_ulong ; pub type __ino64_t = :: std :: os :: raw :: c_ulong ; pub type __mode_t = :: std :: os :: raw :: c_uint ; pub type __nlink_t = :: std :: os :: raw :: c_ulong ; pub type __off_t = :: std :: os :: raw :: c_long ; pub type __off64_t = :: std :: os :: raw :: c_long ; pub type __pid_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: std :: os :: raw :: c_int ; 2usize] , } # [test] fn bindgen_test_layout___fsid_t () { assert_eq ! (:: std :: mem :: size_of :: < __fsid_t > () , 8usize , concat ! ("Size of: " , stringify ! (__fsid_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __fsid_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__fsid_t))) ; fn test_field___val () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < __fsid_t > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . __val) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__fsid_t) , "::" , stringify ! (__val))) ; } test_field___val () ; } pub type __clock_t = :: std :: os :: raw :: c_long ; pub type __rlim_t = :: std :: os :: raw :: c_ulong ; pub type __rlim64_t = :: std :: os :: raw :: c_ulong ; pub type __id_t = :: std :: os :: raw :: c_uint ; pub type __time_t = :: std :: os :: raw :: c_long ; pub type __useconds_t = :: std :: os :: raw :: c_uint ; pub type __suseconds_t = :: std :: os :: raw :: c_long ; pub type __suseconds64_t = :: std :: os :: raw :: c_long ; pub type __daddr_t = :: std :: os :: raw :: c_int ; pub type __key_t = :: std :: os :: raw :: c_int ; pub type __clockid_t = :: std :: os :: raw :: c_int ; pub type __timer_t = * mut :: std :: os :: raw :: c_void ; pub type __blksize_t = :: std :: os :: raw :: c_long ; pub type __blkcnt_t = :: std :: os :: raw :: c_long ; pub type __blkcnt64_t = :: std :: os :: raw :: c_long ; pub type __fsblkcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsblkcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsword_t = :: std :: os :: raw :: c_long ; pub type __ssize_t = :: std :: os :: raw :: c_long ; pub type __syscall_slong_t = :: std :: os :: raw :: c_long ; pub type __syscall_ulong_t = :: std :: os :: raw :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: std :: os :: raw :: c_char ; pub type __intptr_t = :: std :: os :: raw :: c_long ; pub type __socklen_t = :: std :: os :: raw :: c_uint ; pub type __sig_atomic_t = :: std :: os :: raw :: c_int ; pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = :: std :: os :: raw :: c_schar ; pub type int_fast16_t = :: std :: os :: raw :: c_long ; pub type int_fast32_t = :: std :: os :: raw :: c_long ; pub type int_fast64_t = :: std :: os :: raw :: c_long ; pub type uint_fast8_t = :: std :: os :: raw :: c_uchar ; pub type uint_fast16_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast32_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast64_t = :: std :: os :: raw :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const FlutterEngineResult_kSuccess : FlutterEngineResult = 0 ; pub const FlutterEngineResult_kInvalidLibraryVersion : FlutterEngineResult = 1 ; pub const FlutterEngineResult_kInvalidArguments : FlutterEngineResult = 2 ; pub const FlutterEngineResult_kInternalInconsistency : FlutterEngineResult = 3 ; pub type FlutterEngineResult = :: std :: os :: raw :: c_uint ; pub const FlutterRendererType_kOpenGL : FlutterRendererType = 0 ; pub const FlutterRendererType_kSoftware : FlutterRendererType = 1 ; # [doc = " Metal is only supported on Darwin platforms (macOS / iOS)."] # [doc = " iOS version >= 10.0 (device), 13.0 (simulator)"] # [doc = " macOS version >= 10.14"] pub const FlutterRendererType_kMetal : FlutterRendererType = 2 ; # [doc = " Metal is only supported on Darwin platforms (macOS / iOS)."] # [doc = " iOS version >= 10.0 (device), 13.0 (simulator)"] # [doc = " macOS version >= 10.14"] pub const FlutterRendererType_kVulkan : FlutterRendererType = 3 ; pub type FlutterRendererType = :: std :: os :: raw :: c_uint ; # [doc = " Indicate there is a running accessibility service which is changing the"] # [doc = " interaction model of the device."] pub const FlutterAccessibilityFeature_kFlutterAccessibilityFeatureAccessibleNavigation : FlutterAccessibilityFeature = 1 ; # [doc = " Indicate the platform is inverting the colors of the application."] pub const FlutterAccessibilityFeature_kFlutterAccessibilityFeatureInvertColors : FlutterAccessibilityFeature = 2 ; # [doc = " Request that animations be disabled or simplified."] pub const FlutterAccessibilityFeature_kFlutterAccessibilityFeatureDisableAnimations : FlutterAccessibilityFeature = 4 ; # [doc = " Request that text be rendered at a bold font weight."] pub const FlutterAccessibilityFeature_kFlutterAccessibilityFeatureBoldText : FlutterAccessibilityFeature = 8 ; # [doc = " Request that certain animations be simplified and parallax effects"] # [doc = " removed."] pub const FlutterAccessibilityFeature_kFlutterAccessibilityFeatureReduceMotion : FlutterAccessibilityFeature = 16 ; # [doc = " Request that UI be rendered with darker colors."] pub const FlutterAccessibilityFeature_kFlutterAccessibilityFeatureHighContrast : FlutterAccessibilityFeature = 32 ; # [doc = " Request to show on/off labels inside switches."] pub const FlutterAccessibilityFeature_kFlutterAccessibilityFeatureOnOffSwitchLabels : FlutterAccessibilityFeature = 64 ; # [doc = " Additional accessibility features that may be enabled by the platform."] # [doc = " Must match the `AccessibilityFeatures` enum in window.dart."] pub type FlutterAccessibilityFeature = :: std :: os :: raw :: c_uint ; # [doc = " The equivalent of a user briefly tapping the screen with the finger"] # [doc = " without moving it."] pub const FlutterSemanticsAction_kFlutterSemanticsActionTap : FlutterSemanticsAction = 1 ; # [doc = " The equivalent of a user pressing and holding the screen with the finger"] # [doc = " for a few seconds without moving it."] pub const FlutterSemanticsAction_kFlutterSemanticsActionLongPress : FlutterSemanticsAction = 2 ; # [doc = " The equivalent of a user moving their finger across the screen from right"] # [doc = " to left."] pub const FlutterSemanticsAction_kFlutterSemanticsActionScrollLeft : FlutterSemanticsAction = 4 ; # [doc = " The equivalent of a user moving their finger across the screen from left"] # [doc = " to"] # [doc = " right."] pub const FlutterSemanticsAction_kFlutterSemanticsActionScrollRight : FlutterSemanticsAction = 8 ; # [doc = " The equivalent of a user moving their finger across the screen from bottom"] # [doc = " to top."] pub const FlutterSemanticsAction_kFlutterSemanticsActionScrollUp : FlutterSemanticsAction = 16 ; # [doc = " The equivalent of a user moving their finger across the screen from top to"] # [doc = " bottom."] pub const FlutterSemanticsAction_kFlutterSemanticsActionScrollDown : FlutterSemanticsAction = 32 ; # [doc = " Increase the value represented by the semantics node."] pub const FlutterSemanticsAction_kFlutterSemanticsActionIncrease : FlutterSemanticsAction = 64 ; # [doc = " Decrease the value represented by the semantics node."] pub const FlutterSemanticsAction_kFlutterSemanticsActionDecrease : FlutterSemanticsAction = 128 ; # [doc = " A request to fully show the semantics node on screen."] pub const FlutterSemanticsAction_kFlutterSemanticsActionShowOnScreen : FlutterSemanticsAction = 256 ; # [doc = " Move the cursor forward by one character."] pub const FlutterSemanticsAction_kFlutterSemanticsActionMoveCursorForwardByCharacter : FlutterSemanticsAction = 512 ; # [doc = " Move the cursor backward by one character."] pub const FlutterSemanticsAction_kFlutterSemanticsActionMoveCursorBackwardByCharacter : FlutterSemanticsAction = 1024 ; # [doc = " Set the text selection to the given range."] pub const FlutterSemanticsAction_kFlutterSemanticsActionSetSelection : FlutterSemanticsAction = 2048 ; # [doc = " Copy the current selection to the clipboard."] pub const FlutterSemanticsAction_kFlutterSemanticsActionCopy : FlutterSemanticsAction = 4096 ; # [doc = " Cut the current selection and place it in the clipboard."] pub const FlutterSemanticsAction_kFlutterSemanticsActionCut : FlutterSemanticsAction = 8192 ; # [doc = " Paste the current content of the clipboard."] pub const FlutterSemanticsAction_kFlutterSemanticsActionPaste : FlutterSemanticsAction = 16384 ; # [doc = " Indicate that the node has gained accessibility focus."] pub const FlutterSemanticsAction_kFlutterSemanticsActionDidGainAccessibilityFocus : FlutterSemanticsAction = 32768 ; # [doc = " Indicate that the node has lost accessibility focus."] pub const FlutterSemanticsAction_kFlutterSemanticsActionDidLoseAccessibilityFocus : FlutterSemanticsAction = 65536 ; # [doc = " Indicate that the user has invoked a custom accessibility action."] pub const FlutterSemanticsAction_kFlutterSemanticsActionCustomAction : FlutterSemanticsAction = 131072 ; # [doc = " A request that the node should be dismissed."] pub const FlutterSemanticsAction_kFlutterSemanticsActionDismiss : FlutterSemanticsAction = 262144 ; # [doc = " Move the cursor forward by one word."] pub const FlutterSemanticsAction_kFlutterSemanticsActionMoveCursorForwardByWord : FlutterSemanticsAction = 524288 ; # [doc = " Move the cursor backward by one word."] pub const FlutterSemanticsAction_kFlutterSemanticsActionMoveCursorBackwardByWord : FlutterSemanticsAction = 1048576 ; # [doc = " Replace the current text in the text field."] pub const FlutterSemanticsAction_kFlutterSemanticsActionSetText : FlutterSemanticsAction = 2097152 ; # [doc = " The set of possible actions that can be conveyed to a semantics node."] # [doc = ""] # [doc = " Must match the `SemanticsAction` enum in semantics.dart."] pub type FlutterSemanticsAction = :: std :: os :: raw :: c_uint ; # [doc = " The semantics node has the quality of either being \"checked\" or"] # [doc = " \"unchecked\"."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagHasCheckedState : FlutterSemanticsFlag = 1 ; # [doc = " Whether a semantics node is checked."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsChecked : FlutterSemanticsFlag = 2 ; # [doc = " Whether a semantics node is selected."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsSelected : FlutterSemanticsFlag = 4 ; # [doc = " Whether the semantic node represents a button."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsButton : FlutterSemanticsFlag = 8 ; # [doc = " Whether the semantic node represents a text field."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsTextField : FlutterSemanticsFlag = 16 ; # [doc = " Whether the semantic node currently holds the user's focus."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsFocused : FlutterSemanticsFlag = 32 ; # [doc = " The semantics node has the quality of either being \"enabled\" or"] # [doc = " \"disabled\"."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagHasEnabledState : FlutterSemanticsFlag = 64 ; # [doc = " Whether a semantic node that hasEnabledState is currently enabled."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsEnabled : FlutterSemanticsFlag = 128 ; # [doc = " Whether a semantic node is in a mutually exclusive group."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsInMutuallyExclusiveGroup : FlutterSemanticsFlag = 256 ; # [doc = " Whether a semantic node is a header that divides content into sections."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsHeader : FlutterSemanticsFlag = 512 ; # [doc = " Whether the value of the semantics node is obscured."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsObscured : FlutterSemanticsFlag = 1024 ; # [doc = " Whether the semantics node is the root of a subtree for which a route name"] # [doc = " should be announced."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagScopesRoute : FlutterSemanticsFlag = 2048 ; # [doc = " Whether the semantics node label is the name of a visually distinct route."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagNamesRoute : FlutterSemanticsFlag = 4096 ; # [doc = " Whether the semantics node is considered hidden."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsHidden : FlutterSemanticsFlag = 8192 ; # [doc = " Whether the semantics node represents an image."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsImage : FlutterSemanticsFlag = 16384 ; # [doc = " Whether the semantics node is a live region."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsLiveRegion : FlutterSemanticsFlag = 32768 ; # [doc = " The semantics node has the quality of either being \"on\" or \"off\"."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagHasToggledState : FlutterSemanticsFlag = 65536 ; # [doc = " If true, the semantics node is \"on\". If false, the semantics node is"] # [doc = " \"off\"."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsToggled : FlutterSemanticsFlag = 131072 ; # [doc = " Whether the platform can scroll the semantics node when the user attempts"] # [doc = " to move the accessibility focus to an offscreen child."] # [doc = ""] # [doc = " For example, a `ListView` widget has implicit scrolling so that users can"] # [doc = " easily move the accessibility focus to the next set of children. A"] # [doc = " `PageView` widget does not have implicit scrolling, so that users don't"] # [doc = " navigate to the next page when reaching the end of the current one."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagHasImplicitScrolling : FlutterSemanticsFlag = 262144 ; # [doc = " Whether the value of the semantics node is coming from a multi-line text"] # [doc = " field."] # [doc = ""] # [doc = " This is used for text fields to distinguish single-line text fields from"] # [doc = " multi-line ones."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsMultiline : FlutterSemanticsFlag = 524288 ; # [doc = " Whether the semantic node is read only."] # [doc = ""] # [doc = " Only applicable when kFlutterSemanticsFlagIsTextField flag is on."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsReadOnly : FlutterSemanticsFlag = 1048576 ; # [doc = " Whether the semantic node can hold the user's focus."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsFocusable : FlutterSemanticsFlag = 2097152 ; # [doc = " Whether the semantics node represents a link."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsLink : FlutterSemanticsFlag = 4194304 ; # [doc = " Whether the semantics node represents a slider."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsSlider : FlutterSemanticsFlag = 8388608 ; # [doc = " Whether the semantics node represents a keyboard key."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsKeyboardKey : FlutterSemanticsFlag = 16777216 ; # [doc = " The set of properties that may be associated with a semantics node."] # [doc = ""] # [doc = " Must match the `SemanticsFlag` enum in semantics.dart."] pub type FlutterSemanticsFlag = :: std :: os :: raw :: c_uint ; # [doc = " Text has unknown text direction."] pub const FlutterTextDirection_kFlutterTextDirectionUnknown : FlutterTextDirection = 0 ; # [doc = " Text is read from right to left."] pub const FlutterTextDirection_kFlutterTextDirectionRTL : FlutterTextDirection = 1 ; # [doc = " Text is read from left to right."] pub const FlutterTextDirection_kFlutterTextDirectionLTR : FlutterTextDirection = 2 ; pub type FlutterTextDirection = :: std :: os :: raw :: c_uint ; # [doc = " Suitable for threads that shouldn't disrupt high priority work."] pub const FlutterThreadPriority_kBackground : FlutterThreadPriority = 0 ; # [doc = " Default priority level."] pub const FlutterThreadPriority_kNormal : FlutterThreadPriority = 1 ; # [doc = " Suitable for threads which generate data for the display."] pub const FlutterThreadPriority_kDisplay : FlutterThreadPriority = 2 ; # [doc = " Suitable for thread which raster data."] pub const FlutterThreadPriority_kRaster : FlutterThreadPriority = 3 ; # [doc = " Valid values for priority of Thread."] pub type FlutterThreadPriority = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _FlutterEngine { _unused : [u8 ; 0] , } pub type FlutterEngine = * mut _FlutterEngine ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterTransformation { # [doc = " horizontal scale factor"] pub scaleX : f64 , # [doc = " horizontal skew factor"] pub skewX : f64 , # [doc = " horizontal translation"] pub transX : f64 , # [doc = " vertical skew factor"] pub skewY : f64 , # [doc = " vertical scale factor"] pub scaleY : f64 , # [doc = " vertical translation"] pub transY : f64 , # [doc = " input x-axis perspective factor"] pub pers0 : f64 , # [doc = " input y-axis perspective factor"] pub pers1 : f64 , # [doc = " perspective scale factor"] pub pers2 : f64 , } # [test] fn bindgen_test_layout_FlutterTransformation () { assert_eq ! (:: std :: mem :: size_of :: < FlutterTransformation > () , 72usize , concat ! ("Size of: " , stringify ! (FlutterTransformation))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterTransformation > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterTransformation))) ; fn test_field_scaleX () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scaleX) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (scaleX))) ; } test_field_scaleX () ; fn test_field_skewX () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . skewX) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (skewX))) ; } test_field_skewX () ; fn test_field_transX () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . transX) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (transX))) ; } test_field_transX () ; fn test_field_skewY () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . skewY) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (skewY))) ; } test_field_skewY () ; fn test_field_scaleY () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scaleY) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (scaleY))) ; } test_field_scaleY () ; fn test_field_transY () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . transY) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (transY))) ; } test_field_transY () ; fn test_field_pers0 () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . pers0) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (pers0))) ; } test_field_pers0 () ; fn test_field_pers1 () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . pers1) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (pers1))) ; } test_field_pers1 () ; fn test_field_pers2 () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . pers2) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (pers2))) ; } test_field_pers2 () ; } pub type VoidCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void) > ; # [doc = " Specifies an OpenGL texture target type. Textures are specified using"] # [doc = " the FlutterOpenGLTexture struct."] pub const FlutterOpenGLTargetType_kFlutterOpenGLTargetTypeTexture : FlutterOpenGLTargetType = 0 ; # [doc = " Specifies an OpenGL frame-buffer target type. Framebuffers are specified"] # [doc = " using the FlutterOpenGLFramebuffer struct."] pub const FlutterOpenGLTargetType_kFlutterOpenGLTargetTypeFramebuffer : FlutterOpenGLTargetType = 1 ; pub type FlutterOpenGLTargetType = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterOpenGLTexture { # [doc = " Target texture of the active texture unit (example GL_TEXTURE_2D or"] # [doc = " GL_TEXTURE_RECTANGLE)."] pub target : u32 , # [doc = " The name of the texture."] pub name : u32 , # [doc = " The texture format (example GL_RGBA8)."] pub format : u32 , # [doc = " User data to be returned on the invocation of the destruction callback."] pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " Callback invoked (on an engine managed thread) that asks the embedder to"] # [doc = " collect the texture."] pub destruction_callback : VoidCallback , # [doc = " Optional parameters for texture height/width, default is 0, non-zero means"] # [doc = " the texture has the specified width/height. Usually, when the texture type"] # [doc = " is GL_TEXTURE_RECTANGLE, we need to specify the texture width/height to"] # [doc = " tell the embedder to scale when rendering."] # [doc = " Width of the texture."] pub width : size_t , # [doc = " Height of the texture."] pub height : size_t , } # [test] fn bindgen_test_layout_FlutterOpenGLTexture () { assert_eq ! (:: std :: mem :: size_of :: < FlutterOpenGLTexture > () , 48usize , concat ! ("Size of: " , stringify ! (FlutterOpenGLTexture))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterOpenGLTexture > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterOpenGLTexture))) ; fn test_field_target () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . target) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLTexture) , "::" , stringify ! (target))) ; } test_field_target () ; fn test_field_name () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLTexture) , "::" , stringify ! (name))) ; } test_field_name () ; fn test_field_format () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . format) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLTexture) , "::" , stringify ! (format))) ; } test_field_format () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLTexture) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_destruction_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . destruction_callback) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLTexture) , "::" , stringify ! (destruction_callback))) ; } test_field_destruction_callback () ; fn test_field_width () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . width) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLTexture) , "::" , stringify ! (width))) ; } test_field_width () ; fn test_field_height () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . height) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLTexture) , "::" , stringify ! (height))) ; } test_field_height () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterOpenGLFramebuffer { # [doc = " The target of the color attachment of the frame-buffer. For example,"] # [doc = " GL_TEXTURE_2D or GL_RENDERBUFFER. In case of ambiguity when dealing with"] # [doc = " Window bound frame-buffers, 0 may be used."] pub target : u32 , # [doc = " The name of the framebuffer."] pub name : u32 , # [doc = " User data to be returned on the invocation of the destruction callback."] pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " Callback invoked (on an engine managed thread) that asks the embedder to"] # [doc = " collect the framebuffer."] pub destruction_callback : VoidCallback , } # [test] fn bindgen_test_layout_FlutterOpenGLFramebuffer () { assert_eq ! (:: std :: mem :: size_of :: < FlutterOpenGLFramebuffer > () , 24usize , concat ! ("Size of: " , stringify ! (FlutterOpenGLFramebuffer))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterOpenGLFramebuffer > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterOpenGLFramebuffer))) ; fn test_field_target () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLFramebuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . target) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLFramebuffer) , "::" , stringify ! (target))) ; } test_field_target () ; fn test_field_name () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLFramebuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLFramebuffer) , "::" , stringify ! (name))) ; } test_field_name () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLFramebuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLFramebuffer) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_destruction_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLFramebuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . destruction_callback) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLFramebuffer) , "::" , stringify ! (destruction_callback))) ; } test_field_destruction_callback () ; } pub type BoolCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void) -> bool > ; pub type TransformationCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void) -> FlutterTransformation > ; pub type UIntCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void) -> u32 > ; pub type SoftwareSurfacePresentCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void , arg3 : size_t , arg4 : size_t) -> bool > ; pub type ProcResolver = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_void > ; pub type TextureFrameCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : i64 , arg3 : size_t , arg4 : size_t , arg5 : * mut FlutterOpenGLTexture) -> bool > ; pub type VsyncCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : isize) > ; pub type OnPreEngineRestartCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void) > ; # [doc = " A structure to represent the width and height."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterSize { pub width : f64 , pub height : f64 , } # [test] fn bindgen_test_layout_FlutterSize () { assert_eq ! (:: std :: mem :: size_of :: < FlutterSize > () , 16usize , concat ! ("Size of: " , stringify ! (FlutterSize))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterSize > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterSize))) ; fn test_field_width () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSize > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . width) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterSize) , "::" , stringify ! (width))) ; } test_field_width () ; fn test_field_height () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSize > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . height) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterSize) , "::" , stringify ! (height))) ; } test_field_height () ; } # [doc = " A structure to represent the width and height."] # [doc = ""] # [doc = " See: \\ref FlutterSize when the value are not integers."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterUIntSize { pub width : u32 , pub height : u32 , } # [test] fn bindgen_test_layout_FlutterUIntSize () { assert_eq ! (:: std :: mem :: size_of :: < FlutterUIntSize > () , 8usize , concat ! ("Size of: " , stringify ! (FlutterUIntSize))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterUIntSize > () , 4usize , concat ! ("Alignment of " , stringify ! (FlutterUIntSize))) ; fn test_field_width () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterUIntSize > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . width) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterUIntSize) , "::" , stringify ! (width))) ; } test_field_width () ; fn test_field_height () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterUIntSize > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . height) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (FlutterUIntSize) , "::" , stringify ! (height))) ; } test_field_height () ; } # [doc = " A structure to represent a rectangle."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterRect { pub left : f64 , pub top : f64 , pub right : f64 , pub bottom : f64 , } # [test] fn bindgen_test_layout_FlutterRect () { assert_eq ! (:: std :: mem :: size_of :: < FlutterRect > () , 32usize , concat ! ("Size of: " , stringify ! (FlutterRect))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterRect > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterRect))) ; fn test_field_left () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . left) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterRect) , "::" , stringify ! (left))) ; } test_field_left () ; fn test_field_top () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . top) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterRect) , "::" , stringify ! (top))) ; } test_field_top () ; fn test_field_right () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . right) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterRect) , "::" , stringify ! (right))) ; } test_field_right () ; fn test_field_bottom () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . bottom) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterRect) , "::" , stringify ! (bottom))) ; } test_field_bottom () ; } # [doc = " A structure to represent a 2D point."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterPoint { pub x : f64 , pub y : f64 , } # [test] fn bindgen_test_layout_FlutterPoint () { assert_eq ! (:: std :: mem :: size_of :: < FlutterPoint > () , 16usize , concat ! ("Size of: " , stringify ! (FlutterPoint))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterPoint > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterPoint))) ; fn test_field_x () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPoint > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . x) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPoint) , "::" , stringify ! (x))) ; } test_field_x () ; fn test_field_y () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPoint > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . y) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterPoint) , "::" , stringify ! (y))) ; } test_field_y () ; } # [doc = " A structure to represent a rounded rectangle."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterRoundedRect { pub rect : FlutterRect , pub upper_left_corner_radius : FlutterSize , pub upper_right_corner_radius : FlutterSize , pub lower_right_corner_radius : FlutterSize , pub lower_left_corner_radius : FlutterSize , } # [test] fn bindgen_test_layout_FlutterRoundedRect () { assert_eq ! (:: std :: mem :: size_of :: < FlutterRoundedRect > () , 96usize , concat ! ("Size of: " , stringify ! (FlutterRoundedRect))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterRoundedRect > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterRoundedRect))) ; fn test_field_rect () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRoundedRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . rect) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterRoundedRect) , "::" , stringify ! (rect))) ; } test_field_rect () ; fn test_field_upper_left_corner_radius () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRoundedRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . upper_left_corner_radius) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterRoundedRect) , "::" , stringify ! (upper_left_corner_radius))) ; } test_field_upper_left_corner_radius () ; fn test_field_upper_right_corner_radius () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRoundedRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . upper_right_corner_radius) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterRoundedRect) , "::" , stringify ! (upper_right_corner_radius))) ; } test_field_upper_right_corner_radius () ; fn test_field_lower_right_corner_radius () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRoundedRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . lower_right_corner_radius) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterRoundedRect) , "::" , stringify ! (lower_right_corner_radius))) ; } test_field_lower_right_corner_radius () ; fn test_field_lower_left_corner_radius () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRoundedRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . lower_left_corner_radius) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (FlutterRoundedRect) , "::" , stringify ! (lower_left_corner_radius))) ; } test_field_lower_left_corner_radius () ; } # [doc = " This information is passed to the embedder when requesting a frame buffer"] # [doc = " object."] # [doc = ""] # [doc = " See: \\ref FlutterOpenGLRendererConfig.fbo_with_frame_info_callback."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterFrameInfo { # [doc = " The size of this struct. Must be sizeof(FlutterFrameInfo)."] pub struct_size : size_t , # [doc = " The size of the surface that will be backed by the fbo."] pub size : FlutterUIntSize , } # [test] fn bindgen_test_layout_FlutterFrameInfo () { assert_eq ! (:: std :: mem :: size_of :: < FlutterFrameInfo > () , 16usize , concat ! ("Size of: " , stringify ! (FlutterFrameInfo))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterFrameInfo > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterFrameInfo))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterFrameInfo > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterFrameInfo) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterFrameInfo > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterFrameInfo) , "::" , stringify ! (size))) ; } test_field_size () ; } # [doc = " Callback for when a frame buffer object is requested."] pub type UIntFrameInfoCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * const FlutterFrameInfo) -> u32 > ; # [doc = " This information is passed to the embedder when a surface is presented."] # [doc = ""] # [doc = " See: \\ref FlutterOpenGLRendererConfig.present_with_info."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterPresentInfo { # [doc = " The size of this struct. Must be sizeof(FlutterPresentInfo)."] pub struct_size : size_t , # [doc = " Id of the fbo backing the surface that was presented."] pub fbo_id : u32 , } # [test] fn bindgen_test_layout_FlutterPresentInfo () { assert_eq ! (:: std :: mem :: size_of :: < FlutterPresentInfo > () , 16usize , concat ! ("Size of: " , stringify ! (FlutterPresentInfo))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterPresentInfo > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterPresentInfo))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPresentInfo > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPresentInfo) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_fbo_id () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPresentInfo > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . fbo_id) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterPresentInfo) , "::" , stringify ! (fbo_id))) ; } test_field_fbo_id () ; } # [doc = " Callback for when a surface is presented."] pub type BoolPresentInfoCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * const FlutterPresentInfo) -> bool > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterOpenGLRendererConfig { # [doc = " The size of this struct. Must be sizeof(FlutterOpenGLRendererConfig)."] pub struct_size : size_t , pub make_current : BoolCallback , pub clear_current : BoolCallback , # [doc = " Specifying one (and only one) of `present` or `present_with_info` is"] # [doc = " required. Specifying both is an error and engine initialization will be"] # [doc = " terminated. The return value indicates success of the present call."] pub present : BoolCallback , # [doc = " Specifying one (and only one) of the `fbo_callback` or"] # [doc = " `fbo_with_frame_info_callback` is required. Specifying both is an error"] # [doc = " and engine intialization will be terminated. The return value indicates"] # [doc = " the id of the frame buffer object that flutter will obtain the gl surface"] # [doc = " from."] pub fbo_callback : UIntCallback , # [doc = " This is an optional callback. Flutter will ask the emebdder to create a GL"] # [doc = " context current on a background thread. If the embedder is able to do so,"] # [doc = " Flutter will assume that this context is in the same sharegroup as the"] # [doc = " main rendering context and use this context for asynchronous texture"] # [doc = " uploads. Though optional, it is recommended that all embedders set this"] # [doc = " callback as it will lead to better performance in texture handling."] pub make_resource_current : BoolCallback , # [doc = " By default, the renderer config assumes that the FBO does not change for"] # [doc = " the duration of the engine run. If this argument is true, the"] # [doc = " engine will ask the embedder for an updated FBO target (via an"] # [doc = " fbo_callback invocation) after a present call."] pub fbo_reset_after_present : bool , # [doc = " The transformation to apply to the render target before any rendering"] # [doc = " operations. This callback is optional."] # [doc = " @attention      When using a custom compositor, the layer offset and sizes"] # [doc = "                 will be affected by this transformation. It will be"] # [doc = "                 embedder responsibility to render contents at the"] # [doc = "                 transformed offset and size. This is useful for embedders"] # [doc = "                 that want to render transformed contents directly into"] # [doc = "                 hardware overlay planes without having to apply extra"] # [doc = "                 transformations to layer contents (which may necessitate"] # [doc = "                 an expensive off-screen render pass)."] pub surface_transformation : TransformationCallback , pub gl_proc_resolver : ProcResolver , # [doc = " When the embedder specifies that a texture has a frame available, the"] # [doc = " engine will call this method (on an internal engine managed thread) so"] # [doc = " that external texture details can be supplied to the engine for subsequent"] # [doc = " composition."] pub gl_external_texture_frame_callback : TextureFrameCallback , # [doc = " Specifying one (and only one) of the `fbo_callback` or"] # [doc = " `fbo_with_frame_info_callback` is required. Specifying both is an error"] # [doc = " and engine intialization will be terminated. The return value indicates"] # [doc = " the id of the frame buffer object (fbo) that flutter will obtain the gl"] # [doc = " surface from. When using this variant, the embedder is passed a"] # [doc = " `FlutterFrameInfo` struct that indicates the properties of the surface"] # [doc = " that flutter will acquire from the returned fbo."] pub fbo_with_frame_info_callback : UIntFrameInfoCallback , # [doc = " Specifying one (and only one) of `present` or `present_with_info` is"] # [doc = " required. Specifying both is an error and engine initialization will be"] # [doc = " terminated. When using this variant, the embedder is passed a"] # [doc = " `FlutterPresentInfo` struct that the embedder can use to release any"] # [doc = " resources. The return value indicates success of the present call."] pub present_with_info : BoolPresentInfoCallback , } # [test] fn bindgen_test_layout_FlutterOpenGLRendererConfig () { assert_eq ! (:: std :: mem :: size_of :: < FlutterOpenGLRendererConfig > () , 96usize , concat ! ("Size of: " , stringify ! (FlutterOpenGLRendererConfig))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterOpenGLRendererConfig > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterOpenGLRendererConfig))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_make_current () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . make_current) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (make_current))) ; } test_field_make_current () ; fn test_field_clear_current () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . clear_current) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (clear_current))) ; } test_field_clear_current () ; fn test_field_present () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . present) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (present))) ; } test_field_present () ; fn test_field_fbo_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . fbo_callback) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (fbo_callback))) ; } test_field_fbo_callback () ; fn test_field_make_resource_current () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . make_resource_current) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (make_resource_current))) ; } test_field_make_resource_current () ; fn test_field_fbo_reset_after_present () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . fbo_reset_after_present) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (fbo_reset_after_present))) ; } test_field_fbo_reset_after_present () ; fn test_field_surface_transformation () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . surface_transformation) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (surface_transformation))) ; } test_field_surface_transformation () ; fn test_field_gl_proc_resolver () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . gl_proc_resolver) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (gl_proc_resolver))) ; } test_field_gl_proc_resolver () ; fn test_field_gl_external_texture_frame_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . gl_external_texture_frame_callback) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (gl_external_texture_frame_callback))) ; } test_field_gl_external_texture_frame_callback () ; fn test_field_fbo_with_frame_info_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . fbo_with_frame_info_callback) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (fbo_with_frame_info_callback))) ; } test_field_fbo_with_frame_info_callback () ; fn test_field_present_with_info () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . present_with_info) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (present_with_info))) ; } test_field_present_with_info () ; } # [doc = " Alias for id<MTLDevice>."] pub type FlutterMetalDeviceHandle = * const :: std :: os :: raw :: c_void ; # [doc = " Alias for id<MTLCommandQueue>."] pub type FlutterMetalCommandQueueHandle = * const :: std :: os :: raw :: c_void ; # [doc = " Alias for id<MTLTexture>."] pub type FlutterMetalTextureHandle = * const :: std :: os :: raw :: c_void ; pub const FlutterMetalExternalTexturePixelFormat_kYUVA : FlutterMetalExternalTexturePixelFormat = 0 ; pub const FlutterMetalExternalTexturePixelFormat_kRGBA : FlutterMetalExternalTexturePixelFormat = 1 ; # [doc = " Pixel format for the external texture."] pub type FlutterMetalExternalTexturePixelFormat = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterMetalExternalTexture { # [doc = " The size of this struct. Must be sizeof(FlutterMetalExternalTexture)."] pub struct_size : size_t , # [doc = " Height of the texture."] pub width : size_t , # [doc = " Height of the texture."] pub height : size_t , # [doc = " The pixel format type of the external."] pub pixel_format : FlutterMetalExternalTexturePixelFormat , # [doc = " Represents the size of the `textures` array."] pub num_textures : size_t , `# [doc = " Supported textures are YUVA and RGBA, in case of YUVA we expect 2 texture"] # [doc = " handles to be provided by the embedder, Y first and UV next. In case of"] # [doc = " RGBA only one should be passed."] # [doc = " These are individually aliases for id<MTLTexture>. These textures are"] # [doc = " retained by the engine for the period of the composition. Once these"] # [doc = " textures have been unregistered via the"] # [doc = " `FlutterEngineUnregisterExternalTexture`, the embedder has to release"] # [doc = " these textures."]` pub textures : * mut FlutterMetalTextureHandle , } # [test] fn bindgen_test_layout_FlutterMetalExternalTexture () { assert_eq ! (:: std :: mem :: size_of :: < FlutterMetalExternalTexture > () , 48usize , concat ! ("Size of: " , stringify ! (FlutterMetalExternalTexture))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterMetalExternalTexture > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterMetalExternalTexture))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalExternalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalExternalTexture) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_width () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalExternalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . width) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalExternalTexture) , "::" , stringify ! (width))) ; } test_field_width () ; fn test_field_height () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalExternalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . height) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalExternalTexture) , "::" , stringify ! (height))) ; } test_field_height () ; fn test_field_pixel_format () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalExternalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . pixel_format) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalExternalTexture) , "::" , stringify ! (pixel_format))) ; } test_field_pixel_format () ; fn test_field_num_textures () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalExternalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . num_textures) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalExternalTexture) , "::" , stringify ! (num_textures))) ; } test_field_num_textures () ; fn test_field_textures () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalExternalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . textures) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalExternalTexture) , "::" , stringify ! (textures))) ; } test_field_textures () ; } # [doc = " Callback to provide an external texture for a given texture_id."] # [doc = " See: external_texture_frame_callback."] pub type FlutterMetalTextureFrameCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : i64 , arg3 : size_t , arg4 : size_t , arg5 : * mut FlutterMetalExternalTexture) -> bool > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterMetalTexture { # [doc = " The size of this struct. Must be sizeof(FlutterMetalTexture)."] pub struct_size : size_t , # [doc = " Embedder provided unique identifier to the texture buffer. Given that the"] # [doc = " `texture` handle is passed to the engine to render to, the texture buffer"] # [doc = " is itself owned by the embedder. This `texture_id` is then also given to"] # [doc = " the embedder in the present callback."] pub texture_id : i64 , # [doc = " Handle to the MTLTexture that is owned by the embedder. Engine will render"] # [doc = " the frame into this texture."] pub texture : FlutterMetalTextureHandle , # [doc = " A baton that is not interpreted by the engine in any way. It will be given"] # [doc = " back to the embedder in the destruction callback below. Embedder resources"] # [doc = " may be associated with this baton."] pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " The callback invoked by the engine when it no longer needs this backing"] # [doc = " store."] pub destruction_callback : VoidCallback , } # [test] fn bindgen_test_layout_FlutterMetalTexture () { assert_eq ! (:: std :: mem :: size_of :: < FlutterMetalTexture > () , 40usize , concat ! ("Size of: " , stringify ! (FlutterMetalTexture))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterMetalTexture > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterMetalTexture))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalTexture) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_texture_id () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . texture_id) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalTexture) , "::" , stringify ! (texture_id))) ; } test_field_texture_id () ; fn test_field_texture () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . texture) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalTexture) , "::" , stringify ! (texture))) ; } test_field_texture () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalTexture) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_destruction_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . destruction_callback) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalTexture) , "::" , stringify ! (destruction_callback))) ; } test_field_destruction_callback () ; } # [doc = " Callback for when a metal texture is requested."] pub type FlutterMetalTextureCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * const FlutterFrameInfo) -> FlutterMetalTexture > ; # [doc = " Callback for when a metal texture is presented. The texture_id here"] # [doc = " corresponds to the texture_id provided by the embedder in the"] # [doc = " `FlutterMetalTextureCallback` callback."] pub type FlutterMetalPresentCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * const FlutterMetalTexture) -> bool > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterMetalRendererConfig { # [doc = " The size of this struct. Must be sizeof(FlutterMetalRendererConfig)."] pub struct_size : size_t , # [doc = " Alias for id<MTLDevice>."] pub device : FlutterMetalDeviceHandle , # [doc = " Alias for id<MTLCommandQueue>."] pub present_command_queue : FlutterMetalCommandQueueHandle , # [doc = " The callback that gets invoked when the engine requests the embedder for a"] # [doc = " texture to render to."] pub get_next_drawable_callback : FlutterMetalTextureCallback , # [doc = " The callback presented to the embedder to present a fully populated metal"] # [doc = " texture to the user."] pub present_drawable_callback : FlutterMetalPresentCallback , # [doc = " When the embedder specifies that a texture has a frame available, the"] # [doc = " engine will call this method (on an internal engine managed thread) so"] # [doc = " that external texture details can be supplied to the engine for subsequent"] # [doc = " composition."] pub external_texture_frame_callback : FlutterMetalTextureFrameCallback , } # [test] fn bindgen_test_layout_FlutterMetalRendererConfig () { assert_eq ! (:: std :: mem :: size_of :: < FlutterMetalRendererConfig > () , 48usize , concat ! ("Size of: " , stringify ! (FlutterMetalRendererConfig))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterMetalRendererConfig > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterMetalRendererConfig))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalRendererConfig) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_device () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . device) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalRendererConfig) , "::" , stringify ! (device))) ; } test_field_device () ; fn test_field_present_command_queue () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . present_command_queue) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalRendererConfig) , "::" , stringify ! (present_command_queue))) ; } test_field_present_command_queue () ; fn test_field_get_next_drawable_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . get_next_drawable_callback) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalRendererConfig) , "::" , stringify ! (get_next_drawable_callback))) ; } test_field_get_next_drawable_callback () ; fn test_field_present_drawable_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . present_drawable_callback) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalRendererConfig) , "::" , stringify ! (present_drawable_callback))) ; } test_field_present_drawable_callback () ; fn test_field_external_texture_frame_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . external_texture_frame_callback) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalRendererConfig) , "::" , stringify ! (external_texture_frame_callback))) ; } test_field_external_texture_frame_callback () ; } # [doc = " Alias for VkInstance."] pub type FlutterVulkanInstanceHandle = * mut :: std :: os :: raw :: c_void ; # [doc = " Alias for VkPhysicalDevice."] pub type FlutterVulkanPhysicalDeviceHandle = * mut :: std :: os :: raw :: c_void ; # [doc = " Alias for VkDevice."] pub type FlutterVulkanDeviceHandle = * mut :: std :: os :: raw :: c_void ; # [doc = " Alias for VkQueue."] pub type FlutterVulkanQueueHandle = * mut :: std :: os :: raw :: c_void ; # [doc = " Alias for VkImage."] pub type FlutterVulkanImageHandle = u64 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterVulkanImage { # [doc = " The size of this struct. Must be sizeof(FlutterVulkanImage)."] pub struct_size : size_t , # [doc = " Handle to the VkImage that is owned by the embedder. The engine will"] # [doc = " bind this image for writing the frame."] pub image : FlutterVulkanImageHandle , # [doc = " The VkFormat of the image (for example: VK_FORMAT_R8G8B8A8_UNORM)."] pub format : u32 , } # [test] fn bindgen_test_layout_FlutterVulkanImage () { assert_eq ! (:: std :: mem :: size_of :: < FlutterVulkanImage > () , 24usize , concat ! ("Size of: " , stringify ! (FlutterVulkanImage))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterVulkanImage > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterVulkanImage))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanImage > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanImage) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_image () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanImage > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . image) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanImage) , "::" , stringify ! (image))) ; } test_field_image () ; fn test_field_format () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanImage > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . format) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanImage) , "::" , stringify ! (format))) ; } test_field_format () ; } # [doc = " Callback to fetch a Vulkan function pointer for a given instance. Normally,"] # [doc = " this should return the results of vkGetInstanceProcAddr."] pub type FlutterVulkanInstanceProcAddressCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : FlutterVulkanInstanceHandle , arg3 : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_void > ; # [doc = " Callback for when a VkImage is requested."] pub type FlutterVulkanImageCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * const FlutterFrameInfo) -> FlutterVulkanImage > ; # [doc = " Callback for when a VkImage has been written to and is ready for use by the"] # [doc = " embedder."] pub type FlutterVulkanPresentCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * const FlutterVulkanImage) -> bool > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterVulkanRendererConfig { # [doc = " The size of this struct. Must be sizeof(FlutterVulkanRendererConfig)."] pub struct_size : size_t , # [doc = " The Vulkan API version. This should match the value set in"] # [doc = " VkApplicationInfo::apiVersion when the VkInstance was created."] pub version : u32 , # [doc = " VkInstance handle. Must not be destroyed before `FlutterEngineShutdown` is"] # [doc = " called."] pub instance : FlutterVulkanInstanceHandle , # [doc = " VkPhysicalDevice handle."] pub physical_device : FlutterVulkanPhysicalDeviceHandle , # [doc = " VkDevice handle. Must not be destroyed before `FlutterEngineShutdown` is"] # [doc = " called."] pub device : FlutterVulkanDeviceHandle , # [doc = " The queue family index of the VkQueue supplied in the next field."] pub queue_family_index : u32 , # [doc = " VkQueue handle."] pub queue : FlutterVulkanQueueHandle , # [doc = " The number of instance extensions available for enumerating in the next"] # [doc = " field."] pub enabled_instance_extension_count : size_t , # [doc = " Array of enabled instance extension names. This should match the names"] # [doc = " passed to `VkInstanceCreateInfo.ppEnabledExtensionNames` when the instance"] # [doc = " was created, but any subset of enabled instance extensions may be"] # [doc = " specified."] # [doc = " This field is optional; `nullptr` may be specified."] # [doc = " This memory is only accessed during the call to FlutterEngineInitialize."] pub enabled_instance_extensions : * mut * const :: std :: os :: raw :: c_char , # [doc = " The number of device extensions available for enumerating in the next"] # [doc = " field."] pub enabled_device_extension_count : size_t , # [doc = " Array of enabled logical device extension names. This should match the"] # [doc = " names passed to `VkDeviceCreateInfo.ppEnabledExtensionNames` when the"] # [doc = " logical device was created, but any subset of enabled logical device"] # [doc = " extensions may be specified."] # [doc = " This field is optional; `nullptr` may be specified."] # [doc = " This memory is only accessed during the call to FlutterEngineInitialize."] # [doc = " For example: VK_KHR_GET_MEMORY_REQUIREMENTS_2_EXTENSION_NAME"] pub enabled_device_extensions : * mut * const :: std :: os :: raw :: c_char , # [doc = " The callback invoked when resolving Vulkan function pointers."] pub get_instance_proc_address_callback : FlutterVulkanInstanceProcAddressCallback , # [doc = " The callback invoked when the engine requests a VkImage from the embedder"] # [doc = " for rendering the next frame."] # [doc = " Not used if a FlutterCompositor is supplied in FlutterProjectArgs."] pub get_next_image_callback : FlutterVulkanImageCallback , # [doc = " The callback invoked when a VkImage has been written to and is ready for"] # [doc = " use by the embedder. Prior to calling this callback, the engine performs"] # [doc = " a host sync, and so the VkImage can be used in a pipeline by the embedder"] # [doc = " without any additional synchronization."] # [doc = " Not used if a FlutterCompositor is supplied in FlutterProjectArgs."] pub present_image_callback : FlutterVulkanPresentCallback , } # [test] fn bindgen_test_layout_FlutterVulkanRendererConfig () { assert_eq ! (:: std :: mem :: size_of :: < FlutterVulkanRendererConfig > () , 112usize , concat ! ("Size of: " , stringify ! (FlutterVulkanRendererConfig))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterVulkanRendererConfig > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterVulkanRendererConfig))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_version () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . version) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (version))) ; } test_field_version () ; fn test_field_instance () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . instance) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (instance))) ; } test_field_instance () ; fn test_field_physical_device () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . physical_device) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (physical_device))) ; } test_field_physical_device () ; fn test_field_device () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . device) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (device))) ; } test_field_device () ; fn test_field_queue_family_index () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . queue_family_index) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (queue_family_index))) ; } test_field_queue_family_index () ; fn test_field_queue () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . queue) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (queue))) ; } test_field_queue () ; fn test_field_enabled_instance_extension_count () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . enabled_instance_extension_count) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (enabled_instance_extension_count))) ; } test_field_enabled_instance_extension_count () ; fn test_field_enabled_instance_extensions () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . enabled_instance_extensions) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (enabled_instance_extensions))) ; } test_field_enabled_instance_extensions () ; fn test_field_enabled_device_extension_count () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . enabled_device_extension_count) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (enabled_device_extension_count))) ; } test_field_enabled_device_extension_count () ; fn test_field_enabled_device_extensions () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . enabled_device_extensions) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (enabled_device_extensions))) ; } test_field_enabled_device_extensions () ; fn test_field_get_instance_proc_address_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . get_instance_proc_address_callback) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (get_instance_proc_address_callback))) ; } test_field_get_instance_proc_address_callback () ; fn test_field_get_next_image_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . get_next_image_callback) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (get_next_image_callback))) ; } test_field_get_next_image_callback () ; fn test_field_present_image_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . present_image_callback) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (present_image_callback))) ; } test_field_present_image_callback () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterSoftwareRendererConfig { # [doc = " The size of this struct. Must be sizeof(FlutterSoftwareRendererConfig)."] pub struct_size : size_t , # [doc = " The callback presented to the embedder to present a fully populated buffer"] # [doc = " to the user. The pixel format of the buffer is the native 32-bit RGBA"] # [doc = " format. The buffer is owned by the Flutter engine and must be copied in"] # [doc = " this callback if needed."] pub surface_present_callback : SoftwareSurfacePresentCallback , } # [test] fn bindgen_test_layout_FlutterSoftwareRendererConfig () { assert_eq ! (:: std :: mem :: size_of :: < FlutterSoftwareRendererConfig > () , 16usize , concat ! ("Size of: " , stringify ! (FlutterSoftwareRendererConfig))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterSoftwareRendererConfig > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterSoftwareRendererConfig))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSoftwareRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterSoftwareRendererConfig) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_surface_present_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSoftwareRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . surface_present_callback) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterSoftwareRendererConfig) , "::" , stringify ! (surface_present_callback))) ; } test_field_surface_present_callback () ; } # [repr (C)] # [derive (Copy , Clone)] pub struct FlutterRendererConfig { pub type_ : FlutterRendererType , pub __bindgen_anon_1 : FlutterRendererConfig__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union FlutterRendererConfig__bindgen_ty_1 { pub open_gl : FlutterOpenGLRendererConfig , pub software : FlutterSoftwareRendererConfig , pub metal : FlutterMetalRendererConfig , pub vulkan : FlutterVulkanRendererConfig , } # [test] fn bindgen_test_layout_FlutterRendererConfig__bindgen_ty_1 () { assert_eq ! (:: std :: mem :: size_of :: < FlutterRendererConfig__bindgen_ty_1 > () , 112usize , concat ! ("Size of: " , stringify ! (FlutterRendererConfig__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterRendererConfig__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterRendererConfig__bindgen_ty_1))) ; fn test_field_open_gl () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRendererConfig__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . open_gl) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterRendererConfig__bindgen_ty_1) , "::" , stringify ! (open_gl))) ; } test_field_open_gl () ; fn test_field_software () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRendererConfig__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . software) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterRendererConfig__bindgen_ty_1) , "::" , stringify ! (software))) ; } test_field_software () ; fn test_field_metal () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRendererConfig__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . metal) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterRendererConfig__bindgen_ty_1) , "::" , stringify ! (metal))) ; } test_field_metal () ; fn test_field_vulkan () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRendererConfig__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . vulkan) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterRendererConfig__bindgen_ty_1) , "::" , stringify ! (vulkan))) ; } test_field_vulkan () ; } # [test] fn bindgen_test_layout_FlutterRendererConfig () { assert_eq ! (:: std :: mem :: size_of :: < FlutterRendererConfig > () , 120usize , concat ! ("Size of: " , stringify ! (FlutterRendererConfig))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterRendererConfig > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterRendererConfig))) ; fn test_field_type () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . type_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterRendererConfig) , "::" , stringify ! (type_))) ; } test_field_type () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterWindowMetricsEvent { # [doc = " The size of this struct. Must be sizeof(FlutterWindowMetricsEvent)."] pub struct_size : size_t , # [doc = " Physical width of the window."] pub width : size_t , # [doc = " Physical height of the window."] pub height : size_t , # [doc = " Scale factor for the physical screen."] pub pixel_ratio : f64 , # [doc = " Horizontal physical location of the left side of the window on the screen."] pub left : size_t , # [doc = " Vertical physical location of the top of the window on the screen."] pub top : size_t , # [doc = " Top inset of window."] pub physical_view_inset_top : f64 , # [doc = " Right inset of window."] pub physical_view_inset_right : f64 , # [doc = " Bottom inset of window."] pub physical_view_inset_bottom : f64 , # [doc = " Left inset of window."] pub physical_view_inset_left : f64 , } # [test] fn bindgen_test_layout_FlutterWindowMetricsEvent () { assert_eq ! (:: std :: mem :: size_of :: < FlutterWindowMetricsEvent > () , 80usize , concat ! ("Size of: " , stringify ! (FlutterWindowMetricsEvent))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterWindowMetricsEvent > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterWindowMetricsEvent))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_width () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . width) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (width))) ; } test_field_width () ; fn test_field_height () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . height) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (height))) ; } test_field_height () ; fn test_field_pixel_ratio () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . pixel_ratio) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (pixel_ratio))) ; } test_field_pixel_ratio () ; fn test_field_left () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . left) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (left))) ; } test_field_left () ; fn test_field_top () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . top) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (top))) ; } test_field_top () ; fn test_field_physical_view_inset_top () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . physical_view_inset_top) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (physical_view_inset_top))) ; } test_field_physical_view_inset_top () ; fn test_field_physical_view_inset_right () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . physical_view_inset_right) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (physical_view_inset_right))) ; } test_field_physical_view_inset_right () ; fn test_field_physical_view_inset_bottom () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . physical_view_inset_bottom) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (physical_view_inset_bottom))) ; } test_field_physical_view_inset_bottom () ; fn test_field_physical_view_inset_left () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . physical_view_inset_left) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (physical_view_inset_left))) ; } test_field_physical_view_inset_left () ; } pub const FlutterPointerPhase_kCancel : FlutterPointerPhase = 0 ; # [doc = " The pointer, which must have been down (see kDown), is now up."] # [doc = ""] # [doc = " For touch, this means that the pointer is no longer in contact with the"] # [doc = " screen. For a mouse, it means the last button was released. Note that if"] # [doc = " any other buttons are still pressed when one button is released, that"] # [doc = " should be sent as a kMove rather than a kUp."] pub const FlutterPointerPhase_kUp : FlutterPointerPhase = 1 ; # [doc = " The pointer, which must have been been up, is now down."] # [doc = ""] # [doc = " For touch, this means that the pointer has come into contact with the"] # [doc = " screen. For a mouse, it means a button is now pressed. Note that if any"] # [doc = " other buttons are already pressed when a new button is pressed, that"] # [doc = " should be sent as a kMove rather than a kDown."] pub const FlutterPointerPhase_kDown : FlutterPointerPhase = 2 ; # [doc = " The pointer moved while down."] # [doc = ""] # [doc = " This is also used for changes in button state that don't cause a kDown or"] # [doc = " kUp, such as releasing one of two pressed buttons."] pub const FlutterPointerPhase_kMove : FlutterPointerPhase = 3 ; # [doc = " The pointer is now sending input to Flutter. For instance, a mouse has"] # [doc = " entered the area where the Flutter content is displayed."] # [doc = ""] # [doc = " A pointer should always be added before sending any other events."] pub const FlutterPointerPhase_kAdd : FlutterPointerPhase = 4 ; # [doc = " The pointer is no longer sending input to Flutter. For instance, a mouse"] # [doc = " has left the area where the Flutter content is displayed."] # [doc = ""] # [doc = " A removed pointer should no longer send events until sending a new kAdd."] pub const FlutterPointerPhase_kRemove : FlutterPointerPhase = 5 ; # [doc = " The pointer moved while up."] pub const FlutterPointerPhase_kHover : FlutterPointerPhase = 6 ; # [doc = " A pan/zoom started on this pointer."] pub const FlutterPointerPhase_kPanZoomStart : FlutterPointerPhase = 7 ; # [doc = " The pan/zoom updated."] pub const FlutterPointerPhase_kPanZoomUpdate : FlutterPointerPhase = 8 ; # [doc = " The pan/zoom ended."] pub const FlutterPointerPhase_kPanZoomEnd : FlutterPointerPhase = 9 ; # [doc = " The phase of the pointer event."] pub type FlutterPointerPhase = :: std :: os :: raw :: c_uint ; pub const FlutterPointerDeviceKind_kFlutterPointerDeviceKindMouse : FlutterPointerDeviceKind = 1 ; pub const FlutterPointerDeviceKind_kFlutterPointerDeviceKindTouch : FlutterPointerDeviceKind = 2 ; pub const FlutterPointerDeviceKind_kFlutterPointerDeviceKindStylus : FlutterPointerDeviceKind = 3 ; pub const FlutterPointerDeviceKind_kFlutterPointerDeviceKindTrackpad : FlutterPointerDeviceKind = 4 ; # [doc = " The device type that created a pointer event."] pub type FlutterPointerDeviceKind = :: std :: os :: raw :: c_uint ; pub const FlutterPointerMouseButtons_kFlutterPointerButtonMousePrimary : FlutterPointerMouseButtons = 1 ; pub const FlutterPointerMouseButtons_kFlutterPointerButtonMouseSecondary : FlutterPointerMouseButtons = 2 ; pub const FlutterPointerMouseButtons_kFlutterPointerButtonMouseMiddle : FlutterPointerMouseButtons = 4 ; pub const FlutterPointerMouseButtons_kFlutterPointerButtonMouseBack : FlutterPointerMouseButtons = 8 ; pub const FlutterPointerMouseButtons_kFlutterPointerButtonMouseForward : FlutterPointerMouseButtons = 16 ; # [doc = " Flags for the `buttons` field of `FlutterPointerEvent` when `device_kind`"] # [doc = " is `kFlutterPointerDeviceKindMouse`."] pub type FlutterPointerMouseButtons = :: std :: os :: raw :: c_uint ; pub const FlutterPointerSignalKind_kFlutterPointerSignalKindNone : FlutterPointerSignalKind = 0 ; pub const FlutterPointerSignalKind_kFlutterPointerSignalKindScroll : FlutterPointerSignalKind = 1 ; # [doc = " The type of a pointer signal."] pub type FlutterPointerSignalKind = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterPointerEvent { # [doc = " The size of this struct. Must be sizeof(FlutterPointerEvent)."] pub struct_size : size_t , pub phase : FlutterPointerPhase , # [doc = " The timestamp at which the pointer event was generated. The timestamp"] # [doc = " should be specified in microseconds and the clock should be the same as"] # [doc = " that used by `FlutterEngineGetCurrentTime`."] pub timestamp : size_t , # [doc = " The x coordinate of the pointer event in physical pixels."] pub x : f64 , # [doc = " The y coordinate of the pointer event in physical pixels."] pub y : f64 , # [doc = " An optional device identifier. If this is not specified, it is assumed"] # [doc = " that the embedder has no multi-touch capability."] pub device : i32 , pub signal_kind : FlutterPointerSignalKind , # [doc = " The x offset of the scroll in physical pixels."] pub scroll_delta_x : f64 , # [doc = " The y offset of the scroll in physical pixels."] pub scroll_delta_y : f64 , # [doc = " The type of the device generating this event."] # [doc = " Backwards compatibility note: If this is not set, the device will be"] # [doc = " treated as a mouse, with the primary button set for `kDown` and `kMove`."] # [doc = " If set explicitly to `kFlutterPointerDeviceKindMouse`, you must set the"] # [doc = " correct buttons."] pub device_kind : FlutterPointerDeviceKind , # [doc = " The buttons currently pressed, if any."] pub buttons : i64 , # [doc = " The x offset of the pan/zoom in physical pixels."] pub pan_x : f64 , # [doc = " The y offset of the pan/zoom in physical pixels."] pub pan_y : f64 , # [doc = " The scale of the pan/zoom, where 1.0 is the initial scale."] pub scale : f64 , # [doc = " The rotation of the pan/zoom in radians, where 0.0 is the initial angle."] pub rotation : f64 , } # [test] fn bindgen_test_layout_FlutterPointerEvent () { assert_eq ! (:: std :: mem :: size_of :: < FlutterPointerEvent > () , 112usize , concat ! ("Size of: " , stringify ! (FlutterPointerEvent))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterPointerEvent > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterPointerEvent))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_phase () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . phase) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (phase))) ; } test_field_phase () ; fn test_field_timestamp () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . timestamp) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (timestamp))) ; } test_field_timestamp () ; fn test_field_x () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . x) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (x))) ; } test_field_x () ; fn test_field_y () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . y) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (y))) ; } test_field_y () ; fn test_field_device () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . device) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (device))) ; } test_field_device () ; fn test_field_signal_kind () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . signal_kind) as usize - ptr as usize } , 44usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (signal_kind))) ; } test_field_signal_kind () ; fn test_field_scroll_delta_x () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scroll_delta_x) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (scroll_delta_x))) ; } test_field_scroll_delta_x () ; fn test_field_scroll_delta_y () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scroll_delta_y) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (scroll_delta_y))) ; } test_field_scroll_delta_y () ; fn test_field_device_kind () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . device_kind) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (device_kind))) ; } test_field_device_kind () ; fn test_field_buttons () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . buttons) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (buttons))) ; } test_field_buttons () ; fn test_field_pan_x () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . pan_x) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (pan_x))) ; } test_field_pan_x () ; fn test_field_pan_y () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . pan_y) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (pan_y))) ; } test_field_pan_y () ; fn test_field_scale () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scale) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (scale))) ; } test_field_scale () ; fn test_field_rotation () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . rotation) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (rotation))) ; } test_field_rotation () ; } pub const FlutterKeyEventType_kFlutterKeyEventTypeUp : FlutterKeyEventType = 1 ; pub const FlutterKeyEventType_kFlutterKeyEventTypeDown : FlutterKeyEventType = 2 ; pub const FlutterKeyEventType_kFlutterKeyEventTypeRepeat : FlutterKeyEventType = 3 ; pub type FlutterKeyEventType = :: std :: os :: raw :: c_uint ; # [doc = " A structure to represent a key event."] # [doc = ""] # [doc = " Sending `FlutterKeyEvent` via `FlutterEngineSendKeyEvent` results in a"] # [doc = " corresponding `FlutterKeyEvent` to be dispatched in the framework. It is"] # [doc = " embedder's responsibility to ensure the regularity of sent events, since the"] # [doc = " framework only performs simple one-to-one mapping. The events must conform"] # [doc = " the following rules:"] # [doc = ""] # [doc = "  * Each key press sequence shall consist of one key down event (`kind` being"] # [doc = "    `kFlutterKeyEventTypeDown`), zero or more repeat events, and one key up"] # [doc = "    event, representing a physical key button being pressed, held, and"] # [doc = "    released."] # [doc = "  * All events throughout a key press sequence shall have the same `physical`"] # [doc = "    and `logical`. Having different `character`s is allowed."] # [doc = ""] # [doc = " A `FlutterKeyEvent` with `physical` 0 and `logical` 0 is an empty event."] # [doc = " This is the only case either `physical` or `logical` can be 0. An empty"] # [doc = " event must be sent if a key message should be converted to no"] # [doc = " `FlutterKeyEvent`s, for example, when a key down message is received for a"] # [doc = " key that has already been pressed according to the record. This is to ensure"] # [doc = " some `FlutterKeyEvent` arrives at the framework before raw key message."] # [doc = " See https://github.com/flutter/flutter/issues/87230."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterKeyEvent { # [doc = " The size of this struct. Must be sizeof(FlutterKeyEvent)."] pub struct_size : size_t , # [doc = " The timestamp at which the key event was generated. The timestamp should"] # [doc = " be specified in microseconds and the clock should be the same as that used"] # [doc = " by `FlutterEngineGetCurrentTime`."] pub timestamp : f64 , # [doc = " The event kind."] pub type_ : FlutterKeyEventType , # [doc = " The USB HID code for the physical key of the event."] # [doc = ""] # [doc = " For the full definition and list of pre-defined physical keys, see"] # [doc = " `PhysicalKeyboardKey` from the framework."] # [doc = ""] # [doc = " The only case that `physical` might be 0 is when this is an empty event."] # [doc = " See `FlutterKeyEvent` for introduction."] pub physical : u64 , # [doc = " The key ID for the logical key of this event."] # [doc = ""] # [doc = " For the full definition and a list of pre-defined logical keys, see"] # [doc = " `LogicalKeyboardKey` from the framework."] # [doc = ""] # [doc = " The only case that `logical` might be 0 is when this is an empty event."] # [doc = " See `FlutterKeyEvent` for introduction."] pub logical : u64 , # [doc = " Null-terminated character input from the event. Can be null. Ignored for"] # [doc = " up events."] pub character : * const :: std :: os :: raw :: c_char , # [doc = " True if this event does not correspond to a native event."] # [doc = ""] # [doc = " The embedder is likely to skip events and/or construct new events that do"] # [doc = " not correspond to any native events in order to conform the regularity"] # [doc = " of events (as documented in `FlutterKeyEvent`). An example is when a key"] # [doc = " up is missed due to loss of window focus, on a platform that provides"] # [doc = " query to key pressing status, the embedder might realize that the key has"] # [doc = " been released at the next key event, and should construct a synthesized up"] # [doc = " event immediately before the actual event."] # [doc = ""] # [doc = " An event being synthesized means that the `timestamp` might greatly"] # [doc = " deviate from the actual time when the event occurs physically."] pub synthesized : bool , } # [test] fn bindgen_test_layout_FlutterKeyEvent () { assert_eq ! (:: std :: mem :: size_of :: < FlutterKeyEvent > () , 56usize , concat ! ("Size of: " , stringify ! (FlutterKeyEvent))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterKeyEvent > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterKeyEvent))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterKeyEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterKeyEvent) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_timestamp () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterKeyEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . timestamp) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterKeyEvent) , "::" , stringify ! (timestamp))) ; } test_field_timestamp () ; fn test_field_type () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterKeyEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . type_) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterKeyEvent) , "::" , stringify ! (type_))) ; } test_field_type () ; fn test_field_physical () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterKeyEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . physical) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterKeyEvent) , "::" , stringify ! (physical))) ; } test_field_physical () ; fn test_field_logical () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterKeyEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . logical) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterKeyEvent) , "::" , stringify ! (logical))) ; } test_field_logical () ; fn test_field_character () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterKeyEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . character) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterKeyEvent) , "::" , stringify ! (character))) ; } test_field_character () ; fn test_field_synthesized () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterKeyEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . synthesized) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterKeyEvent) , "::" , stringify ! (synthesized))) ; } test_field_synthesized () ; } pub type FlutterKeyEventCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : bool , arg2 : * mut :: std :: os :: raw :: c_void) > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _FlutterPlatformMessageResponseHandle { _unused : [u8 ; 0] , } pub type FlutterPlatformMessageResponseHandle = _FlutterPlatformMessageResponseHandle ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterPlatformMessage { # [doc = " The size of this struct. Must be sizeof(FlutterPlatformMessage)."] pub struct_size : size_t , pub channel : * const :: std :: os :: raw :: c_char , pub message : * const u8 , pub message_size : size_t , # [doc = " The response handle on which to invoke"] # [doc = " `FlutterEngineSendPlatformMessageResponse` when the response is ready."] # [doc = " `FlutterEngineSendPlatformMessageResponse` must be called for all messages"] # [doc = " received by the embedder. Failure to call"] # [doc = " `FlutterEngineSendPlatformMessageResponse` will cause a memory leak. It is"] # [doc = " not safe to send multiple responses on a single response object."] pub response_handle : * const FlutterPlatformMessageResponseHandle , } # [test] fn bindgen_test_layout_FlutterPlatformMessage () { assert_eq ! (:: std :: mem :: size_of :: < FlutterPlatformMessage > () , 40usize , concat ! ("Size of: " , stringify ! (FlutterPlatformMessage))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterPlatformMessage > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterPlatformMessage))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformMessage > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformMessage) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_channel () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformMessage > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . channel) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformMessage) , "::" , stringify ! (channel))) ; } test_field_channel () ; fn test_field_message () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformMessage > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . message) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformMessage) , "::" , stringify ! (message))) ; } test_field_message () ; fn test_field_message_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformMessage > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . message_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformMessage) , "::" , stringify ! (message_size))) ; } test_field_message_size () ; fn test_field_response_handle () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformMessage > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . response_handle) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformMessage) , "::" , stringify ! (response_handle))) ; } test_field_response_handle () ; } pub type FlutterPlatformMessageCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const FlutterPlatformMessage , arg2 : * mut :: std :: os :: raw :: c_void) > ; pub type FlutterDataCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const u8 , arg2 : size_t , arg3 : * mut :: std :: os :: raw :: c_void) > ; # [doc = " The identifier of the platform view. This identifier is specified by the"] # [doc = " application when a platform view is added to the scene via the"] # [doc = " `SceneBuilder.addPlatformView` call."] pub type FlutterPlatformViewIdentifier = i64 ; extern "C" { # [doc = " `FlutterSemanticsNode` ID used as a sentinel to signal the end of a batch of"] # [doc = " semantics node updates."] pub static kFlutterSemanticsNodeIdBatchEnd : i32 ; } # [doc = " A node that represents some semantic data."] # [doc = ""] # [doc = " The semantics tree is maintained during the semantics phase of the pipeline"] # [doc = " (i.e., during PipelineOwner.flushSemantics), which happens after"] # [doc = " compositing. Updates are then pushed to embedders via the registered"] # [doc = " `FlutterUpdateSemanticsNodeCallback`."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterSemanticsNode { # [doc = " The size of this struct. Must be sizeof(FlutterSemanticsNode)."] pub struct_size : size_t , # [doc = " The unique identifier for this node."] pub id : i32 , # [doc = " The set of semantics flags associated with this node."] pub flags : FlutterSemanticsFlag , # [doc = " The set of semantics actions applicable to this node."] pub actions : FlutterSemanticsAction , # [doc = " The position at which the text selection originates."] pub text_selection_base : i32 , # [doc = " The position at which the text selection terminates."] pub text_selection_extent : i32 , # [doc = " The total number of scrollable children that contribute to semantics."] pub scroll_child_count : i32 , # [doc = " The index of the first visible semantic child of a scroll node."] pub scroll_index : i32 , # [doc = " The current scrolling position in logical pixels if the node is"] # [doc = " scrollable."] pub scroll_position : f64 , # [doc = " The maximum in-range value for `scrollPosition` if the node is scrollable."] pub scroll_extent_max : f64 , # [doc = " The minimum in-range value for `scrollPosition` if the node is scrollable."] pub scroll_extent_min : f64 , # [doc = " The elevation along the z-axis at which the rect of this semantics node is"] # [doc = " located above its parent."] pub elevation : f64 , # [doc = " Describes how much space the semantics node takes up along the z-axis."] pub thickness : f64 , # [doc = " A textual description of the node."] pub label : * const :: std :: os :: raw :: c_char , # [doc = " A brief description of the result of performing an action on the node."] pub hint : * const :: std :: os :: raw :: c_char , # [doc = " A textual description of the current value of the node."] pub value : * const :: std :: os :: raw :: c_char , # [doc = " A value that `value` will have after a kFlutterSemanticsActionIncrease`"] # [doc = " action has been performed."] pub increased_value : * const :: std :: os :: raw :: c_char , # [doc = " A value that `value` will have after a kFlutterSemanticsActionDecrease`"] # [doc = " action has been performed."] pub decreased_value : * const :: std :: os :: raw :: c_char , # [doc = " The reading direction for `label`, `value`, `hint`, `increasedValue`, and"] # [doc = " `decreasedValue`."] pub text_direction : FlutterTextDirection , # [doc = " The bounding box for this node in its coordinate system."] pub rect : FlutterRect , # [doc = " The transform from this node's coordinate system to its parent's"] # [doc = " coordinate system."] pub transform : FlutterTransformation , # [doc = " The number of children this node has."] pub child_count : size_t , # [doc = " Array of child node IDs in traversal order. Has length `child_count`."] pub children_in_traversal_order : * const i32 , # [doc = " Array of child node IDs in hit test order. Has length `child_count`."] pub children_in_hit_test_order : * const i32 , # [doc = " The number of custom accessibility action associated with this node."] pub custom_accessibility_actions_count : size_t , # [doc = " Array of `FlutterSemanticsCustomAction` IDs associated with this node."] # [doc = " Has length `custom_accessibility_actions_count`."] pub custom_accessibility_actions : * const i32 , # [doc = " Identifier of the platform view associated with this semantics node, or"] # [doc = " -1 if none."] pub platform_view_id : FlutterPlatformViewIdentifier , } # [test] fn bindgen_test_layout_FlutterSemanticsNode () { assert_eq ! (:: std :: mem :: size_of :: < FlutterSemanticsNode > () , 280usize , concat ! ("Size of: " , stringify ! (FlutterSemanticsNode))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterSemanticsNode > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterSemanticsNode))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_id () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . id) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (id))) ; } test_field_id () ; fn test_field_flags () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . flags) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (flags))) ; } test_field_flags () ; fn test_field_actions () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . actions) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (actions))) ; } test_field_actions () ; fn test_field_text_selection_base () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . text_selection_base) as usize - ptr as usize } , 20usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (text_selection_base))) ; } test_field_text_selection_base () ; fn test_field_text_selection_extent () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . text_selection_extent) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (text_selection_extent))) ; } test_field_text_selection_extent () ; fn test_field_scroll_child_count () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scroll_child_count) as usize - ptr as usize } , 28usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (scroll_child_count))) ; } test_field_scroll_child_count () ; fn test_field_scroll_index () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scroll_index) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (scroll_index))) ; } test_field_scroll_index () ; fn test_field_scroll_position () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scroll_position) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (scroll_position))) ; } test_field_scroll_position () ; fn test_field_scroll_extent_max () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scroll_extent_max) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (scroll_extent_max))) ; } test_field_scroll_extent_max () ; fn test_field_scroll_extent_min () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scroll_extent_min) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (scroll_extent_min))) ; } test_field_scroll_extent_min () ; fn test_field_elevation () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . elevation) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (elevation))) ; } test_field_elevation () ; fn test_field_thickness () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . thickness) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (thickness))) ; } test_field_thickness () ; fn test_field_label () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . label) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (label))) ; } test_field_label () ; fn test_field_hint () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . hint) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (hint))) ; } test_field_hint () ; fn test_field_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . value) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (value))) ; } test_field_value () ; fn test_field_increased_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . increased_value) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (increased_value))) ; } test_field_increased_value () ; fn test_field_decreased_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . decreased_value) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (decreased_value))) ; } test_field_decreased_value () ; fn test_field_text_direction () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . text_direction) as usize - ptr as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (text_direction))) ; } test_field_text_direction () ; fn test_field_rect () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . rect) as usize - ptr as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (rect))) ; } test_field_rect () ; fn test_field_transform () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . transform) as usize - ptr as usize } , 160usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (transform))) ; } test_field_transform () ; fn test_field_child_count () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . child_count) as usize - ptr as usize } , 232usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (child_count))) ; } test_field_child_count () ; fn test_field_children_in_traversal_order () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . children_in_traversal_order) as usize - ptr as usize } , 240usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (children_in_traversal_order))) ; } test_field_children_in_traversal_order () ; fn test_field_children_in_hit_test_order () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . children_in_hit_test_order) as usize - ptr as usize } , 248usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (children_in_hit_test_order))) ; } test_field_children_in_hit_test_order () ; fn test_field_custom_accessibility_actions_count () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . custom_accessibility_actions_count) as usize - ptr as usize } , 256usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (custom_accessibility_actions_count))) ; } test_field_custom_accessibility_actions_count () ; fn test_field_custom_accessibility_actions () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . custom_accessibility_actions) as usize - ptr as usize } , 264usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (custom_accessibility_actions))) ; } test_field_custom_accessibility_actions () ; fn test_field_platform_view_id () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . platform_view_id) as usize - ptr as usize } , 272usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (platform_view_id))) ; } test_field_platform_view_id () ; } extern "C" { # [doc = " `FlutterSemanticsCustomAction` ID used as a sentinel to signal the end of a"] # [doc = " batch of semantics custom action updates."] pub static kFlutterSemanticsCustomActionIdBatchEnd : i32 ; } # [doc = " A custom semantics action, or action override."] # [doc = ""] # [doc = " Custom actions can be registered by applications in order to provide"] # [doc = " semantic actions other than the standard actions available through the"] # [doc = " `FlutterSemanticsAction` enum."] # [doc = ""] # [doc = " Action overrides are custom actions that the application developer requests"] # [doc = " to be used in place of the standard actions in the `FlutterSemanticsAction`"] # [doc = " enum."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterSemanticsCustomAction { # [doc = " The size of the struct. Must be sizeof(FlutterSemanticsCustomAction)."] pub struct_size : size_t , # [doc = " The unique custom action or action override ID."] pub id : i32 , # [doc = " For overridden standard actions, corresponds to the"] # [doc = " `FlutterSemanticsAction` to override."] pub override_action : FlutterSemanticsAction , # [doc = " The user-readable name of this custom semantics action."] pub label : * const :: std :: os :: raw :: c_char , # [doc = " The hint description of this custom semantics action."] pub hint : * const :: std :: os :: raw :: c_char , } # [test] fn bindgen_test_layout_FlutterSemanticsCustomAction () { assert_eq ! (:: std :: mem :: size_of :: < FlutterSemanticsCustomAction > () , 32usize , concat ! ("Size of: " , stringify ! (FlutterSemanticsCustomAction))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterSemanticsCustomAction > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterSemanticsCustomAction))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsCustomAction > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsCustomAction) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_id () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsCustomAction > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . id) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsCustomAction) , "::" , stringify ! (id))) ; } test_field_id () ; fn test_field_override_action () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsCustomAction > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . override_action) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsCustomAction) , "::" , stringify ! (override_action))) ; } test_field_override_action () ; fn test_field_label () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsCustomAction > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . label) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsCustomAction) , "::" , stringify ! (label))) ; } test_field_label () ; fn test_field_hint () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsCustomAction > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . hint) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsCustomAction) , "::" , stringify ! (hint))) ; } test_field_hint () ; } pub type FlutterUpdateSemanticsNodeCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const FlutterSemanticsNode , arg2 : * mut :: std :: os :: raw :: c_void) > ; pub type FlutterUpdateSemanticsCustomActionCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const FlutterSemanticsCustomAction , arg2 : * mut :: std :: os :: raw :: c_void) > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _FlutterTaskRunner { _unused : [u8 ; 0] , } pub type FlutterTaskRunner = * mut _FlutterTaskRunner ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterTask { pub runner : FlutterTaskRunner , pub task : u64 , } # [test] fn bindgen_test_layout_FlutterTask () { assert_eq ! (:: std :: mem :: size_of :: < FlutterTask > () , 16usize , concat ! ("Size of: " , stringify ! (FlutterTask))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterTask > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterTask))) ; fn test_field_runner () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTask > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . runner) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterTask) , "::" , stringify ! (runner))) ; } test_field_runner () ; fn test_field_task () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTask > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . task) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterTask) , "::" , stringify ! (task))) ; } test_field_task () ; } pub type FlutterTaskRunnerPostTaskCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : FlutterTask , arg2 : u64 , arg3 : * mut :: std :: os :: raw :: c_void) > ; # [doc = " An interface used by the Flutter engine to execute tasks at the target time"] # [doc = " on a specified thread. There should be a 1-1 relationship between a thread"] # [doc = " and a task runner. It is undefined behavior to run a task on a thread that"] # [doc = " is not associated with its task runner."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterTaskRunnerDescription { # [doc = " The size of this struct. Must be sizeof(FlutterTaskRunnerDescription)."] pub struct_size : size_t , pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " May be called from any thread. Should return true if tasks posted on the"] # [doc = " calling thread will be run on that same thread."] # [doc = ""] # [doc = " @attention     This field is required."] pub runs_task_on_current_thread_callback : BoolCallback , # [doc = " May be called from any thread. The given task should be executed by the"] # [doc = " embedder on the thread associated with that task runner by calling"] # [doc = " `FlutterEngineRunTask` at the given target time. The system monotonic"] # [doc = " clock should be used for the target time. The target time is the absolute"] # [doc = " time from epoch (NOT a delta) at which the task must be returned back to"] # [doc = " the engine on the correct thread. If the embedder needs to calculate a"] # [doc = " delta, `FlutterEngineGetCurrentTime` may be called and the difference used"] # [doc = " as the delta."] # [doc = ""] # [doc = " @attention     This field is required."] pub post_task_callback : FlutterTaskRunnerPostTaskCallback , # [doc = " A unique identifier for the task runner. If multiple task runners service"] # [doc = " tasks on the same thread, their identifiers must match."] pub identifier : size_t , } # [test] fn bindgen_test_layout_FlutterTaskRunnerDescription () { assert_eq ! (:: std :: mem :: size_of :: < FlutterTaskRunnerDescription > () , 40usize , concat ! ("Size of: " , stringify ! (FlutterTaskRunnerDescription))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterTaskRunnerDescription > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterTaskRunnerDescription))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTaskRunnerDescription > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterTaskRunnerDescription) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTaskRunnerDescription > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterTaskRunnerDescription) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_runs_task_on_current_thread_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTaskRunnerDescription > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . runs_task_on_current_thread_callback) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterTaskRunnerDescription) , "::" , stringify ! (runs_task_on_current_thread_callback))) ; } test_field_runs_task_on_current_thread_callback () ; fn test_field_post_task_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTaskRunnerDescription > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . post_task_callback) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterTaskRunnerDescription) , "::" , stringify ! (post_task_callback))) ; } test_field_post_task_callback () ; fn test_field_identifier () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTaskRunnerDescription > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . identifier) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterTaskRunnerDescription) , "::" , stringify ! (identifier))) ; } test_field_identifier () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterCustomTaskRunners { # [doc = " The size of this struct. Must be sizeof(FlutterCustomTaskRunners)."] pub struct_size : size_t , # [doc = " Specify the task runner for the thread on which the `FlutterEngineRun`"] # [doc = " call is made. The same task runner description can be specified for both"] # [doc = " the render and platform task runners. This makes the Flutter engine use"] # [doc = " the same thread for both task runners."] pub platform_task_runner : * const FlutterTaskRunnerDescription , # [doc = " Specify the task runner for the thread on which the render tasks will be"] # [doc = " run. The same task runner description can be specified for both the render"] # [doc = " and platform task runners. This makes the Flutter engine use the same"] # [doc = " thread for both task runners."] pub render_task_runner : * const FlutterTaskRunnerDescription , # [doc = " Specify a callback that is used to set the thread priority for embedder"] # [doc = " task runners."] pub thread_priority_setter : :: std :: option :: Option < unsafe extern "C" fn (arg1 : FlutterThreadPriority) > , } # [test] fn bindgen_test_layout_FlutterCustomTaskRunners () { assert_eq ! (:: std :: mem :: size_of :: < FlutterCustomTaskRunners > () , 32usize , concat ! ("Size of: " , stringify ! (FlutterCustomTaskRunners))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterCustomTaskRunners > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterCustomTaskRunners))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCustomTaskRunners > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterCustomTaskRunners) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_platform_task_runner () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCustomTaskRunners > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . platform_task_runner) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterCustomTaskRunners) , "::" , stringify ! (platform_task_runner))) ; } test_field_platform_task_runner () ; fn test_field_render_task_runner () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCustomTaskRunners > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . render_task_runner) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterCustomTaskRunners) , "::" , stringify ! (render_task_runner))) ; } test_field_render_task_runner () ; fn test_field_thread_priority_setter () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCustomTaskRunners > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . thread_priority_setter) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterCustomTaskRunners) , "::" , stringify ! (thread_priority_setter))) ; } test_field_thread_priority_setter () ; } # [repr (C)] # [derive (Copy , Clone)] pub struct FlutterOpenGLBackingStore { # [doc = " The type of the OpenGL backing store. Currently, it can either be a"] # [doc = " texture or a framebuffer."] pub type_ : FlutterOpenGLTargetType , pub __bindgen_anon_1 : FlutterOpenGLBackingStore__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union FlutterOpenGLBackingStore__bindgen_ty_1 { # [doc = " A texture for Flutter to render into."] pub texture : FlutterOpenGLTexture , # [doc = " A framebuffer for Flutter to render into. The embedder must ensure that"] # [doc = " the framebuffer is complete."] pub framebuffer : FlutterOpenGLFramebuffer , } # [test] fn bindgen_test_layout_FlutterOpenGLBackingStore__bindgen_ty_1 () { assert_eq ! (:: std :: mem :: size_of :: < FlutterOpenGLBackingStore__bindgen_ty_1 > () , 48usize , concat ! ("Size of: " , stringify ! (FlutterOpenGLBackingStore__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterOpenGLBackingStore__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterOpenGLBackingStore__bindgen_ty_1))) ; fn test_field_texture () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLBackingStore__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . texture) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLBackingStore__bindgen_ty_1) , "::" , stringify ! (texture))) ; } test_field_texture () ; fn test_field_framebuffer () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLBackingStore__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . framebuffer) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLBackingStore__bindgen_ty_1) , "::" , stringify ! (framebuffer))) ; } test_field_framebuffer () ; } # [test] fn bindgen_test_layout_FlutterOpenGLBackingStore () { assert_eq ! (:: std :: mem :: size_of :: < FlutterOpenGLBackingStore > () , 56usize , concat ! ("Size of: " , stringify ! (FlutterOpenGLBackingStore))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterOpenGLBackingStore > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterOpenGLBackingStore))) ; fn test_field_type () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . type_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLBackingStore) , "::" , stringify ! (type_))) ; } test_field_type () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterSoftwareBackingStore { # [doc = " A pointer to the raw bytes of the allocation described by this software"] # [doc = " backing store."] pub allocation : * const :: std :: os :: raw :: c_void , # [doc = " The number of bytes in a single row of the allocation."] pub row_bytes : size_t , # [doc = " The number of rows in the allocation."] pub height : size_t , # [doc = " A baton that is not interpreted by the engine in any way. It will be given"] # [doc = " back to the embedder in the destruction callback below. Embedder resources"] # [doc = " may be associated with this baton."] pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " The callback invoked by the engine when it no longer needs this backing"] # [doc = " store."] pub destruction_callback : VoidCallback , } # [test] fn bindgen_test_layout_FlutterSoftwareBackingStore () { assert_eq ! (:: std :: mem :: size_of :: < FlutterSoftwareBackingStore > () , 40usize , concat ! ("Size of: " , stringify ! (FlutterSoftwareBackingStore))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterSoftwareBackingStore > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterSoftwareBackingStore))) ; fn test_field_allocation () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSoftwareBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . allocation) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterSoftwareBackingStore) , "::" , stringify ! (allocation))) ; } test_field_allocation () ; fn test_field_row_bytes () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSoftwareBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . row_bytes) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterSoftwareBackingStore) , "::" , stringify ! (row_bytes))) ; } test_field_row_bytes () ; fn test_field_height () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSoftwareBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . height) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterSoftwareBackingStore) , "::" , stringify ! (height))) ; } test_field_height () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSoftwareBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterSoftwareBackingStore) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_destruction_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSoftwareBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . destruction_callback) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterSoftwareBackingStore) , "::" , stringify ! (destruction_callback))) ; } test_field_destruction_callback () ; } # [repr (C)] # [derive (Copy , Clone)] pub struct FlutterMetalBackingStore { # [doc = " The size of this struct. Must be sizeof(FlutterMetalBackingStore)."] pub struct_size : size_t , pub __bindgen_anon_1 : FlutterMetalBackingStore__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union FlutterMetalBackingStore__bindgen_ty_1 { pub texture : FlutterMetalTexture , } # [test] fn bindgen_test_layout_FlutterMetalBackingStore__bindgen_ty_1 () { assert_eq ! (:: std :: mem :: size_of :: < FlutterMetalBackingStore__bindgen_ty_1 > () , 40usize , concat ! ("Size of: " , stringify ! (FlutterMetalBackingStore__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterMetalBackingStore__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterMetalBackingStore__bindgen_ty_1))) ; fn test_field_texture () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalBackingStore__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . texture) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalBackingStore__bindgen_ty_1) , "::" , stringify ! (texture))) ; } test_field_texture () ; } # [test] fn bindgen_test_layout_FlutterMetalBackingStore () { assert_eq ! (:: std :: mem :: size_of :: < FlutterMetalBackingStore > () , 48usize , concat ! ("Size of: " , stringify ! (FlutterMetalBackingStore))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterMetalBackingStore > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterMetalBackingStore))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalBackingStore) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterVulkanBackingStore { # [doc = " The size of this struct. Must be sizeof(FlutterVulkanBackingStore)."] pub struct_size : size_t , # [doc = " The image that the layer will be rendered to. This image must already be"] # [doc = " available for the engine to bind for writing when it's given to the engine"] # [doc = " via the backing store creation callback. The engine will perform a host"] # [doc = " sync for all layers prior to calling the compositor present callback, and"] # [doc = " so the written layer images can be freely bound by the embedder without"] # [doc = " any additional synchronization."] pub image : * const FlutterVulkanImage , # [doc = " A baton that is not interpreted by the engine in any way. It will be given"] # [doc = " back to the embedder in the destruction callback below. Embedder resources"] # [doc = " may be associated with this baton."] pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " The callback invoked by the engine when it no longer needs this backing"] # [doc = " store."] pub destruction_callback : VoidCallback , } # [test] fn bindgen_test_layout_FlutterVulkanBackingStore () { assert_eq ! (:: std :: mem :: size_of :: < FlutterVulkanBackingStore > () , 32usize , concat ! ("Size of: " , stringify ! (FlutterVulkanBackingStore))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterVulkanBackingStore > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterVulkanBackingStore))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanBackingStore) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_image () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . image) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanBackingStore) , "::" , stringify ! (image))) ; } test_field_image () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanBackingStore) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_destruction_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . destruction_callback) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanBackingStore) , "::" , stringify ! (destruction_callback))) ; } test_field_destruction_callback () ; } # [doc = " Indicates that the Flutter application requested that an opacity be"] # [doc = " applied to the platform view."] pub const FlutterPlatformViewMutationType_kFlutterPlatformViewMutationTypeOpacity : FlutterPlatformViewMutationType = 0 ; # [doc = " Indicates that the Flutter application requested that the platform view be"] # [doc = " clipped using a rectangle."] pub const FlutterPlatformViewMutationType_kFlutterPlatformViewMutationTypeClipRect : FlutterPlatformViewMutationType = 1 ; # [doc = " Indicates that the Flutter application requested that the platform view be"] # [doc = " clipped using a rounded rectangle."] pub const FlutterPlatformViewMutationType_kFlutterPlatformViewMutationTypeClipRoundedRect : FlutterPlatformViewMutationType = 2 ; # [doc = " Indicates that the Flutter application requested that the platform view be"] # [doc = " transformed before composition."] pub const FlutterPlatformViewMutationType_kFlutterPlatformViewMutationTypeTransformation : FlutterPlatformViewMutationType = 3 ; pub type FlutterPlatformViewMutationType = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct FlutterPlatformViewMutation { # [doc = " The type of the mutation described by the subsequent union."] pub type_ : FlutterPlatformViewMutationType , pub __bindgen_anon_1 : FlutterPlatformViewMutation__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union FlutterPlatformViewMutation__bindgen_ty_1 { pub opacity : f64 , pub clip_rect : FlutterRect , pub clip_rounded_rect : FlutterRoundedRect , pub transformation : FlutterTransformation , } # [test] fn bindgen_test_layout_FlutterPlatformViewMutation__bindgen_ty_1 () { assert_eq ! (:: std :: mem :: size_of :: < FlutterPlatformViewMutation__bindgen_ty_1 > () , 96usize , concat ! ("Size of: " , stringify ! (FlutterPlatformViewMutation__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterPlatformViewMutation__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterPlatformViewMutation__bindgen_ty_1))) ; fn test_field_opacity () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformViewMutation__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . opacity) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformViewMutation__bindgen_ty_1) , "::" , stringify ! (opacity))) ; } test_field_opacity () ; fn test_field_clip_rect () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformViewMutation__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . clip_rect) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformViewMutation__bindgen_ty_1) , "::" , stringify ! (clip_rect))) ; } test_field_clip_rect () ; fn test_field_clip_rounded_rect () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformViewMutation__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . clip_rounded_rect) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformViewMutation__bindgen_ty_1) , "::" , stringify ! (clip_rounded_rect))) ; } test_field_clip_rounded_rect () ; fn test_field_transformation () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformViewMutation__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . transformation) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformViewMutation__bindgen_ty_1) , "::" , stringify ! (transformation))) ; } test_field_transformation () ; } # [test] fn bindgen_test_layout_FlutterPlatformViewMutation () { assert_eq ! (:: std :: mem :: size_of :: < FlutterPlatformViewMutation > () , 104usize , concat ! ("Size of: " , stringify ! (FlutterPlatformViewMutation))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterPlatformViewMutation > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterPlatformViewMutation))) ; fn test_field_type () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformViewMutation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . type_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformViewMutation) , "::" , stringify ! (type_))) ; } test_field_type () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterPlatformView { # [doc = " The size of this struct. Must be sizeof(FlutterPlatformView)."] pub struct_size : size_t , # [doc = " The identifier of this platform view. This identifier is specified by the"] # [doc = " application when a platform view is added to the scene via the"] # [doc = " `SceneBuilder.addPlatformView` call."] pub identifier : FlutterPlatformViewIdentifier , # [doc = " The number of mutations to be applied to the platform view by the embedder"] # [doc = " before on-screen composition."] pub mutations_count : size_t , # [doc = " The mutations to be applied by this platform view before it is composited"] # [doc = " on-screen. The Flutter application may transform the platform view but"] # [doc = " these transformations cannot be affected by the Flutter compositor because"] # [doc = " it does not render platform views. Since the embedder is responsible for"] # [doc = " composition of these views, it is also the embedder's responsibility to"] # [doc = " affect the appropriate transformation."] # [doc = ""] # [doc = " The mutations must be applied in order. The mutations done in the"] # [doc = " collection don't take into account the device pixel ratio or the root"] # [doc = " surface transformation. If these exist, the first mutation in the list"] # [doc = " will be a transformation mutation to make sure subsequent mutations are in"] # [doc = " the correct coordinate space."] pub mutations : * mut * const FlutterPlatformViewMutation , } # [test] fn bindgen_test_layout_FlutterPlatformView () { assert_eq ! (:: std :: mem :: size_of :: < FlutterPlatformView > () , 32usize , concat ! ("Size of: " , stringify ! (FlutterPlatformView))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterPlatformView > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterPlatformView))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformView > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformView) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_identifier () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformView > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . identifier) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformView) , "::" , stringify ! (identifier))) ; } test_field_identifier () ; fn test_field_mutations_count () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformView > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . mutations_count) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformView) , "::" , stringify ! (mutations_count))) ; } test_field_mutations_count () ; fn test_field_mutations () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformView > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . mutations) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformView) , "::" , stringify ! (mutations))) ; } test_field_mutations () ; } # [doc = " Specifies an OpenGL backing store. Can either be an OpenGL texture or"] # [doc = " framebuffer."] pub const FlutterBackingStoreType_kFlutterBackingStoreTypeOpenGL : FlutterBackingStoreType = 0 ; # [doc = " Specified an software allocation for Flutter to render into using the CPU."] pub const FlutterBackingStoreType_kFlutterBackingStoreTypeSoftware : FlutterBackingStoreType = 1 ; # [doc = " Specifies a Metal backing store. This is backed by a Metal texture."] pub const FlutterBackingStoreType_kFlutterBackingStoreTypeMetal : FlutterBackingStoreType = 2 ; # [doc = " Specifies a Vulkan backing store. This is backed by a Vulkan VkImage."] pub const FlutterBackingStoreType_kFlutterBackingStoreTypeVulkan : FlutterBackingStoreType = 3 ; pub type FlutterBackingStoreType = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct FlutterBackingStore { # [doc = " The size of this struct. Must be sizeof(FlutterBackingStore)."] pub struct_size : size_t , # [doc = " A baton that is not interpreted by the engine in any way. The embedder may"] # [doc = " use this to associate resources that are tied to the lifecycle of the"] # [doc = " `FlutterBackingStore`."] pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " Specifies the type of backing store."] pub type_ : FlutterBackingStoreType , # [doc = " Indicates if this backing store was updated since the last time it was"] # [doc = " associated with a presented layer."] pub did_update : bool , pub __bindgen_anon_1 : FlutterBackingStore__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union FlutterBackingStore__bindgen_ty_1 { # [doc = " The description of the OpenGL backing store."] pub open_gl : FlutterOpenGLBackingStore , # [doc = " The description of the software backing store."] pub software : FlutterSoftwareBackingStore , pub metal : FlutterMetalBackingStore , pub vulkan : FlutterVulkanBackingStore , } # [test] fn bindgen_test_layout_FlutterBackingStore__bindgen_ty_1 () { assert_eq ! (:: std :: mem :: size_of :: < FlutterBackingStore__bindgen_ty_1 > () , 56usize , concat ! ("Size of: " , stringify ! (FlutterBackingStore__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterBackingStore__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterBackingStore__bindgen_ty_1))) ; fn test_field_open_gl () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStore__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . open_gl) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStore__bindgen_ty_1) , "::" , stringify ! (open_gl))) ; } test_field_open_gl () ; fn test_field_software () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStore__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . software) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStore__bindgen_ty_1) , "::" , stringify ! (software))) ; } test_field_software () ; fn test_field_metal () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStore__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . metal) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStore__bindgen_ty_1) , "::" , stringify ! (metal))) ; } test_field_metal () ; fn test_field_vulkan () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStore__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . vulkan) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStore__bindgen_ty_1) , "::" , stringify ! (vulkan))) ; } test_field_vulkan () ; } # [test] fn bindgen_test_layout_FlutterBackingStore () { assert_eq ! (:: std :: mem :: size_of :: < FlutterBackingStore > () , 80usize , concat ! ("Size of: " , stringify ! (FlutterBackingStore))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterBackingStore > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterBackingStore))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStore) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStore) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_type () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . type_) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStore) , "::" , stringify ! (type_))) ; } test_field_type () ; fn test_field_did_update () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . did_update) as usize - ptr as usize } , 20usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStore) , "::" , stringify ! (did_update))) ; } test_field_did_update () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterBackingStoreConfig { # [doc = " The size of this struct. Must be sizeof(FlutterBackingStoreConfig)."] pub struct_size : size_t , # [doc = " The size of the render target the engine expects to render into."] pub size : FlutterSize , } # [test] fn bindgen_test_layout_FlutterBackingStoreConfig () { assert_eq ! (:: std :: mem :: size_of :: < FlutterBackingStoreConfig > () , 24usize , concat ! ("Size of: " , stringify ! (FlutterBackingStoreConfig))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterBackingStoreConfig > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterBackingStoreConfig))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStoreConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStoreConfig) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStoreConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStoreConfig) , "::" , stringify ! (size))) ; } test_field_size () ; } # [doc = " Indicates that the contents of this layer are rendered by Flutter into a"] # [doc = " backing store."] pub const FlutterLayerContentType_kFlutterLayerContentTypeBackingStore : FlutterLayerContentType = 0 ; # [doc = " Indicates that the contents of this layer are determined by the embedder."] pub const FlutterLayerContentType_kFlutterLayerContentTypePlatformView : FlutterLayerContentType = 1 ; pub type FlutterLayerContentType = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct FlutterLayer { # [doc = " This size of this struct. Must be sizeof(FlutterLayer)."] pub struct_size : size_t , # [doc = " Each layer displays contents in one way or another. The type indicates"] # [doc = " whether those contents are specified by Flutter or the embedder."] pub type_ : FlutterLayerContentType , pub __bindgen_anon_1 : FlutterLayer__bindgen_ty_1 , # [doc = " The offset of this layer (in physical pixels) relative to the top left of"] # [doc = " the root surface used by the engine."] pub offset : FlutterPoint , # [doc = " The size of the layer (in physical pixels)."] pub size : FlutterSize , } # [repr (C)] # [derive (Copy , Clone)] pub union FlutterLayer__bindgen_ty_1 { # [doc = " Indicates that the contents of this layer are rendered by Flutter into a"] # [doc = " backing store."] pub backing_store : * const FlutterBackingStore , # [doc = " Indicates that the contents of this layer are determined by the"] # [doc = " embedder."] pub platform_view : * const FlutterPlatformView , } # [test] fn bindgen_test_layout_FlutterLayer__bindgen_ty_1 () { assert_eq ! (:: std :: mem :: size_of :: < FlutterLayer__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (FlutterLayer__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterLayer__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterLayer__bindgen_ty_1))) ; fn test_field_backing_store () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLayer__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . backing_store) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterLayer__bindgen_ty_1) , "::" , stringify ! (backing_store))) ; } test_field_backing_store () ; fn test_field_platform_view () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLayer__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . platform_view) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterLayer__bindgen_ty_1) , "::" , stringify ! (platform_view))) ; } test_field_platform_view () ; } # [test] fn bindgen_test_layout_FlutterLayer () { assert_eq ! (:: std :: mem :: size_of :: < FlutterLayer > () , 56usize , concat ! ("Size of: " , stringify ! (FlutterLayer))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterLayer > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterLayer))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLayer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterLayer) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_type () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLayer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . type_) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterLayer) , "::" , stringify ! (type_))) ; } test_field_type () ; fn test_field_offset () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLayer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . offset) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterLayer) , "::" , stringify ! (offset))) ; } test_field_offset () ; fn test_field_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLayer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . size) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterLayer) , "::" , stringify ! (size))) ; } test_field_size () ; } pub type FlutterBackingStoreCreateCallback = :: std :: option :: Option < unsafe extern "C" fn (config : * const FlutterBackingStoreConfig , backing_store_out : * mut FlutterBackingStore , user_data : * mut :: std :: os :: raw :: c_void) -> bool > ; pub type FlutterBackingStoreCollectCallback = :: std :: option :: Option < unsafe extern "C" fn (renderer : * const FlutterBackingStore , user_data : * mut :: std :: os :: raw :: c_void) -> bool > ; pub type FlutterLayersPresentCallback = :: std :: option :: Option < unsafe extern "C" fn (layers : * mut * const FlutterLayer , layers_count : size_t , user_data : * mut :: std :: os :: raw :: c_void) -> bool > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterCompositor { # [doc = " This size of this struct. Must be sizeof(FlutterCompositor)."] pub struct_size : size_t , # [doc = " A baton that in not interpreted by the engine in any way. If it passed"] # [doc = " back to the embedder in `FlutterCompositor.create_backing_store_callback`,"] # [doc = " `FlutterCompositor.collect_backing_store_callback` and"] # [doc = " `FlutterCompositor.present_layers_callback`"] pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " A callback invoked by the engine to obtain a backing store for a specific"] # [doc = " `FlutterLayer`."] # [doc = ""] # [doc = " On ABI stability: Callers must take care to restrict access within"] # [doc = " `FlutterBackingStore::struct_size` when specifying a new backing store to"] # [doc = " the engine. This only matters if the embedder expects to be used with"] # [doc = " engines older than the version whose headers it used during compilation."] pub create_backing_store_callback : FlutterBackingStoreCreateCallback , # [doc = " A callback invoked by the engine to release the backing store. The"] # [doc = " embedder may collect any resources associated with the backing store."] pub collect_backing_store_callback : FlutterBackingStoreCollectCallback , # [doc = " Callback invoked by the engine to composite the contents of each layer"] # [doc = " onto the screen."] pub present_layers_callback : FlutterLayersPresentCallback , # [doc = " Avoid caching backing stores provided by this compositor."] pub avoid_backing_store_cache : bool , } # [test] fn bindgen_test_layout_FlutterCompositor () { assert_eq ! (:: std :: mem :: size_of :: < FlutterCompositor > () , 48usize , concat ! ("Size of: " , stringify ! (FlutterCompositor))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterCompositor > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterCompositor))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCompositor > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterCompositor) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCompositor > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterCompositor) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_create_backing_store_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCompositor > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . create_backing_store_callback) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterCompositor) , "::" , stringify ! (create_backing_store_callback))) ; } test_field_create_backing_store_callback () ; fn test_field_collect_backing_store_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCompositor > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . collect_backing_store_callback) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterCompositor) , "::" , stringify ! (collect_backing_store_callback))) ; } test_field_collect_backing_store_callback () ; fn test_field_present_layers_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCompositor > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . present_layers_callback) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterCompositor) , "::" , stringify ! (present_layers_callback))) ; } test_field_present_layers_callback () ; fn test_field_avoid_backing_store_cache () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCompositor > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . avoid_backing_store_cache) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterCompositor) , "::" , stringify ! (avoid_backing_store_cache))) ; } test_field_avoid_backing_store_cache () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterLocale { # [doc = " This size of this struct. Must be sizeof(FlutterLocale)."] pub struct_size : size_t , # [doc = " The language code of the locale. For example, \"en\". This is a required"] # [doc = " field. The string must be null terminated. It may be collected after the"] # [doc = " call to `FlutterEngineUpdateLocales`."] pub language_code : * const :: std :: os :: raw :: c_char , # [doc = " The country code of the locale. For example, \"US\". This is a an optional"] # [doc = " field. The string must be null terminated if present. It may be collected"] # [doc = " after the call to `FlutterEngineUpdateLocales`. If not present, a"] # [doc = " `nullptr` may be specified."] pub country_code : * const :: std :: os :: raw :: c_char , # [doc = " The script code of the locale. This is a an optional field. The string"] # [doc = " must be null terminated if present. It may be collected after the call to"] # [doc = " `FlutterEngineUpdateLocales`. If not present, a `nullptr` may be"] # [doc = " specified."] pub script_code : * const :: std :: os :: raw :: c_char , # [doc = " The variant code of the locale. This is a an optional field. The string"] # [doc = " must be null terminated if present. It may be collected after the call to"] # [doc = " `FlutterEngineUpdateLocales`. If not present, a `nullptr` may be"] # [doc = " specified."] pub variant_code : * const :: std :: os :: raw :: c_char , } # [test] fn bindgen_test_layout_FlutterLocale () { assert_eq ! (:: std :: mem :: size_of :: < FlutterLocale > () , 40usize , concat ! ("Size of: " , stringify ! (FlutterLocale))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterLocale > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterLocale))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLocale > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterLocale) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_language_code () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLocale > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . language_code) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterLocale) , "::" , stringify ! (language_code))) ; } test_field_language_code () ; fn test_field_country_code () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLocale > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . country_code) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterLocale) , "::" , stringify ! (country_code))) ; } test_field_country_code () ; fn test_field_script_code () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLocale > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . script_code) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterLocale) , "::" , stringify ! (script_code))) ; } test_field_script_code () ; fn test_field_variant_code () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLocale > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . variant_code) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterLocale) , "::" , stringify ! (variant_code))) ; } test_field_variant_code () ; } # [doc = " Callback that returns the system locale."] # [doc = ""] # [doc = " Embedders that implement this callback should return the `FlutterLocale`"] # [doc = " from the `supported_locales` list that most closely matches the"] # [doc = " user/device's preferred locale."] # [doc = ""] # [doc = " This callback does not currently provide the user_data baton."] # [doc = " https://github.com/flutter/flutter/issues/79826"] pub type FlutterComputePlatformResolvedLocaleCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut * const FlutterLocale , arg2 : size_t) -> * const FlutterLocale > ; # [doc = " Display refers to a graphics hardware system consisting of a framebuffer,"] # [doc = " typically a monitor or a screen. This ID is unique per display and is"] # [doc = " stable until the Flutter application restarts."] pub type FlutterEngineDisplayId = u64 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterEngineDisplay { # [doc = " This size of this struct. Must be sizeof(FlutterDisplay)."] pub struct_size : size_t , pub display_id : FlutterEngineDisplayId , # [doc = " This is set to true if the embedder only has one display. In cases where"] # [doc = " this is set to true, the value of display_id is ignored. In cases where"] # [doc = " this is not set to true, it is expected that a valid display_id be"] # [doc = " provided."] pub single_display : bool , # [doc = " This represents the refresh period in frames per second. This value may be"] # [doc = " zero if the device is not running or unavailable or unknown."] pub refresh_rate : f64 , } # [test] fn bindgen_test_layout_FlutterEngineDisplay () { assert_eq ! (:: std :: mem :: size_of :: < FlutterEngineDisplay > () , 32usize , concat ! ("Size of: " , stringify ! (FlutterEngineDisplay))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterEngineDisplay > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterEngineDisplay))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDisplay > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDisplay) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_display_id () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDisplay > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . display_id) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDisplay) , "::" , stringify ! (display_id))) ; } test_field_display_id () ; fn test_field_single_display () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDisplay > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . single_display) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDisplay) , "::" , stringify ! (single_display))) ; } test_field_single_display () ; fn test_field_refresh_rate () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDisplay > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . refresh_rate) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDisplay) , "::" , stringify ! (refresh_rate))) ; } test_field_refresh_rate () ; } # [doc = " `FlutterEngineDisplay`s that were active during start-up. A display is"] # [doc = " considered active if:"] # [doc = "    1. The frame buffer hardware is connected."] # [doc = "    2. The display is drawable, e.g. it isn't being mirrored from another"] # [doc = "    connected display or sleeping."] pub const FlutterEngineDisplaysUpdateType_kFlutterEngineDisplaysUpdateTypeStartup : FlutterEngineDisplaysUpdateType = 0 ; # [doc = " `FlutterEngineDisplay`s that were active during start-up. A display is"] # [doc = " considered active if:"] # [doc = "    1. The frame buffer hardware is connected."] # [doc = "    2. The display is drawable, e.g. it isn't being mirrored from another"] # [doc = "    connected display or sleeping."] pub const FlutterEngineDisplaysUpdateType_kFlutterEngineDisplaysUpdateTypeCount : FlutterEngineDisplaysUpdateType = 1 ; # [doc = " The update type parameter that is passed to"] # [doc = " `FlutterEngineNotifyDisplayUpdate`."] pub type FlutterEngineDisplaysUpdateType = :: std :: os :: raw :: c_uint ; pub type FlutterEngineDartPort = i64 ; pub const FlutterEngineDartObjectType_kFlutterEngineDartObjectTypeNull : FlutterEngineDartObjectType = 0 ; pub const FlutterEngineDartObjectType_kFlutterEngineDartObjectTypeBool : FlutterEngineDartObjectType = 1 ; pub const FlutterEngineDartObjectType_kFlutterEngineDartObjectTypeInt32 : FlutterEngineDartObjectType = 2 ; pub const FlutterEngineDartObjectType_kFlutterEngineDartObjectTypeInt64 : FlutterEngineDartObjectType = 3 ; pub const FlutterEngineDartObjectType_kFlutterEngineDartObjectTypeDouble : FlutterEngineDartObjectType = 4 ; pub const FlutterEngineDartObjectType_kFlutterEngineDartObjectTypeString : FlutterEngineDartObjectType = 5 ; # [doc = " The object will be made available to Dart code as an instance of"] # [doc = " Uint8List."] pub const FlutterEngineDartObjectType_kFlutterEngineDartObjectTypeBuffer : FlutterEngineDartObjectType = 6 ; pub type FlutterEngineDartObjectType = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterEngineDartBuffer { # [doc = " The size of this struct. Must be sizeof(FlutterEngineDartBuffer)."] pub struct_size : size_t , # [doc = " An opaque baton passed back to the embedder when the"] # [doc = " buffer_collect_callback is invoked. The engine does not interpret this"] # [doc = " field in any way."] pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " This is an optional field."] # [doc = ""] # [doc = " When specified, the engine will assume that the buffer is owned by the"] # [doc = " embedder. When the data is no longer needed by any isolate, this callback"] # [doc = " will be made on an internal engine managed thread. The embedder is free to"] # [doc = " collect the buffer here. When this field is specified, it is the embedders"] # [doc = " responsibility to keep the buffer alive and not modify it till this"] # [doc = " callback is invoked by the engine. The user data specified in the callback"] # [doc = " is the value of `user_data` field in this struct."] # [doc = ""] # [doc = " When NOT specified, the VM creates an internal copy of the buffer. The"] # [doc = " caller is free to modify the buffer as necessary or collect it immediately"] # [doc = " after the call to `FlutterEnginePostDartObject`."] # [doc = ""] # [doc = " @attention      The buffer_collect_callback is will only be invoked by the"] # [doc = "                 engine when the `FlutterEnginePostDartObject` method"] # [doc = "                 returns kSuccess. In case of non-successful calls to this"] # [doc = "                 method, it is the embedders responsibility to collect the"] # [doc = "                 buffer."] pub buffer_collect_callback : VoidCallback , # [doc = " A pointer to the bytes of the buffer. When the buffer is owned by the"] # [doc = " embedder (by specifying the `buffer_collect_callback`), Dart code may"] # [doc = " modify that embedder owned buffer. For this reason, it is important that"] # [doc = " this buffer not have page protections that restrict writing to this"] # [doc = " buffer."] pub buffer : * mut u8 , # [doc = " The size of the buffer."] pub buffer_size : size_t , } # [test] fn bindgen_test_layout_FlutterEngineDartBuffer () { assert_eq ! (:: std :: mem :: size_of :: < FlutterEngineDartBuffer > () , 40usize , concat ! ("Size of: " , stringify ! (FlutterEngineDartBuffer))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterEngineDartBuffer > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterEngineDartBuffer))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartBuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartBuffer) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartBuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartBuffer) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_buffer_collect_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartBuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . buffer_collect_callback) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartBuffer) , "::" , stringify ! (buffer_collect_callback))) ; } test_field_buffer_collect_callback () ; fn test_field_buffer () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartBuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . buffer) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartBuffer) , "::" , stringify ! (buffer))) ; } test_field_buffer () ; fn test_field_buffer_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartBuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . buffer_size) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartBuffer) , "::" , stringify ! (buffer_size))) ; } test_field_buffer_size () ; } # [doc = " This struct specifies the native representation of a Dart object that can be"] # [doc = " sent via a send port to any isolate in the VM that has the corresponding"] # [doc = " receive port."] # [doc = ""] # [doc = " All fields in this struct are copied out in the call to"] # [doc = " `FlutterEnginePostDartObject` and the caller is free to reuse or collect"] # [doc = " this struct after that call."] # [repr (C)] # [derive (Copy , Clone)] pub struct FlutterEngineDartObject { pub type_ : FlutterEngineDartObjectType , pub __bindgen_anon_1 : FlutterEngineDartObject__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union FlutterEngineDartObject__bindgen_ty_1 { pub bool_value : bool , pub int32_value : i32 , pub int64_value : i64 , pub double_value : f64 , # [doc = " A null terminated string. This string will be copied by the VM in the"] # [doc = " call to `FlutterEnginePostDartObject` and must be collected by the"] # [doc = " embedder after that call is made."] pub string_value : * const :: std :: os :: raw :: c_char , pub buffer_value : * const FlutterEngineDartBuffer , } # [test] fn bindgen_test_layout_FlutterEngineDartObject__bindgen_ty_1 () { assert_eq ! (:: std :: mem :: size_of :: < FlutterEngineDartObject__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (FlutterEngineDartObject__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterEngineDartObject__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterEngineDartObject__bindgen_ty_1))) ; fn test_field_bool_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartObject__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . bool_value) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartObject__bindgen_ty_1) , "::" , stringify ! (bool_value))) ; } test_field_bool_value () ; fn test_field_int32_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartObject__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . int32_value) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartObject__bindgen_ty_1) , "::" , stringify ! (int32_value))) ; } test_field_int32_value () ; fn test_field_int64_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartObject__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . int64_value) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartObject__bindgen_ty_1) , "::" , stringify ! (int64_value))) ; } test_field_int64_value () ; fn test_field_double_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartObject__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . double_value) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartObject__bindgen_ty_1) , "::" , stringify ! (double_value))) ; } test_field_double_value () ; fn test_field_string_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartObject__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . string_value) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartObject__bindgen_ty_1) , "::" , stringify ! (string_value))) ; } test_field_string_value () ; fn test_field_buffer_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartObject__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . buffer_value) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartObject__bindgen_ty_1) , "::" , stringify ! (buffer_value))) ; } test_field_buffer_value () ; } # [test] fn bindgen_test_layout_FlutterEngineDartObject () { assert_eq ! (:: std :: mem :: size_of :: < FlutterEngineDartObject > () , 16usize , concat ! ("Size of: " , stringify ! (FlutterEngineDartObject))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterEngineDartObject > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterEngineDartObject))) ; fn test_field_type () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartObject > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . type_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartObject) , "::" , stringify ! (type_))) ; } test_field_type () ; } # [doc = " The Flutter Engine considers the thread on which the FlutterEngineRun call"] # [doc = " is made to be the platform thread. There is only one such thread per"] # [doc = " engine instance."] pub const FlutterNativeThreadType_kFlutterNativeThreadTypePlatform : FlutterNativeThreadType = 0 ; # [doc = " This is the thread the Flutter Engine uses to execute rendering commands"] # [doc = " based on the selected client rendering API. There is only one such thread"] # [doc = " per engine instance."] pub const FlutterNativeThreadType_kFlutterNativeThreadTypeRender : FlutterNativeThreadType = 1 ; # [doc = " This is a dedicated thread on which the root Dart isolate is serviced."] # [doc = " There is only one such thread per engine instance."] pub const FlutterNativeThreadType_kFlutterNativeThreadTypeUI : FlutterNativeThreadType = 2 ; # [doc = " Multiple threads are used by the Flutter engine to perform long running"] # [doc = " background tasks."] pub const FlutterNativeThreadType_kFlutterNativeThreadTypeWorker : FlutterNativeThreadType = 3 ; # [doc = " This enum allows embedders to determine the type of the engine thread in the"] # [doc = " FlutterNativeThreadCallback. Based on the thread type, the embedder may be"] # [doc = " able to tweak the thread priorities for optimum performance."] pub type FlutterNativeThreadType = :: std :: os :: raw :: c_uint ; # [doc = " A callback made by the engine in response to"] # [doc = " `FlutterEnginePostCallbackOnAllNativeThreads` on all internal thread."] pub type FlutterNativeThreadCallback = :: std :: option :: Option < unsafe extern "C" fn (type_ : FlutterNativeThreadType , user_data : * mut :: std :: os :: raw :: c_void) > ; pub const FlutterEngineAOTDataSourceType_kFlutterEngineAOTDataSourceTypeElfPath : FlutterEngineAOTDataSourceType = 0 ; # [doc = " AOT data source type."] pub type FlutterEngineAOTDataSourceType = :: std :: os :: raw :: c_uint ; # [doc = " This struct specifies one of the various locations the engine can look for"] # [doc = " AOT data sources."] # [repr (C)] # [derive (Copy , Clone)] pub struct FlutterEngineAOTDataSource { pub type_ : FlutterEngineAOTDataSourceType , pub __bindgen_anon_1 : FlutterEngineAOTDataSource__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union FlutterEngineAOTDataSource__bindgen_ty_1 { # [doc = " Absolute path to an ELF library file."] pub elf_path : * const :: std :: os :: raw :: c_char , } # [test] fn bindgen_test_layout_FlutterEngineAOTDataSource__bindgen_ty_1 () { assert_eq ! (:: std :: mem :: size_of :: < FlutterEngineAOTDataSource__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (FlutterEngineAOTDataSource__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterEngineAOTDataSource__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterEngineAOTDataSource__bindgen_ty_1))) ; fn test_field_elf_path () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineAOTDataSource__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . elf_path) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineAOTDataSource__bindgen_ty_1) , "::" , stringify ! (elf_path))) ; } test_field_elf_path () ; } # [test] fn bindgen_test_layout_FlutterEngineAOTDataSource () { assert_eq ! (:: std :: mem :: size_of :: < FlutterEngineAOTDataSource > () , 16usize , concat ! ("Size of: " , stringify ! (FlutterEngineAOTDataSource))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterEngineAOTDataSource > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterEngineAOTDataSource))) ; fn test_field_type () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineAOTDataSource > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . type_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineAOTDataSource) , "::" , stringify ! (type_))) ; } test_field_type () ; } pub type FlutterLogMessageCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_char , arg2 : * const :: std :: os :: raw :: c_char , arg3 : * mut :: std :: os :: raw :: c_void) > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _FlutterEngineAOTData { _unused : [u8 ; 0] , } # [doc = " An opaque object that describes the AOT data that can be used to launch a"] # [doc = " FlutterEngine instance in AOT mode."] pub type FlutterEngineAOTData = * mut _FlutterEngineAOTData ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterProjectArgs { # [doc = " The size of this struct. Must be sizeof(FlutterProjectArgs)."] pub struct_size : size_t , # [doc = " The path to the Flutter assets directory containing project assets. The"] # [doc = " string can be collected after the call to `FlutterEngineRun` returns. The"] # [doc = " string must be NULL terminated."] pub assets_path : * const :: std :: os :: raw :: c_char , # [doc = " The path to the Dart file containing the `main` entry point."] # [doc = " The string can be collected after the call to `FlutterEngineRun` returns."] # [doc = " The string must be NULL terminated."] # [doc = ""] # [doc = " @deprecated     As of Dart 2, running from Dart source is no longer"] # [doc = "                 supported. Dart code should now be compiled to kernel form"] # [doc = "                 and will be loaded by from `kernel_blob.bin` in the assets"] # [doc = "                 directory. This struct member is retained for ABI"] # [doc = "                 stability."] pub main_path__unused__ : * const :: std :: os :: raw :: c_char , # [doc = " The path to the `.packages` file for the project. The string can be"] # [doc = " collected after the call to `FlutterEngineRun` returns. The string must be"] # [doc = " NULL terminated."] # [doc = ""] # [doc = " @deprecated    As of Dart 2, running from Dart source is no longer"] # [doc = "                supported. Dart code should now be compiled to kernel form"] # [doc = "                and will be loaded by from `kernel_blob.bin` in the assets"] # [doc = "                directory. This struct member is retained for ABI"] # [doc = "                stability."] pub packages_path__unused__ : * const :: std :: os :: raw :: c_char , # [doc = " The path to the `icudtl.dat` file for the project. The string can be"] # [doc = " collected after the call to `FlutterEngineRun` returns. The string must"] # [doc = " be NULL terminated."] pub icu_data_path : * const :: std :: os :: raw :: c_char , # [doc = " The command line argument count used to initialize the project."] pub command_line_argc : :: std :: os :: raw :: c_int , # [doc = " The command line arguments used to initialize the project. The strings can"] # [doc = " be collected after the call to `FlutterEngineRun` returns. The strings"] # [doc = " must be `NULL` terminated."] # [doc = ""] # [doc = " @attention     The first item in the command line (if specified at all) is"] # [doc = "                interpreted as the executable name. So if an engine flag"] # [doc = "                needs to be passed into the same, it needs to not be the"] # [doc = "                very first item in the list."] # [doc = ""] # [doc = " The set of engine flags are only meant to control"] # [doc = " unstable features in the engine. Deployed applications should not pass any"] # [doc = " command line arguments at all as they may affect engine stability at"] # [doc = " runtime in the presence of un-sanitized input. The list of currently"] # [doc = " recognized engine flags and their descriptions can be retrieved from the"] # [doc = " `switches.h` engine source file."] pub command_line_argv : * const * const :: std :: os :: raw :: c_char , # [doc = " The callback invoked by the engine in order to give the embedder the"] # [doc = " chance to respond to platform messages from the Dart application."] # [doc = " The callback will be invoked on the thread on which the `FlutterEngineRun`"] # [doc = " call is made. The second parameter, `user_data`, is supplied when"] # [doc = " `FlutterEngineRun` or `FlutterEngineInitialize` is called."] pub platform_message_callback : FlutterPlatformMessageCallback , # [doc = " The VM snapshot data buffer used in AOT operation. This buffer must be"] # [doc = " mapped in as read-only. For more information refer to the documentation on"] # [doc = " the Wiki at"] # [doc = " https://github.com/flutter/flutter/wiki/Flutter-engine-operation-in-AOT-Mode"] pub vm_snapshot_data : * const u8 , # [doc = " The size of the VM snapshot data buffer.  If vm_snapshot_data is a symbol"] # [doc = " reference, 0 may be passed here."] pub vm_snapshot_data_size : size_t , # [doc = " The VM snapshot instructions buffer used in AOT operation. This buffer"] # [doc = " must be mapped in as read-execute. For more information refer to the"] # [doc = " documentation on the Wiki at"] # [doc = " https://github.com/flutter/flutter/wiki/Flutter-engine-operation-in-AOT-Mode"] pub vm_snapshot_instructions : * const u8 , # [doc = " The size of the VM snapshot instructions buffer. If"] # [doc = " vm_snapshot_instructions is a symbol reference, 0 may be passed here."] pub vm_snapshot_instructions_size : size_t , # [doc = " The isolate snapshot data buffer used in AOT operation. This buffer must"] # [doc = " be mapped in as read-only. For more information refer to the documentation"] # [doc = " on the Wiki at"] # [doc = " https://github.com/flutter/flutter/wiki/Flutter-engine-operation-in-AOT-Mode"] pub isolate_snapshot_data : * const u8 , # [doc = " The size of the isolate snapshot data buffer.  If isolate_snapshot_data is"] # [doc = " a symbol reference, 0 may be passed here."] pub isolate_snapshot_data_size : size_t , # [doc = " The isolate snapshot instructions buffer used in AOT operation. This"] # [doc = " buffer must be mapped in as read-execute. For more information refer to"] # [doc = " the documentation on the Wiki at"] # [doc = " https://github.com/flutter/flutter/wiki/Flutter-engine-operation-in-AOT-Mode"] pub isolate_snapshot_instructions : * const u8 , # [doc = " The size of the isolate snapshot instructions buffer. If"] # [doc = " isolate_snapshot_instructions is a symbol reference, 0 may be passed here."] pub isolate_snapshot_instructions_size : size_t , # [doc = " The callback invoked by the engine in root isolate scope. Called"] # [doc = " immediately after the root isolate has been created and marked runnable."] pub root_isolate_create_callback : VoidCallback , # [doc = " The callback invoked by the engine in order to give the embedder the"] # [doc = " chance to respond to semantics node updates from the Dart application."] # [doc = " Semantics node updates are sent in batches terminated by a 'batch end'"] # [doc = " callback that is passed a sentinel `FlutterSemanticsNode` whose `id` field"] # [doc = " has the value `kFlutterSemanticsNodeIdBatchEnd`."] # [doc = ""] # [doc = " The callback will be invoked on the thread on which the `FlutterEngineRun`"] # [doc = " call is made."] pub update_semantics_node_callback : FlutterUpdateSemanticsNodeCallback , # [doc = " The callback invoked by the engine in order to give the embedder the"] # [doc = " chance to respond to updates to semantics custom actions from the Dart"] # [doc = " application.  Custom action updates are sent in batches terminated by a"] # [doc = " 'batch end' callback that is passed a sentinel"] # [doc = " `FlutterSemanticsCustomAction` whose `id` field has the value"] # [doc = " `kFlutterSemanticsCustomActionIdBatchEnd`."] # [doc = ""] # [doc = " The callback will be invoked on the thread on which the `FlutterEngineRun`"] # [doc = " call is made."] pub update_semantics_custom_action_callback : FlutterUpdateSemanticsCustomActionCallback , # [doc = " Path to a directory used to store data that is cached across runs of a"] # [doc = " Flutter application (such as compiled shader programs used by Skia)."] # [doc = " This is optional.  The string must be NULL terminated."] # [doc = ""] pub persistent_cache_path : * const :: std :: os :: raw :: c_char , # [doc = " If true, the engine would only read the existing cache, but not write new"] # [doc = " ones."] pub is_persistent_cache_read_only : bool , # [doc = " A callback that gets invoked by the engine when it attempts to wait for a"] # [doc = " platform vsync event. The engine will give the platform a baton that needs"] # [doc = " to be returned back to the engine via `FlutterEngineOnVsync`. All batons"] # [doc = " must be retured to the engine before initializing a"] # [doc = " `FlutterEngineShutdown`. Not doing the same will result in a memory leak."] # [doc = " While the call to `FlutterEngineOnVsync` must occur on the thread that"] # [doc = " made the call to `FlutterEngineRun`, the engine will make this callback on"] # [doc = " an internal engine-managed thread. If the components accessed on the"] # [doc = " embedder are not thread safe, the appropriate re-threading must be done."] pub vsync_callback : VsyncCallback , # [doc = " The name of a custom Dart entrypoint. This is optional and specifying a"] # [doc = " null or empty entrypoint makes the engine look for a method named \"main\""] # [doc = " in the root library of the application."] # [doc = ""] # [doc = " Care must be taken to ensure that the custom entrypoint is not tree-shaken"] # [doc = " away. Usually, this is done using the `@pragma('vm:entry-point')`"] # [doc = " decoration."] pub custom_dart_entrypoint : * const :: std :: os :: raw :: c_char , # [doc = " Typically the Flutter engine create and manages its internal threads. This"] # [doc = " optional argument allows for the specification of task runner interfaces"] # [doc = " to event loops managed by the embedder on threads it creates."] pub custom_task_runners : * const FlutterCustomTaskRunners , # [doc = " All `FlutterEngine` instances in the process share the same Dart VM. When"] # [doc = " the first engine is launched, it starts the Dart VM as well. It used to be"] # [doc = " the case that it was not possible to shutdown the Dart VM cleanly and"] # [doc = " start it back up in the process in a safe manner. This issue has since"] # [doc = " been patched. Unfortunately, applications already began to make use of the"] # [doc = " fact that shutting down the Flutter engine instance left a running VM in"] # [doc = " the process. Since a Flutter engine could be launched on any thread,"] # [doc = " applications would \"warm up\" the VM on another thread by launching"] # [doc = " an engine with no isolates and then shutting it down immediately. The main"] # [doc = " Flutter application could then be started on the main thread without"] # [doc = " having to incur the Dart VM startup costs at that time. With the new"] # [doc = " behavior, this \"optimization\" immediately becomes massive performance"] # [doc = " pessimization as the VM would be started up in the \"warm up\" phase, shut"] # [doc = " down there and then started again on the main thread. Changing this"] # [doc = " behavior was deemed to be an unacceptable breaking change. Embedders that"] # [doc = " wish to shutdown the Dart VM when the last engine is terminated in the"] # [doc = " process should opt into this behavior by setting this flag to true."] pub shutdown_dart_vm_when_done : bool , # [doc = " Typically, Flutter renders the layer hierarchy into a single root surface."] # [doc = " However, when embedders need to interleave their own contents within the"] # [doc = " Flutter layer hierarchy, their applications can push platform views within"] # [doc = " the Flutter scene. This is done using the `SceneBuilder.addPlatformView`"] # [doc = " call. When this happens, the Flutter rasterizer divides the effective view"] # [doc = " hierarchy into multiple layers. Each layer gets its own backing store and"] # [doc = " Flutter renders into the same. Once the layers contents have been"] # [doc = " fulfilled, the embedder is asked to composite these layers on-screen. At"] # [doc = " this point, it can interleave its own contents within the effective"] # [doc = " hierarchy. The interface for the specification of these layer backing"] # [doc = " stores and the hooks to listen for the composition of layers on-screen can"] # [doc = " be controlled using this field. This field is completely optional. In its"] # [doc = " absence, platforms views in the scene are ignored and Flutter renders to"] # [doc = " the root surface as normal."] pub compositor : * const FlutterCompositor , # [doc = " Max size of the old gen heap for the Dart VM in MB, or 0 for unlimited, -1"] # [doc = " for default value."] # [doc = ""] # [doc = " See also:"] # [doc = " https://github.com/dart-lang/sdk/blob/ca64509108b3e7219c50d6c52877c85ab6a35ff2/runtime/vm/flag_list.h#L150"] pub dart_old_gen_heap_size : i64 , # [doc = " The AOT data to be used in AOT operation."] # [doc = ""] # [doc = " Embedders should instantiate and destroy this object via the"] # [doc = " FlutterEngineCreateAOTData and FlutterEngineCollectAOTData methods."] # [doc = ""] # [doc = " Embedders can provide either snapshot buffers or aot_data, but not both."] pub aot_data : FlutterEngineAOTData , # [doc = " A callback that computes the locale the platform would natively resolve"] # [doc = " to."] # [doc = ""] # [doc = " The input parameter is an array of FlutterLocales which represent the"] # [doc = " locales supported by the app. One of the input supported locales should"] # [doc = " be selected and returned to best match with the user/device's preferred"] # [doc = " locale. The implementation should produce a result that as closely"] # [doc = " matches what the platform would natively resolve to as possible."] pub compute_platform_resolved_locale_callback : FlutterComputePlatformResolvedLocaleCallback , # [doc = " The command line argument count for arguments passed through to the Dart"] # [doc = " entrypoint."] pub dart_entrypoint_argc : :: std :: os :: raw :: c_int , # [doc = " The command line arguments passed through to the Dart entrypoint. The"] # [doc = " strings must be `NULL` terminated."] # [doc = ""] # [doc = " The strings will be copied out and so any strings passed in here can"] # [doc = " be safely collected after initializing the engine with"] # [doc = " `FlutterProjectArgs`."] pub dart_entrypoint_argv : * const * const :: std :: os :: raw :: c_char , pub log_message_callback : FlutterLogMessageCallback , pub log_tag : * const :: std :: os :: raw :: c_char , pub on_pre_engine_restart_callback : OnPreEngineRestartCallback , } # [test] fn bindgen_test_layout_FlutterProjectArgs () { assert_eq ! (:: std :: mem :: size_of :: < FlutterProjectArgs > () , 272usize , concat ! ("Size of: " , stringify ! (FlutterProjectArgs))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterProjectArgs > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterProjectArgs))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_assets_path () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . assets_path) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (assets_path))) ; } test_field_assets_path () ; fn test_field_main_path__unused__ () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . main_path__unused__) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (main_path__unused__))) ; } test_field_main_path__unused__ () ; fn test_field_packages_path__unused__ () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . packages_path__unused__) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (packages_path__unused__))) ; } test_field_packages_path__unused__ () ; fn test_field_icu_data_path () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . icu_data_path) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (icu_data_path))) ; } test_field_icu_data_path () ; fn test_field_command_line_argc () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . command_line_argc) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (command_line_argc))) ; } test_field_command_line_argc () ; fn test_field_command_line_argv () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . command_line_argv) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (command_line_argv))) ; } test_field_command_line_argv () ; fn test_field_platform_message_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . platform_message_callback) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (platform_message_callback))) ; } test_field_platform_message_callback () ; fn test_field_vm_snapshot_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . vm_snapshot_data) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (vm_snapshot_data))) ; } test_field_vm_snapshot_data () ; fn test_field_vm_snapshot_data_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . vm_snapshot_data_size) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (vm_snapshot_data_size))) ; } test_field_vm_snapshot_data_size () ; fn test_field_vm_snapshot_instructions () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . vm_snapshot_instructions) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (vm_snapshot_instructions))) ; } test_field_vm_snapshot_instructions () ; fn test_field_vm_snapshot_instructions_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . vm_snapshot_instructions_size) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (vm_snapshot_instructions_size))) ; } test_field_vm_snapshot_instructions_size () ; fn test_field_isolate_snapshot_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . isolate_snapshot_data) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (isolate_snapshot_data))) ; } test_field_isolate_snapshot_data () ; fn test_field_isolate_snapshot_data_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . isolate_snapshot_data_size) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (isolate_snapshot_data_size))) ; } test_field_isolate_snapshot_data_size () ; fn test_field_isolate_snapshot_instructions () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . isolate_snapshot_instructions) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (isolate_snapshot_instructions))) ; } test_field_isolate_snapshot_instructions () ; fn test_field_isolate_snapshot_instructions_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . isolate_snapshot_instructions_size) as usize - ptr as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (isolate_snapshot_instructions_size))) ; } test_field_isolate_snapshot_instructions_size () ; fn test_field_root_isolate_create_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . root_isolate_create_callback) as usize - ptr as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (root_isolate_create_callback))) ; } test_field_root_isolate_create_callback () ; fn test_field_update_semantics_node_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . update_semantics_node_callback) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (update_semantics_node_callback))) ; } test_field_update_semantics_node_callback () ; fn test_field_update_semantics_custom_action_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . update_semantics_custom_action_callback) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (update_semantics_custom_action_callback))) ; } test_field_update_semantics_custom_action_callback () ; fn test_field_persistent_cache_path () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . persistent_cache_path) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (persistent_cache_path))) ; } test_field_persistent_cache_path () ; fn test_field_is_persistent_cache_read_only () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . is_persistent_cache_read_only) as usize - ptr as usize } , 160usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (is_persistent_cache_read_only))) ; } test_field_is_persistent_cache_read_only () ; fn test_field_vsync_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . vsync_callback) as usize - ptr as usize } , 168usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (vsync_callback))) ; } test_field_vsync_callback () ; fn test_field_custom_dart_entrypoint () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . custom_dart_entrypoint) as usize - ptr as usize } , 176usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (custom_dart_entrypoint))) ; } test_field_custom_dart_entrypoint () ; fn test_field_custom_task_runners () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . custom_task_runners) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (custom_task_runners))) ; } test_field_custom_task_runners () ; fn test_field_shutdown_dart_vm_when_done () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . shutdown_dart_vm_when_done) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (shutdown_dart_vm_when_done))) ; } test_field_shutdown_dart_vm_when_done () ; fn test_field_compositor () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . compositor) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (compositor))) ; } test_field_compositor () ; fn test_field_dart_old_gen_heap_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . dart_old_gen_heap_size) as usize - ptr as usize } , 208usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (dart_old_gen_heap_size))) ; } test_field_dart_old_gen_heap_size () ; fn test_field_aot_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . aot_data) as usize - ptr as usize } , 216usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (aot_data))) ; } test_field_aot_data () ; fn test_field_compute_platform_resolved_locale_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . compute_platform_resolved_locale_callback) as usize - ptr as usize } , 224usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (compute_platform_resolved_locale_callback))) ; } test_field_compute_platform_resolved_locale_callback () ; fn test_field_dart_entrypoint_argc () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . dart_entrypoint_argc) as usize - ptr as usize } , 232usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (dart_entrypoint_argc))) ; } test_field_dart_entrypoint_argc () ; fn test_field_dart_entrypoint_argv () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . dart_entrypoint_argv) as usize - ptr as usize } , 240usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (dart_entrypoint_argv))) ; } test_field_dart_entrypoint_argv () ; fn test_field_log_message_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . log_message_callback) as usize - ptr as usize } , 248usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (log_message_callback))) ; } test_field_log_message_callback () ; fn test_field_log_tag () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . log_tag) as usize - ptr as usize } , 256usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (log_tag))) ; } test_field_log_tag () ; fn test_field_on_pre_engine_restart_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . on_pre_engine_restart_callback) as usize - ptr as usize } , 264usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (on_pre_engine_restart_callback))) ; } test_field_on_pre_engine_restart_callback () ; } extern "C" { # [doc = " @brief      Creates the necessary data structures to launch a Flutter Dart"] # [doc = "             application in AOT mode. The data may only be collected after"] # [doc = "             all FlutterEngine instances launched using this data have been"] # [doc = "             terminated."] # [doc = ""] # [doc = " @param[in]  source    The source of the AOT data."] # [doc = " @param[out] data_out  The AOT data on success. Unchanged on failure."] # [doc = ""] # [doc = " @return     Returns if the AOT data could be successfully resolved."] # [doc = ""] pub fn FlutterEngineCreateAOTData (source : * const FlutterEngineAOTDataSource , data_out : * mut FlutterEngineAOTData) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Collects the AOT data."] # [doc = ""] # [doc = " @warning    The embedder must ensure that this call is made only after all"] # [doc = "             FlutterEngine instances launched using this data have been"] # [doc = "             terminated, and that all of those instances were launched with"] # [doc = "             the FlutterProjectArgs::shutdown_dart_vm_when_done flag set to"] # [doc = "             true."] # [doc = ""] # [doc = " @param[in]  data   The data to collect."] # [doc = ""] # [doc = " @return     Returns if the AOT data was successfully collected."] # [doc = ""] pub fn FlutterEngineCollectAOTData (data : FlutterEngineAOTData) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Initialize and run a Flutter engine instance and return a handle"] # [doc = "             to it. This is a convenience method for the pair of calls to"] # [doc = "             `FlutterEngineInitialize` and `FlutterEngineRunInitialized`."] # [doc = ""] # [doc = " @note       This method of running a Flutter engine works well except in"] # [doc = "             cases where the embedder specifies custom task runners via"] # [doc = "             `FlutterProjectArgs::custom_task_runners`. In such cases, the"] # [doc = "             engine may need the embedder to post tasks back to it before"] # [doc = "             `FlutterEngineRun` has returned. Embedders can only post tasks"] # [doc = "             to the engine if they have a handle to the engine. In such"] # [doc = "             cases, embedders are advised to get the engine handle via the"] # [doc = "             `FlutterInitializeCall`. Then they can call"] # [doc = "             `FlutterEngineRunInitialized` knowing that they will be able to"] # [doc = "             service custom tasks on other threads with the engine handle."] # [doc = ""] # [doc = " @param[in]  version    The Flutter embedder API version. Must be"] # [doc = "                        FLUTTER_ENGINE_VERSION."] # [doc = " @param[in]  config     The renderer configuration."] # [doc = " @param[in]  args       The Flutter project arguments."] # [doc = " @param      user_data  A user data baton passed back to embedders in"] # [doc = "                        callbacks."] # [doc = " @param[out] engine_out The engine handle on successful engine creation."] # [doc = ""] # [doc = " @return     The result of the call to run the Flutter engine."] # [doc = ""] pub fn FlutterEngineRun (version : size_t , config : * const FlutterRendererConfig , args : * const FlutterProjectArgs , user_data : * mut :: std :: os :: raw :: c_void , engine_out : * mut FlutterEngine) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Shuts down a Flutter engine instance. The engine handle is no"] # [doc = "             longer valid for any calls in the embedder API after this point."] # [doc = "             Making additional calls with this handle is undefined behavior."] # [doc = ""] # [doc = " @note       This de-initializes the Flutter engine instance (via an implicit"] # [doc = "             call to `FlutterEngineDeinitialize`) if necessary."] # [doc = ""] # [doc = " @param[in]  engine  The Flutter engine instance to collect."] # [doc = ""] # [doc = " @return     The result of the call to shutdown the Flutter engine instance."] # [doc = ""] pub fn FlutterEngineShutdown (engine : FlutterEngine) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Initialize a Flutter engine instance. This does not run the"] # [doc = "             Flutter application code till the `FlutterEngineRunInitialized`"] # [doc = "             call is made. Besides Flutter application code, no tasks are"] # [doc = "             scheduled on embedder managed task runners either. This allows"] # [doc = "             embedders providing custom task runners to the Flutter engine to"] # [doc = "             obtain a handle to the Flutter engine before the engine can post"] # [doc = "             tasks on these task runners."] # [doc = ""] # [doc = " @param[in]  version    The Flutter embedder API version. Must be"] # [doc = "                        FLUTTER_ENGINE_VERSION."] # [doc = " @param[in]  config     The renderer configuration."] # [doc = " @param[in]  args       The Flutter project arguments."] # [doc = " @param      user_data  A user data baton passed back to embedders in"] # [doc = "                        callbacks."] # [doc = " @param[out] engine_out The engine handle on successful engine creation."] # [doc = ""] # [doc = " @return     The result of the call to initialize the Flutter engine."] # [doc = ""] pub fn FlutterEngineInitialize (version : size_t , config : * const FlutterRendererConfig , args : * const FlutterProjectArgs , user_data : * mut :: std :: os :: raw :: c_void , engine_out : * mut FlutterEngine) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Stops running the Flutter engine instance. After this call, the"] # [doc = "             embedder is also guaranteed that no more calls to post tasks"] # [doc = "             onto custom task runners specified by the embedder are made. The"] # [doc = "             Flutter engine handle still needs to be collected via a call to"] # [doc = "             `FlutterEngineShutdown`."] # [doc = ""] # [doc = " @param[in]  engine    The running engine instance to de-initialize."] # [doc = ""] # [doc = " @return     The result of the call to de-initialize the Flutter engine."] # [doc = ""] pub fn FlutterEngineDeinitialize (engine : FlutterEngine) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Runs an initialized engine instance. An engine can be"] # [doc = "             initialized via `FlutterEngineInitialize`. An initialized"] # [doc = "             instance can only be run once. During and after this call,"] # [doc = "             custom task runners supplied by the embedder are expected to"] # [doc = "             start servicing tasks."] # [doc = ""] # [doc = " @param[in]  engine  An initialized engine instance that has not previously"] # [doc = "                     been run."] # [doc = ""] # [doc = " @return     The result of the call to run the initialized Flutter"] # [doc = "             engine instance."] # [doc = ""] pub fn FlutterEngineRunInitialized (engine : FlutterEngine) -> FlutterEngineResult ; } extern "C" { pub fn FlutterEngineSendWindowMetricsEvent (engine : FlutterEngine , event : * const FlutterWindowMetricsEvent) -> FlutterEngineResult ; } extern "C" { pub fn FlutterEngineSendPointerEvent (engine : FlutterEngine , events : * const FlutterPointerEvent , events_count : size_t) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Sends a key event to the engine. The framework will decide"] # [doc = "             whether to handle this event in a synchronous fashion, although"] # [doc = "             due to technical limitation, the result is always reported"] # [doc = "             asynchronously. The `callback` is guaranteed to be called"] # [doc = "             exactly once."] # [doc = ""] # [doc = " @param[in]  engine         A running engine instance."] # [doc = " @param[in]  event          The event data to be sent. This function will no"] # [doc = "                            longer access `event` after returning."] # [doc = " @param[in]  callback       The callback invoked by the engine when the"] # [doc = "                            Flutter application has decided whether it"] # [doc = "                            handles this event. Accepts nullptr."] # [doc = " @param[in]  user_data      The context associated with the callback. The"] # [doc = "                            exact same value will used to invoke `callback`."] # [doc = "                            Accepts nullptr."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineSendKeyEvent (engine : FlutterEngine , event : * const FlutterKeyEvent , callback : FlutterKeyEventCallback , user_data : * mut :: std :: os :: raw :: c_void) -> FlutterEngineResult ; } extern "C" { pub fn FlutterEngineSendPlatformMessage (engine : FlutterEngine , message : * const FlutterPlatformMessage) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief     Creates a platform message response handle that allows the"] # [doc = "            embedder to set a native callback for a response to a message."] # [doc = "            This handle may be set on the `response_handle` field of any"] # [doc = "            `FlutterPlatformMessage` sent to the engine."] # [doc = ""] # [doc = "            The handle must be collected via a call to"] # [doc = "            `FlutterPlatformMessageReleaseResponseHandle`. This may be done"] # [doc = "            immediately after a call to `FlutterEngineSendPlatformMessage`"] # [doc = "            with a platform message whose response handle contains the handle"] # [doc = "            created using this call. In case a handle is created but never"] # [doc = "            sent in a message, the release call must still be made. Not"] # [doc = "            calling release on the handle results in a small memory leak."] # [doc = ""] # [doc = "            The user data baton passed to the data callback is the one"] # [doc = "            specified in this call as the third argument."] # [doc = ""] # [doc = " @see       FlutterPlatformMessageReleaseResponseHandle()"] # [doc = ""] # [doc = " @param[in]  engine         A running engine instance."] # [doc = " @param[in]  data_callback  The callback invoked by the engine when the"] # [doc = "                            Flutter application send a response on the"] # [doc = "                            handle."] # [doc = " @param[in]  user_data      The user data associated with the data callback."] # [doc = " @param[out] response_out   The response handle created when this call is"] # [doc = "                            successful."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterPlatformMessageCreateResponseHandle (engine : FlutterEngine , data_callback : FlutterDataCallback , user_data : * mut :: std :: os :: raw :: c_void , response_out : * mut * mut FlutterPlatformMessageResponseHandle) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Collects the handle created using"] # [doc = "             `FlutterPlatformMessageCreateResponseHandle`."] # [doc = ""] # [doc = " @see        FlutterPlatformMessageCreateResponseHandle()"] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance."] # [doc = " @param[in]  response   The platform message response handle to collect."] # [doc = "                        These handles are created using"] # [doc = "                        `FlutterPlatformMessageCreateResponseHandle()`."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterPlatformMessageReleaseResponseHandle (engine : FlutterEngine , response : * mut FlutterPlatformMessageResponseHandle) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Send a response from the native side to a platform message from"] # [doc = "             the Dart Flutter application."] # [doc = ""] # [doc = " @param[in]  engine       The running engine instance."] # [doc = " @param[in]  handle       The platform message response handle."] # [doc = " @param[in]  data         The data to associate with the platform message"] # [doc = "                          response."] # [doc = " @param[in]  data_length  The length of the platform message response data."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineSendPlatformMessageResponse (engine : FlutterEngine , handle : * const FlutterPlatformMessageResponseHandle , data : * const u8 , data_length : size_t) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      This API is only meant to be used by platforms that need to"] # [doc = "             flush tasks on a message loop not controlled by the Flutter"] # [doc = "             engine."] # [doc = ""] # [doc = " @deprecated This API will be deprecated and is not part of the stable API."] # [doc = "             Please use the custom task runners API by setting an"] # [doc = "             appropriate `FlutterProjectArgs::custom_task_runners`"] # [doc = "             interface. This will yield better performance and the"] # [doc = "             interface is stable."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn __FlutterEngineFlushPendingTasksNow () -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Register an external texture with a unique (per engine)"] # [doc = "             identifier. Only rendering backends that support external"] # [doc = "             textures accept external texture registrations. After the"] # [doc = "             external texture is registered, the application can mark that a"] # [doc = "             frame is available by calling"] # [doc = "             `FlutterEngineMarkExternalTextureFrameAvailable`."] # [doc = ""] # [doc = " @see        FlutterEngineUnregisterExternalTexture()"] # [doc = " @see        FlutterEngineMarkExternalTextureFrameAvailable()"] # [doc = ""] # [doc = " @param[in]  engine              A running engine instance."] # [doc = " @param[in]  texture_identifier  The identifier of the texture to register"] # [doc = "                                 with the engine. The embedder may supply new"] # [doc = "                                 frames to this texture using the same"] # [doc = "                                 identifier."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineRegisterExternalTexture (engine : FlutterEngine , texture_identifier : i64) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Unregister a previous texture registration."] # [doc = ""] # [doc = " @see        FlutterEngineRegisterExternalTexture()"] # [doc = " @see        FlutterEngineMarkExternalTextureFrameAvailable()"] # [doc = ""] # [doc = " @param[in]  engine              A running engine instance."] # [doc = " @param[in]  texture_identifier  The identifier of the texture for which new"] # [doc = "                                 frame will not be available."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineUnregisterExternalTexture (engine : FlutterEngine , texture_identifier : i64) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Mark that a new texture frame is available for a given texture"] # [doc = "             identifier."] # [doc = ""] # [doc = " @see        FlutterEngineRegisterExternalTexture()"] # [doc = " @see        FlutterEngineUnregisterExternalTexture()"] # [doc = ""] # [doc = " @param[in]  engine              A running engine instance."] # [doc = " @param[in]  texture_identifier  The identifier of the texture whose frame"] # [doc = "                                 has been updated."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineMarkExternalTextureFrameAvailable (engine : FlutterEngine , texture_identifier : i64) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Enable or disable accessibility semantics."] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance."] # [doc = " @param[in]  enabled    When enabled, changes to the semantic contents of the"] # [doc = "                        window are sent via the"] # [doc = "                        `FlutterUpdateSemanticsNodeCallback` registered to"] # [doc = "                        `update_semantics_node_callback` in"] # [doc = "                        `FlutterProjectArgs`."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineUpdateSemanticsEnabled (engine : FlutterEngine , enabled : bool) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Sets additional accessibility features."] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance"] # [doc = " @param[in]  features   The accessibility features to set."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineUpdateAccessibilityFeatures (engine : FlutterEngine , features : FlutterAccessibilityFeature) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Dispatch a semantics action to the specified semantics node."] # [doc = ""] # [doc = " @param[in]  engine       A running engine instance."] # [doc = " @param[in]  identifier   The semantics action identifier."] # [doc = " @param[in]  action       The semantics action."] # [doc = " @param[in]  data         Data associated with the action."] # [doc = " @param[in]  data_length  The data length."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineDispatchSemanticsAction (engine : FlutterEngine , id : u64 , action : FlutterSemanticsAction , data : * const u8 , data_length : size_t) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Notify the engine that a vsync event occurred. A baton passed to"] # [doc = "             the platform via the vsync callback must be returned. This call"] # [doc = "             must be made on the thread on which the call to"] # [doc = "             `FlutterEngineRun` was made."] # [doc = ""] # [doc = " @see        FlutterEngineGetCurrentTime()"] # [doc = ""] # [doc = " @attention  That frame timepoints are in nanoseconds."] # [doc = ""] # [doc = " @attention  The system monotonic clock is used as the timebase."] # [doc = ""] # [doc = " @param[in]  engine.                  A running engine instance."] # [doc = " @param[in]  baton                    The baton supplied by the engine."] # [doc = " @param[in]  frame_start_time_nanos   The point at which the vsync event"] # [doc = "                                      occurred or will occur. If the time"] # [doc = "                                      point is in the future, the engine will"] # [doc = "                                      wait till that point to begin its frame"] # [doc = "                                      workload."] # [doc = " @param[in]  frame_target_time_nanos  The point at which the embedder"] # [doc = "                                      anticipates the next vsync to occur."] # [doc = "                                      This is a hint the engine uses to"] # [doc = "                                      schedule Dart VM garbage collection in"] # [doc = "                                      periods in which the various threads"] # [doc = "                                      are most likely to be idle. For"] # [doc = "                                      example, for a 60Hz display, embedders"] # [doc = "                                      should add 16.6 * 1e6 to the frame time"] # [doc = "                                      field."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineOnVsync (engine : FlutterEngine , baton : isize , frame_start_time_nanos : u64 , frame_target_time_nanos : u64) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Reloads the system fonts in engine."] # [doc = ""] # [doc = " @param[in]  engine.                  A running engine instance."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineReloadSystemFonts (engine : FlutterEngine) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      A profiling utility. Logs a trace duration begin event to the"] # [doc = "             timeline. If the timeline is unavailable or disabled, this has"] # [doc = "             no effect. Must be balanced with an duration end event (via"] # [doc = "             `FlutterEngineTraceEventDurationEnd`) with the same name on the"] # [doc = "             same thread. Can be called on any thread. Strings passed into"] # [doc = "             the function will NOT be copied when added to the timeline. Only"] # [doc = "             string literals may be passed in."] # [doc = ""] # [doc = " @param[in]  name  The name of the trace event."] # [doc = ""] pub fn FlutterEngineTraceEventDurationBegin (name : * const :: std :: os :: raw :: c_char) ; } extern "C" { # [doc = " @brief      A profiling utility. Logs a trace duration end event to the"] # [doc = "             timeline. If the timeline is unavailable or disabled, this has"] # [doc = "             no effect. This call must be preceded by a trace duration begin"] # [doc = "             call (via `FlutterEngineTraceEventDurationBegin`) with the same"] # [doc = "             name on the same thread. Can be called on any thread. Strings"] # [doc = "             passed into the function will NOT be copied when added to the"] # [doc = "             timeline. Only string literals may be passed in."] # [doc = ""] # [doc = " @param[in]  name  The name of the trace event."] # [doc = ""] pub fn FlutterEngineTraceEventDurationEnd (name : * const :: std :: os :: raw :: c_char) ; } extern "C" { # [doc = " @brief      A profiling utility. Logs a trace duration instant event to the"] # [doc = "             timeline. If the timeline is unavailable or disabled, this has"] # [doc = "             no effect. Can be called on any thread. Strings passed into the"] # [doc = "             function will NOT be copied when added to the timeline. Only"] # [doc = "             string literals may be passed in."] # [doc = ""] # [doc = " @param[in]  name  The name of the trace event."] # [doc = ""] pub fn FlutterEngineTraceEventInstant (name : * const :: std :: os :: raw :: c_char) ; } extern "C" { # [doc = " @brief      Posts a task onto the Flutter render thread. Typically, this may"] # [doc = "             be called from any thread as long as a `FlutterEngineShutdown`"] # [doc = "             on the specific engine has not already been initiated."] # [doc = ""] # [doc = " @param[in]  engine         A running engine instance."] # [doc = " @param[in]  callback       The callback to execute on the render thread."] # [doc = " @param      callback_data  The callback context."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEnginePostRenderThreadTask (engine : FlutterEngine , callback : VoidCallback , callback_data : * mut :: std :: os :: raw :: c_void) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Get the current time in nanoseconds from the clock used by the"] # [doc = "             flutter engine. This is the system monotonic clock."] # [doc = ""] # [doc = " @return     The current time in nanoseconds."] # [doc = ""] pub fn FlutterEngineGetCurrentTime () -> u64 ; } extern "C" { # [doc = " @brief      Inform the engine to run the specified task. This task has been"] # [doc = "             given to the engine via the"] # [doc = "             `FlutterTaskRunnerDescription.post_task_callback`. This call"] # [doc = "             must only be made at the target time specified in that callback."] # [doc = "             Running the task before that time is undefined behavior."] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance."] # [doc = " @param[in]  task       the task handle."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineRunTask (engine : FlutterEngine , task : * const FlutterTask) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Notify a running engine instance that the locale has been"] # [doc = "             updated. The preferred locale must be the first item in the list"] # [doc = "             of locales supplied. The other entries will be used as a"] # [doc = "             fallback."] # [doc = ""] # [doc = " @param[in]  engine         A running engine instance."] # [doc = " @param[in]  locales        The updated locales in the order of preference."] # [doc = " @param[in]  locales_count  The count of locales supplied."] # [doc = ""] # [doc = " @return     Whether the locale updates were applied."] # [doc = ""] pub fn FlutterEngineUpdateLocales (engine : FlutterEngine , locales : * mut * const FlutterLocale , locales_count : size_t) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Returns if the Flutter engine instance will run AOT compiled"] # [doc = "             Dart code. This call has no threading restrictions."] # [doc = ""] # [doc = "             For embedder code that is configured for both AOT and JIT mode"] # [doc = "             Dart execution based on the Flutter engine being linked to, this"] # [doc = "             runtime check may be used to appropriately configure the"] # [doc = "             `FlutterProjectArgs`. In JIT mode execution, the kernel"] # [doc = "             snapshots must be present in the Flutter assets directory"] # [doc = "             specified in the `FlutterProjectArgs`. For AOT execution, the"] # [doc = "             fields `vm_snapshot_data`, `vm_snapshot_instructions`,"] # [doc = "             `isolate_snapshot_data` and `isolate_snapshot_instructions`"] # [doc = "             (along with their size fields) must be specified in"] # [doc = "             `FlutterProjectArgs`."] # [doc = ""] # [doc = " @return     True, if AOT Dart code is run. JIT otherwise."] # [doc = ""] pub fn FlutterEngineRunsAOTCompiledDartCode () -> bool ; } extern "C" { # [doc = " @brief      Posts a Dart object to specified send port. The corresponding"] # [doc = "             receive port for send port can be in any isolate running in the"] # [doc = "             VM. This isolate can also be the root isolate for an"] # [doc = "             unrelated engine. The engine parameter is necessary only to"] # [doc = "             ensure the call is not made when no engine (and hence no VM) is"] # [doc = "             running."] # [doc = ""] # [doc = "             Unlike the platform messages mechanism, there are no threading"] # [doc = "             restrictions when using this API. Message can be posted on any"] # [doc = "             thread and they will be made available to isolate on which the"] # [doc = "             corresponding send port is listening."] # [doc = ""] # [doc = "             However, it is the embedders responsibility to ensure that the"] # [doc = "             call is not made during an ongoing call the"] # [doc = "             `FlutterEngineDeinitialize` or `FlutterEngineShutdown` on"] # [doc = "             another thread."] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance."] # [doc = " @param[in]  port       The send port to send the object to."] # [doc = " @param[in]  object     The object to send to the isolate with the"] # [doc = "                        corresponding receive port."] # [doc = ""] # [doc = " @return     If the message was posted to the send port."] # [doc = ""] pub fn FlutterEnginePostDartObject (engine : FlutterEngine , port : FlutterEngineDartPort , object : * const FlutterEngineDartObject) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Posts a low memory notification to a running engine instance."] # [doc = "             The engine will do its best to release non-critical resources in"] # [doc = "             response. It is not guaranteed that the resource would have been"] # [doc = "             collected by the time this call returns however. The"] # [doc = "             notification is posted to engine subsystems that may be"] # [doc = "             operating on other threads."] # [doc = ""] # [doc = "             Flutter applications can respond to these notifications by"] # [doc = "             setting `WidgetsBindingObserver.didHaveMemoryPressure`"] # [doc = "             observers."] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance."] # [doc = ""] # [doc = " @return     If the low memory notification was sent to the running engine"] # [doc = "             instance."] # [doc = ""] pub fn FlutterEngineNotifyLowMemoryWarning (engine : FlutterEngine) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Schedule a callback to be run on all engine managed threads."] # [doc = "             The engine will attempt to service this callback the next time"] # [doc = "             the message loop for each managed thread is idle. Since the"] # [doc = "             engine manages the entire lifecycle of multiple threads, there"] # [doc = "             is no opportunity for the embedders to finely tune the"] # [doc = "             priorities of threads directly, or, perform other thread"] # [doc = "             specific configuration (for example, setting thread names for"] # [doc = "             tracing). This callback gives embedders a chance to affect such"] # [doc = "             tuning."] # [doc = ""] # [doc = " @attention  This call is expensive and must be made as few times as"] # [doc = "             possible. The callback must also return immediately as not doing"] # [doc = "             so may risk performance issues (especially for callbacks of type"] # [doc = "             kFlutterNativeThreadTypeUI and kFlutterNativeThreadTypeRender)."] # [doc = ""] # [doc = " @attention  Some callbacks (especially the ones of type"] # [doc = "             kFlutterNativeThreadTypeWorker) may be called after the"] # [doc = "             FlutterEngine instance has shut down. Embedders must be careful"] # [doc = "             in handling the lifecycle of objects associated with the user"] # [doc = "             data baton."] # [doc = ""] # [doc = " @attention  In case there are multiple running Flutter engine instances,"] # [doc = "             their workers are shared."] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance."] # [doc = " @param[in]  callback   The callback that will get called multiple times on"] # [doc = "                        each engine managed thread."] # [doc = " @param[in]  user_data  A baton passed by the engine to the callback. This"] # [doc = "                        baton is not interpreted by the engine in any way."] # [doc = ""] # [doc = " @return     Returns if the callback was successfully posted to all threads."] # [doc = ""] pub fn FlutterEnginePostCallbackOnAllNativeThreads (engine : FlutterEngine , callback : FlutterNativeThreadCallback , user_data : * mut :: std :: os :: raw :: c_void) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief    Posts updates corresponding to display changes to a running engine"] # [doc = "           instance."] # [doc = ""] # [doc = " @param[in] update_type      The type of update pushed to the engine."] # [doc = " @param[in] displays         The displays affected by this update."] # [doc = " @param[in] display_count    Size of the displays array, must be at least 1."] # [doc = ""] # [doc = " @return the result of the call made to the engine."] # [doc = ""] pub fn FlutterEngineNotifyDisplayUpdate (engine : FlutterEngine , update_type : FlutterEngineDisplaysUpdateType , displays : * const FlutterEngineDisplay , display_count : size_t) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Schedule a new frame to redraw the content."] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance."] # [doc = ""] # [doc = " @return the result of the call made to the engine."] # [doc = ""] pub fn FlutterEngineScheduleFrame (engine : FlutterEngine) -> FlutterEngineResult ; } pub type FlutterEngineCreateAOTDataFnPtr = :: std :: option :: Option < unsafe extern "C" fn (source : * const FlutterEngineAOTDataSource , data_out : * mut FlutterEngineAOTData) -> FlutterEngineResult > ; pub type FlutterEngineCollectAOTDataFnPtr = :: std :: option :: Option < unsafe extern "C" fn (data : FlutterEngineAOTData) -> FlutterEngineResult > ; pub type FlutterEngineRunFnPtr = :: std :: option :: Option < unsafe extern "C" fn (version : size_t , config : * const FlutterRendererConfig , args : * const FlutterProjectArgs , user_data : * mut :: std :: os :: raw :: c_void , engine_out : * mut FlutterEngine) -> FlutterEngineResult > ; pub type FlutterEngineShutdownFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine) -> FlutterEngineResult > ; pub type FlutterEngineInitializeFnPtr = :: std :: option :: Option < unsafe extern "C" fn (version : size_t , config : * const FlutterRendererConfig , args : * const FlutterProjectArgs , user_data : * mut :: std :: os :: raw :: c_void , engine_out : * mut FlutterEngine) -> FlutterEngineResult > ; pub type FlutterEngineDeinitializeFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine) -> FlutterEngineResult > ; pub type FlutterEngineRunInitializedFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine) -> FlutterEngineResult > ; pub type FlutterEngineSendWindowMetricsEventFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , event : * const FlutterWindowMetricsEvent) -> FlutterEngineResult > ; pub type FlutterEngineSendPointerEventFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , events : * const FlutterPointerEvent , events_count : size_t) -> FlutterEngineResult > ; pub type FlutterEngineSendKeyEventFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , event : * const FlutterKeyEvent , callback : FlutterKeyEventCallback , user_data : * mut :: std :: os :: raw :: c_void) -> FlutterEngineResult > ; pub type FlutterEngineSendPlatformMessageFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , message : * const FlutterPlatformMessage) -> FlutterEngineResult > ; pub type FlutterEnginePlatformMessageCreateResponseHandleFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , data_callback : FlutterDataCallback , user_data : * mut :: std :: os :: raw :: c_void , response_out : * mut * mut FlutterPlatformMessageResponseHandle) -> FlutterEngineResult > ; pub type FlutterEnginePlatformMessageReleaseResponseHandleFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , response : * mut FlutterPlatformMessageResponseHandle) -> FlutterEngineResult > ; pub type FlutterEngineSendPlatformMessageResponseFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , handle : * const FlutterPlatformMessageResponseHandle , data : * const u8 , data_length : size_t) -> FlutterEngineResult > ; pub type FlutterEngineRegisterExternalTextureFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , texture_identifier : i64) -> FlutterEngineResult > ; pub type FlutterEngineUnregisterExternalTextureFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , texture_identifier : i64) -> FlutterEngineResult > ; pub type FlutterEngineMarkExternalTextureFrameAvailableFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , texture_identifier : i64) -> FlutterEngineResult > ; pub type FlutterEngineUpdateSemanticsEnabledFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , enabled : bool) -> FlutterEngineResult > ; pub type FlutterEngineUpdateAccessibilityFeaturesFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , features : FlutterAccessibilityFeature) -> FlutterEngineResult > ; pub type FlutterEngineDispatchSemanticsActionFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , id : u64 , action : FlutterSemanticsAction , data : * const u8 , data_length : size_t) -> FlutterEngineResult > ; pub type FlutterEngineOnVsyncFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , baton : isize , frame_start_time_nanos : u64 , frame_target_time_nanos : u64) -> FlutterEngineResult > ; pub type FlutterEngineReloadSystemFontsFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine) -> FlutterEngineResult > ; pub type FlutterEngineTraceEventDurationBeginFnPtr = :: std :: option :: Option < unsafe extern "C" fn (name : * const :: std :: os :: raw :: c_char) > ; pub type FlutterEngineTraceEventDurationEndFnPtr = :: std :: option :: Option < unsafe extern "C" fn (name : * const :: std :: os :: raw :: c_char) > ; pub type FlutterEngineTraceEventInstantFnPtr = :: std :: option :: Option < unsafe extern "C" fn (name : * const :: std :: os :: raw :: c_char) > ; pub type FlutterEnginePostRenderThreadTaskFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , callback : VoidCallback , callback_data : * mut :: std :: os :: raw :: c_void) -> FlutterEngineResult > ; pub type FlutterEngineGetCurrentTimeFnPtr = :: std :: option :: Option < unsafe extern "C" fn () -> u64 > ; pub type FlutterEngineRunTaskFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , task : * const FlutterTask) -> FlutterEngineResult > ; pub type FlutterEngineUpdateLocalesFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , locales : * mut * const FlutterLocale , locales_count : size_t) -> FlutterEngineResult > ; pub type FlutterEngineRunsAOTCompiledDartCodeFnPtr = :: std :: option :: Option < unsafe extern "C" fn () -> bool > ; pub type FlutterEnginePostDartObjectFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , port : FlutterEngineDartPort , object : * const FlutterEngineDartObject) -> FlutterEngineResult > ; pub type FlutterEngineNotifyLowMemoryWarningFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine) -> FlutterEngineResult > ; pub type FlutterEnginePostCallbackOnAllNativeThreadsFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , callback : FlutterNativeThreadCallback , user_data : * mut :: std :: os :: raw :: c_void) -> FlutterEngineResult > ; pub type FlutterEngineNotifyDisplayUpdateFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , update_type : FlutterEngineDisplaysUpdateType , displays : * const FlutterEngineDisplay , display_count : size_t) -> FlutterEngineResult > ; pub type FlutterEngineScheduleFrameFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine) -> FlutterEngineResult > ; # [doc = " Function-pointer-based versions of the APIs above."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterEngineProcTable { # [doc = " The size of this struct. Must be sizeof(FlutterEngineProcs)."] pub struct_size : size_t , pub CreateAOTData : FlutterEngineCreateAOTDataFnPtr , pub CollectAOTData : FlutterEngineCollectAOTDataFnPtr , pub Run : FlutterEngineRunFnPtr , pub Shutdown : FlutterEngineShutdownFnPtr , pub Initialize : FlutterEngineInitializeFnPtr , pub Deinitialize : FlutterEngineDeinitializeFnPtr , pub RunInitialized : FlutterEngineRunInitializedFnPtr , pub SendWindowMetricsEvent : FlutterEngineSendWindowMetricsEventFnPtr , pub SendPointerEvent : FlutterEngineSendPointerEventFnPtr , pub SendKeyEvent : FlutterEngineSendKeyEventFnPtr , pub SendPlatformMessage : FlutterEngineSendPlatformMessageFnPtr , pub PlatformMessageCreateResponseHandle : FlutterEnginePlatformMessageCreateResponseHandleFnPtr , pub PlatformMessageReleaseResponseHandle : FlutterEnginePlatformMessageReleaseResponseHandleFnPtr , pub SendPlatformMessageResponse : FlutterEngineSendPlatformMessageResponseFnPtr , pub RegisterExternalTexture : FlutterEngineRegisterExternalTextureFnPtr , pub UnregisterExternalTexture : FlutterEngineUnregisterExternalTextureFnPtr , pub MarkExternalTextureFrameAvailable : FlutterEngineMarkExternalTextureFrameAvailableFnPtr , pub UpdateSemanticsEnabled : FlutterEngineUpdateSemanticsEnabledFnPtr , pub UpdateAccessibilityFeatures : FlutterEngineUpdateAccessibilityFeaturesFnPtr , pub DispatchSemanticsAction : FlutterEngineDispatchSemanticsActionFnPtr , pub OnVsync : FlutterEngineOnVsyncFnPtr , pub ReloadSystemFonts : FlutterEngineReloadSystemFontsFnPtr , pub TraceEventDurationBegin : FlutterEngineTraceEventDurationBeginFnPtr , pub TraceEventDurationEnd : FlutterEngineTraceEventDurationEndFnPtr , pub TraceEventInstant : FlutterEngineTraceEventInstantFnPtr , pub PostRenderThreadTask : FlutterEnginePostRenderThreadTaskFnPtr , pub GetCurrentTime : FlutterEngineGetCurrentTimeFnPtr , pub RunTask : FlutterEngineRunTaskFnPtr , pub UpdateLocales : FlutterEngineUpdateLocalesFnPtr , pub RunsAOTCompiledDartCode : FlutterEngineRunsAOTCompiledDartCodeFnPtr , pub PostDartObject : FlutterEnginePostDartObjectFnPtr , pub NotifyLowMemoryWarning : FlutterEngineNotifyLowMemoryWarningFnPtr , pub PostCallbackOnAllNativeThreads : FlutterEnginePostCallbackOnAllNativeThreadsFnPtr , pub NotifyDisplayUpdate : FlutterEngineNotifyDisplayUpdateFnPtr , pub ScheduleFrame : FlutterEngineScheduleFrameFnPtr , } # [test] fn bindgen_test_layout_FlutterEngineProcTable () { assert_eq ! (:: std :: mem :: size_of :: < FlutterEngineProcTable > () , 288usize , concat ! ("Size of: " , stringify ! (FlutterEngineProcTable))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterEngineProcTable > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterEngineProcTable))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_CreateAOTData () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . CreateAOTData) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (CreateAOTData))) ; } test_field_CreateAOTData () ; fn test_field_CollectAOTData () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . CollectAOTData) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (CollectAOTData))) ; } test_field_CollectAOTData () ; fn test_field_Run () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . Run) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (Run))) ; } test_field_Run () ; fn test_field_Shutdown () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . Shutdown) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (Shutdown))) ; } test_field_Shutdown () ; fn test_field_Initialize () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . Initialize) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (Initialize))) ; } test_field_Initialize () ; fn test_field_Deinitialize () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . Deinitialize) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (Deinitialize))) ; } test_field_Deinitialize () ; fn test_field_RunInitialized () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . RunInitialized) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (RunInitialized))) ; } test_field_RunInitialized () ; fn test_field_SendWindowMetricsEvent () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . SendWindowMetricsEvent) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (SendWindowMetricsEvent))) ; } test_field_SendWindowMetricsEvent () ; fn test_field_SendPointerEvent () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . SendPointerEvent) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (SendPointerEvent))) ; } test_field_SendPointerEvent () ; fn test_field_SendKeyEvent () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . SendKeyEvent) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (SendKeyEvent))) ; } test_field_SendKeyEvent () ; fn test_field_SendPlatformMessage () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . SendPlatformMessage) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (SendPlatformMessage))) ; } test_field_SendPlatformMessage () ; fn test_field_PlatformMessageCreateResponseHandle () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . PlatformMessageCreateResponseHandle) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (PlatformMessageCreateResponseHandle))) ; } test_field_PlatformMessageCreateResponseHandle () ; fn test_field_PlatformMessageReleaseResponseHandle () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . PlatformMessageReleaseResponseHandle) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (PlatformMessageReleaseResponseHandle))) ; } test_field_PlatformMessageReleaseResponseHandle () ; fn test_field_SendPlatformMessageResponse () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . SendPlatformMessageResponse) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (SendPlatformMessageResponse))) ; } test_field_SendPlatformMessageResponse () ; fn test_field_RegisterExternalTexture () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . RegisterExternalTexture) as usize - ptr as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (RegisterExternalTexture))) ; } test_field_RegisterExternalTexture () ; fn test_field_UnregisterExternalTexture () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . UnregisterExternalTexture) as usize - ptr as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (UnregisterExternalTexture))) ; } test_field_UnregisterExternalTexture () ; fn test_field_MarkExternalTextureFrameAvailable () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . MarkExternalTextureFrameAvailable) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (MarkExternalTextureFrameAvailable))) ; } test_field_MarkExternalTextureFrameAvailable () ; fn test_field_UpdateSemanticsEnabled () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . UpdateSemanticsEnabled) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (UpdateSemanticsEnabled))) ; } test_field_UpdateSemanticsEnabled () ; fn test_field_UpdateAccessibilityFeatures () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . UpdateAccessibilityFeatures) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (UpdateAccessibilityFeatures))) ; } test_field_UpdateAccessibilityFeatures () ; fn test_field_DispatchSemanticsAction () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . DispatchSemanticsAction) as usize - ptr as usize } , 160usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (DispatchSemanticsAction))) ; } test_field_DispatchSemanticsAction () ; fn test_field_OnVsync () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . OnVsync) as usize - ptr as usize } , 168usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (OnVsync))) ; } test_field_OnVsync () ; fn test_field_ReloadSystemFonts () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . ReloadSystemFonts) as usize - ptr as usize } , 176usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (ReloadSystemFonts))) ; } test_field_ReloadSystemFonts () ; fn test_field_TraceEventDurationBegin () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . TraceEventDurationBegin) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (TraceEventDurationBegin))) ; } test_field_TraceEventDurationBegin () ; fn test_field_TraceEventDurationEnd () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . TraceEventDurationEnd) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (TraceEventDurationEnd))) ; } test_field_TraceEventDurationEnd () ; fn test_field_TraceEventInstant () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . TraceEventInstant) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (TraceEventInstant))) ; } test_field_TraceEventInstant () ; fn test_field_PostRenderThreadTask () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . PostRenderThreadTask) as usize - ptr as usize } , 208usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (PostRenderThreadTask))) ; } test_field_PostRenderThreadTask () ; fn test_field_GetCurrentTime () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . GetCurrentTime) as usize - ptr as usize } , 216usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (GetCurrentTime))) ; } test_field_GetCurrentTime () ; fn test_field_RunTask () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . RunTask) as usize - ptr as usize } , 224usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (RunTask))) ; } test_field_RunTask () ; fn test_field_UpdateLocales () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . UpdateLocales) as usize - ptr as usize } , 232usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (UpdateLocales))) ; } test_field_UpdateLocales () ; fn test_field_RunsAOTCompiledDartCode () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . RunsAOTCompiledDartCode) as usize - ptr as usize } , 240usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (RunsAOTCompiledDartCode))) ; } test_field_RunsAOTCompiledDartCode () ; fn test_field_PostDartObject () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . PostDartObject) as usize - ptr as usize } , 248usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (PostDartObject))) ; } test_field_PostDartObject () ; fn test_field_NotifyLowMemoryWarning () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . NotifyLowMemoryWarning) as usize - ptr as usize } , 256usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (NotifyLowMemoryWarning))) ; } test_field_NotifyLowMemoryWarning () ; fn test_field_PostCallbackOnAllNativeThreads () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . PostCallbackOnAllNativeThreads) as usize - ptr as usize } , 264usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (PostCallbackOnAllNativeThreads))) ; } test_field_PostCallbackOnAllNativeThreads () ; fn test_field_NotifyDisplayUpdate () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . NotifyDisplayUpdate) as usize - ptr as usize } , 272usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (NotifyDisplayUpdate))) ; } test_field_NotifyDisplayUpdate () ; fn test_field_ScheduleFrame () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . ScheduleFrame) as usize - ptr as usize } , 280usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (ScheduleFrame))) ; } test_field_ScheduleFrame () ; } extern "C" { # [doc = " @brief      Gets the table of engine function pointers."] # [doc = ""] # [doc = " @param[out] table   The table to fill with pointers. This should be"] # [doc = "                     zero-initialized, except for struct_size."] # [doc = ""] # [doc = " @return     Returns whether the table was successfully populated."] # [doc = ""] pub fn FlutterEngineGetProcAddresses (table : * mut FlutterEngineProcTable) -> FlutterEngineResult ; }
[INFO] [stdout]   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           +                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unclosed HTML tag `MTLDevice`
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/flutter_embedder-b39e10e859f308b8/out/embedder.rs:3:67745
[INFO] [stdout]   |
[INFO] [stdout] 3 | ...alRendererConfig)."] pub struct_size : size_t , # [doc = " Alias for id<MTLDevice>."] pub device : FlutterMetalDeviceHandle , # [doc =...
[INFO] [stdout]   |                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout] help: try marking as source code
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub const true_ : u32 = 1 ; pub const false_ : u32 = 0 ; pub const __bool_true_false_are_defined : u32 = 1 ; pub const _STDINT_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2X : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 200809 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __WORDSIZE : u32 = 64 ; pub const __WORDSIZE_TIME64_COMPAT32 : u32 = 1 ; pub const __SYSCALL_WORDSIZE : u32 = 64 ; pub const __TIMESIZE : u32 = 64 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 35 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C2X : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const FLUTTER_ENGINE_VERSION : u32 = 1 ; pub type size_t = :: std :: os :: raw :: c_ulong ; pub type wchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [repr (align (16))] # [derive (Debug , Copy , Clone)] pub struct max_align_t { pub __clang_max_align_nonce1 : :: std :: os :: raw :: c_longlong , pub __bindgen_padding_0 : u64 , pub __clang_max_align_nonce2 : u128 , } # [test] fn bindgen_test_layout_max_align_t () { assert_eq ! (:: std :: mem :: size_of :: < max_align_t > () , 32usize , concat ! ("Size of: " , stringify ! (max_align_t))) ; assert_eq ! (:: std :: mem :: align_of :: < max_align_t > () , 16usize , concat ! ("Alignment of " , stringify ! (max_align_t))) ; fn test_field___clang_max_align_nonce1 () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < max_align_t > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . __clang_max_align_nonce1) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (max_align_t) , "::" , stringify ! (__clang_max_align_nonce1))) ; } test_field___clang_max_align_nonce1 () ; fn test_field___clang_max_align_nonce2 () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < max_align_t > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . __clang_max_align_nonce2) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (max_align_t) , "::" , stringify ! (__clang_max_align_nonce2))) ; } test_field___clang_max_align_nonce2 () ; } pub type __u_char = :: std :: os :: raw :: c_uchar ; pub type __u_short = :: std :: os :: raw :: c_ushort ; pub type __u_int = :: std :: os :: raw :: c_uint ; pub type __u_long = :: std :: os :: raw :: c_ulong ; pub type __int8_t = :: std :: os :: raw :: c_schar ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __int16_t = :: std :: os :: raw :: c_short ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; pub type __int32_t = :: std :: os :: raw :: c_int ; pub type __uint32_t = :: std :: os :: raw :: c_uint ; pub type __int64_t = :: std :: os :: raw :: c_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: std :: os :: raw :: c_long ; pub type __u_quad_t = :: std :: os :: raw :: c_ulong ; pub type __intmax_t = :: std :: os :: raw :: c_long ; pub type __uintmax_t = :: std :: os :: raw :: c_ulong ; pub type __dev_t = :: std :: os :: raw :: c_ulong ; pub type __uid_t = :: std :: os :: raw :: c_uint ; pub type __gid_t = :: std :: os :: raw :: c_uint ; pub type __ino_t = :: std :: os :: raw :: c_ulong ; pub type __ino64_t = :: std :: os :: raw :: c_ulong ; pub type __mode_t = :: std :: os :: raw :: c_uint ; pub type __nlink_t = :: std :: os :: raw :: c_ulong ; pub type __off_t = :: std :: os :: raw :: c_long ; pub type __off64_t = :: std :: os :: raw :: c_long ; pub type __pid_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: std :: os :: raw :: c_int ; 2usize] , } # [test] fn bindgen_test_layout___fsid_t () { assert_eq ! (:: std :: mem :: size_of :: < __fsid_t > () , 8usize , concat ! ("Size of: " , stringify ! (__fsid_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __fsid_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__fsid_t))) ; fn test_field___val () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < __fsid_t > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . __val) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__fsid_t) , "::" , stringify ! (__val))) ; } test_field___val () ; } pub type __clock_t = :: std :: os :: raw :: c_long ; pub type __rlim_t = :: std :: os :: raw :: c_ulong ; pub type __rlim64_t = :: std :: os :: raw :: c_ulong ; pub type __id_t = :: std :: os :: raw :: c_uint ; pub type __time_t = :: std :: os :: raw :: c_long ; pub type __useconds_t = :: std :: os :: raw :: c_uint ; pub type __suseconds_t = :: std :: os :: raw :: c_long ; pub type __suseconds64_t = :: std :: os :: raw :: c_long ; pub type __daddr_t = :: std :: os :: raw :: c_int ; pub type __key_t = :: std :: os :: raw :: c_int ; pub type __clockid_t = :: std :: os :: raw :: c_int ; pub type __timer_t = * mut :: std :: os :: raw :: c_void ; pub type __blksize_t = :: std :: os :: raw :: c_long ; pub type __blkcnt_t = :: std :: os :: raw :: c_long ; pub type __blkcnt64_t = :: std :: os :: raw :: c_long ; pub type __fsblkcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsblkcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsword_t = :: std :: os :: raw :: c_long ; pub type __ssize_t = :: std :: os :: raw :: c_long ; pub type __syscall_slong_t = :: std :: os :: raw :: c_long ; pub type __syscall_ulong_t = :: std :: os :: raw :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: std :: os :: raw :: c_char ; pub type __intptr_t = :: std :: os :: raw :: c_long ; pub type __socklen_t = :: std :: os :: raw :: c_uint ; pub type __sig_atomic_t = :: std :: os :: raw :: c_int ; pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = :: std :: os :: raw :: c_schar ; pub type int_fast16_t = :: std :: os :: raw :: c_long ; pub type int_fast32_t = :: std :: os :: raw :: c_long ; pub type int_fast64_t = :: std :: os :: raw :: c_long ; pub type uint_fast8_t = :: std :: os :: raw :: c_uchar ; pub type uint_fast16_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast32_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast64_t = :: std :: os :: raw :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const FlutterEngineResult_kSuccess : FlutterEngineResult = 0 ; pub const FlutterEngineResult_kInvalidLibraryVersion : FlutterEngineResult = 1 ; pub const FlutterEngineResult_kInvalidArguments : FlutterEngineResult = 2 ; pub const FlutterEngineResult_kInternalInconsistency : FlutterEngineResult = 3 ; pub type FlutterEngineResult = :: std :: os :: raw :: c_uint ; pub const FlutterRendererType_kOpenGL : FlutterRendererType = 0 ; pub const FlutterRendererType_kSoftware : FlutterRendererType = 1 ; # [doc = " Metal is only supported on Darwin platforms (macOS / iOS)."] # [doc = " iOS version >= 10.0 (device), 13.0 (simulator)"] # [doc = " macOS version >= 10.14"] pub const FlutterRendererType_kMetal : FlutterRendererType = 2 ; # [doc = " Metal is only supported on Darwin platforms (macOS / iOS)."] # [doc = " iOS version >= 10.0 (device), 13.0 (simulator)"] # [doc = " macOS version >= 10.14"] pub const FlutterRendererType_kVulkan : FlutterRendererType = 3 ; pub type FlutterRendererType = :: std :: os :: raw :: c_uint ; # [doc = " Indicate there is a running accessibility service which is changing the"] # [doc = " interaction model of the device."] pub const FlutterAccessibilityFeature_kFlutterAccessibilityFeatureAccessibleNavigation : FlutterAccessibilityFeature = 1 ; # [doc = " Indicate the platform is inverting the colors of the application."] pub const FlutterAccessibilityFeature_kFlutterAccessibilityFeatureInvertColors : FlutterAccessibilityFeature = 2 ; # [doc = " Request that animations be disabled or simplified."] pub const FlutterAccessibilityFeature_kFlutterAccessibilityFeatureDisableAnimations : FlutterAccessibilityFeature = 4 ; # [doc = " Request that text be rendered at a bold font weight."] pub const FlutterAccessibilityFeature_kFlutterAccessibilityFeatureBoldText : FlutterAccessibilityFeature = 8 ; # [doc = " Request that certain animations be simplified and parallax effects"] # [doc = " removed."] pub const FlutterAccessibilityFeature_kFlutterAccessibilityFeatureReduceMotion : FlutterAccessibilityFeature = 16 ; # [doc = " Request that UI be rendered with darker colors."] pub const FlutterAccessibilityFeature_kFlutterAccessibilityFeatureHighContrast : FlutterAccessibilityFeature = 32 ; # [doc = " Request to show on/off labels inside switches."] pub const FlutterAccessibilityFeature_kFlutterAccessibilityFeatureOnOffSwitchLabels : FlutterAccessibilityFeature = 64 ; # [doc = " Additional accessibility features that may be enabled by the platform."] # [doc = " Must match the `AccessibilityFeatures` enum in window.dart."] pub type FlutterAccessibilityFeature = :: std :: os :: raw :: c_uint ; # [doc = " The equivalent of a user briefly tapping the screen with the finger"] # [doc = " without moving it."] pub const FlutterSemanticsAction_kFlutterSemanticsActionTap : FlutterSemanticsAction = 1 ; # [doc = " The equivalent of a user pressing and holding the screen with the finger"] # [doc = " for a few seconds without moving it."] pub const FlutterSemanticsAction_kFlutterSemanticsActionLongPress : FlutterSemanticsAction = 2 ; # [doc = " The equivalent of a user moving their finger across the screen from right"] # [doc = " to left."] pub const FlutterSemanticsAction_kFlutterSemanticsActionScrollLeft : FlutterSemanticsAction = 4 ; # [doc = " The equivalent of a user moving their finger across the screen from left"] # [doc = " to"] # [doc = " right."] pub const FlutterSemanticsAction_kFlutterSemanticsActionScrollRight : FlutterSemanticsAction = 8 ; # [doc = " The equivalent of a user moving their finger across the screen from bottom"] # [doc = " to top."] pub const FlutterSemanticsAction_kFlutterSemanticsActionScrollUp : FlutterSemanticsAction = 16 ; # [doc = " The equivalent of a user moving their finger across the screen from top to"] # [doc = " bottom."] pub const FlutterSemanticsAction_kFlutterSemanticsActionScrollDown : FlutterSemanticsAction = 32 ; # [doc = " Increase the value represented by the semantics node."] pub const FlutterSemanticsAction_kFlutterSemanticsActionIncrease : FlutterSemanticsAction = 64 ; # [doc = " Decrease the value represented by the semantics node."] pub const FlutterSemanticsAction_kFlutterSemanticsActionDecrease : FlutterSemanticsAction = 128 ; # [doc = " A request to fully show the semantics node on screen."] pub const FlutterSemanticsAction_kFlutterSemanticsActionShowOnScreen : FlutterSemanticsAction = 256 ; # [doc = " Move the cursor forward by one character."] pub const FlutterSemanticsAction_kFlutterSemanticsActionMoveCursorForwardByCharacter : FlutterSemanticsAction = 512 ; # [doc = " Move the cursor backward by one character."] pub const FlutterSemanticsAction_kFlutterSemanticsActionMoveCursorBackwardByCharacter : FlutterSemanticsAction = 1024 ; # [doc = " Set the text selection to the given range."] pub const FlutterSemanticsAction_kFlutterSemanticsActionSetSelection : FlutterSemanticsAction = 2048 ; # [doc = " Copy the current selection to the clipboard."] pub const FlutterSemanticsAction_kFlutterSemanticsActionCopy : FlutterSemanticsAction = 4096 ; # [doc = " Cut the current selection and place it in the clipboard."] pub const FlutterSemanticsAction_kFlutterSemanticsActionCut : FlutterSemanticsAction = 8192 ; # [doc = " Paste the current content of the clipboard."] pub const FlutterSemanticsAction_kFlutterSemanticsActionPaste : FlutterSemanticsAction = 16384 ; # [doc = " Indicate that the node has gained accessibility focus."] pub const FlutterSemanticsAction_kFlutterSemanticsActionDidGainAccessibilityFocus : FlutterSemanticsAction = 32768 ; # [doc = " Indicate that the node has lost accessibility focus."] pub const FlutterSemanticsAction_kFlutterSemanticsActionDidLoseAccessibilityFocus : FlutterSemanticsAction = 65536 ; # [doc = " Indicate that the user has invoked a custom accessibility action."] pub const FlutterSemanticsAction_kFlutterSemanticsActionCustomAction : FlutterSemanticsAction = 131072 ; # [doc = " A request that the node should be dismissed."] pub const FlutterSemanticsAction_kFlutterSemanticsActionDismiss : FlutterSemanticsAction = 262144 ; # [doc = " Move the cursor forward by one word."] pub const FlutterSemanticsAction_kFlutterSemanticsActionMoveCursorForwardByWord : FlutterSemanticsAction = 524288 ; # [doc = " Move the cursor backward by one word."] pub const FlutterSemanticsAction_kFlutterSemanticsActionMoveCursorBackwardByWord : FlutterSemanticsAction = 1048576 ; # [doc = " Replace the current text in the text field."] pub const FlutterSemanticsAction_kFlutterSemanticsActionSetText : FlutterSemanticsAction = 2097152 ; # [doc = " The set of possible actions that can be conveyed to a semantics node."] # [doc = ""] # [doc = " Must match the `SemanticsAction` enum in semantics.dart."] pub type FlutterSemanticsAction = :: std :: os :: raw :: c_uint ; # [doc = " The semantics node has the quality of either being \"checked\" or"] # [doc = " \"unchecked\"."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagHasCheckedState : FlutterSemanticsFlag = 1 ; # [doc = " Whether a semantics node is checked."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsChecked : FlutterSemanticsFlag = 2 ; # [doc = " Whether a semantics node is selected."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsSelected : FlutterSemanticsFlag = 4 ; # [doc = " Whether the semantic node represents a button."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsButton : FlutterSemanticsFlag = 8 ; # [doc = " Whether the semantic node represents a text field."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsTextField : FlutterSemanticsFlag = 16 ; # [doc = " Whether the semantic node currently holds the user's focus."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsFocused : FlutterSemanticsFlag = 32 ; # [doc = " The semantics node has the quality of either being \"enabled\" or"] # [doc = " \"disabled\"."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagHasEnabledState : FlutterSemanticsFlag = 64 ; # [doc = " Whether a semantic node that hasEnabledState is currently enabled."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsEnabled : FlutterSemanticsFlag = 128 ; # [doc = " Whether a semantic node is in a mutually exclusive group."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsInMutuallyExclusiveGroup : FlutterSemanticsFlag = 256 ; # [doc = " Whether a semantic node is a header that divides content into sections."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsHeader : FlutterSemanticsFlag = 512 ; # [doc = " Whether the value of the semantics node is obscured."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsObscured : FlutterSemanticsFlag = 1024 ; # [doc = " Whether the semantics node is the root of a subtree for which a route name"] # [doc = " should be announced."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagScopesRoute : FlutterSemanticsFlag = 2048 ; # [doc = " Whether the semantics node label is the name of a visually distinct route."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagNamesRoute : FlutterSemanticsFlag = 4096 ; # [doc = " Whether the semantics node is considered hidden."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsHidden : FlutterSemanticsFlag = 8192 ; # [doc = " Whether the semantics node represents an image."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsImage : FlutterSemanticsFlag = 16384 ; # [doc = " Whether the semantics node is a live region."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsLiveRegion : FlutterSemanticsFlag = 32768 ; # [doc = " The semantics node has the quality of either being \"on\" or \"off\"."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagHasToggledState : FlutterSemanticsFlag = 65536 ; # [doc = " If true, the semantics node is \"on\". If false, the semantics node is"] # [doc = " \"off\"."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsToggled : FlutterSemanticsFlag = 131072 ; # [doc = " Whether the platform can scroll the semantics node when the user attempts"] # [doc = " to move the accessibility focus to an offscreen child."] # [doc = ""] # [doc = " For example, a `ListView` widget has implicit scrolling so that users can"] # [doc = " easily move the accessibility focus to the next set of children. A"] # [doc = " `PageView` widget does not have implicit scrolling, so that users don't"] # [doc = " navigate to the next page when reaching the end of the current one."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagHasImplicitScrolling : FlutterSemanticsFlag = 262144 ; # [doc = " Whether the value of the semantics node is coming from a multi-line text"] # [doc = " field."] # [doc = ""] # [doc = " This is used for text fields to distinguish single-line text fields from"] # [doc = " multi-line ones."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsMultiline : FlutterSemanticsFlag = 524288 ; # [doc = " Whether the semantic node is read only."] # [doc = ""] # [doc = " Only applicable when kFlutterSemanticsFlagIsTextField flag is on."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsReadOnly : FlutterSemanticsFlag = 1048576 ; # [doc = " Whether the semantic node can hold the user's focus."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsFocusable : FlutterSemanticsFlag = 2097152 ; # [doc = " Whether the semantics node represents a link."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsLink : FlutterSemanticsFlag = 4194304 ; # [doc = " Whether the semantics node represents a slider."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsSlider : FlutterSemanticsFlag = 8388608 ; # [doc = " Whether the semantics node represents a keyboard key."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsKeyboardKey : FlutterSemanticsFlag = 16777216 ; # [doc = " The set of properties that may be associated with a semantics node."] # [doc = ""] # [doc = " Must match the `SemanticsFlag` enum in semantics.dart."] pub type FlutterSemanticsFlag = :: std :: os :: raw :: c_uint ; # [doc = " Text has unknown text direction."] pub const FlutterTextDirection_kFlutterTextDirectionUnknown : FlutterTextDirection = 0 ; # [doc = " Text is read from right to left."] pub const FlutterTextDirection_kFlutterTextDirectionRTL : FlutterTextDirection = 1 ; # [doc = " Text is read from left to right."] pub const FlutterTextDirection_kFlutterTextDirectionLTR : FlutterTextDirection = 2 ; pub type FlutterTextDirection = :: std :: os :: raw :: c_uint ; # [doc = " Suitable for threads that shouldn't disrupt high priority work."] pub const FlutterThreadPriority_kBackground : FlutterThreadPriority = 0 ; # [doc = " Default priority level."] pub const FlutterThreadPriority_kNormal : FlutterThreadPriority = 1 ; # [doc = " Suitable for threads which generate data for the display."] pub const FlutterThreadPriority_kDisplay : FlutterThreadPriority = 2 ; # [doc = " Suitable for thread which raster data."] pub const FlutterThreadPriority_kRaster : FlutterThreadPriority = 3 ; # [doc = " Valid values for priority of Thread."] pub type FlutterThreadPriority = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _FlutterEngine { _unused : [u8 ; 0] , } pub type FlutterEngine = * mut _FlutterEngine ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterTransformation { # [doc = " horizontal scale factor"] pub scaleX : f64 , # [doc = " horizontal skew factor"] pub skewX : f64 , # [doc = " horizontal translation"] pub transX : f64 , # [doc = " vertical skew factor"] pub skewY : f64 , # [doc = " vertical scale factor"] pub scaleY : f64 , # [doc = " vertical translation"] pub transY : f64 , # [doc = " input x-axis perspective factor"] pub pers0 : f64 , # [doc = " input y-axis perspective factor"] pub pers1 : f64 , # [doc = " perspective scale factor"] pub pers2 : f64 , } # [test] fn bindgen_test_layout_FlutterTransformation () { assert_eq ! (:: std :: mem :: size_of :: < FlutterTransformation > () , 72usize , concat ! ("Size of: " , stringify ! (FlutterTransformation))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterTransformation > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterTransformation))) ; fn test_field_scaleX () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scaleX) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (scaleX))) ; } test_field_scaleX () ; fn test_field_skewX () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . skewX) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (skewX))) ; } test_field_skewX () ; fn test_field_transX () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . transX) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (transX))) ; } test_field_transX () ; fn test_field_skewY () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . skewY) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (skewY))) ; } test_field_skewY () ; fn test_field_scaleY () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scaleY) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (scaleY))) ; } test_field_scaleY () ; fn test_field_transY () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . transY) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (transY))) ; } test_field_transY () ; fn test_field_pers0 () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . pers0) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (pers0))) ; } test_field_pers0 () ; fn test_field_pers1 () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . pers1) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (pers1))) ; } test_field_pers1 () ; fn test_field_pers2 () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . pers2) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (pers2))) ; } test_field_pers2 () ; } pub type VoidCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void) > ; # [doc = " Specifies an OpenGL texture target type. Textures are specified using"] # [doc = " the FlutterOpenGLTexture struct."] pub const FlutterOpenGLTargetType_kFlutterOpenGLTargetTypeTexture : FlutterOpenGLTargetType = 0 ; # [doc = " Specifies an OpenGL frame-buffer target type. Framebuffers are specified"] # [doc = " using the FlutterOpenGLFramebuffer struct."] pub const FlutterOpenGLTargetType_kFlutterOpenGLTargetTypeFramebuffer : FlutterOpenGLTargetType = 1 ; pub type FlutterOpenGLTargetType = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterOpenGLTexture { # [doc = " Target texture of the active texture unit (example GL_TEXTURE_2D or"] # [doc = " GL_TEXTURE_RECTANGLE)."] pub target : u32 , # [doc = " The name of the texture."] pub name : u32 , # [doc = " The texture format (example GL_RGBA8)."] pub format : u32 , # [doc = " User data to be returned on the invocation of the destruction callback."] pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " Callback invoked (on an engine managed thread) that asks the embedder to"] # [doc = " collect the texture."] pub destruction_callback : VoidCallback , # [doc = " Optional parameters for texture height/width, default is 0, non-zero means"] # [doc = " the texture has the specified width/height. Usually, when the texture type"] # [doc = " is GL_TEXTURE_RECTANGLE, we need to specify the texture width/height to"] # [doc = " tell the embedder to scale when rendering."] # [doc = " Width of the texture."] pub width : size_t , # [doc = " Height of the texture."] pub height : size_t , } # [test] fn bindgen_test_layout_FlutterOpenGLTexture () { assert_eq ! (:: std :: mem :: size_of :: < FlutterOpenGLTexture > () , 48usize , concat ! ("Size of: " , stringify ! (FlutterOpenGLTexture))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterOpenGLTexture > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterOpenGLTexture))) ; fn test_field_target () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . target) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLTexture) , "::" , stringify ! (target))) ; } test_field_target () ; fn test_field_name () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLTexture) , "::" , stringify ! (name))) ; } test_field_name () ; fn test_field_format () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . format) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLTexture) , "::" , stringify ! (format))) ; } test_field_format () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLTexture) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_destruction_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . destruction_callback) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLTexture) , "::" , stringify ! (destruction_callback))) ; } test_field_destruction_callback () ; fn test_field_width () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . width) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLTexture) , "::" , stringify ! (width))) ; } test_field_width () ; fn test_field_height () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . height) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLTexture) , "::" , stringify ! (height))) ; } test_field_height () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterOpenGLFramebuffer { # [doc = " The target of the color attachment of the frame-buffer. For example,"] # [doc = " GL_TEXTURE_2D or GL_RENDERBUFFER. In case of ambiguity when dealing with"] # [doc = " Window bound frame-buffers, 0 may be used."] pub target : u32 , # [doc = " The name of the framebuffer."] pub name : u32 , # [doc = " User data to be returned on the invocation of the destruction callback."] pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " Callback invoked (on an engine managed thread) that asks the embedder to"] # [doc = " collect the framebuffer."] pub destruction_callback : VoidCallback , } # [test] fn bindgen_test_layout_FlutterOpenGLFramebuffer () { assert_eq ! (:: std :: mem :: size_of :: < FlutterOpenGLFramebuffer > () , 24usize , concat ! ("Size of: " , stringify ! (FlutterOpenGLFramebuffer))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterOpenGLFramebuffer > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterOpenGLFramebuffer))) ; fn test_field_target () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLFramebuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . target) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLFramebuffer) , "::" , stringify ! (target))) ; } test_field_target () ; fn test_field_name () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLFramebuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLFramebuffer) , "::" , stringify ! (name))) ; } test_field_name () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLFramebuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLFramebuffer) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_destruction_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLFramebuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . destruction_callback) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLFramebuffer) , "::" , stringify ! (destruction_callback))) ; } test_field_destruction_callback () ; } pub type BoolCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void) -> bool > ; pub type TransformationCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void) -> FlutterTransformation > ; pub type UIntCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void) -> u32 > ; pub type SoftwareSurfacePresentCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void , arg3 : size_t , arg4 : size_t) -> bool > ; pub type ProcResolver = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_void > ; pub type TextureFrameCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : i64 , arg3 : size_t , arg4 : size_t , arg5 : * mut FlutterOpenGLTexture) -> bool > ; pub type VsyncCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : isize) > ; pub type OnPreEngineRestartCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void) > ; # [doc = " A structure to represent the width and height."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterSize { pub width : f64 , pub height : f64 , } # [test] fn bindgen_test_layout_FlutterSize () { assert_eq ! (:: std :: mem :: size_of :: < FlutterSize > () , 16usize , concat ! ("Size of: " , stringify ! (FlutterSize))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterSize > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterSize))) ; fn test_field_width () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSize > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . width) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterSize) , "::" , stringify ! (width))) ; } test_field_width () ; fn test_field_height () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSize > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . height) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterSize) , "::" , stringify ! (height))) ; } test_field_height () ; } # [doc = " A structure to represent the width and height."] # [doc = ""] # [doc = " See: \\ref FlutterSize when the value are not integers."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterUIntSize { pub width : u32 , pub height : u32 , } # [test] fn bindgen_test_layout_FlutterUIntSize () { assert_eq ! (:: std :: mem :: size_of :: < FlutterUIntSize > () , 8usize , concat ! ("Size of: " , stringify ! (FlutterUIntSize))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterUIntSize > () , 4usize , concat ! ("Alignment of " , stringify ! (FlutterUIntSize))) ; fn test_field_width () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterUIntSize > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . width) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterUIntSize) , "::" , stringify ! (width))) ; } test_field_width () ; fn test_field_height () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterUIntSize > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . height) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (FlutterUIntSize) , "::" , stringify ! (height))) ; } test_field_height () ; } # [doc = " A structure to represent a rectangle."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterRect { pub left : f64 , pub top : f64 , pub right : f64 , pub bottom : f64 , } # [test] fn bindgen_test_layout_FlutterRect () { assert_eq ! (:: std :: mem :: size_of :: < FlutterRect > () , 32usize , concat ! ("Size of: " , stringify ! (FlutterRect))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterRect > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterRect))) ; fn test_field_left () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . left) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterRect) , "::" , stringify ! (left))) ; } test_field_left () ; fn test_field_top () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . top) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterRect) , "::" , stringify ! (top))) ; } test_field_top () ; fn test_field_right () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . right) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterRect) , "::" , stringify ! (right))) ; } test_field_right () ; fn test_field_bottom () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . bottom) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterRect) , "::" , stringify ! (bottom))) ; } test_field_bottom () ; } # [doc = " A structure to represent a 2D point."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterPoint { pub x : f64 , pub y : f64 , } # [test] fn bindgen_test_layout_FlutterPoint () { assert_eq ! (:: std :: mem :: size_of :: < FlutterPoint > () , 16usize , concat ! ("Size of: " , stringify ! (FlutterPoint))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterPoint > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterPoint))) ; fn test_field_x () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPoint > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . x) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPoint) , "::" , stringify ! (x))) ; } test_field_x () ; fn test_field_y () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPoint > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . y) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterPoint) , "::" , stringify ! (y))) ; } test_field_y () ; } # [doc = " A structure to represent a rounded rectangle."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterRoundedRect { pub rect : FlutterRect , pub upper_left_corner_radius : FlutterSize , pub upper_right_corner_radius : FlutterSize , pub lower_right_corner_radius : FlutterSize , pub lower_left_corner_radius : FlutterSize , } # [test] fn bindgen_test_layout_FlutterRoundedRect () { assert_eq ! (:: std :: mem :: size_of :: < FlutterRoundedRect > () , 96usize , concat ! ("Size of: " , stringify ! (FlutterRoundedRect))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterRoundedRect > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterRoundedRect))) ; fn test_field_rect () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRoundedRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . rect) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterRoundedRect) , "::" , stringify ! (rect))) ; } test_field_rect () ; fn test_field_upper_left_corner_radius () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRoundedRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . upper_left_corner_radius) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterRoundedRect) , "::" , stringify ! (upper_left_corner_radius))) ; } test_field_upper_left_corner_radius () ; fn test_field_upper_right_corner_radius () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRoundedRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . upper_right_corner_radius) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterRoundedRect) , "::" , stringify ! (upper_right_corner_radius))) ; } test_field_upper_right_corner_radius () ; fn test_field_lower_right_corner_radius () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRoundedRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . lower_right_corner_radius) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterRoundedRect) , "::" , stringify ! (lower_right_corner_radius))) ; } test_field_lower_right_corner_radius () ; fn test_field_lower_left_corner_radius () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRoundedRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . lower_left_corner_radius) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (FlutterRoundedRect) , "::" , stringify ! (lower_left_corner_radius))) ; } test_field_lower_left_corner_radius () ; } # [doc = " This information is passed to the embedder when requesting a frame buffer"] # [doc = " object."] # [doc = ""] # [doc = " See: \\ref FlutterOpenGLRendererConfig.fbo_with_frame_info_callback."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterFrameInfo { # [doc = " The size of this struct. Must be sizeof(FlutterFrameInfo)."] pub struct_size : size_t , # [doc = " The size of the surface that will be backed by the fbo."] pub size : FlutterUIntSize , } # [test] fn bindgen_test_layout_FlutterFrameInfo () { assert_eq ! (:: std :: mem :: size_of :: < FlutterFrameInfo > () , 16usize , concat ! ("Size of: " , stringify ! (FlutterFrameInfo))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterFrameInfo > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterFrameInfo))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterFrameInfo > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterFrameInfo) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterFrameInfo > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterFrameInfo) , "::" , stringify ! (size))) ; } test_field_size () ; } # [doc = " Callback for when a frame buffer object is requested."] pub type UIntFrameInfoCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * const FlutterFrameInfo) -> u32 > ; # [doc = " This information is passed to the embedder when a surface is presented."] # [doc = ""] # [doc = " See: \\ref FlutterOpenGLRendererConfig.present_with_info."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterPresentInfo { # [doc = " The size of this struct. Must be sizeof(FlutterPresentInfo)."] pub struct_size : size_t , # [doc = " Id of the fbo backing the surface that was presented."] pub fbo_id : u32 , } # [test] fn bindgen_test_layout_FlutterPresentInfo () { assert_eq ! (:: std :: mem :: size_of :: < FlutterPresentInfo > () , 16usize , concat ! ("Size of: " , stringify ! (FlutterPresentInfo))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterPresentInfo > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterPresentInfo))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPresentInfo > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPresentInfo) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_fbo_id () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPresentInfo > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . fbo_id) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterPresentInfo) , "::" , stringify ! (fbo_id))) ; } test_field_fbo_id () ; } # [doc = " Callback for when a surface is presented."] pub type BoolPresentInfoCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * const FlutterPresentInfo) -> bool > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterOpenGLRendererConfig { # [doc = " The size of this struct. Must be sizeof(FlutterOpenGLRendererConfig)."] pub struct_size : size_t , pub make_current : BoolCallback , pub clear_current : BoolCallback , # [doc = " Specifying one (and only one) of `present` or `present_with_info` is"] # [doc = " required. Specifying both is an error and engine initialization will be"] # [doc = " terminated. The return value indicates success of the present call."] pub present : BoolCallback , # [doc = " Specifying one (and only one) of the `fbo_callback` or"] # [doc = " `fbo_with_frame_info_callback` is required. Specifying both is an error"] # [doc = " and engine intialization will be terminated. The return value indicates"] # [doc = " the id of the frame buffer object that flutter will obtain the gl surface"] # [doc = " from."] pub fbo_callback : UIntCallback , # [doc = " This is an optional callback. Flutter will ask the emebdder to create a GL"] # [doc = " context current on a background thread. If the embedder is able to do so,"] # [doc = " Flutter will assume that this context is in the same sharegroup as the"] # [doc = " main rendering context and use this context for asynchronous texture"] # [doc = " uploads. Though optional, it is recommended that all embedders set this"] # [doc = " callback as it will lead to better performance in texture handling."] pub make_resource_current : BoolCallback , # [doc = " By default, the renderer config assumes that the FBO does not change for"] # [doc = " the duration of the engine run. If this argument is true, the"] # [doc = " engine will ask the embedder for an updated FBO target (via an"] # [doc = " fbo_callback invocation) after a present call."] pub fbo_reset_after_present : bool , # [doc = " The transformation to apply to the render target before any rendering"] # [doc = " operations. This callback is optional."] # [doc = " @attention      When using a custom compositor, the layer offset and sizes"] # [doc = "                 will be affected by this transformation. It will be"] # [doc = "                 embedder responsibility to render contents at the"] # [doc = "                 transformed offset and size. This is useful for embedders"] # [doc = "                 that want to render transformed contents directly into"] # [doc = "                 hardware overlay planes without having to apply extra"] # [doc = "                 transformations to layer contents (which may necessitate"] # [doc = "                 an expensive off-screen render pass)."] pub surface_transformation : TransformationCallback , pub gl_proc_resolver : ProcResolver , # [doc = " When the embedder specifies that a texture has a frame available, the"] # [doc = " engine will call this method (on an internal engine managed thread) so"] # [doc = " that external texture details can be supplied to the engine for subsequent"] # [doc = " composition."] pub gl_external_texture_frame_callback : TextureFrameCallback , # [doc = " Specifying one (and only one) of the `fbo_callback` or"] # [doc = " `fbo_with_frame_info_callback` is required. Specifying both is an error"] # [doc = " and engine intialization will be terminated. The return value indicates"] # [doc = " the id of the frame buffer object (fbo) that flutter will obtain the gl"] # [doc = " surface from. When using this variant, the embedder is passed a"] # [doc = " `FlutterFrameInfo` struct that indicates the properties of the surface"] # [doc = " that flutter will acquire from the returned fbo."] pub fbo_with_frame_info_callback : UIntFrameInfoCallback , # [doc = " Specifying one (and only one) of `present` or `present_with_info` is"] # [doc = " required. Specifying both is an error and engine initialization will be"] # [doc = " terminated. When using this variant, the embedder is passed a"] # [doc = " `FlutterPresentInfo` struct that the embedder can use to release any"] # [doc = " resources. The return value indicates success of the present call."] pub present_with_info : BoolPresentInfoCallback , } # [test] fn bindgen_test_layout_FlutterOpenGLRendererConfig () { assert_eq ! (:: std :: mem :: size_of :: < FlutterOpenGLRendererConfig > () , 96usize , concat ! ("Size of: " , stringify ! (FlutterOpenGLRendererConfig))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterOpenGLRendererConfig > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterOpenGLRendererConfig))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_make_current () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . make_current) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (make_current))) ; } test_field_make_current () ; fn test_field_clear_current () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . clear_current) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (clear_current))) ; } test_field_clear_current () ; fn test_field_present () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . present) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (present))) ; } test_field_present () ; fn test_field_fbo_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . fbo_callback) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (fbo_callback))) ; } test_field_fbo_callback () ; fn test_field_make_resource_current () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . make_resource_current) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (make_resource_current))) ; } test_field_make_resource_current () ; fn test_field_fbo_reset_after_present () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . fbo_reset_after_present) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (fbo_reset_after_present))) ; } test_field_fbo_reset_after_present () ; fn test_field_surface_transformation () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . surface_transformation) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (surface_transformation))) ; } test_field_surface_transformation () ; fn test_field_gl_proc_resolver () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . gl_proc_resolver) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (gl_proc_resolver))) ; } test_field_gl_proc_resolver () ; fn test_field_gl_external_texture_frame_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . gl_external_texture_frame_callback) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (gl_external_texture_frame_callback))) ; } test_field_gl_external_texture_frame_callback () ; fn test_field_fbo_with_frame_info_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . fbo_with_frame_info_callback) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (fbo_with_frame_info_callback))) ; } test_field_fbo_with_frame_info_callback () ; fn test_field_present_with_info () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . present_with_info) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (present_with_info))) ; } test_field_present_with_info () ; } # [doc = " Alias for id<MTLDevice>."] pub type FlutterMetalDeviceHandle = * const :: std :: os :: raw :: c_void ; # [doc = " Alias for id<MTLCommandQueue>."] pub type FlutterMetalCommandQueueHandle = * const :: std :: os :: raw :: c_void ; # [doc = " Alias for id<MTLTexture>."] pub type FlutterMetalTextureHandle = * const :: std :: os :: raw :: c_void ; pub const FlutterMetalExternalTexturePixelFormat_kYUVA : FlutterMetalExternalTexturePixelFormat = 0 ; pub const FlutterMetalExternalTexturePixelFormat_kRGBA : FlutterMetalExternalTexturePixelFormat = 1 ; # [doc = " Pixel format for the external texture."] pub type FlutterMetalExternalTexturePixelFormat = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterMetalExternalTexture { # [doc = " The size of this struct. Must be sizeof(FlutterMetalExternalTexture)."] pub struct_size : size_t , # [doc = " Height of the texture."] pub width : size_t , # [doc = " Height of the texture."] pub height : size_t , # [doc = " The pixel format type of the external."] pub pixel_format : FlutterMetalExternalTexturePixelFormat , # [doc = " Represents the size of the `textures` array."] pub num_textures : size_t , # [doc = " Supported textures are YUVA and RGBA, in case of YUVA we expect 2 texture"] # [doc = " handles to be provided by the embedder, Y first and UV next. In case of"] # [doc = " RGBA only one should be passed."] # [doc = " These are individually aliases for id<MTLTexture>. These textures are"] # [doc = " retained by the engine for the period of the composition. Once these"] # [doc = " textures have been unregistered via the"] # [doc = " `FlutterEngineUnregisterExternalTexture`, the embedder has to release"] # [doc = " these textures."] pub textures : * mut FlutterMetalTextureHandle , } # [test] fn bindgen_test_layout_FlutterMetalExternalTexture () { assert_eq ! (:: std :: mem :: size_of :: < FlutterMetalExternalTexture > () , 48usize , concat ! ("Size of: " , stringify ! (FlutterMetalExternalTexture))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterMetalExternalTexture > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterMetalExternalTexture))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalExternalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalExternalTexture) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_width () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalExternalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . width) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalExternalTexture) , "::" , stringify ! (width))) ; } test_field_width () ; fn test_field_height () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalExternalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . height) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalExternalTexture) , "::" , stringify ! (height))) ; } test_field_height () ; fn test_field_pixel_format () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalExternalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . pixel_format) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalExternalTexture) , "::" , stringify ! (pixel_format))) ; } test_field_pixel_format () ; fn test_field_num_textures () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalExternalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . num_textures) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalExternalTexture) , "::" , stringify ! (num_textures))) ; } test_field_num_textures () ; fn test_field_textures () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalExternalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . textures) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalExternalTexture) , "::" , stringify ! (textures))) ; } test_field_textures () ; } # [doc = " Callback to provide an external texture for a given texture_id."] # [doc = " See: external_texture_frame_callback."] pub type FlutterMetalTextureFrameCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : i64 , arg3 : size_t , arg4 : size_t , arg5 : * mut FlutterMetalExternalTexture) -> bool > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterMetalTexture { # [doc = " The size of this struct. Must be sizeof(FlutterMetalTexture)."] pub struct_size : size_t , # [doc = " Embedder provided unique identifier to the texture buffer. Given that the"] # [doc = " `texture` handle is passed to the engine to render to, the texture buffer"] # [doc = " is itself owned by the embedder. This `texture_id` is then also given to"] # [doc = " the embedder in the present callback."] pub texture_id : i64 , # [doc = " Handle to the MTLTexture that is owned by the embedder. Engine will render"] # [doc = " the frame into this texture."] pub texture : FlutterMetalTextureHandle , # [doc = " A baton that is not interpreted by the engine in any way. It will be given"] # [doc = " back to the embedder in the destruction callback below. Embedder resources"] # [doc = " may be associated with this baton."] pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " The callback invoked by the engine when it no longer needs this backing"] # [doc = " store."] pub destruction_callback : VoidCallback , } # [test] fn bindgen_test_layout_FlutterMetalTexture () { assert_eq ! (:: std :: mem :: size_of :: < FlutterMetalTexture > () , 40usize , concat ! ("Size of: " , stringify ! (FlutterMetalTexture))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterMetalTexture > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterMetalTexture))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalTexture) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_texture_id () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . texture_id) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalTexture) , "::" , stringify ! (texture_id))) ; } test_field_texture_id () ; fn test_field_texture () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . texture) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalTexture) , "::" , stringify ! (texture))) ; } test_field_texture () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalTexture) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_destruction_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . destruction_callback) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalTexture) , "::" , stringify ! (destruction_callback))) ; } test_field_destruction_callback () ; } # [doc = " Callback for when a metal texture is requested."] pub type FlutterMetalTextureCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * const FlutterFrameInfo) -> FlutterMetalTexture > ; # [doc = " Callback for when a metal texture is presented. The texture_id here"] # [doc = " corresponds to the texture_id provided by the embedder in the"] # [doc = " `FlutterMetalTextureCallback` callback."] pub type FlutterMetalPresentCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * const FlutterMetalTexture) -> bool > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterMetalRendererConfig { # [doc = " The size of this struct. Must be sizeof(FlutterMetalRendererConfig)."] pub struct_size : size_t , `# [doc = " Alias for id<MTLDevice>."]` pub device : FlutterMetalDeviceHandle , # [doc = " Alias for id<MTLCommandQueue>."] pub present_command_queue : FlutterMetalCommandQueueHandle , # [doc = " The callback that gets invoked when the engine requests the embedder for a"] # [doc = " texture to render to."] pub get_next_drawable_callback : FlutterMetalTextureCallback , # [doc = " The callback presented to the embedder to present a fully populated metal"] # [doc = " texture to the user."] pub present_drawable_callback : FlutterMetalPresentCallback , # [doc = " When the embedder specifies that a texture has a frame available, the"] # [doc = " engine will call this method (on an internal engine managed thread) so"] # [doc = " that external texture details can be supplied to the engine for subsequent"] # [doc = " composition."] pub external_texture_frame_callback : FlutterMetalTextureFrameCallback , } # [test] fn bindgen_test_layout_FlutterMetalRendererConfig () { assert_eq ! (:: std :: mem :: size_of :: < FlutterMetalRendererConfig > () , 48usize , concat ! ("Size of: " , stringify ! (FlutterMetalRendererConfig))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterMetalRendererConfig > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterMetalRendererConfig))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalRendererConfig) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_device () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . device) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalRendererConfig) , "::" , stringify ! (device))) ; } test_field_device () ; fn test_field_present_command_queue () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . present_command_queue) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalRendererConfig) , "::" , stringify ! (present_command_queue))) ; } test_field_present_command_queue () ; fn test_field_get_next_drawable_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . get_next_drawable_callback) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalRendererConfig) , "::" , stringify ! (get_next_drawable_callback))) ; } test_field_get_next_drawable_callback () ; fn test_field_present_drawable_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . present_drawable_callback) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalRendererConfig) , "::" , stringify ! (present_drawable_callback))) ; } test_field_present_drawable_callback () ; fn test_field_external_texture_frame_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . external_texture_frame_callback) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalRendererConfig) , "::" , stringify ! (external_texture_frame_callback))) ; } test_field_external_texture_frame_callback () ; } # [doc = " Alias for VkInstance."] pub type FlutterVulkanInstanceHandle = * mut :: std :: os :: raw :: c_void ; # [doc = " Alias for VkPhysicalDevice."] pub type FlutterVulkanPhysicalDeviceHandle = * mut :: std :: os :: raw :: c_void ; # [doc = " Alias for VkDevice."] pub type FlutterVulkanDeviceHandle = * mut :: std :: os :: raw :: c_void ; # [doc = " Alias for VkQueue."] pub type FlutterVulkanQueueHandle = * mut :: std :: os :: raw :: c_void ; # [doc = " Alias for VkImage."] pub type FlutterVulkanImageHandle = u64 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterVulkanImage { # [doc = " The size of this struct. Must be sizeof(FlutterVulkanImage)."] pub struct_size : size_t , # [doc = " Handle to the VkImage that is owned by the embedder. The engine will"] # [doc = " bind this image for writing the frame."] pub image : FlutterVulkanImageHandle , # [doc = " The VkFormat of the image (for example: VK_FORMAT_R8G8B8A8_UNORM)."] pub format : u32 , } # [test] fn bindgen_test_layout_FlutterVulkanImage () { assert_eq ! (:: std :: mem :: size_of :: < FlutterVulkanImage > () , 24usize , concat ! ("Size of: " , stringify ! (FlutterVulkanImage))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterVulkanImage > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterVulkanImage))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanImage > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanImage) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_image () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanImage > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . image) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanImage) , "::" , stringify ! (image))) ; } test_field_image () ; fn test_field_format () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanImage > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . format) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanImage) , "::" , stringify ! (format))) ; } test_field_format () ; } # [doc = " Callback to fetch a Vulkan function pointer for a given instance. Normally,"] # [doc = " this should return the results of vkGetInstanceProcAddr."] pub type FlutterVulkanInstanceProcAddressCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : FlutterVulkanInstanceHandle , arg3 : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_void > ; # [doc = " Callback for when a VkImage is requested."] pub type FlutterVulkanImageCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * const FlutterFrameInfo) -> FlutterVulkanImage > ; # [doc = " Callback for when a VkImage has been written to and is ready for use by the"] # [doc = " embedder."] pub type FlutterVulkanPresentCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * const FlutterVulkanImage) -> bool > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterVulkanRendererConfig { # [doc = " The size of this struct. Must be sizeof(FlutterVulkanRendererConfig)."] pub struct_size : size_t , # [doc = " The Vulkan API version. This should match the value set in"] # [doc = " VkApplicationInfo::apiVersion when the VkInstance was created."] pub version : u32 , # [doc = " VkInstance handle. Must not be destroyed before `FlutterEngineShutdown` is"] # [doc = " called."] pub instance : FlutterVulkanInstanceHandle , # [doc = " VkPhysicalDevice handle."] pub physical_device : FlutterVulkanPhysicalDeviceHandle , # [doc = " VkDevice handle. Must not be destroyed before `FlutterEngineShutdown` is"] # [doc = " called."] pub device : FlutterVulkanDeviceHandle , # [doc = " The queue family index of the VkQueue supplied in the next field."] pub queue_family_index : u32 , # [doc = " VkQueue handle."] pub queue : FlutterVulkanQueueHandle , # [doc = " The number of instance extensions available for enumerating in the next"] # [doc = " field."] pub enabled_instance_extension_count : size_t , # [doc = " Array of enabled instance extension names. This should match the names"] # [doc = " passed to `VkInstanceCreateInfo.ppEnabledExtensionNames` when the instance"] # [doc = " was created, but any subset of enabled instance extensions may be"] # [doc = " specified."] # [doc = " This field is optional; `nullptr` may be specified."] # [doc = " This memory is only accessed during the call to FlutterEngineInitialize."] pub enabled_instance_extensions : * mut * const :: std :: os :: raw :: c_char , # [doc = " The number of device extensions available for enumerating in the next"] # [doc = " field."] pub enabled_device_extension_count : size_t , # [doc = " Array of enabled logical device extension names. This should match the"] # [doc = " names passed to `VkDeviceCreateInfo.ppEnabledExtensionNames` when the"] # [doc = " logical device was created, but any subset of enabled logical device"] # [doc = " extensions may be specified."] # [doc = " This field is optional; `nullptr` may be specified."] # [doc = " This memory is only accessed during the call to FlutterEngineInitialize."] # [doc = " For example: VK_KHR_GET_MEMORY_REQUIREMENTS_2_EXTENSION_NAME"] pub enabled_device_extensions : * mut * const :: std :: os :: raw :: c_char , # [doc = " The callback invoked when resolving Vulkan function pointers."] pub get_instance_proc_address_callback : FlutterVulkanInstanceProcAddressCallback , # [doc = " The callback invoked when the engine requests a VkImage from the embedder"] # [doc = " for rendering the next frame."] # [doc = " Not used if a FlutterCompositor is supplied in FlutterProjectArgs."] pub get_next_image_callback : FlutterVulkanImageCallback , # [doc = " The callback invoked when a VkImage has been written to and is ready for"] # [doc = " use by the embedder. Prior to calling this callback, the engine performs"] # [doc = " a host sync, and so the VkImage can be used in a pipeline by the embedder"] # [doc = " without any additional synchronization."] # [doc = " Not used if a FlutterCompositor is supplied in FlutterProjectArgs."] pub present_image_callback : FlutterVulkanPresentCallback , } # [test] fn bindgen_test_layout_FlutterVulkanRendererConfig () { assert_eq ! (:: std :: mem :: size_of :: < FlutterVulkanRendererConfig > () , 112usize , concat ! ("Size of: " , stringify ! (FlutterVulkanRendererConfig))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterVulkanRendererConfig > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterVulkanRendererConfig))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_version () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . version) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (version))) ; } test_field_version () ; fn test_field_instance () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . instance) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (instance))) ; } test_field_instance () ; fn test_field_physical_device () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . physical_device) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (physical_device))) ; } test_field_physical_device () ; fn test_field_device () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . device) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (device))) ; } test_field_device () ; fn test_field_queue_family_index () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . queue_family_index) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (queue_family_index))) ; } test_field_queue_family_index () ; fn test_field_queue () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . queue) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (queue))) ; } test_field_queue () ; fn test_field_enabled_instance_extension_count () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . enabled_instance_extension_count) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (enabled_instance_extension_count))) ; } test_field_enabled_instance_extension_count () ; fn test_field_enabled_instance_extensions () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . enabled_instance_extensions) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (enabled_instance_extensions))) ; } test_field_enabled_instance_extensions () ; fn test_field_enabled_device_extension_count () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . enabled_device_extension_count) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (enabled_device_extension_count))) ; } test_field_enabled_device_extension_count () ; fn test_field_enabled_device_extensions () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . enabled_device_extensions) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (enabled_device_extensions))) ; } test_field_enabled_device_extensions () ; fn test_field_get_instance_proc_address_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . get_instance_proc_address_callback) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (get_instance_proc_address_callback))) ; } test_field_get_instance_proc_address_callback () ; fn test_field_get_next_image_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . get_next_image_callback) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (get_next_image_callback))) ; } test_field_get_next_image_callback () ; fn test_field_present_image_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . present_image_callback) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (present_image_callback))) ; } test_field_present_image_callback () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterSoftwareRendererConfig { # [doc = " The size of this struct. Must be sizeof(FlutterSoftwareRendererConfig)."] pub struct_size : size_t , # [doc = " The callback presented to the embedder to present a fully populated buffer"] # [doc = " to the user. The pixel format of the buffer is the native 32-bit RGBA"] # [doc = " format. The buffer is owned by the Flutter engine and must be copied in"] # [doc = " this callback if needed."] pub surface_present_callback : SoftwareSurfacePresentCallback , } # [test] fn bindgen_test_layout_FlutterSoftwareRendererConfig () { assert_eq ! (:: std :: mem :: size_of :: < FlutterSoftwareRendererConfig > () , 16usize , concat ! ("Size of: " , stringify ! (FlutterSoftwareRendererConfig))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterSoftwareRendererConfig > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterSoftwareRendererConfig))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSoftwareRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterSoftwareRendererConfig) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_surface_present_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSoftwareRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . surface_present_callback) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterSoftwareRendererConfig) , "::" , stringify ! (surface_present_callback))) ; } test_field_surface_present_callback () ; } # [repr (C)] # [derive (Copy , Clone)] pub struct FlutterRendererConfig { pub type_ : FlutterRendererType , pub __bindgen_anon_1 : FlutterRendererConfig__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union FlutterRendererConfig__bindgen_ty_1 { pub open_gl : FlutterOpenGLRendererConfig , pub software : FlutterSoftwareRendererConfig , pub metal : FlutterMetalRendererConfig , pub vulkan : FlutterVulkanRendererConfig , } # [test] fn bindgen_test_layout_FlutterRendererConfig__bindgen_ty_1 () { assert_eq ! (:: std :: mem :: size_of :: < FlutterRendererConfig__bindgen_ty_1 > () , 112usize , concat ! ("Size of: " , stringify ! (FlutterRendererConfig__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterRendererConfig__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterRendererConfig__bindgen_ty_1))) ; fn test_field_open_gl () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRendererConfig__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . open_gl) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterRendererConfig__bindgen_ty_1) , "::" , stringify ! (open_gl))) ; } test_field_open_gl () ; fn test_field_software () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRendererConfig__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . software) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterRendererConfig__bindgen_ty_1) , "::" , stringify ! (software))) ; } test_field_software () ; fn test_field_metal () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRendererConfig__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . metal) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterRendererConfig__bindgen_ty_1) , "::" , stringify ! (metal))) ; } test_field_metal () ; fn test_field_vulkan () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRendererConfig__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . vulkan) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterRendererConfig__bindgen_ty_1) , "::" , stringify ! (vulkan))) ; } test_field_vulkan () ; } # [test] fn bindgen_test_layout_FlutterRendererConfig () { assert_eq ! (:: std :: mem :: size_of :: < FlutterRendererConfig > () , 120usize , concat ! ("Size of: " , stringify ! (FlutterRendererConfig))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterRendererConfig > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterRendererConfig))) ; fn test_field_type () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . type_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterRendererConfig) , "::" , stringify ! (type_))) ; } test_field_type () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterWindowMetricsEvent { # [doc = " The size of this struct. Must be sizeof(FlutterWindowMetricsEvent)."] pub struct_size : size_t , # [doc = " Physical width of the window."] pub width : size_t , # [doc = " Physical height of the window."] pub height : size_t , # [doc = " Scale factor for the physical screen."] pub pixel_ratio : f64 , # [doc = " Horizontal physical location of the left side of the window on the screen."] pub left : size_t , # [doc = " Vertical physical location of the top of the window on the screen."] pub top : size_t , # [doc = " Top inset of window."] pub physical_view_inset_top : f64 , # [doc = " Right inset of window."] pub physical_view_inset_right : f64 , # [doc = " Bottom inset of window."] pub physical_view_inset_bottom : f64 , # [doc = " Left inset of window."] pub physical_view_inset_left : f64 , } # [test] fn bindgen_test_layout_FlutterWindowMetricsEvent () { assert_eq ! (:: std :: mem :: size_of :: < FlutterWindowMetricsEvent > () , 80usize , concat ! ("Size of: " , stringify ! (FlutterWindowMetricsEvent))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterWindowMetricsEvent > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterWindowMetricsEvent))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_width () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . width) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (width))) ; } test_field_width () ; fn test_field_height () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . height) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (height))) ; } test_field_height () ; fn test_field_pixel_ratio () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . pixel_ratio) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (pixel_ratio))) ; } test_field_pixel_ratio () ; fn test_field_left () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . left) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (left))) ; } test_field_left () ; fn test_field_top () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . top) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (top))) ; } test_field_top () ; fn test_field_physical_view_inset_top () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . physical_view_inset_top) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (physical_view_inset_top))) ; } test_field_physical_view_inset_top () ; fn test_field_physical_view_inset_right () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . physical_view_inset_right) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (physical_view_inset_right))) ; } test_field_physical_view_inset_right () ; fn test_field_physical_view_inset_bottom () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . physical_view_inset_bottom) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (physical_view_inset_bottom))) ; } test_field_physical_view_inset_bottom () ; fn test_field_physical_view_inset_left () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . physical_view_inset_left) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (physical_view_inset_left))) ; } test_field_physical_view_inset_left () ; } pub const FlutterPointerPhase_kCancel : FlutterPointerPhase = 0 ; # [doc = " The pointer, which must have been down (see kDown), is now up."] # [doc = ""] # [doc = " For touch, this means that the pointer is no longer in contact with the"] # [doc = " screen. For a mouse, it means the last button was released. Note that if"] # [doc = " any other buttons are still pressed when one button is released, that"] # [doc = " should be sent as a kMove rather than a kUp."] pub const FlutterPointerPhase_kUp : FlutterPointerPhase = 1 ; # [doc = " The pointer, which must have been been up, is now down."] # [doc = ""] # [doc = " For touch, this means that the pointer has come into contact with the"] # [doc = " screen. For a mouse, it means a button is now pressed. Note that if any"] # [doc = " other buttons are already pressed when a new button is pressed, that"] # [doc = " should be sent as a kMove rather than a kDown."] pub const FlutterPointerPhase_kDown : FlutterPointerPhase = 2 ; # [doc = " The pointer moved while down."] # [doc = ""] # [doc = " This is also used for changes in button state that don't cause a kDown or"] # [doc = " kUp, such as releasing one of two pressed buttons."] pub const FlutterPointerPhase_kMove : FlutterPointerPhase = 3 ; # [doc = " The pointer is now sending input to Flutter. For instance, a mouse has"] # [doc = " entered the area where the Flutter content is displayed."] # [doc = ""] # [doc = " A pointer should always be added before sending any other events."] pub const FlutterPointerPhase_kAdd : FlutterPointerPhase = 4 ; # [doc = " The pointer is no longer sending input to Flutter. For instance, a mouse"] # [doc = " has left the area where the Flutter content is displayed."] # [doc = ""] # [doc = " A removed pointer should no longer send events until sending a new kAdd."] pub const FlutterPointerPhase_kRemove : FlutterPointerPhase = 5 ; # [doc = " The pointer moved while up."] pub const FlutterPointerPhase_kHover : FlutterPointerPhase = 6 ; # [doc = " A pan/zoom started on this pointer."] pub const FlutterPointerPhase_kPanZoomStart : FlutterPointerPhase = 7 ; # [doc = " The pan/zoom updated."] pub const FlutterPointerPhase_kPanZoomUpdate : FlutterPointerPhase = 8 ; # [doc = " The pan/zoom ended."] pub const FlutterPointerPhase_kPanZoomEnd : FlutterPointerPhase = 9 ; # [doc = " The phase of the pointer event."] pub type FlutterPointerPhase = :: std :: os :: raw :: c_uint ; pub const FlutterPointerDeviceKind_kFlutterPointerDeviceKindMouse : FlutterPointerDeviceKind = 1 ; pub const FlutterPointerDeviceKind_kFlutterPointerDeviceKindTouch : FlutterPointerDeviceKind = 2 ; pub const FlutterPointerDeviceKind_kFlutterPointerDeviceKindStylus : FlutterPointerDeviceKind = 3 ; pub const FlutterPointerDeviceKind_kFlutterPointerDeviceKindTrackpad : FlutterPointerDeviceKind = 4 ; # [doc = " The device type that created a pointer event."] pub type FlutterPointerDeviceKind = :: std :: os :: raw :: c_uint ; pub const FlutterPointerMouseButtons_kFlutterPointerButtonMousePrimary : FlutterPointerMouseButtons = 1 ; pub const FlutterPointerMouseButtons_kFlutterPointerButtonMouseSecondary : FlutterPointerMouseButtons = 2 ; pub const FlutterPointerMouseButtons_kFlutterPointerButtonMouseMiddle : FlutterPointerMouseButtons = 4 ; pub const FlutterPointerMouseButtons_kFlutterPointerButtonMouseBack : FlutterPointerMouseButtons = 8 ; pub const FlutterPointerMouseButtons_kFlutterPointerButtonMouseForward : FlutterPointerMouseButtons = 16 ; # [doc = " Flags for the `buttons` field of `FlutterPointerEvent` when `device_kind`"] # [doc = " is `kFlutterPointerDeviceKindMouse`."] pub type FlutterPointerMouseButtons = :: std :: os :: raw :: c_uint ; pub const FlutterPointerSignalKind_kFlutterPointerSignalKindNone : FlutterPointerSignalKind = 0 ; pub const FlutterPointerSignalKind_kFlutterPointerSignalKindScroll : FlutterPointerSignalKind = 1 ; # [doc = " The type of a pointer signal."] pub type FlutterPointerSignalKind = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterPointerEvent { # [doc = " The size of this struct. Must be sizeof(FlutterPointerEvent)."] pub struct_size : size_t , pub phase : FlutterPointerPhase , # [doc = " The timestamp at which the pointer event was generated. The timestamp"] # [doc = " should be specified in microseconds and the clock should be the same as"] # [doc = " that used by `FlutterEngineGetCurrentTime`."] pub timestamp : size_t , # [doc = " The x coordinate of the pointer event in physical pixels."] pub x : f64 , # [doc = " The y coordinate of the pointer event in physical pixels."] pub y : f64 , # [doc = " An optional device identifier. If this is not specified, it is assumed"] # [doc = " that the embedder has no multi-touch capability."] pub device : i32 , pub signal_kind : FlutterPointerSignalKind , # [doc = " The x offset of the scroll in physical pixels."] pub scroll_delta_x : f64 , # [doc = " The y offset of the scroll in physical pixels."] pub scroll_delta_y : f64 , # [doc = " The type of the device generating this event."] # [doc = " Backwards compatibility note: If this is not set, the device will be"] # [doc = " treated as a mouse, with the primary button set for `kDown` and `kMove`."] # [doc = " If set explicitly to `kFlutterPointerDeviceKindMouse`, you must set the"] # [doc = " correct buttons."] pub device_kind : FlutterPointerDeviceKind , # [doc = " The buttons currently pressed, if any."] pub buttons : i64 , # [doc = " The x offset of the pan/zoom in physical pixels."] pub pan_x : f64 , # [doc = " The y offset of the pan/zoom in physical pixels."] pub pan_y : f64 , # [doc = " The scale of the pan/zoom, where 1.0 is the initial scale."] pub scale : f64 , # [doc = " The rotation of the pan/zoom in radians, where 0.0 is the initial angle."] pub rotation : f64 , } # [test] fn bindgen_test_layout_FlutterPointerEvent () { assert_eq ! (:: std :: mem :: size_of :: < FlutterPointerEvent > () , 112usize , concat ! ("Size of: " , stringify ! (FlutterPointerEvent))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterPointerEvent > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterPointerEvent))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_phase () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . phase) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (phase))) ; } test_field_phase () ; fn test_field_timestamp () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . timestamp) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (timestamp))) ; } test_field_timestamp () ; fn test_field_x () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . x) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (x))) ; } test_field_x () ; fn test_field_y () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . y) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (y))) ; } test_field_y () ; fn test_field_device () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . device) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (device))) ; } test_field_device () ; fn test_field_signal_kind () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . signal_kind) as usize - ptr as usize } , 44usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (signal_kind))) ; } test_field_signal_kind () ; fn test_field_scroll_delta_x () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scroll_delta_x) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (scroll_delta_x))) ; } test_field_scroll_delta_x () ; fn test_field_scroll_delta_y () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scroll_delta_y) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (scroll_delta_y))) ; } test_field_scroll_delta_y () ; fn test_field_device_kind () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . device_kind) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (device_kind))) ; } test_field_device_kind () ; fn test_field_buttons () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . buttons) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (buttons))) ; } test_field_buttons () ; fn test_field_pan_x () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . pan_x) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (pan_x))) ; } test_field_pan_x () ; fn test_field_pan_y () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . pan_y) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (pan_y))) ; } test_field_pan_y () ; fn test_field_scale () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scale) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (scale))) ; } test_field_scale () ; fn test_field_rotation () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . rotation) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (rotation))) ; } test_field_rotation () ; } pub const FlutterKeyEventType_kFlutterKeyEventTypeUp : FlutterKeyEventType = 1 ; pub const FlutterKeyEventType_kFlutterKeyEventTypeDown : FlutterKeyEventType = 2 ; pub const FlutterKeyEventType_kFlutterKeyEventTypeRepeat : FlutterKeyEventType = 3 ; pub type FlutterKeyEventType = :: std :: os :: raw :: c_uint ; # [doc = " A structure to represent a key event."] # [doc = ""] # [doc = " Sending `FlutterKeyEvent` via `FlutterEngineSendKeyEvent` results in a"] # [doc = " corresponding `FlutterKeyEvent` to be dispatched in the framework. It is"] # [doc = " embedder's responsibility to ensure the regularity of sent events, since the"] # [doc = " framework only performs simple one-to-one mapping. The events must conform"] # [doc = " the following rules:"] # [doc = ""] # [doc = "  * Each key press sequence shall consist of one key down event (`kind` being"] # [doc = "    `kFlutterKeyEventTypeDown`), zero or more repeat events, and one key up"] # [doc = "    event, representing a physical key button being pressed, held, and"] # [doc = "    released."] # [doc = "  * All events throughout a key press sequence shall have the same `physical`"] # [doc = "    and `logical`. Having different `character`s is allowed."] # [doc = ""] # [doc = " A `FlutterKeyEvent` with `physical` 0 and `logical` 0 is an empty event."] # [doc = " This is the only case either `physical` or `logical` can be 0. An empty"] # [doc = " event must be sent if a key message should be converted to no"] # [doc = " `FlutterKeyEvent`s, for example, when a key down message is received for a"] # [doc = " key that has already been pressed according to the record. This is to ensure"] # [doc = " some `FlutterKeyEvent` arrives at the framework before raw key message."] # [doc = " See https://github.com/flutter/flutter/issues/87230."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterKeyEvent { # [doc = " The size of this struct. Must be sizeof(FlutterKeyEvent)."] pub struct_size : size_t , # [doc = " The timestamp at which the key event was generated. The timestamp should"] # [doc = " be specified in microseconds and the clock should be the same as that used"] # [doc = " by `FlutterEngineGetCurrentTime`."] pub timestamp : f64 , # [doc = " The event kind."] pub type_ : FlutterKeyEventType , # [doc = " The USB HID code for the physical key of the event."] # [doc = ""] # [doc = " For the full definition and list of pre-defined physical keys, see"] # [doc = " `PhysicalKeyboardKey` from the framework."] # [doc = ""] # [doc = " The only case that `physical` might be 0 is when this is an empty event."] # [doc = " See `FlutterKeyEvent` for introduction."] pub physical : u64 , # [doc = " The key ID for the logical key of this event."] # [doc = ""] # [doc = " For the full definition and a list of pre-defined logical keys, see"] # [doc = " `LogicalKeyboardKey` from the framework."] # [doc = ""] # [doc = " The only case that `logical` might be 0 is when this is an empty event."] # [doc = " See `FlutterKeyEvent` for introduction."] pub logical : u64 , # [doc = " Null-terminated character input from the event. Can be null. Ignored for"] # [doc = " up events."] pub character : * const :: std :: os :: raw :: c_char , # [doc = " True if this event does not correspond to a native event."] # [doc = ""] # [doc = " The embedder is likely to skip events and/or construct new events that do"] # [doc = " not correspond to any native events in order to conform the regularity"] # [doc = " of events (as documented in `FlutterKeyEvent`). An example is when a key"] # [doc = " up is missed due to loss of window focus, on a platform that provides"] # [doc = " query to key pressing status, the embedder might realize that the key has"] # [doc = " been released at the next key event, and should construct a synthesized up"] # [doc = " event immediately before the actual event."] # [doc = ""] # [doc = " An event being synthesized means that the `timestamp` might greatly"] # [doc = " deviate from the actual time when the event occurs physically."] pub synthesized : bool , } # [test] fn bindgen_test_layout_FlutterKeyEvent () { assert_eq ! (:: std :: mem :: size_of :: < FlutterKeyEvent > () , 56usize , concat ! ("Size of: " , stringify ! (FlutterKeyEvent))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterKeyEvent > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterKeyEvent))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterKeyEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterKeyEvent) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_timestamp () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterKeyEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . timestamp) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterKeyEvent) , "::" , stringify ! (timestamp))) ; } test_field_timestamp () ; fn test_field_type () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterKeyEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . type_) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterKeyEvent) , "::" , stringify ! (type_))) ; } test_field_type () ; fn test_field_physical () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterKeyEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . physical) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterKeyEvent) , "::" , stringify ! (physical))) ; } test_field_physical () ; fn test_field_logical () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterKeyEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . logical) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterKeyEvent) , "::" , stringify ! (logical))) ; } test_field_logical () ; fn test_field_character () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterKeyEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . character) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterKeyEvent) , "::" , stringify ! (character))) ; } test_field_character () ; fn test_field_synthesized () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterKeyEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . synthesized) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterKeyEvent) , "::" , stringify ! (synthesized))) ; } test_field_synthesized () ; } pub type FlutterKeyEventCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : bool , arg2 : * mut :: std :: os :: raw :: c_void) > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _FlutterPlatformMessageResponseHandle { _unused : [u8 ; 0] , } pub type FlutterPlatformMessageResponseHandle = _FlutterPlatformMessageResponseHandle ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterPlatformMessage { # [doc = " The size of this struct. Must be sizeof(FlutterPlatformMessage)."] pub struct_size : size_t , pub channel : * const :: std :: os :: raw :: c_char , pub message : * const u8 , pub message_size : size_t , # [doc = " The response handle on which to invoke"] # [doc = " `FlutterEngineSendPlatformMessageResponse` when the response is ready."] # [doc = " `FlutterEngineSendPlatformMessageResponse` must be called for all messages"] # [doc = " received by the embedder. Failure to call"] # [doc = " `FlutterEngineSendPlatformMessageResponse` will cause a memory leak. It is"] # [doc = " not safe to send multiple responses on a single response object."] pub response_handle : * const FlutterPlatformMessageResponseHandle , } # [test] fn bindgen_test_layout_FlutterPlatformMessage () { assert_eq ! (:: std :: mem :: size_of :: < FlutterPlatformMessage > () , 40usize , concat ! ("Size of: " , stringify ! (FlutterPlatformMessage))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterPlatformMessage > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterPlatformMessage))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformMessage > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformMessage) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_channel () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformMessage > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . channel) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformMessage) , "::" , stringify ! (channel))) ; } test_field_channel () ; fn test_field_message () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformMessage > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . message) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformMessage) , "::" , stringify ! (message))) ; } test_field_message () ; fn test_field_message_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformMessage > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . message_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformMessage) , "::" , stringify ! (message_size))) ; } test_field_message_size () ; fn test_field_response_handle () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformMessage > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . response_handle) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformMessage) , "::" , stringify ! (response_handle))) ; } test_field_response_handle () ; } pub type FlutterPlatformMessageCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const FlutterPlatformMessage , arg2 : * mut :: std :: os :: raw :: c_void) > ; pub type FlutterDataCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const u8 , arg2 : size_t , arg3 : * mut :: std :: os :: raw :: c_void) > ; # [doc = " The identifier of the platform view. This identifier is specified by the"] # [doc = " application when a platform view is added to the scene via the"] # [doc = " `SceneBuilder.addPlatformView` call."] pub type FlutterPlatformViewIdentifier = i64 ; extern "C" { # [doc = " `FlutterSemanticsNode` ID used as a sentinel to signal the end of a batch of"] # [doc = " semantics node updates."] pub static kFlutterSemanticsNodeIdBatchEnd : i32 ; } # [doc = " A node that represents some semantic data."] # [doc = ""] # [doc = " The semantics tree is maintained during the semantics phase of the pipeline"] # [doc = " (i.e., during PipelineOwner.flushSemantics), which happens after"] # [doc = " compositing. Updates are then pushed to embedders via the registered"] # [doc = " `FlutterUpdateSemanticsNodeCallback`."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterSemanticsNode { # [doc = " The size of this struct. Must be sizeof(FlutterSemanticsNode)."] pub struct_size : size_t , # [doc = " The unique identifier for this node."] pub id : i32 , # [doc = " The set of semantics flags associated with this node."] pub flags : FlutterSemanticsFlag , # [doc = " The set of semantics actions applicable to this node."] pub actions : FlutterSemanticsAction , # [doc = " The position at which the text selection originates."] pub text_selection_base : i32 , # [doc = " The position at which the text selection terminates."] pub text_selection_extent : i32 , # [doc = " The total number of scrollable children that contribute to semantics."] pub scroll_child_count : i32 , # [doc = " The index of the first visible semantic child of a scroll node."] pub scroll_index : i32 , # [doc = " The current scrolling position in logical pixels if the node is"] # [doc = " scrollable."] pub scroll_position : f64 , # [doc = " The maximum in-range value for `scrollPosition` if the node is scrollable."] pub scroll_extent_max : f64 , # [doc = " The minimum in-range value for `scrollPosition` if the node is scrollable."] pub scroll_extent_min : f64 , # [doc = " The elevation along the z-axis at which the rect of this semantics node is"] # [doc = " located above its parent."] pub elevation : f64 , # [doc = " Describes how much space the semantics node takes up along the z-axis."] pub thickness : f64 , # [doc = " A textual description of the node."] pub label : * const :: std :: os :: raw :: c_char , # [doc = " A brief description of the result of performing an action on the node."] pub hint : * const :: std :: os :: raw :: c_char , # [doc = " A textual description of the current value of the node."] pub value : * const :: std :: os :: raw :: c_char , # [doc = " A value that `value` will have after a kFlutterSemanticsActionIncrease`"] # [doc = " action has been performed."] pub increased_value : * const :: std :: os :: raw :: c_char , # [doc = " A value that `value` will have after a kFlutterSemanticsActionDecrease`"] # [doc = " action has been performed."] pub decreased_value : * const :: std :: os :: raw :: c_char , # [doc = " The reading direction for `label`, `value`, `hint`, `increasedValue`, and"] # [doc = " `decreasedValue`."] pub text_direction : FlutterTextDirection , # [doc = " The bounding box for this node in its coordinate system."] pub rect : FlutterRect , # [doc = " The transform from this node's coordinate system to its parent's"] # [doc = " coordinate system."] pub transform : FlutterTransformation , # [doc = " The number of children this node has."] pub child_count : size_t , # [doc = " Array of child node IDs in traversal order. Has length `child_count`."] pub children_in_traversal_order : * const i32 , # [doc = " Array of child node IDs in hit test order. Has length `child_count`."] pub children_in_hit_test_order : * const i32 , # [doc = " The number of custom accessibility action associated with this node."] pub custom_accessibility_actions_count : size_t , # [doc = " Array of `FlutterSemanticsCustomAction` IDs associated with this node."] # [doc = " Has length `custom_accessibility_actions_count`."] pub custom_accessibility_actions : * const i32 , # [doc = " Identifier of the platform view associated with this semantics node, or"] # [doc = " -1 if none."] pub platform_view_id : FlutterPlatformViewIdentifier , } # [test] fn bindgen_test_layout_FlutterSemanticsNode () { assert_eq ! (:: std :: mem :: size_of :: < FlutterSemanticsNode > () , 280usize , concat ! ("Size of: " , stringify ! (FlutterSemanticsNode))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterSemanticsNode > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterSemanticsNode))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_id () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . id) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (id))) ; } test_field_id () ; fn test_field_flags () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . flags) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (flags))) ; } test_field_flags () ; fn test_field_actions () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . actions) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (actions))) ; } test_field_actions () ; fn test_field_text_selection_base () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . text_selection_base) as usize - ptr as usize } , 20usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (text_selection_base))) ; } test_field_text_selection_base () ; fn test_field_text_selection_extent () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . text_selection_extent) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (text_selection_extent))) ; } test_field_text_selection_extent () ; fn test_field_scroll_child_count () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scroll_child_count) as usize - ptr as usize } , 28usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (scroll_child_count))) ; } test_field_scroll_child_count () ; fn test_field_scroll_index () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scroll_index) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (scroll_index))) ; } test_field_scroll_index () ; fn test_field_scroll_position () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scroll_position) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (scroll_position))) ; } test_field_scroll_position () ; fn test_field_scroll_extent_max () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scroll_extent_max) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (scroll_extent_max))) ; } test_field_scroll_extent_max () ; fn test_field_scroll_extent_min () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scroll_extent_min) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (scroll_extent_min))) ; } test_field_scroll_extent_min () ; fn test_field_elevation () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . elevation) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (elevation))) ; } test_field_elevation () ; fn test_field_thickness () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . thickness) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (thickness))) ; } test_field_thickness () ; fn test_field_label () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . label) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (label))) ; } test_field_label () ; fn test_field_hint () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . hint) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (hint))) ; } test_field_hint () ; fn test_field_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . value) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (value))) ; } test_field_value () ; fn test_field_increased_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . increased_value) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (increased_value))) ; } test_field_increased_value () ; fn test_field_decreased_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . decreased_value) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (decreased_value))) ; } test_field_decreased_value () ; fn test_field_text_direction () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . text_direction) as usize - ptr as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (text_direction))) ; } test_field_text_direction () ; fn test_field_rect () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . rect) as usize - ptr as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (rect))) ; } test_field_rect () ; fn test_field_transform () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . transform) as usize - ptr as usize } , 160usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (transform))) ; } test_field_transform () ; fn test_field_child_count () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . child_count) as usize - ptr as usize } , 232usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (child_count))) ; } test_field_child_count () ; fn test_field_children_in_traversal_order () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . children_in_traversal_order) as usize - ptr as usize } , 240usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (children_in_traversal_order))) ; } test_field_children_in_traversal_order () ; fn test_field_children_in_hit_test_order () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . children_in_hit_test_order) as usize - ptr as usize } , 248usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (children_in_hit_test_order))) ; } test_field_children_in_hit_test_order () ; fn test_field_custom_accessibility_actions_count () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . custom_accessibility_actions_count) as usize - ptr as usize } , 256usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (custom_accessibility_actions_count))) ; } test_field_custom_accessibility_actions_count () ; fn test_field_custom_accessibility_actions () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . custom_accessibility_actions) as usize - ptr as usize } , 264usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (custom_accessibility_actions))) ; } test_field_custom_accessibility_actions () ; fn test_field_platform_view_id () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . platform_view_id) as usize - ptr as usize } , 272usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (platform_view_id))) ; } test_field_platform_view_id () ; } extern "C" { # [doc = " `FlutterSemanticsCustomAction` ID used as a sentinel to signal the end of a"] # [doc = " batch of semantics custom action updates."] pub static kFlutterSemanticsCustomActionIdBatchEnd : i32 ; } # [doc = " A custom semantics action, or action override."] # [doc = ""] # [doc = " Custom actions can be registered by applications in order to provide"] # [doc = " semantic actions other than the standard actions available through the"] # [doc = " `FlutterSemanticsAction` enum."] # [doc = ""] # [doc = " Action overrides are custom actions that the application developer requests"] # [doc = " to be used in place of the standard actions in the `FlutterSemanticsAction`"] # [doc = " enum."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterSemanticsCustomAction { # [doc = " The size of the struct. Must be sizeof(FlutterSemanticsCustomAction)."] pub struct_size : size_t , # [doc = " The unique custom action or action override ID."] pub id : i32 , # [doc = " For overridden standard actions, corresponds to the"] # [doc = " `FlutterSemanticsAction` to override."] pub override_action : FlutterSemanticsAction , # [doc = " The user-readable name of this custom semantics action."] pub label : * const :: std :: os :: raw :: c_char , # [doc = " The hint description of this custom semantics action."] pub hint : * const :: std :: os :: raw :: c_char , } # [test] fn bindgen_test_layout_FlutterSemanticsCustomAction () { assert_eq ! (:: std :: mem :: size_of :: < FlutterSemanticsCustomAction > () , 32usize , concat ! ("Size of: " , stringify ! (FlutterSemanticsCustomAction))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterSemanticsCustomAction > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterSemanticsCustomAction))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsCustomAction > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsCustomAction) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_id () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsCustomAction > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . id) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsCustomAction) , "::" , stringify ! (id))) ; } test_field_id () ; fn test_field_override_action () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsCustomAction > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . override_action) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsCustomAction) , "::" , stringify ! (override_action))) ; } test_field_override_action () ; fn test_field_label () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsCustomAction > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . label) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsCustomAction) , "::" , stringify ! (label))) ; } test_field_label () ; fn test_field_hint () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsCustomAction > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . hint) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsCustomAction) , "::" , stringify ! (hint))) ; } test_field_hint () ; } pub type FlutterUpdateSemanticsNodeCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const FlutterSemanticsNode , arg2 : * mut :: std :: os :: raw :: c_void) > ; pub type FlutterUpdateSemanticsCustomActionCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const FlutterSemanticsCustomAction , arg2 : * mut :: std :: os :: raw :: c_void) > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _FlutterTaskRunner { _unused : [u8 ; 0] , } pub type FlutterTaskRunner = * mut _FlutterTaskRunner ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterTask { pub runner : FlutterTaskRunner , pub task : u64 , } # [test] fn bindgen_test_layout_FlutterTask () { assert_eq ! (:: std :: mem :: size_of :: < FlutterTask > () , 16usize , concat ! ("Size of: " , stringify ! (FlutterTask))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterTask > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterTask))) ; fn test_field_runner () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTask > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . runner) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterTask) , "::" , stringify ! (runner))) ; } test_field_runner () ; fn test_field_task () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTask > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . task) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterTask) , "::" , stringify ! (task))) ; } test_field_task () ; } pub type FlutterTaskRunnerPostTaskCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : FlutterTask , arg2 : u64 , arg3 : * mut :: std :: os :: raw :: c_void) > ; # [doc = " An interface used by the Flutter engine to execute tasks at the target time"] # [doc = " on a specified thread. There should be a 1-1 relationship between a thread"] # [doc = " and a task runner. It is undefined behavior to run a task on a thread that"] # [doc = " is not associated with its task runner."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterTaskRunnerDescription { # [doc = " The size of this struct. Must be sizeof(FlutterTaskRunnerDescription)."] pub struct_size : size_t , pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " May be called from any thread. Should return true if tasks posted on the"] # [doc = " calling thread will be run on that same thread."] # [doc = ""] # [doc = " @attention     This field is required."] pub runs_task_on_current_thread_callback : BoolCallback , # [doc = " May be called from any thread. The given task should be executed by the"] # [doc = " embedder on the thread associated with that task runner by calling"] # [doc = " `FlutterEngineRunTask` at the given target time. The system monotonic"] # [doc = " clock should be used for the target time. The target time is the absolute"] # [doc = " time from epoch (NOT a delta) at which the task must be returned back to"] # [doc = " the engine on the correct thread. If the embedder needs to calculate a"] # [doc = " delta, `FlutterEngineGetCurrentTime` may be called and the difference used"] # [doc = " as the delta."] # [doc = ""] # [doc = " @attention     This field is required."] pub post_task_callback : FlutterTaskRunnerPostTaskCallback , # [doc = " A unique identifier for the task runner. If multiple task runners service"] # [doc = " tasks on the same thread, their identifiers must match."] pub identifier : size_t , } # [test] fn bindgen_test_layout_FlutterTaskRunnerDescription () { assert_eq ! (:: std :: mem :: size_of :: < FlutterTaskRunnerDescription > () , 40usize , concat ! ("Size of: " , stringify ! (FlutterTaskRunnerDescription))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterTaskRunnerDescription > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterTaskRunnerDescription))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTaskRunnerDescription > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterTaskRunnerDescription) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTaskRunnerDescription > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterTaskRunnerDescription) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_runs_task_on_current_thread_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTaskRunnerDescription > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . runs_task_on_current_thread_callback) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterTaskRunnerDescription) , "::" , stringify ! (runs_task_on_current_thread_callback))) ; } test_field_runs_task_on_current_thread_callback () ; fn test_field_post_task_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTaskRunnerDescription > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . post_task_callback) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterTaskRunnerDescription) , "::" , stringify ! (post_task_callback))) ; } test_field_post_task_callback () ; fn test_field_identifier () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTaskRunnerDescription > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . identifier) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterTaskRunnerDescription) , "::" , stringify ! (identifier))) ; } test_field_identifier () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterCustomTaskRunners { # [doc = " The size of this struct. Must be sizeof(FlutterCustomTaskRunners)."] pub struct_size : size_t , # [doc = " Specify the task runner for the thread on which the `FlutterEngineRun`"] # [doc = " call is made. The same task runner description can be specified for both"] # [doc = " the render and platform task runners. This makes the Flutter engine use"] # [doc = " the same thread for both task runners."] pub platform_task_runner : * const FlutterTaskRunnerDescription , # [doc = " Specify the task runner for the thread on which the render tasks will be"] # [doc = " run. The same task runner description can be specified for both the render"] # [doc = " and platform task runners. This makes the Flutter engine use the same"] # [doc = " thread for both task runners."] pub render_task_runner : * const FlutterTaskRunnerDescription , # [doc = " Specify a callback that is used to set the thread priority for embedder"] # [doc = " task runners."] pub thread_priority_setter : :: std :: option :: Option < unsafe extern "C" fn (arg1 : FlutterThreadPriority) > , } # [test] fn bindgen_test_layout_FlutterCustomTaskRunners () { assert_eq ! (:: std :: mem :: size_of :: < FlutterCustomTaskRunners > () , 32usize , concat ! ("Size of: " , stringify ! (FlutterCustomTaskRunners))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterCustomTaskRunners > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterCustomTaskRunners))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCustomTaskRunners > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterCustomTaskRunners) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_platform_task_runner () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCustomTaskRunners > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . platform_task_runner) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterCustomTaskRunners) , "::" , stringify ! (platform_task_runner))) ; } test_field_platform_task_runner () ; fn test_field_render_task_runner () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCustomTaskRunners > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . render_task_runner) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterCustomTaskRunners) , "::" , stringify ! (render_task_runner))) ; } test_field_render_task_runner () ; fn test_field_thread_priority_setter () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCustomTaskRunners > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . thread_priority_setter) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterCustomTaskRunners) , "::" , stringify ! (thread_priority_setter))) ; } test_field_thread_priority_setter () ; } # [repr (C)] # [derive (Copy , Clone)] pub struct FlutterOpenGLBackingStore { # [doc = " The type of the OpenGL backing store. Currently, it can either be a"] # [doc = " texture or a framebuffer."] pub type_ : FlutterOpenGLTargetType , pub __bindgen_anon_1 : FlutterOpenGLBackingStore__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union FlutterOpenGLBackingStore__bindgen_ty_1 { # [doc = " A texture for Flutter to render into."] pub texture : FlutterOpenGLTexture , # [doc = " A framebuffer for Flutter to render into. The embedder must ensure that"] # [doc = " the framebuffer is complete."] pub framebuffer : FlutterOpenGLFramebuffer , } # [test] fn bindgen_test_layout_FlutterOpenGLBackingStore__bindgen_ty_1 () { assert_eq ! (:: std :: mem :: size_of :: < FlutterOpenGLBackingStore__bindgen_ty_1 > () , 48usize , concat ! ("Size of: " , stringify ! (FlutterOpenGLBackingStore__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterOpenGLBackingStore__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterOpenGLBackingStore__bindgen_ty_1))) ; fn test_field_texture () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLBackingStore__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . texture) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLBackingStore__bindgen_ty_1) , "::" , stringify ! (texture))) ; } test_field_texture () ; fn test_field_framebuffer () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLBackingStore__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . framebuffer) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLBackingStore__bindgen_ty_1) , "::" , stringify ! (framebuffer))) ; } test_field_framebuffer () ; } # [test] fn bindgen_test_layout_FlutterOpenGLBackingStore () { assert_eq ! (:: std :: mem :: size_of :: < FlutterOpenGLBackingStore > () , 56usize , concat ! ("Size of: " , stringify ! (FlutterOpenGLBackingStore))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterOpenGLBackingStore > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterOpenGLBackingStore))) ; fn test_field_type () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . type_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLBackingStore) , "::" , stringify ! (type_))) ; } test_field_type () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterSoftwareBackingStore { # [doc = " A pointer to the raw bytes of the allocation described by this software"] # [doc = " backing store."] pub allocation : * const :: std :: os :: raw :: c_void , # [doc = " The number of bytes in a single row of the allocation."] pub row_bytes : size_t , # [doc = " The number of rows in the allocation."] pub height : size_t , # [doc = " A baton that is not interpreted by the engine in any way. It will be given"] # [doc = " back to the embedder in the destruction callback below. Embedder resources"] # [doc = " may be associated with this baton."] pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " The callback invoked by the engine when it no longer needs this backing"] # [doc = " store."] pub destruction_callback : VoidCallback , } # [test] fn bindgen_test_layout_FlutterSoftwareBackingStore () { assert_eq ! (:: std :: mem :: size_of :: < FlutterSoftwareBackingStore > () , 40usize , concat ! ("Size of: " , stringify ! (FlutterSoftwareBackingStore))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterSoftwareBackingStore > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterSoftwareBackingStore))) ; fn test_field_allocation () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSoftwareBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . allocation) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterSoftwareBackingStore) , "::" , stringify ! (allocation))) ; } test_field_allocation () ; fn test_field_row_bytes () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSoftwareBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . row_bytes) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterSoftwareBackingStore) , "::" , stringify ! (row_bytes))) ; } test_field_row_bytes () ; fn test_field_height () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSoftwareBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . height) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterSoftwareBackingStore) , "::" , stringify ! (height))) ; } test_field_height () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSoftwareBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterSoftwareBackingStore) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_destruction_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSoftwareBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . destruction_callback) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterSoftwareBackingStore) , "::" , stringify ! (destruction_callback))) ; } test_field_destruction_callback () ; } # [repr (C)] # [derive (Copy , Clone)] pub struct FlutterMetalBackingStore { # [doc = " The size of this struct. Must be sizeof(FlutterMetalBackingStore)."] pub struct_size : size_t , pub __bindgen_anon_1 : FlutterMetalBackingStore__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union FlutterMetalBackingStore__bindgen_ty_1 { pub texture : FlutterMetalTexture , } # [test] fn bindgen_test_layout_FlutterMetalBackingStore__bindgen_ty_1 () { assert_eq ! (:: std :: mem :: size_of :: < FlutterMetalBackingStore__bindgen_ty_1 > () , 40usize , concat ! ("Size of: " , stringify ! (FlutterMetalBackingStore__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterMetalBackingStore__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterMetalBackingStore__bindgen_ty_1))) ; fn test_field_texture () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalBackingStore__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . texture) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalBackingStore__bindgen_ty_1) , "::" , stringify ! (texture))) ; } test_field_texture () ; } # [test] fn bindgen_test_layout_FlutterMetalBackingStore () { assert_eq ! (:: std :: mem :: size_of :: < FlutterMetalBackingStore > () , 48usize , concat ! ("Size of: " , stringify ! (FlutterMetalBackingStore))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterMetalBackingStore > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterMetalBackingStore))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalBackingStore) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterVulkanBackingStore { # [doc = " The size of this struct. Must be sizeof(FlutterVulkanBackingStore)."] pub struct_size : size_t , # [doc = " The image that the layer will be rendered to. This image must already be"] # [doc = " available for the engine to bind for writing when it's given to the engine"] # [doc = " via the backing store creation callback. The engine will perform a host"] # [doc = " sync for all layers prior to calling the compositor present callback, and"] # [doc = " so the written layer images can be freely bound by the embedder without"] # [doc = " any additional synchronization."] pub image : * const FlutterVulkanImage , # [doc = " A baton that is not interpreted by the engine in any way. It will be given"] # [doc = " back to the embedder in the destruction callback below. Embedder resources"] # [doc = " may be associated with this baton."] pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " The callback invoked by the engine when it no longer needs this backing"] # [doc = " store."] pub destruction_callback : VoidCallback , } # [test] fn bindgen_test_layout_FlutterVulkanBackingStore () { assert_eq ! (:: std :: mem :: size_of :: < FlutterVulkanBackingStore > () , 32usize , concat ! ("Size of: " , stringify ! (FlutterVulkanBackingStore))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterVulkanBackingStore > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterVulkanBackingStore))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanBackingStore) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_image () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . image) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanBackingStore) , "::" , stringify ! (image))) ; } test_field_image () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanBackingStore) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_destruction_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . destruction_callback) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanBackingStore) , "::" , stringify ! (destruction_callback))) ; } test_field_destruction_callback () ; } # [doc = " Indicates that the Flutter application requested that an opacity be"] # [doc = " applied to the platform view."] pub const FlutterPlatformViewMutationType_kFlutterPlatformViewMutationTypeOpacity : FlutterPlatformViewMutationType = 0 ; # [doc = " Indicates that the Flutter application requested that the platform view be"] # [doc = " clipped using a rectangle."] pub const FlutterPlatformViewMutationType_kFlutterPlatformViewMutationTypeClipRect : FlutterPlatformViewMutationType = 1 ; # [doc = " Indicates that the Flutter application requested that the platform view be"] # [doc = " clipped using a rounded rectangle."] pub const FlutterPlatformViewMutationType_kFlutterPlatformViewMutationTypeClipRoundedRect : FlutterPlatformViewMutationType = 2 ; # [doc = " Indicates that the Flutter application requested that the platform view be"] # [doc = " transformed before composition."] pub const FlutterPlatformViewMutationType_kFlutterPlatformViewMutationTypeTransformation : FlutterPlatformViewMutationType = 3 ; pub type FlutterPlatformViewMutationType = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct FlutterPlatformViewMutation { # [doc = " The type of the mutation described by the subsequent union."] pub type_ : FlutterPlatformViewMutationType , pub __bindgen_anon_1 : FlutterPlatformViewMutation__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union FlutterPlatformViewMutation__bindgen_ty_1 { pub opacity : f64 , pub clip_rect : FlutterRect , pub clip_rounded_rect : FlutterRoundedRect , pub transformation : FlutterTransformation , } # [test] fn bindgen_test_layout_FlutterPlatformViewMutation__bindgen_ty_1 () { assert_eq ! (:: std :: mem :: size_of :: < FlutterPlatformViewMutation__bindgen_ty_1 > () , 96usize , concat ! ("Size of: " , stringify ! (FlutterPlatformViewMutation__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterPlatformViewMutation__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterPlatformViewMutation__bindgen_ty_1))) ; fn test_field_opacity () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformViewMutation__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . opacity) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformViewMutation__bindgen_ty_1) , "::" , stringify ! (opacity))) ; } test_field_opacity () ; fn test_field_clip_rect () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformViewMutation__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . clip_rect) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformViewMutation__bindgen_ty_1) , "::" , stringify ! (clip_rect))) ; } test_field_clip_rect () ; fn test_field_clip_rounded_rect () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformViewMutation__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . clip_rounded_rect) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformViewMutation__bindgen_ty_1) , "::" , stringify ! (clip_rounded_rect))) ; } test_field_clip_rounded_rect () ; fn test_field_transformation () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformViewMutation__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . transformation) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformViewMutation__bindgen_ty_1) , "::" , stringify ! (transformation))) ; } test_field_transformation () ; } # [test] fn bindgen_test_layout_FlutterPlatformViewMutation () { assert_eq ! (:: std :: mem :: size_of :: < FlutterPlatformViewMutation > () , 104usize , concat ! ("Size of: " , stringify ! (FlutterPlatformViewMutation))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterPlatformViewMutation > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterPlatformViewMutation))) ; fn test_field_type () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformViewMutation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . type_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformViewMutation) , "::" , stringify ! (type_))) ; } test_field_type () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterPlatformView { # [doc = " The size of this struct. Must be sizeof(FlutterPlatformView)."] pub struct_size : size_t , # [doc = " The identifier of this platform view. This identifier is specified by the"] # [doc = " application when a platform view is added to the scene via the"] # [doc = " `SceneBuilder.addPlatformView` call."] pub identifier : FlutterPlatformViewIdentifier , # [doc = " The number of mutations to be applied to the platform view by the embedder"] # [doc = " before on-screen composition."] pub mutations_count : size_t , # [doc = " The mutations to be applied by this platform view before it is composited"] # [doc = " on-screen. The Flutter application may transform the platform view but"] # [doc = " these transformations cannot be affected by the Flutter compositor because"] # [doc = " it does not render platform views. Since the embedder is responsible for"] # [doc = " composition of these views, it is also the embedder's responsibility to"] # [doc = " affect the appropriate transformation."] # [doc = ""] # [doc = " The mutations must be applied in order. The mutations done in the"] # [doc = " collection don't take into account the device pixel ratio or the root"] # [doc = " surface transformation. If these exist, the first mutation in the list"] # [doc = " will be a transformation mutation to make sure subsequent mutations are in"] # [doc = " the correct coordinate space."] pub mutations : * mut * const FlutterPlatformViewMutation , } # [test] fn bindgen_test_layout_FlutterPlatformView () { assert_eq ! (:: std :: mem :: size_of :: < FlutterPlatformView > () , 32usize , concat ! ("Size of: " , stringify ! (FlutterPlatformView))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterPlatformView > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterPlatformView))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformView > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformView) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_identifier () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformView > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . identifier) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformView) , "::" , stringify ! (identifier))) ; } test_field_identifier () ; fn test_field_mutations_count () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformView > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . mutations_count) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformView) , "::" , stringify ! (mutations_count))) ; } test_field_mutations_count () ; fn test_field_mutations () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformView > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . mutations) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformView) , "::" , stringify ! (mutations))) ; } test_field_mutations () ; } # [doc = " Specifies an OpenGL backing store. Can either be an OpenGL texture or"] # [doc = " framebuffer."] pub const FlutterBackingStoreType_kFlutterBackingStoreTypeOpenGL : FlutterBackingStoreType = 0 ; # [doc = " Specified an software allocation for Flutter to render into using the CPU."] pub const FlutterBackingStoreType_kFlutterBackingStoreTypeSoftware : FlutterBackingStoreType = 1 ; # [doc = " Specifies a Metal backing store. This is backed by a Metal texture."] pub const FlutterBackingStoreType_kFlutterBackingStoreTypeMetal : FlutterBackingStoreType = 2 ; # [doc = " Specifies a Vulkan backing store. This is backed by a Vulkan VkImage."] pub const FlutterBackingStoreType_kFlutterBackingStoreTypeVulkan : FlutterBackingStoreType = 3 ; pub type FlutterBackingStoreType = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct FlutterBackingStore { # [doc = " The size of this struct. Must be sizeof(FlutterBackingStore)."] pub struct_size : size_t , # [doc = " A baton that is not interpreted by the engine in any way. The embedder may"] # [doc = " use this to associate resources that are tied to the lifecycle of the"] # [doc = " `FlutterBackingStore`."] pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " Specifies the type of backing store."] pub type_ : FlutterBackingStoreType , # [doc = " Indicates if this backing store was updated since the last time it was"] # [doc = " associated with a presented layer."] pub did_update : bool , pub __bindgen_anon_1 : FlutterBackingStore__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union FlutterBackingStore__bindgen_ty_1 { # [doc = " The description of the OpenGL backing store."] pub open_gl : FlutterOpenGLBackingStore , # [doc = " The description of the software backing store."] pub software : FlutterSoftwareBackingStore , pub metal : FlutterMetalBackingStore , pub vulkan : FlutterVulkanBackingStore , } # [test] fn bindgen_test_layout_FlutterBackingStore__bindgen_ty_1 () { assert_eq ! (:: std :: mem :: size_of :: < FlutterBackingStore__bindgen_ty_1 > () , 56usize , concat ! ("Size of: " , stringify ! (FlutterBackingStore__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterBackingStore__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterBackingStore__bindgen_ty_1))) ; fn test_field_open_gl () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStore__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . open_gl) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStore__bindgen_ty_1) , "::" , stringify ! (open_gl))) ; } test_field_open_gl () ; fn test_field_software () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStore__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . software) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStore__bindgen_ty_1) , "::" , stringify ! (software))) ; } test_field_software () ; fn test_field_metal () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStore__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . metal) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStore__bindgen_ty_1) , "::" , stringify ! (metal))) ; } test_field_metal () ; fn test_field_vulkan () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStore__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . vulkan) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStore__bindgen_ty_1) , "::" , stringify ! (vulkan))) ; } test_field_vulkan () ; } # [test] fn bindgen_test_layout_FlutterBackingStore () { assert_eq ! (:: std :: mem :: size_of :: < FlutterBackingStore > () , 80usize , concat ! ("Size of: " , stringify ! (FlutterBackingStore))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterBackingStore > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterBackingStore))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStore) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStore) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_type () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . type_) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStore) , "::" , stringify ! (type_))) ; } test_field_type () ; fn test_field_did_update () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . did_update) as usize - ptr as usize } , 20usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStore) , "::" , stringify ! (did_update))) ; } test_field_did_update () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterBackingStoreConfig { # [doc = " The size of this struct. Must be sizeof(FlutterBackingStoreConfig)."] pub struct_size : size_t , # [doc = " The size of the render target the engine expects to render into."] pub size : FlutterSize , } # [test] fn bindgen_test_layout_FlutterBackingStoreConfig () { assert_eq ! (:: std :: mem :: size_of :: < FlutterBackingStoreConfig > () , 24usize , concat ! ("Size of: " , stringify ! (FlutterBackingStoreConfig))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterBackingStoreConfig > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterBackingStoreConfig))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStoreConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStoreConfig) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStoreConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStoreConfig) , "::" , stringify ! (size))) ; } test_field_size () ; } # [doc = " Indicates that the contents of this layer are rendered by Flutter into a"] # [doc = " backing store."] pub const FlutterLayerContentType_kFlutterLayerContentTypeBackingStore : FlutterLayerContentType = 0 ; # [doc = " Indicates that the contents of this layer are determined by the embedder."] pub const FlutterLayerContentType_kFlutterLayerContentTypePlatformView : FlutterLayerContentType = 1 ; pub type FlutterLayerContentType = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct FlutterLayer { # [doc = " This size of this struct. Must be sizeof(FlutterLayer)."] pub struct_size : size_t , # [doc = " Each layer displays contents in one way or another. The type indicates"] # [doc = " whether those contents are specified by Flutter or the embedder."] pub type_ : FlutterLayerContentType , pub __bindgen_anon_1 : FlutterLayer__bindgen_ty_1 , # [doc = " The offset of this layer (in physical pixels) relative to the top left of"] # [doc = " the root surface used by the engine."] pub offset : FlutterPoint , # [doc = " The size of the layer (in physical pixels)."] pub size : FlutterSize , } # [repr (C)] # [derive (Copy , Clone)] pub union FlutterLayer__bindgen_ty_1 { # [doc = " Indicates that the contents of this layer are rendered by Flutter into a"] # [doc = " backing store."] pub backing_store : * const FlutterBackingStore , # [doc = " Indicates that the contents of this layer are determined by the"] # [doc = " embedder."] pub platform_view : * const FlutterPlatformView , } # [test] fn bindgen_test_layout_FlutterLayer__bindgen_ty_1 () { assert_eq ! (:: std :: mem :: size_of :: < FlutterLayer__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (FlutterLayer__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterLayer__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterLayer__bindgen_ty_1))) ; fn test_field_backing_store () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLayer__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . backing_store) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterLayer__bindgen_ty_1) , "::" , stringify ! (backing_store))) ; } test_field_backing_store () ; fn test_field_platform_view () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLayer__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . platform_view) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterLayer__bindgen_ty_1) , "::" , stringify ! (platform_view))) ; } test_field_platform_view () ; } # [test] fn bindgen_test_layout_FlutterLayer () { assert_eq ! (:: std :: mem :: size_of :: < FlutterLayer > () , 56usize , concat ! ("Size of: " , stringify ! (FlutterLayer))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterLayer > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterLayer))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLayer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterLayer) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_type () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLayer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . type_) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterLayer) , "::" , stringify ! (type_))) ; } test_field_type () ; fn test_field_offset () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLayer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . offset) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterLayer) , "::" , stringify ! (offset))) ; } test_field_offset () ; fn test_field_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLayer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . size) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterLayer) , "::" , stringify ! (size))) ; } test_field_size () ; } pub type FlutterBackingStoreCreateCallback = :: std :: option :: Option < unsafe extern "C" fn (config : * const FlutterBackingStoreConfig , backing_store_out : * mut FlutterBackingStore , user_data : * mut :: std :: os :: raw :: c_void) -> bool > ; pub type FlutterBackingStoreCollectCallback = :: std :: option :: Option < unsafe extern "C" fn (renderer : * const FlutterBackingStore , user_data : * mut :: std :: os :: raw :: c_void) -> bool > ; pub type FlutterLayersPresentCallback = :: std :: option :: Option < unsafe extern "C" fn (layers : * mut * const FlutterLayer , layers_count : size_t , user_data : * mut :: std :: os :: raw :: c_void) -> bool > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterCompositor { # [doc = " This size of this struct. Must be sizeof(FlutterCompositor)."] pub struct_size : size_t , # [doc = " A baton that in not interpreted by the engine in any way. If it passed"] # [doc = " back to the embedder in `FlutterCompositor.create_backing_store_callback`,"] # [doc = " `FlutterCompositor.collect_backing_store_callback` and"] # [doc = " `FlutterCompositor.present_layers_callback`"] pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " A callback invoked by the engine to obtain a backing store for a specific"] # [doc = " `FlutterLayer`."] # [doc = ""] # [doc = " On ABI stability: Callers must take care to restrict access within"] # [doc = " `FlutterBackingStore::struct_size` when specifying a new backing store to"] # [doc = " the engine. This only matters if the embedder expects to be used with"] # [doc = " engines older than the version whose headers it used during compilation."] pub create_backing_store_callback : FlutterBackingStoreCreateCallback , # [doc = " A callback invoked by the engine to release the backing store. The"] # [doc = " embedder may collect any resources associated with the backing store."] pub collect_backing_store_callback : FlutterBackingStoreCollectCallback , # [doc = " Callback invoked by the engine to composite the contents of each layer"] # [doc = " onto the screen."] pub present_layers_callback : FlutterLayersPresentCallback , # [doc = " Avoid caching backing stores provided by this compositor."] pub avoid_backing_store_cache : bool , } # [test] fn bindgen_test_layout_FlutterCompositor () { assert_eq ! (:: std :: mem :: size_of :: < FlutterCompositor > () , 48usize , concat ! ("Size of: " , stringify ! (FlutterCompositor))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterCompositor > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterCompositor))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCompositor > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterCompositor) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCompositor > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterCompositor) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_create_backing_store_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCompositor > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . create_backing_store_callback) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterCompositor) , "::" , stringify ! (create_backing_store_callback))) ; } test_field_create_backing_store_callback () ; fn test_field_collect_backing_store_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCompositor > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . collect_backing_store_callback) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterCompositor) , "::" , stringify ! (collect_backing_store_callback))) ; } test_field_collect_backing_store_callback () ; fn test_field_present_layers_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCompositor > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . present_layers_callback) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterCompositor) , "::" , stringify ! (present_layers_callback))) ; } test_field_present_layers_callback () ; fn test_field_avoid_backing_store_cache () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCompositor > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . avoid_backing_store_cache) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterCompositor) , "::" , stringify ! (avoid_backing_store_cache))) ; } test_field_avoid_backing_store_cache () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterLocale { # [doc = " This size of this struct. Must be sizeof(FlutterLocale)."] pub struct_size : size_t , # [doc = " The language code of the locale. For example, \"en\". This is a required"] # [doc = " field. The string must be null terminated. It may be collected after the"] # [doc = " call to `FlutterEngineUpdateLocales`."] pub language_code : * const :: std :: os :: raw :: c_char , # [doc = " The country code of the locale. For example, \"US\". This is a an optional"] # [doc = " field. The string must be null terminated if present. It may be collected"] # [doc = " after the call to `FlutterEngineUpdateLocales`. If not present, a"] # [doc = " `nullptr` may be specified."] pub country_code : * const :: std :: os :: raw :: c_char , # [doc = " The script code of the locale. This is a an optional field. The string"] # [doc = " must be null terminated if present. It may be collected after the call to"] # [doc = " `FlutterEngineUpdateLocales`. If not present, a `nullptr` may be"] # [doc = " specified."] pub script_code : * const :: std :: os :: raw :: c_char , # [doc = " The variant code of the locale. This is a an optional field. The string"] # [doc = " must be null terminated if present. It may be collected after the call to"] # [doc = " `FlutterEngineUpdateLocales`. If not present, a `nullptr` may be"] # [doc = " specified."] pub variant_code : * const :: std :: os :: raw :: c_char , } # [test] fn bindgen_test_layout_FlutterLocale () { assert_eq ! (:: std :: mem :: size_of :: < FlutterLocale > () , 40usize , concat ! ("Size of: " , stringify ! (FlutterLocale))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterLocale > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterLocale))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLocale > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterLocale) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_language_code () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLocale > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . language_code) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterLocale) , "::" , stringify ! (language_code))) ; } test_field_language_code () ; fn test_field_country_code () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLocale > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . country_code) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterLocale) , "::" , stringify ! (country_code))) ; } test_field_country_code () ; fn test_field_script_code () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLocale > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . script_code) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterLocale) , "::" , stringify ! (script_code))) ; } test_field_script_code () ; fn test_field_variant_code () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLocale > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . variant_code) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterLocale) , "::" , stringify ! (variant_code))) ; } test_field_variant_code () ; } # [doc = " Callback that returns the system locale."] # [doc = ""] # [doc = " Embedders that implement this callback should return the `FlutterLocale`"] # [doc = " from the `supported_locales` list that most closely matches the"] # [doc = " user/device's preferred locale."] # [doc = ""] # [doc = " This callback does not currently provide the user_data baton."] # [doc = " https://github.com/flutter/flutter/issues/79826"] pub type FlutterComputePlatformResolvedLocaleCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut * const FlutterLocale , arg2 : size_t) -> * const FlutterLocale > ; # [doc = " Display refers to a graphics hardware system consisting of a framebuffer,"] # [doc = " typically a monitor or a screen. This ID is unique per display and is"] # [doc = " stable until the Flutter application restarts."] pub type FlutterEngineDisplayId = u64 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterEngineDisplay { # [doc = " This size of this struct. Must be sizeof(FlutterDisplay)."] pub struct_size : size_t , pub display_id : FlutterEngineDisplayId , # [doc = " This is set to true if the embedder only has one display. In cases where"] # [doc = " this is set to true, the value of display_id is ignored. In cases where"] # [doc = " this is not set to true, it is expected that a valid display_id be"] # [doc = " provided."] pub single_display : bool , # [doc = " This represents the refresh period in frames per second. This value may be"] # [doc = " zero if the device is not running or unavailable or unknown."] pub refresh_rate : f64 , } # [test] fn bindgen_test_layout_FlutterEngineDisplay () { assert_eq ! (:: std :: mem :: size_of :: < FlutterEngineDisplay > () , 32usize , concat ! ("Size of: " , stringify ! (FlutterEngineDisplay))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterEngineDisplay > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterEngineDisplay))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDisplay > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDisplay) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_display_id () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDisplay > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . display_id) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDisplay) , "::" , stringify ! (display_id))) ; } test_field_display_id () ; fn test_field_single_display () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDisplay > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . single_display) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDisplay) , "::" , stringify ! (single_display))) ; } test_field_single_display () ; fn test_field_refresh_rate () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDisplay > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . refresh_rate) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDisplay) , "::" , stringify ! (refresh_rate))) ; } test_field_refresh_rate () ; } # [doc = " `FlutterEngineDisplay`s that were active during start-up. A display is"] # [doc = " considered active if:"] # [doc = "    1. The frame buffer hardware is connected."] # [doc = "    2. The display is drawable, e.g. it isn't being mirrored from another"] # [doc = "    connected display or sleeping."] pub const FlutterEngineDisplaysUpdateType_kFlutterEngineDisplaysUpdateTypeStartup : FlutterEngineDisplaysUpdateType = 0 ; # [doc = " `FlutterEngineDisplay`s that were active during start-up. A display is"] # [doc = " considered active if:"] # [doc = "    1. The frame buffer hardware is connected."] # [doc = "    2. The display is drawable, e.g. it isn't being mirrored from another"] # [doc = "    connected display or sleeping."] pub const FlutterEngineDisplaysUpdateType_kFlutterEngineDisplaysUpdateTypeCount : FlutterEngineDisplaysUpdateType = 1 ; # [doc = " The update type parameter that is passed to"] # [doc = " `FlutterEngineNotifyDisplayUpdate`."] pub type FlutterEngineDisplaysUpdateType = :: std :: os :: raw :: c_uint ; pub type FlutterEngineDartPort = i64 ; pub const FlutterEngineDartObjectType_kFlutterEngineDartObjectTypeNull : FlutterEngineDartObjectType = 0 ; pub const FlutterEngineDartObjectType_kFlutterEngineDartObjectTypeBool : FlutterEngineDartObjectType = 1 ; pub const FlutterEngineDartObjectType_kFlutterEngineDartObjectTypeInt32 : FlutterEngineDartObjectType = 2 ; pub const FlutterEngineDartObjectType_kFlutterEngineDartObjectTypeInt64 : FlutterEngineDartObjectType = 3 ; pub const FlutterEngineDartObjectType_kFlutterEngineDartObjectTypeDouble : FlutterEngineDartObjectType = 4 ; pub const FlutterEngineDartObjectType_kFlutterEngineDartObjectTypeString : FlutterEngineDartObjectType = 5 ; # [doc = " The object will be made available to Dart code as an instance of"] # [doc = " Uint8List."] pub const FlutterEngineDartObjectType_kFlutterEngineDartObjectTypeBuffer : FlutterEngineDartObjectType = 6 ; pub type FlutterEngineDartObjectType = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterEngineDartBuffer { # [doc = " The size of this struct. Must be sizeof(FlutterEngineDartBuffer)."] pub struct_size : size_t , # [doc = " An opaque baton passed back to the embedder when the"] # [doc = " buffer_collect_callback is invoked. The engine does not interpret this"] # [doc = " field in any way."] pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " This is an optional field."] # [doc = ""] # [doc = " When specified, the engine will assume that the buffer is owned by the"] # [doc = " embedder. When the data is no longer needed by any isolate, this callback"] # [doc = " will be made on an internal engine managed thread. The embedder is free to"] # [doc = " collect the buffer here. When this field is specified, it is the embedders"] # [doc = " responsibility to keep the buffer alive and not modify it till this"] # [doc = " callback is invoked by the engine. The user data specified in the callback"] # [doc = " is the value of `user_data` field in this struct."] # [doc = ""] # [doc = " When NOT specified, the VM creates an internal copy of the buffer. The"] # [doc = " caller is free to modify the buffer as necessary or collect it immediately"] # [doc = " after the call to `FlutterEnginePostDartObject`."] # [doc = ""] # [doc = " @attention      The buffer_collect_callback is will only be invoked by the"] # [doc = "                 engine when the `FlutterEnginePostDartObject` method"] # [doc = "                 returns kSuccess. In case of non-successful calls to this"] # [doc = "                 method, it is the embedders responsibility to collect the"] # [doc = "                 buffer."] pub buffer_collect_callback : VoidCallback , # [doc = " A pointer to the bytes of the buffer. When the buffer is owned by the"] # [doc = " embedder (by specifying the `buffer_collect_callback`), Dart code may"] # [doc = " modify that embedder owned buffer. For this reason, it is important that"] # [doc = " this buffer not have page protections that restrict writing to this"] # [doc = " buffer."] pub buffer : * mut u8 , # [doc = " The size of the buffer."] pub buffer_size : size_t , } # [test] fn bindgen_test_layout_FlutterEngineDartBuffer () { assert_eq ! (:: std :: mem :: size_of :: < FlutterEngineDartBuffer > () , 40usize , concat ! ("Size of: " , stringify ! (FlutterEngineDartBuffer))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterEngineDartBuffer > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterEngineDartBuffer))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartBuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartBuffer) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartBuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartBuffer) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_buffer_collect_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartBuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . buffer_collect_callback) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartBuffer) , "::" , stringify ! (buffer_collect_callback))) ; } test_field_buffer_collect_callback () ; fn test_field_buffer () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartBuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . buffer) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartBuffer) , "::" , stringify ! (buffer))) ; } test_field_buffer () ; fn test_field_buffer_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartBuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . buffer_size) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartBuffer) , "::" , stringify ! (buffer_size))) ; } test_field_buffer_size () ; } # [doc = " This struct specifies the native representation of a Dart object that can be"] # [doc = " sent via a send port to any isolate in the VM that has the corresponding"] # [doc = " receive port."] # [doc = ""] # [doc = " All fields in this struct are copied out in the call to"] # [doc = " `FlutterEnginePostDartObject` and the caller is free to reuse or collect"] # [doc = " this struct after that call."] # [repr (C)] # [derive (Copy , Clone)] pub struct FlutterEngineDartObject { pub type_ : FlutterEngineDartObjectType , pub __bindgen_anon_1 : FlutterEngineDartObject__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union FlutterEngineDartObject__bindgen_ty_1 { pub bool_value : bool , pub int32_value : i32 , pub int64_value : i64 , pub double_value : f64 , # [doc = " A null terminated string. This string will be copied by the VM in the"] # [doc = " call to `FlutterEnginePostDartObject` and must be collected by the"] # [doc = " embedder after that call is made."] pub string_value : * const :: std :: os :: raw :: c_char , pub buffer_value : * const FlutterEngineDartBuffer , } # [test] fn bindgen_test_layout_FlutterEngineDartObject__bindgen_ty_1 () { assert_eq ! (:: std :: mem :: size_of :: < FlutterEngineDartObject__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (FlutterEngineDartObject__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterEngineDartObject__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterEngineDartObject__bindgen_ty_1))) ; fn test_field_bool_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartObject__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . bool_value) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartObject__bindgen_ty_1) , "::" , stringify ! (bool_value))) ; } test_field_bool_value () ; fn test_field_int32_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartObject__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . int32_value) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartObject__bindgen_ty_1) , "::" , stringify ! (int32_value))) ; } test_field_int32_value () ; fn test_field_int64_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartObject__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . int64_value) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartObject__bindgen_ty_1) , "::" , stringify ! (int64_value))) ; } test_field_int64_value () ; fn test_field_double_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartObject__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . double_value) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartObject__bindgen_ty_1) , "::" , stringify ! (double_value))) ; } test_field_double_value () ; fn test_field_string_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartObject__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . string_value) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartObject__bindgen_ty_1) , "::" , stringify ! (string_value))) ; } test_field_string_value () ; fn test_field_buffer_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartObject__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . buffer_value) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartObject__bindgen_ty_1) , "::" , stringify ! (buffer_value))) ; } test_field_buffer_value () ; } # [test] fn bindgen_test_layout_FlutterEngineDartObject () { assert_eq ! (:: std :: mem :: size_of :: < FlutterEngineDartObject > () , 16usize , concat ! ("Size of: " , stringify ! (FlutterEngineDartObject))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterEngineDartObject > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterEngineDartObject))) ; fn test_field_type () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartObject > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . type_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartObject) , "::" , stringify ! (type_))) ; } test_field_type () ; } # [doc = " The Flutter Engine considers the thread on which the FlutterEngineRun call"] # [doc = " is made to be the platform thread. There is only one such thread per"] # [doc = " engine instance."] pub const FlutterNativeThreadType_kFlutterNativeThreadTypePlatform : FlutterNativeThreadType = 0 ; # [doc = " This is the thread the Flutter Engine uses to execute rendering commands"] # [doc = " based on the selected client rendering API. There is only one such thread"] # [doc = " per engine instance."] pub const FlutterNativeThreadType_kFlutterNativeThreadTypeRender : FlutterNativeThreadType = 1 ; # [doc = " This is a dedicated thread on which the root Dart isolate is serviced."] # [doc = " There is only one such thread per engine instance."] pub const FlutterNativeThreadType_kFlutterNativeThreadTypeUI : FlutterNativeThreadType = 2 ; # [doc = " Multiple threads are used by the Flutter engine to perform long running"] # [doc = " background tasks."] pub const FlutterNativeThreadType_kFlutterNativeThreadTypeWorker : FlutterNativeThreadType = 3 ; # [doc = " This enum allows embedders to determine the type of the engine thread in the"] # [doc = " FlutterNativeThreadCallback. Based on the thread type, the embedder may be"] # [doc = " able to tweak the thread priorities for optimum performance."] pub type FlutterNativeThreadType = :: std :: os :: raw :: c_uint ; # [doc = " A callback made by the engine in response to"] # [doc = " `FlutterEnginePostCallbackOnAllNativeThreads` on all internal thread."] pub type FlutterNativeThreadCallback = :: std :: option :: Option < unsafe extern "C" fn (type_ : FlutterNativeThreadType , user_data : * mut :: std :: os :: raw :: c_void) > ; pub const FlutterEngineAOTDataSourceType_kFlutterEngineAOTDataSourceTypeElfPath : FlutterEngineAOTDataSourceType = 0 ; # [doc = " AOT data source type."] pub type FlutterEngineAOTDataSourceType = :: std :: os :: raw :: c_uint ; # [doc = " This struct specifies one of the various locations the engine can look for"] # [doc = " AOT data sources."] # [repr (C)] # [derive (Copy , Clone)] pub struct FlutterEngineAOTDataSource { pub type_ : FlutterEngineAOTDataSourceType , pub __bindgen_anon_1 : FlutterEngineAOTDataSource__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union FlutterEngineAOTDataSource__bindgen_ty_1 { # [doc = " Absolute path to an ELF library file."] pub elf_path : * const :: std :: os :: raw :: c_char , } # [test] fn bindgen_test_layout_FlutterEngineAOTDataSource__bindgen_ty_1 () { assert_eq ! (:: std :: mem :: size_of :: < FlutterEngineAOTDataSource__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (FlutterEngineAOTDataSource__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterEngineAOTDataSource__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterEngineAOTDataSource__bindgen_ty_1))) ; fn test_field_elf_path () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineAOTDataSource__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . elf_path) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineAOTDataSource__bindgen_ty_1) , "::" , stringify ! (elf_path))) ; } test_field_elf_path () ; } # [test] fn bindgen_test_layout_FlutterEngineAOTDataSource () { assert_eq ! (:: std :: mem :: size_of :: < FlutterEngineAOTDataSource > () , 16usize , concat ! ("Size of: " , stringify ! (FlutterEngineAOTDataSource))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterEngineAOTDataSource > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterEngineAOTDataSource))) ; fn test_field_type () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineAOTDataSource > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . type_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineAOTDataSource) , "::" , stringify ! (type_))) ; } test_field_type () ; } pub type FlutterLogMessageCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_char , arg2 : * const :: std :: os :: raw :: c_char , arg3 : * mut :: std :: os :: raw :: c_void) > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _FlutterEngineAOTData { _unused : [u8 ; 0] , } # [doc = " An opaque object that describes the AOT data that can be used to launch a"] # [doc = " FlutterEngine instance in AOT mode."] pub type FlutterEngineAOTData = * mut _FlutterEngineAOTData ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterProjectArgs { # [doc = " The size of this struct. Must be sizeof(FlutterProjectArgs)."] pub struct_size : size_t , # [doc = " The path to the Flutter assets directory containing project assets. The"] # [doc = " string can be collected after the call to `FlutterEngineRun` returns. The"] # [doc = " string must be NULL terminated."] pub assets_path : * const :: std :: os :: raw :: c_char , # [doc = " The path to the Dart file containing the `main` entry point."] # [doc = " The string can be collected after the call to `FlutterEngineRun` returns."] # [doc = " The string must be NULL terminated."] # [doc = ""] # [doc = " @deprecated     As of Dart 2, running from Dart source is no longer"] # [doc = "                 supported. Dart code should now be compiled to kernel form"] # [doc = "                 and will be loaded by from `kernel_blob.bin` in the assets"] # [doc = "                 directory. This struct member is retained for ABI"] # [doc = "                 stability."] pub main_path__unused__ : * const :: std :: os :: raw :: c_char , # [doc = " The path to the `.packages` file for the project. The string can be"] # [doc = " collected after the call to `FlutterEngineRun` returns. The string must be"] # [doc = " NULL terminated."] # [doc = ""] # [doc = " @deprecated    As of Dart 2, running from Dart source is no longer"] # [doc = "                supported. Dart code should now be compiled to kernel form"] # [doc = "                and will be loaded by from `kernel_blob.bin` in the assets"] # [doc = "                directory. This struct member is retained for ABI"] # [doc = "                stability."] pub packages_path__unused__ : * const :: std :: os :: raw :: c_char , # [doc = " The path to the `icudtl.dat` file for the project. The string can be"] # [doc = " collected after the call to `FlutterEngineRun` returns. The string must"] # [doc = " be NULL terminated."] pub icu_data_path : * const :: std :: os :: raw :: c_char , # [doc = " The command line argument count used to initialize the project."] pub command_line_argc : :: std :: os :: raw :: c_int , # [doc = " The command line arguments used to initialize the project. The strings can"] # [doc = " be collected after the call to `FlutterEngineRun` returns. The strings"] # [doc = " must be `NULL` terminated."] # [doc = ""] # [doc = " @attention     The first item in the command line (if specified at all) is"] # [doc = "                interpreted as the executable name. So if an engine flag"] # [doc = "                needs to be passed into the same, it needs to not be the"] # [doc = "                very first item in the list."] # [doc = ""] # [doc = " The set of engine flags are only meant to control"] # [doc = " unstable features in the engine. Deployed applications should not pass any"] # [doc = " command line arguments at all as they may affect engine stability at"] # [doc = " runtime in the presence of un-sanitized input. The list of currently"] # [doc = " recognized engine flags and their descriptions can be retrieved from the"] # [doc = " `switches.h` engine source file."] pub command_line_argv : * const * const :: std :: os :: raw :: c_char , # [doc = " The callback invoked by the engine in order to give the embedder the"] # [doc = " chance to respond to platform messages from the Dart application."] # [doc = " The callback will be invoked on the thread on which the `FlutterEngineRun`"] # [doc = " call is made. The second parameter, `user_data`, is supplied when"] # [doc = " `FlutterEngineRun` or `FlutterEngineInitialize` is called."] pub platform_message_callback : FlutterPlatformMessageCallback , # [doc = " The VM snapshot data buffer used in AOT operation. This buffer must be"] # [doc = " mapped in as read-only. For more information refer to the documentation on"] # [doc = " the Wiki at"] # [doc = " https://github.com/flutter/flutter/wiki/Flutter-engine-operation-in-AOT-Mode"] pub vm_snapshot_data : * const u8 , # [doc = " The size of the VM snapshot data buffer.  If vm_snapshot_data is a symbol"] # [doc = " reference, 0 may be passed here."] pub vm_snapshot_data_size : size_t , # [doc = " The VM snapshot instructions buffer used in AOT operation. This buffer"] # [doc = " must be mapped in as read-execute. For more information refer to the"] # [doc = " documentation on the Wiki at"] # [doc = " https://github.com/flutter/flutter/wiki/Flutter-engine-operation-in-AOT-Mode"] pub vm_snapshot_instructions : * const u8 , # [doc = " The size of the VM snapshot instructions buffer. If"] # [doc = " vm_snapshot_instructions is a symbol reference, 0 may be passed here."] pub vm_snapshot_instructions_size : size_t , # [doc = " The isolate snapshot data buffer used in AOT operation. This buffer must"] # [doc = " be mapped in as read-only. For more information refer to the documentation"] # [doc = " on the Wiki at"] # [doc = " https://github.com/flutter/flutter/wiki/Flutter-engine-operation-in-AOT-Mode"] pub isolate_snapshot_data : * const u8 , # [doc = " The size of the isolate snapshot data buffer.  If isolate_snapshot_data is"] # [doc = " a symbol reference, 0 may be passed here."] pub isolate_snapshot_data_size : size_t , # [doc = " The isolate snapshot instructions buffer used in AOT operation. This"] # [doc = " buffer must be mapped in as read-execute. For more information refer to"] # [doc = " the documentation on the Wiki at"] # [doc = " https://github.com/flutter/flutter/wiki/Flutter-engine-operation-in-AOT-Mode"] pub isolate_snapshot_instructions : * const u8 , # [doc = " The size of the isolate snapshot instructions buffer. If"] # [doc = " isolate_snapshot_instructions is a symbol reference, 0 may be passed here."] pub isolate_snapshot_instructions_size : size_t , # [doc = " The callback invoked by the engine in root isolate scope. Called"] # [doc = " immediately after the root isolate has been created and marked runnable."] pub root_isolate_create_callback : VoidCallback , # [doc = " The callback invoked by the engine in order to give the embedder the"] # [doc = " chance to respond to semantics node updates from the Dart application."] # [doc = " Semantics node updates are sent in batches terminated by a 'batch end'"] # [doc = " callback that is passed a sentinel `FlutterSemanticsNode` whose `id` field"] # [doc = " has the value `kFlutterSemanticsNodeIdBatchEnd`."] # [doc = ""] # [doc = " The callback will be invoked on the thread on which the `FlutterEngineRun`"] # [doc = " call is made."] pub update_semantics_node_callback : FlutterUpdateSemanticsNodeCallback , # [doc = " The callback invoked by the engine in order to give the embedder the"] # [doc = " chance to respond to updates to semantics custom actions from the Dart"] # [doc = " application.  Custom action updates are sent in batches terminated by a"] # [doc = " 'batch end' callback that is passed a sentinel"] # [doc = " `FlutterSemanticsCustomAction` whose `id` field has the value"] # [doc = " `kFlutterSemanticsCustomActionIdBatchEnd`."] # [doc = ""] # [doc = " The callback will be invoked on the thread on which the `FlutterEngineRun`"] # [doc = " call is made."] pub update_semantics_custom_action_callback : FlutterUpdateSemanticsCustomActionCallback , # [doc = " Path to a directory used to store data that is cached across runs of a"] # [doc = " Flutter application (such as compiled shader programs used by Skia)."] # [doc = " This is optional.  The string must be NULL terminated."] # [doc = ""] pub persistent_cache_path : * const :: std :: os :: raw :: c_char , # [doc = " If true, the engine would only read the existing cache, but not write new"] # [doc = " ones."] pub is_persistent_cache_read_only : bool , # [doc = " A callback that gets invoked by the engine when it attempts to wait for a"] # [doc = " platform vsync event. The engine will give the platform a baton that needs"] # [doc = " to be returned back to the engine via `FlutterEngineOnVsync`. All batons"] # [doc = " must be retured to the engine before initializing a"] # [doc = " `FlutterEngineShutdown`. Not doing the same will result in a memory leak."] # [doc = " While the call to `FlutterEngineOnVsync` must occur on the thread that"] # [doc = " made the call to `FlutterEngineRun`, the engine will make this callback on"] # [doc = " an internal engine-managed thread. If the components accessed on the"] # [doc = " embedder are not thread safe, the appropriate re-threading must be done."] pub vsync_callback : VsyncCallback , # [doc = " The name of a custom Dart entrypoint. This is optional and specifying a"] # [doc = " null or empty entrypoint makes the engine look for a method named \"main\""] # [doc = " in the root library of the application."] # [doc = ""] # [doc = " Care must be taken to ensure that the custom entrypoint is not tree-shaken"] # [doc = " away. Usually, this is done using the `@pragma('vm:entry-point')`"] # [doc = " decoration."] pub custom_dart_entrypoint : * const :: std :: os :: raw :: c_char , # [doc = " Typically the Flutter engine create and manages its internal threads. This"] # [doc = " optional argument allows for the specification of task runner interfaces"] # [doc = " to event loops managed by the embedder on threads it creates."] pub custom_task_runners : * const FlutterCustomTaskRunners , # [doc = " All `FlutterEngine` instances in the process share the same Dart VM. When"] # [doc = " the first engine is launched, it starts the Dart VM as well. It used to be"] # [doc = " the case that it was not possible to shutdown the Dart VM cleanly and"] # [doc = " start it back up in the process in a safe manner. This issue has since"] # [doc = " been patched. Unfortunately, applications already began to make use of the"] # [doc = " fact that shutting down the Flutter engine instance left a running VM in"] # [doc = " the process. Since a Flutter engine could be launched on any thread,"] # [doc = " applications would \"warm up\" the VM on another thread by launching"] # [doc = " an engine with no isolates and then shutting it down immediately. The main"] # [doc = " Flutter application could then be started on the main thread without"] # [doc = " having to incur the Dart VM startup costs at that time. With the new"] # [doc = " behavior, this \"optimization\" immediately becomes massive performance"] # [doc = " pessimization as the VM would be started up in the \"warm up\" phase, shut"] # [doc = " down there and then started again on the main thread. Changing this"] # [doc = " behavior was deemed to be an unacceptable breaking change. Embedders that"] # [doc = " wish to shutdown the Dart VM when the last engine is terminated in the"] # [doc = " process should opt into this behavior by setting this flag to true."] pub shutdown_dart_vm_when_done : bool , # [doc = " Typically, Flutter renders the layer hierarchy into a single root surface."] # [doc = " However, when embedders need to interleave their own contents within the"] # [doc = " Flutter layer hierarchy, their applications can push platform views within"] # [doc = " the Flutter scene. This is done using the `SceneBuilder.addPlatformView`"] # [doc = " call. When this happens, the Flutter rasterizer divides the effective view"] # [doc = " hierarchy into multiple layers. Each layer gets its own backing store and"] # [doc = " Flutter renders into the same. Once the layers contents have been"] # [doc = " fulfilled, the embedder is asked to composite these layers on-screen. At"] # [doc = " this point, it can interleave its own contents within the effective"] # [doc = " hierarchy. The interface for the specification of these layer backing"] # [doc = " stores and the hooks to listen for the composition of layers on-screen can"] # [doc = " be controlled using this field. This field is completely optional. In its"] # [doc = " absence, platforms views in the scene are ignored and Flutter renders to"] # [doc = " the root surface as normal."] pub compositor : * const FlutterCompositor , # [doc = " Max size of the old gen heap for the Dart VM in MB, or 0 for unlimited, -1"] # [doc = " for default value."] # [doc = ""] # [doc = " See also:"] # [doc = " https://github.com/dart-lang/sdk/blob/ca64509108b3e7219c50d6c52877c85ab6a35ff2/runtime/vm/flag_list.h#L150"] pub dart_old_gen_heap_size : i64 , # [doc = " The AOT data to be used in AOT operation."] # [doc = ""] # [doc = " Embedders should instantiate and destroy this object via the"] # [doc = " FlutterEngineCreateAOTData and FlutterEngineCollectAOTData methods."] # [doc = ""] # [doc = " Embedders can provide either snapshot buffers or aot_data, but not both."] pub aot_data : FlutterEngineAOTData , # [doc = " A callback that computes the locale the platform would natively resolve"] # [doc = " to."] # [doc = ""] # [doc = " The input parameter is an array of FlutterLocales which represent the"] # [doc = " locales supported by the app. One of the input supported locales should"] # [doc = " be selected and returned to best match with the user/device's preferred"] # [doc = " locale. The implementation should produce a result that as closely"] # [doc = " matches what the platform would natively resolve to as possible."] pub compute_platform_resolved_locale_callback : FlutterComputePlatformResolvedLocaleCallback , # [doc = " The command line argument count for arguments passed through to the Dart"] # [doc = " entrypoint."] pub dart_entrypoint_argc : :: std :: os :: raw :: c_int , # [doc = " The command line arguments passed through to the Dart entrypoint. The"] # [doc = " strings must be `NULL` terminated."] # [doc = ""] # [doc = " The strings will be copied out and so any strings passed in here can"] # [doc = " be safely collected after initializing the engine with"] # [doc = " `FlutterProjectArgs`."] pub dart_entrypoint_argv : * const * const :: std :: os :: raw :: c_char , pub log_message_callback : FlutterLogMessageCallback , pub log_tag : * const :: std :: os :: raw :: c_char , pub on_pre_engine_restart_callback : OnPreEngineRestartCallback , } # [test] fn bindgen_test_layout_FlutterProjectArgs () { assert_eq ! (:: std :: mem :: size_of :: < FlutterProjectArgs > () , 272usize , concat ! ("Size of: " , stringify ! (FlutterProjectArgs))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterProjectArgs > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterProjectArgs))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_assets_path () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . assets_path) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (assets_path))) ; } test_field_assets_path () ; fn test_field_main_path__unused__ () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . main_path__unused__) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (main_path__unused__))) ; } test_field_main_path__unused__ () ; fn test_field_packages_path__unused__ () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . packages_path__unused__) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (packages_path__unused__))) ; } test_field_packages_path__unused__ () ; fn test_field_icu_data_path () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . icu_data_path) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (icu_data_path))) ; } test_field_icu_data_path () ; fn test_field_command_line_argc () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . command_line_argc) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (command_line_argc))) ; } test_field_command_line_argc () ; fn test_field_command_line_argv () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . command_line_argv) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (command_line_argv))) ; } test_field_command_line_argv () ; fn test_field_platform_message_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . platform_message_callback) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (platform_message_callback))) ; } test_field_platform_message_callback () ; fn test_field_vm_snapshot_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . vm_snapshot_data) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (vm_snapshot_data))) ; } test_field_vm_snapshot_data () ; fn test_field_vm_snapshot_data_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . vm_snapshot_data_size) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (vm_snapshot_data_size))) ; } test_field_vm_snapshot_data_size () ; fn test_field_vm_snapshot_instructions () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . vm_snapshot_instructions) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (vm_snapshot_instructions))) ; } test_field_vm_snapshot_instructions () ; fn test_field_vm_snapshot_instructions_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . vm_snapshot_instructions_size) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (vm_snapshot_instructions_size))) ; } test_field_vm_snapshot_instructions_size () ; fn test_field_isolate_snapshot_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . isolate_snapshot_data) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (isolate_snapshot_data))) ; } test_field_isolate_snapshot_data () ; fn test_field_isolate_snapshot_data_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . isolate_snapshot_data_size) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (isolate_snapshot_data_size))) ; } test_field_isolate_snapshot_data_size () ; fn test_field_isolate_snapshot_instructions () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . isolate_snapshot_instructions) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (isolate_snapshot_instructions))) ; } test_field_isolate_snapshot_instructions () ; fn test_field_isolate_snapshot_instructions_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . isolate_snapshot_instructions_size) as usize - ptr as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (isolate_snapshot_instructions_size))) ; } test_field_isolate_snapshot_instructions_size () ; fn test_field_root_isolate_create_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . root_isolate_create_callback) as usize - ptr as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (root_isolate_create_callback))) ; } test_field_root_isolate_create_callback () ; fn test_field_update_semantics_node_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . update_semantics_node_callback) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (update_semantics_node_callback))) ; } test_field_update_semantics_node_callback () ; fn test_field_update_semantics_custom_action_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . update_semantics_custom_action_callback) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (update_semantics_custom_action_callback))) ; } test_field_update_semantics_custom_action_callback () ; fn test_field_persistent_cache_path () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . persistent_cache_path) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (persistent_cache_path))) ; } test_field_persistent_cache_path () ; fn test_field_is_persistent_cache_read_only () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . is_persistent_cache_read_only) as usize - ptr as usize } , 160usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (is_persistent_cache_read_only))) ; } test_field_is_persistent_cache_read_only () ; fn test_field_vsync_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . vsync_callback) as usize - ptr as usize } , 168usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (vsync_callback))) ; } test_field_vsync_callback () ; fn test_field_custom_dart_entrypoint () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . custom_dart_entrypoint) as usize - ptr as usize } , 176usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (custom_dart_entrypoint))) ; } test_field_custom_dart_entrypoint () ; fn test_field_custom_task_runners () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . custom_task_runners) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (custom_task_runners))) ; } test_field_custom_task_runners () ; fn test_field_shutdown_dart_vm_when_done () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . shutdown_dart_vm_when_done) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (shutdown_dart_vm_when_done))) ; } test_field_shutdown_dart_vm_when_done () ; fn test_field_compositor () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . compositor) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (compositor))) ; } test_field_compositor () ; fn test_field_dart_old_gen_heap_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . dart_old_gen_heap_size) as usize - ptr as usize } , 208usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (dart_old_gen_heap_size))) ; } test_field_dart_old_gen_heap_size () ; fn test_field_aot_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . aot_data) as usize - ptr as usize } , 216usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (aot_data))) ; } test_field_aot_data () ; fn test_field_compute_platform_resolved_locale_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . compute_platform_resolved_locale_callback) as usize - ptr as usize } , 224usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (compute_platform_resolved_locale_callback))) ; } test_field_compute_platform_resolved_locale_callback () ; fn test_field_dart_entrypoint_argc () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . dart_entrypoint_argc) as usize - ptr as usize } , 232usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (dart_entrypoint_argc))) ; } test_field_dart_entrypoint_argc () ; fn test_field_dart_entrypoint_argv () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . dart_entrypoint_argv) as usize - ptr as usize } , 240usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (dart_entrypoint_argv))) ; } test_field_dart_entrypoint_argv () ; fn test_field_log_message_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . log_message_callback) as usize - ptr as usize } , 248usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (log_message_callback))) ; } test_field_log_message_callback () ; fn test_field_log_tag () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . log_tag) as usize - ptr as usize } , 256usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (log_tag))) ; } test_field_log_tag () ; fn test_field_on_pre_engine_restart_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . on_pre_engine_restart_callback) as usize - ptr as usize } , 264usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (on_pre_engine_restart_callback))) ; } test_field_on_pre_engine_restart_callback () ; } extern "C" { # [doc = " @brief      Creates the necessary data structures to launch a Flutter Dart"] # [doc = "             application in AOT mode. The data may only be collected after"] # [doc = "             all FlutterEngine instances launched using this data have been"] # [doc = "             terminated."] # [doc = ""] # [doc = " @param[in]  source    The source of the AOT data."] # [doc = " @param[out] data_out  The AOT data on success. Unchanged on failure."] # [doc = ""] # [doc = " @return     Returns if the AOT data could be successfully resolved."] # [doc = ""] pub fn FlutterEngineCreateAOTData (source : * const FlutterEngineAOTDataSource , data_out : * mut FlutterEngineAOTData) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Collects the AOT data."] # [doc = ""] # [doc = " @warning    The embedder must ensure that this call is made only after all"] # [doc = "             FlutterEngine instances launched using this data have been"] # [doc = "             terminated, and that all of those instances were launched with"] # [doc = "             the FlutterProjectArgs::shutdown_dart_vm_when_done flag set to"] # [doc = "             true."] # [doc = ""] # [doc = " @param[in]  data   The data to collect."] # [doc = ""] # [doc = " @return     Returns if the AOT data was successfully collected."] # [doc = ""] pub fn FlutterEngineCollectAOTData (data : FlutterEngineAOTData) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Initialize and run a Flutter engine instance and return a handle"] # [doc = "             to it. This is a convenience method for the pair of calls to"] # [doc = "             `FlutterEngineInitialize` and `FlutterEngineRunInitialized`."] # [doc = ""] # [doc = " @note       This method of running a Flutter engine works well except in"] # [doc = "             cases where the embedder specifies custom task runners via"] # [doc = "             `FlutterProjectArgs::custom_task_runners`. In such cases, the"] # [doc = "             engine may need the embedder to post tasks back to it before"] # [doc = "             `FlutterEngineRun` has returned. Embedders can only post tasks"] # [doc = "             to the engine if they have a handle to the engine. In such"] # [doc = "             cases, embedders are advised to get the engine handle via the"] # [doc = "             `FlutterInitializeCall`. Then they can call"] # [doc = "             `FlutterEngineRunInitialized` knowing that they will be able to"] # [doc = "             service custom tasks on other threads with the engine handle."] # [doc = ""] # [doc = " @param[in]  version    The Flutter embedder API version. Must be"] # [doc = "                        FLUTTER_ENGINE_VERSION."] # [doc = " @param[in]  config     The renderer configuration."] # [doc = " @param[in]  args       The Flutter project arguments."] # [doc = " @param      user_data  A user data baton passed back to embedders in"] # [doc = "                        callbacks."] # [doc = " @param[out] engine_out The engine handle on successful engine creation."] # [doc = ""] # [doc = " @return     The result of the call to run the Flutter engine."] # [doc = ""] pub fn FlutterEngineRun (version : size_t , config : * const FlutterRendererConfig , args : * const FlutterProjectArgs , user_data : * mut :: std :: os :: raw :: c_void , engine_out : * mut FlutterEngine) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Shuts down a Flutter engine instance. The engine handle is no"] # [doc = "             longer valid for any calls in the embedder API after this point."] # [doc = "             Making additional calls with this handle is undefined behavior."] # [doc = ""] # [doc = " @note       This de-initializes the Flutter engine instance (via an implicit"] # [doc = "             call to `FlutterEngineDeinitialize`) if necessary."] # [doc = ""] # [doc = " @param[in]  engine  The Flutter engine instance to collect."] # [doc = ""] # [doc = " @return     The result of the call to shutdown the Flutter engine instance."] # [doc = ""] pub fn FlutterEngineShutdown (engine : FlutterEngine) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Initialize a Flutter engine instance. This does not run the"] # [doc = "             Flutter application code till the `FlutterEngineRunInitialized`"] # [doc = "             call is made. Besides Flutter application code, no tasks are"] # [doc = "             scheduled on embedder managed task runners either. This allows"] # [doc = "             embedders providing custom task runners to the Flutter engine to"] # [doc = "             obtain a handle to the Flutter engine before the engine can post"] # [doc = "             tasks on these task runners."] # [doc = ""] # [doc = " @param[in]  version    The Flutter embedder API version. Must be"] # [doc = "                        FLUTTER_ENGINE_VERSION."] # [doc = " @param[in]  config     The renderer configuration."] # [doc = " @param[in]  args       The Flutter project arguments."] # [doc = " @param      user_data  A user data baton passed back to embedders in"] # [doc = "                        callbacks."] # [doc = " @param[out] engine_out The engine handle on successful engine creation."] # [doc = ""] # [doc = " @return     The result of the call to initialize the Flutter engine."] # [doc = ""] pub fn FlutterEngineInitialize (version : size_t , config : * const FlutterRendererConfig , args : * const FlutterProjectArgs , user_data : * mut :: std :: os :: raw :: c_void , engine_out : * mut FlutterEngine) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Stops running the Flutter engine instance. After this call, the"] # [doc = "             embedder is also guaranteed that no more calls to post tasks"] # [doc = "             onto custom task runners specified by the embedder are made. The"] # [doc = "             Flutter engine handle still needs to be collected via a call to"] # [doc = "             `FlutterEngineShutdown`."] # [doc = ""] # [doc = " @param[in]  engine    The running engine instance to de-initialize."] # [doc = ""] # [doc = " @return     The result of the call to de-initialize the Flutter engine."] # [doc = ""] pub fn FlutterEngineDeinitialize (engine : FlutterEngine) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Runs an initialized engine instance. An engine can be"] # [doc = "             initialized via `FlutterEngineInitialize`. An initialized"] # [doc = "             instance can only be run once. During and after this call,"] # [doc = "             custom task runners supplied by the embedder are expected to"] # [doc = "             start servicing tasks."] # [doc = ""] # [doc = " @param[in]  engine  An initialized engine instance that has not previously"] # [doc = "                     been run."] # [doc = ""] # [doc = " @return     The result of the call to run the initialized Flutter"] # [doc = "             engine instance."] # [doc = ""] pub fn FlutterEngineRunInitialized (engine : FlutterEngine) -> FlutterEngineResult ; } extern "C" { pub fn FlutterEngineSendWindowMetricsEvent (engine : FlutterEngine , event : * const FlutterWindowMetricsEvent) -> FlutterEngineResult ; } extern "C" { pub fn FlutterEngineSendPointerEvent (engine : FlutterEngine , events : * const FlutterPointerEvent , events_count : size_t) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Sends a key event to the engine. The framework will decide"] # [doc = "             whether to handle this event in a synchronous fashion, although"] # [doc = "             due to technical limitation, the result is always reported"] # [doc = "             asynchronously. The `callback` is guaranteed to be called"] # [doc = "             exactly once."] # [doc = ""] # [doc = " @param[in]  engine         A running engine instance."] # [doc = " @param[in]  event          The event data to be sent. This function will no"] # [doc = "                            longer access `event` after returning."] # [doc = " @param[in]  callback       The callback invoked by the engine when the"] # [doc = "                            Flutter application has decided whether it"] # [doc = "                            handles this event. Accepts nullptr."] # [doc = " @param[in]  user_data      The context associated with the callback. The"] # [doc = "                            exact same value will used to invoke `callback`."] # [doc = "                            Accepts nullptr."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineSendKeyEvent (engine : FlutterEngine , event : * const FlutterKeyEvent , callback : FlutterKeyEventCallback , user_data : * mut :: std :: os :: raw :: c_void) -> FlutterEngineResult ; } extern "C" { pub fn FlutterEngineSendPlatformMessage (engine : FlutterEngine , message : * const FlutterPlatformMessage) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief     Creates a platform message response handle that allows the"] # [doc = "            embedder to set a native callback for a response to a message."] # [doc = "            This handle may be set on the `response_handle` field of any"] # [doc = "            `FlutterPlatformMessage` sent to the engine."] # [doc = ""] # [doc = "            The handle must be collected via a call to"] # [doc = "            `FlutterPlatformMessageReleaseResponseHandle`. This may be done"] # [doc = "            immediately after a call to `FlutterEngineSendPlatformMessage`"] # [doc = "            with a platform message whose response handle contains the handle"] # [doc = "            created using this call. In case a handle is created but never"] # [doc = "            sent in a message, the release call must still be made. Not"] # [doc = "            calling release on the handle results in a small memory leak."] # [doc = ""] # [doc = "            The user data baton passed to the data callback is the one"] # [doc = "            specified in this call as the third argument."] # [doc = ""] # [doc = " @see       FlutterPlatformMessageReleaseResponseHandle()"] # [doc = ""] # [doc = " @param[in]  engine         A running engine instance."] # [doc = " @param[in]  data_callback  The callback invoked by the engine when the"] # [doc = "                            Flutter application send a response on the"] # [doc = "                            handle."] # [doc = " @param[in]  user_data      The user data associated with the data callback."] # [doc = " @param[out] response_out   The response handle created when this call is"] # [doc = "                            successful."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterPlatformMessageCreateResponseHandle (engine : FlutterEngine , data_callback : FlutterDataCallback , user_data : * mut :: std :: os :: raw :: c_void , response_out : * mut * mut FlutterPlatformMessageResponseHandle) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Collects the handle created using"] # [doc = "             `FlutterPlatformMessageCreateResponseHandle`."] # [doc = ""] # [doc = " @see        FlutterPlatformMessageCreateResponseHandle()"] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance."] # [doc = " @param[in]  response   The platform message response handle to collect."] # [doc = "                        These handles are created using"] # [doc = "                        `FlutterPlatformMessageCreateResponseHandle()`."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterPlatformMessageReleaseResponseHandle (engine : FlutterEngine , response : * mut FlutterPlatformMessageResponseHandle) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Send a response from the native side to a platform message from"] # [doc = "             the Dart Flutter application."] # [doc = ""] # [doc = " @param[in]  engine       The running engine instance."] # [doc = " @param[in]  handle       The platform message response handle."] # [doc = " @param[in]  data         The data to associate with the platform message"] # [doc = "                          response."] # [doc = " @param[in]  data_length  The length of the platform message response data."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineSendPlatformMessageResponse (engine : FlutterEngine , handle : * const FlutterPlatformMessageResponseHandle , data : * const u8 , data_length : size_t) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      This API is only meant to be used by platforms that need to"] # [doc = "             flush tasks on a message loop not controlled by the Flutter"] # [doc = "             engine."] # [doc = ""] # [doc = " @deprecated This API will be deprecated and is not part of the stable API."] # [doc = "             Please use the custom task runners API by setting an"] # [doc = "             appropriate `FlutterProjectArgs::custom_task_runners`"] # [doc = "             interface. This will yield better performance and the"] # [doc = "             interface is stable."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn __FlutterEngineFlushPendingTasksNow () -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Register an external texture with a unique (per engine)"] # [doc = "             identifier. Only rendering backends that support external"] # [doc = "             textures accept external texture registrations. After the"] # [doc = "             external texture is registered, the application can mark that a"] # [doc = "             frame is available by calling"] # [doc = "             `FlutterEngineMarkExternalTextureFrameAvailable`."] # [doc = ""] # [doc = " @see        FlutterEngineUnregisterExternalTexture()"] # [doc = " @see        FlutterEngineMarkExternalTextureFrameAvailable()"] # [doc = ""] # [doc = " @param[in]  engine              A running engine instance."] # [doc = " @param[in]  texture_identifier  The identifier of the texture to register"] # [doc = "                                 with the engine. The embedder may supply new"] # [doc = "                                 frames to this texture using the same"] # [doc = "                                 identifier."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineRegisterExternalTexture (engine : FlutterEngine , texture_identifier : i64) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Unregister a previous texture registration."] # [doc = ""] # [doc = " @see        FlutterEngineRegisterExternalTexture()"] # [doc = " @see        FlutterEngineMarkExternalTextureFrameAvailable()"] # [doc = ""] # [doc = " @param[in]  engine              A running engine instance."] # [doc = " @param[in]  texture_identifier  The identifier of the texture for which new"] # [doc = "                                 frame will not be available."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineUnregisterExternalTexture (engine : FlutterEngine , texture_identifier : i64) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Mark that a new texture frame is available for a given texture"] # [doc = "             identifier."] # [doc = ""] # [doc = " @see        FlutterEngineRegisterExternalTexture()"] # [doc = " @see        FlutterEngineUnregisterExternalTexture()"] # [doc = ""] # [doc = " @param[in]  engine              A running engine instance."] # [doc = " @param[in]  texture_identifier  The identifier of the texture whose frame"] # [doc = "                                 has been updated."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineMarkExternalTextureFrameAvailable (engine : FlutterEngine , texture_identifier : i64) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Enable or disable accessibility semantics."] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance."] # [doc = " @param[in]  enabled    When enabled, changes to the semantic contents of the"] # [doc = "                        window are sent via the"] # [doc = "                        `FlutterUpdateSemanticsNodeCallback` registered to"] # [doc = "                        `update_semantics_node_callback` in"] # [doc = "                        `FlutterProjectArgs`."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineUpdateSemanticsEnabled (engine : FlutterEngine , enabled : bool) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Sets additional accessibility features."] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance"] # [doc = " @param[in]  features   The accessibility features to set."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineUpdateAccessibilityFeatures (engine : FlutterEngine , features : FlutterAccessibilityFeature) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Dispatch a semantics action to the specified semantics node."] # [doc = ""] # [doc = " @param[in]  engine       A running engine instance."] # [doc = " @param[in]  identifier   The semantics action identifier."] # [doc = " @param[in]  action       The semantics action."] # [doc = " @param[in]  data         Data associated with the action."] # [doc = " @param[in]  data_length  The data length."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineDispatchSemanticsAction (engine : FlutterEngine , id : u64 , action : FlutterSemanticsAction , data : * const u8 , data_length : size_t) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Notify the engine that a vsync event occurred. A baton passed to"] # [doc = "             the platform via the vsync callback must be returned. This call"] # [doc = "             must be made on the thread on which the call to"] # [doc = "             `FlutterEngineRun` was made."] # [doc = ""] # [doc = " @see        FlutterEngineGetCurrentTime()"] # [doc = ""] # [doc = " @attention  That frame timepoints are in nanoseconds."] # [doc = ""] # [doc = " @attention  The system monotonic clock is used as the timebase."] # [doc = ""] # [doc = " @param[in]  engine.                  A running engine instance."] # [doc = " @param[in]  baton                    The baton supplied by the engine."] # [doc = " @param[in]  frame_start_time_nanos   The point at which the vsync event"] # [doc = "                                      occurred or will occur. If the time"] # [doc = "                                      point is in the future, the engine will"] # [doc = "                                      wait till that point to begin its frame"] # [doc = "                                      workload."] # [doc = " @param[in]  frame_target_time_nanos  The point at which the embedder"] # [doc = "                                      anticipates the next vsync to occur."] # [doc = "                                      This is a hint the engine uses to"] # [doc = "                                      schedule Dart VM garbage collection in"] # [doc = "                                      periods in which the various threads"] # [doc = "                                      are most likely to be idle. For"] # [doc = "                                      example, for a 60Hz display, embedders"] # [doc = "                                      should add 16.6 * 1e6 to the frame time"] # [doc = "                                      field."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineOnVsync (engine : FlutterEngine , baton : isize , frame_start_time_nanos : u64 , frame_target_time_nanos : u64) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Reloads the system fonts in engine."] # [doc = ""] # [doc = " @param[in]  engine.                  A running engine instance."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineReloadSystemFonts (engine : FlutterEngine) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      A profiling utility. Logs a trace duration begin event to the"] # [doc = "             timeline. If the timeline is unavailable or disabled, this has"] # [doc = "             no effect. Must be balanced with an duration end event (via"] # [doc = "             `FlutterEngineTraceEventDurationEnd`) with the same name on the"] # [doc = "             same thread. Can be called on any thread. Strings passed into"] # [doc = "             the function will NOT be copied when added to the timeline. Only"] # [doc = "             string literals may be passed in."] # [doc = ""] # [doc = " @param[in]  name  The name of the trace event."] # [doc = ""] pub fn FlutterEngineTraceEventDurationBegin (name : * const :: std :: os :: raw :: c_char) ; } extern "C" { # [doc = " @brief      A profiling utility. Logs a trace duration end event to the"] # [doc = "             timeline. If the timeline is unavailable or disabled, this has"] # [doc = "             no effect. This call must be preceded by a trace duration begin"] # [doc = "             call (via `FlutterEngineTraceEventDurationBegin`) with the same"] # [doc = "             name on the same thread. Can be called on any thread. Strings"] # [doc = "             passed into the function will NOT be copied when added to the"] # [doc = "             timeline. Only string literals may be passed in."] # [doc = ""] # [doc = " @param[in]  name  The name of the trace event."] # [doc = ""] pub fn FlutterEngineTraceEventDurationEnd (name : * const :: std :: os :: raw :: c_char) ; } extern "C" { # [doc = " @brief      A profiling utility. Logs a trace duration instant event to the"] # [doc = "             timeline. If the timeline is unavailable or disabled, this has"] # [doc = "             no effect. Can be called on any thread. Strings passed into the"] # [doc = "             function will NOT be copied when added to the timeline. Only"] # [doc = "             string literals may be passed in."] # [doc = ""] # [doc = " @param[in]  name  The name of the trace event."] # [doc = ""] pub fn FlutterEngineTraceEventInstant (name : * const :: std :: os :: raw :: c_char) ; } extern "C" { # [doc = " @brief      Posts a task onto the Flutter render thread. Typically, this may"] # [doc = "             be called from any thread as long as a `FlutterEngineShutdown`"] # [doc = "             on the specific engine has not already been initiated."] # [doc = ""] # [doc = " @param[in]  engine         A running engine instance."] # [doc = " @param[in]  callback       The callback to execute on the render thread."] # [doc = " @param      callback_data  The callback context."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEnginePostRenderThreadTask (engine : FlutterEngine , callback : VoidCallback , callback_data : * mut :: std :: os :: raw :: c_void) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Get the current time in nanoseconds from the clock used by the"] # [doc = "             flutter engine. This is the system monotonic clock."] # [doc = ""] # [doc = " @return     The current time in nanoseconds."] # [doc = ""] pub fn FlutterEngineGetCurrentTime () -> u64 ; } extern "C" { # [doc = " @brief      Inform the engine to run the specified task. This task has been"] # [doc = "             given to the engine via the"] # [doc = "             `FlutterTaskRunnerDescription.post_task_callback`. This call"] # [doc = "             must only be made at the target time specified in that callback."] # [doc = "             Running the task before that time is undefined behavior."] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance."] # [doc = " @param[in]  task       the task handle."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineRunTask (engine : FlutterEngine , task : * const FlutterTask) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Notify a running engine instance that the locale has been"] # [doc = "             updated. The preferred locale must be the first item in the list"] # [doc = "             of locales supplied. The other entries will be used as a"] # [doc = "             fallback."] # [doc = ""] # [doc = " @param[in]  engine         A running engine instance."] # [doc = " @param[in]  locales        The updated locales in the order of preference."] # [doc = " @param[in]  locales_count  The count of locales supplied."] # [doc = ""] # [doc = " @return     Whether the locale updates were applied."] # [doc = ""] pub fn FlutterEngineUpdateLocales (engine : FlutterEngine , locales : * mut * const FlutterLocale , locales_count : size_t) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Returns if the Flutter engine instance will run AOT compiled"] # [doc = "             Dart code. This call has no threading restrictions."] # [doc = ""] # [doc = "             For embedder code that is configured for both AOT and JIT mode"] # [doc = "             Dart execution based on the Flutter engine being linked to, this"] # [doc = "             runtime check may be used to appropriately configure the"] # [doc = "             `FlutterProjectArgs`. In JIT mode execution, the kernel"] # [doc = "             snapshots must be present in the Flutter assets directory"] # [doc = "             specified in the `FlutterProjectArgs`. For AOT execution, the"] # [doc = "             fields `vm_snapshot_data`, `vm_snapshot_instructions`,"] # [doc = "             `isolate_snapshot_data` and `isolate_snapshot_instructions`"] # [doc = "             (along with their size fields) must be specified in"] # [doc = "             `FlutterProjectArgs`."] # [doc = ""] # [doc = " @return     True, if AOT Dart code is run. JIT otherwise."] # [doc = ""] pub fn FlutterEngineRunsAOTCompiledDartCode () -> bool ; } extern "C" { # [doc = " @brief      Posts a Dart object to specified send port. The corresponding"] # [doc = "             receive port for send port can be in any isolate running in the"] # [doc = "             VM. This isolate can also be the root isolate for an"] # [doc = "             unrelated engine. The engine parameter is necessary only to"] # [doc = "             ensure the call is not made when no engine (and hence no VM) is"] # [doc = "             running."] # [doc = ""] # [doc = "             Unlike the platform messages mechanism, there are no threading"] # [doc = "             restrictions when using this API. Message can be posted on any"] # [doc = "             thread and they will be made available to isolate on which the"] # [doc = "             corresponding send port is listening."] # [doc = ""] # [doc = "             However, it is the embedders responsibility to ensure that the"] # [doc = "             call is not made during an ongoing call the"] # [doc = "             `FlutterEngineDeinitialize` or `FlutterEngineShutdown` on"] # [doc = "             another thread."] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance."] # [doc = " @param[in]  port       The send port to send the object to."] # [doc = " @param[in]  object     The object to send to the isolate with the"] # [doc = "                        corresponding receive port."] # [doc = ""] # [doc = " @return     If the message was posted to the send port."] # [doc = ""] pub fn FlutterEnginePostDartObject (engine : FlutterEngine , port : FlutterEngineDartPort , object : * const FlutterEngineDartObject) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Posts a low memory notification to a running engine instance."] # [doc = "             The engine will do its best to release non-critical resources in"] # [doc = "             response. It is not guaranteed that the resource would have been"] # [doc = "             collected by the time this call returns however. The"] # [doc = "             notification is posted to engine subsystems that may be"] # [doc = "             operating on other threads."] # [doc = ""] # [doc = "             Flutter applications can respond to these notifications by"] # [doc = "             setting `WidgetsBindingObserver.didHaveMemoryPressure`"] # [doc = "             observers."] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance."] # [doc = ""] # [doc = " @return     If the low memory notification was sent to the running engine"] # [doc = "             instance."] # [doc = ""] pub fn FlutterEngineNotifyLowMemoryWarning (engine : FlutterEngine) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Schedule a callback to be run on all engine managed threads."] # [doc = "             The engine will attempt to service this callback the next time"] # [doc = "             the message loop for each managed thread is idle. Since the"] # [doc = "             engine manages the entire lifecycle of multiple threads, there"] # [doc = "             is no opportunity for the embedders to finely tune the"] # [doc = "             priorities of threads directly, or, perform other thread"] # [doc = "             specific configuration (for example, setting thread names for"] # [doc = "             tracing). This callback gives embedders a chance to affect such"] # [doc = "             tuning."] # [doc = ""] # [doc = " @attention  This call is expensive and must be made as few times as"] # [doc = "             possible. The callback must also return immediately as not doing"] # [doc = "             so may risk performance issues (especially for callbacks of type"] # [doc = "             kFlutterNativeThreadTypeUI and kFlutterNativeThreadTypeRender)."] # [doc = ""] # [doc = " @attention  Some callbacks (especially the ones of type"] # [doc = "             kFlutterNativeThreadTypeWorker) may be called after the"] # [doc = "             FlutterEngine instance has shut down. Embedders must be careful"] # [doc = "             in handling the lifecycle of objects associated with the user"] # [doc = "             data baton."] # [doc = ""] # [doc = " @attention  In case there are multiple running Flutter engine instances,"] # [doc = "             their workers are shared."] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance."] # [doc = " @param[in]  callback   The callback that will get called multiple times on"] # [doc = "                        each engine managed thread."] # [doc = " @param[in]  user_data  A baton passed by the engine to the callback. This"] # [doc = "                        baton is not interpreted by the engine in any way."] # [doc = ""] # [doc = " @return     Returns if the callback was successfully posted to all threads."] # [doc = ""] pub fn FlutterEnginePostCallbackOnAllNativeThreads (engine : FlutterEngine , callback : FlutterNativeThreadCallback , user_data : * mut :: std :: os :: raw :: c_void) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief    Posts updates corresponding to display changes to a running engine"] # [doc = "           instance."] # [doc = ""] # [doc = " @param[in] update_type      The type of update pushed to the engine."] # [doc = " @param[in] displays         The displays affected by this update."] # [doc = " @param[in] display_count    Size of the displays array, must be at least 1."] # [doc = ""] # [doc = " @return the result of the call made to the engine."] # [doc = ""] pub fn FlutterEngineNotifyDisplayUpdate (engine : FlutterEngine , update_type : FlutterEngineDisplaysUpdateType , displays : * const FlutterEngineDisplay , display_count : size_t) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Schedule a new frame to redraw the content."] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance."] # [doc = ""] # [doc = " @return the result of the call made to the engine."] # [doc = ""] pub fn FlutterEngineScheduleFrame (engine : FlutterEngine) -> FlutterEngineResult ; } pub type FlutterEngineCreateAOTDataFnPtr = :: std :: option :: Option < unsafe extern "C" fn (source : * const FlutterEngineAOTDataSource , data_out : * mut FlutterEngineAOTData) -> FlutterEngineResult > ; pub type FlutterEngineCollectAOTDataFnPtr = :: std :: option :: Option < unsafe extern "C" fn (data : FlutterEngineAOTData) -> FlutterEngineResult > ; pub type FlutterEngineRunFnPtr = :: std :: option :: Option < unsafe extern "C" fn (version : size_t , config : * const FlutterRendererConfig , args : * const FlutterProjectArgs , user_data : * mut :: std :: os :: raw :: c_void , engine_out : * mut FlutterEngine) -> FlutterEngineResult > ; pub type FlutterEngineShutdownFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine) -> FlutterEngineResult > ; pub type FlutterEngineInitializeFnPtr = :: std :: option :: Option < unsafe extern "C" fn (version : size_t , config : * const FlutterRendererConfig , args : * const FlutterProjectArgs , user_data : * mut :: std :: os :: raw :: c_void , engine_out : * mut FlutterEngine) -> FlutterEngineResult > ; pub type FlutterEngineDeinitializeFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine) -> FlutterEngineResult > ; pub type FlutterEngineRunInitializedFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine) -> FlutterEngineResult > ; pub type FlutterEngineSendWindowMetricsEventFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , event : * const FlutterWindowMetricsEvent) -> FlutterEngineResult > ; pub type FlutterEngineSendPointerEventFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , events : * const FlutterPointerEvent , events_count : size_t) -> FlutterEngineResult > ; pub type FlutterEngineSendKeyEventFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , event : * const FlutterKeyEvent , callback : FlutterKeyEventCallback , user_data : * mut :: std :: os :: raw :: c_void) -> FlutterEngineResult > ; pub type FlutterEngineSendPlatformMessageFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , message : * const FlutterPlatformMessage) -> FlutterEngineResult > ; pub type FlutterEnginePlatformMessageCreateResponseHandleFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , data_callback : FlutterDataCallback , user_data : * mut :: std :: os :: raw :: c_void , response_out : * mut * mut FlutterPlatformMessageResponseHandle) -> FlutterEngineResult > ; pub type FlutterEnginePlatformMessageReleaseResponseHandleFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , response : * mut FlutterPlatformMessageResponseHandle) -> FlutterEngineResult > ; pub type FlutterEngineSendPlatformMessageResponseFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , handle : * const FlutterPlatformMessageResponseHandle , data : * const u8 , data_length : size_t) -> FlutterEngineResult > ; pub type FlutterEngineRegisterExternalTextureFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , texture_identifier : i64) -> FlutterEngineResult > ; pub type FlutterEngineUnregisterExternalTextureFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , texture_identifier : i64) -> FlutterEngineResult > ; pub type FlutterEngineMarkExternalTextureFrameAvailableFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , texture_identifier : i64) -> FlutterEngineResult > ; pub type FlutterEngineUpdateSemanticsEnabledFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , enabled : bool) -> FlutterEngineResult > ; pub type FlutterEngineUpdateAccessibilityFeaturesFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , features : FlutterAccessibilityFeature) -> FlutterEngineResult > ; pub type FlutterEngineDispatchSemanticsActionFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , id : u64 , action : FlutterSemanticsAction , data : * const u8 , data_length : size_t) -> FlutterEngineResult > ; pub type FlutterEngineOnVsyncFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , baton : isize , frame_start_time_nanos : u64 , frame_target_time_nanos : u64) -> FlutterEngineResult > ; pub type FlutterEngineReloadSystemFontsFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine) -> FlutterEngineResult > ; pub type FlutterEngineTraceEventDurationBeginFnPtr = :: std :: option :: Option < unsafe extern "C" fn (name : * const :: std :: os :: raw :: c_char) > ; pub type FlutterEngineTraceEventDurationEndFnPtr = :: std :: option :: Option < unsafe extern "C" fn (name : * const :: std :: os :: raw :: c_char) > ; pub type FlutterEngineTraceEventInstantFnPtr = :: std :: option :: Option < unsafe extern "C" fn (name : * const :: std :: os :: raw :: c_char) > ; pub type FlutterEnginePostRenderThreadTaskFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , callback : VoidCallback , callback_data : * mut :: std :: os :: raw :: c_void) -> FlutterEngineResult > ; pub type FlutterEngineGetCurrentTimeFnPtr = :: std :: option :: Option < unsafe extern "C" fn () -> u64 > ; pub type FlutterEngineRunTaskFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , task : * const FlutterTask) -> FlutterEngineResult > ; pub type FlutterEngineUpdateLocalesFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , locales : * mut * const FlutterLocale , locales_count : size_t) -> FlutterEngineResult > ; pub type FlutterEngineRunsAOTCompiledDartCodeFnPtr = :: std :: option :: Option < unsafe extern "C" fn () -> bool > ; pub type FlutterEnginePostDartObjectFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , port : FlutterEngineDartPort , object : * const FlutterEngineDartObject) -> FlutterEngineResult > ; pub type FlutterEngineNotifyLowMemoryWarningFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine) -> FlutterEngineResult > ; pub type FlutterEnginePostCallbackOnAllNativeThreadsFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , callback : FlutterNativeThreadCallback , user_data : * mut :: std :: os :: raw :: c_void) -> FlutterEngineResult > ; pub type FlutterEngineNotifyDisplayUpdateFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , update_type : FlutterEngineDisplaysUpdateType , displays : * const FlutterEngineDisplay , display_count : size_t) -> FlutterEngineResult > ; pub type FlutterEngineScheduleFrameFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine) -> FlutterEngineResult > ; # [doc = " Function-pointer-based versions of the APIs above."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterEngineProcTable { # [doc = " The size of this struct. Must be sizeof(FlutterEngineProcs)."] pub struct_size : size_t , pub CreateAOTData : FlutterEngineCreateAOTDataFnPtr , pub CollectAOTData : FlutterEngineCollectAOTDataFnPtr , pub Run : FlutterEngineRunFnPtr , pub Shutdown : FlutterEngineShutdownFnPtr , pub Initialize : FlutterEngineInitializeFnPtr , pub Deinitialize : FlutterEngineDeinitializeFnPtr , pub RunInitialized : FlutterEngineRunInitializedFnPtr , pub SendWindowMetricsEvent : FlutterEngineSendWindowMetricsEventFnPtr , pub SendPointerEvent : FlutterEngineSendPointerEventFnPtr , pub SendKeyEvent : FlutterEngineSendKeyEventFnPtr , pub SendPlatformMessage : FlutterEngineSendPlatformMessageFnPtr , pub PlatformMessageCreateResponseHandle : FlutterEnginePlatformMessageCreateResponseHandleFnPtr , pub PlatformMessageReleaseResponseHandle : FlutterEnginePlatformMessageReleaseResponseHandleFnPtr , pub SendPlatformMessageResponse : FlutterEngineSendPlatformMessageResponseFnPtr , pub RegisterExternalTexture : FlutterEngineRegisterExternalTextureFnPtr , pub UnregisterExternalTexture : FlutterEngineUnregisterExternalTextureFnPtr , pub MarkExternalTextureFrameAvailable : FlutterEngineMarkExternalTextureFrameAvailableFnPtr , pub UpdateSemanticsEnabled : FlutterEngineUpdateSemanticsEnabledFnPtr , pub UpdateAccessibilityFeatures : FlutterEngineUpdateAccessibilityFeaturesFnPtr , pub DispatchSemanticsAction : FlutterEngineDispatchSemanticsActionFnPtr , pub OnVsync : FlutterEngineOnVsyncFnPtr , pub ReloadSystemFonts : FlutterEngineReloadSystemFontsFnPtr , pub TraceEventDurationBegin : FlutterEngineTraceEventDurationBeginFnPtr , pub TraceEventDurationEnd : FlutterEngineTraceEventDurationEndFnPtr , pub TraceEventInstant : FlutterEngineTraceEventInstantFnPtr , pub PostRenderThreadTask : FlutterEnginePostRenderThreadTaskFnPtr , pub GetCurrentTime : FlutterEngineGetCurrentTimeFnPtr , pub RunTask : FlutterEngineRunTaskFnPtr , pub UpdateLocales : FlutterEngineUpdateLocalesFnPtr , pub RunsAOTCompiledDartCode : FlutterEngineRunsAOTCompiledDartCodeFnPtr , pub PostDartObject : FlutterEnginePostDartObjectFnPtr , pub NotifyLowMemoryWarning : FlutterEngineNotifyLowMemoryWarningFnPtr , pub PostCallbackOnAllNativeThreads : FlutterEnginePostCallbackOnAllNativeThreadsFnPtr , pub NotifyDisplayUpdate : FlutterEngineNotifyDisplayUpdateFnPtr , pub ScheduleFrame : FlutterEngineScheduleFrameFnPtr , } # [test] fn bindgen_test_layout_FlutterEngineProcTable () { assert_eq ! (:: std :: mem :: size_of :: < FlutterEngineProcTable > () , 288usize , concat ! ("Size of: " , stringify ! (FlutterEngineProcTable))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterEngineProcTable > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterEngineProcTable))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_CreateAOTData () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . CreateAOTData) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (CreateAOTData))) ; } test_field_CreateAOTData () ; fn test_field_CollectAOTData () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . CollectAOTData) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (CollectAOTData))) ; } test_field_CollectAOTData () ; fn test_field_Run () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . Run) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (Run))) ; } test_field_Run () ; fn test_field_Shutdown () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . Shutdown) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (Shutdown))) ; } test_field_Shutdown () ; fn test_field_Initialize () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . Initialize) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (Initialize))) ; } test_field_Initialize () ; fn test_field_Deinitialize () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . Deinitialize) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (Deinitialize))) ; } test_field_Deinitialize () ; fn test_field_RunInitialized () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . RunInitialized) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (RunInitialized))) ; } test_field_RunInitialized () ; fn test_field_SendWindowMetricsEvent () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . SendWindowMetricsEvent) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (SendWindowMetricsEvent))) ; } test_field_SendWindowMetricsEvent () ; fn test_field_SendPointerEvent () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . SendPointerEvent) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (SendPointerEvent))) ; } test_field_SendPointerEvent () ; fn test_field_SendKeyEvent () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . SendKeyEvent) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (SendKeyEvent))) ; } test_field_SendKeyEvent () ; fn test_field_SendPlatformMessage () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . SendPlatformMessage) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (SendPlatformMessage))) ; } test_field_SendPlatformMessage () ; fn test_field_PlatformMessageCreateResponseHandle () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . PlatformMessageCreateResponseHandle) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (PlatformMessageCreateResponseHandle))) ; } test_field_PlatformMessageCreateResponseHandle () ; fn test_field_PlatformMessageReleaseResponseHandle () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . PlatformMessageReleaseResponseHandle) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (PlatformMessageReleaseResponseHandle))) ; } test_field_PlatformMessageReleaseResponseHandle () ; fn test_field_SendPlatformMessageResponse () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . SendPlatformMessageResponse) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (SendPlatformMessageResponse))) ; } test_field_SendPlatformMessageResponse () ; fn test_field_RegisterExternalTexture () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . RegisterExternalTexture) as usize - ptr as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (RegisterExternalTexture))) ; } test_field_RegisterExternalTexture () ; fn test_field_UnregisterExternalTexture () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . UnregisterExternalTexture) as usize - ptr as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (UnregisterExternalTexture))) ; } test_field_UnregisterExternalTexture () ; fn test_field_MarkExternalTextureFrameAvailable () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . MarkExternalTextureFrameAvailable) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (MarkExternalTextureFrameAvailable))) ; } test_field_MarkExternalTextureFrameAvailable () ; fn test_field_UpdateSemanticsEnabled () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . UpdateSemanticsEnabled) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (UpdateSemanticsEnabled))) ; } test_field_UpdateSemanticsEnabled () ; fn test_field_UpdateAccessibilityFeatures () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . UpdateAccessibilityFeatures) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (UpdateAccessibilityFeatures))) ; } test_field_UpdateAccessibilityFeatures () ; fn test_field_DispatchSemanticsAction () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . DispatchSemanticsAction) as usize - ptr as usize } , 160usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (DispatchSemanticsAction))) ; } test_field_DispatchSemanticsAction () ; fn test_field_OnVsync () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . OnVsync) as usize - ptr as usize } , 168usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (OnVsync))) ; } test_field_OnVsync () ; fn test_field_ReloadSystemFonts () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . ReloadSystemFonts) as usize - ptr as usize } , 176usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (ReloadSystemFonts))) ; } test_field_ReloadSystemFonts () ; fn test_field_TraceEventDurationBegin () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . TraceEventDurationBegin) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (TraceEventDurationBegin))) ; } test_field_TraceEventDurationBegin () ; fn test_field_TraceEventDurationEnd () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . TraceEventDurationEnd) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (TraceEventDurationEnd))) ; } test_field_TraceEventDurationEnd () ; fn test_field_TraceEventInstant () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . TraceEventInstant) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (TraceEventInstant))) ; } test_field_TraceEventInstant () ; fn test_field_PostRenderThreadTask () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . PostRenderThreadTask) as usize - ptr as usize } , 208usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (PostRenderThreadTask))) ; } test_field_PostRenderThreadTask () ; fn test_field_GetCurrentTime () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . GetCurrentTime) as usize - ptr as usize } , 216usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (GetCurrentTime))) ; } test_field_GetCurrentTime () ; fn test_field_RunTask () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . RunTask) as usize - ptr as usize } , 224usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (RunTask))) ; } test_field_RunTask () ; fn test_field_UpdateLocales () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . UpdateLocales) as usize - ptr as usize } , 232usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (UpdateLocales))) ; } test_field_UpdateLocales () ; fn test_field_RunsAOTCompiledDartCode () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . RunsAOTCompiledDartCode) as usize - ptr as usize } , 240usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (RunsAOTCompiledDartCode))) ; } test_field_RunsAOTCompiledDartCode () ; fn test_field_PostDartObject () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . PostDartObject) as usize - ptr as usize } , 248usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (PostDartObject))) ; } test_field_PostDartObject () ; fn test_field_NotifyLowMemoryWarning () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . NotifyLowMemoryWarning) as usize - ptr as usize } , 256usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (NotifyLowMemoryWarning))) ; } test_field_NotifyLowMemoryWarning () ; fn test_field_PostCallbackOnAllNativeThreads () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . PostCallbackOnAllNativeThreads) as usize - ptr as usize } , 264usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (PostCallbackOnAllNativeThreads))) ; } test_field_PostCallbackOnAllNativeThreads () ; fn test_field_NotifyDisplayUpdate () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . NotifyDisplayUpdate) as usize - ptr as usize } , 272usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (NotifyDisplayUpdate))) ; } test_field_NotifyDisplayUpdate () ; fn test_field_ScheduleFrame () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . ScheduleFrame) as usize - ptr as usize } , 280usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (ScheduleFrame))) ; } test_field_ScheduleFrame () ; } extern "C" { # [doc = " @brief      Gets the table of engine function pointers."] # [doc = ""] # [doc = " @param[out] table   The table to fill with pointers. This should be"] # [doc = "                     zero-initialized, except for struct_size."] # [doc = ""] # [doc = " @return     Returns whether the table was successfully populated."] # [doc = ""] pub fn FlutterEngineGetProcAddresses (table : * mut FlutterEngineProcTable) -> FlutterEngineResult ; }
[INFO] [stdout]   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 +                                     +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unclosed HTML tag `MTLCommandQueue`
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/flutter_embedder-b39e10e859f308b8/out/embedder.rs:3:67823
[INFO] [stdout]   |
[INFO] [stdout] 3 | ...>."] pub device : FlutterMetalDeviceHandle , # [doc = " Alias for id<MTLCommandQueue>."] pub present_command_queue : FlutterMetalComma...
[INFO] [stdout]   |                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout] help: try marking as source code
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub const true_ : u32 = 1 ; pub const false_ : u32 = 0 ; pub const __bool_true_false_are_defined : u32 = 1 ; pub const _STDINT_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2X : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 200809 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __WORDSIZE : u32 = 64 ; pub const __WORDSIZE_TIME64_COMPAT32 : u32 = 1 ; pub const __SYSCALL_WORDSIZE : u32 = 64 ; pub const __TIMESIZE : u32 = 64 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 35 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C2X : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const FLUTTER_ENGINE_VERSION : u32 = 1 ; pub type size_t = :: std :: os :: raw :: c_ulong ; pub type wchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [repr (align (16))] # [derive (Debug , Copy , Clone)] pub struct max_align_t { pub __clang_max_align_nonce1 : :: std :: os :: raw :: c_longlong , pub __bindgen_padding_0 : u64 , pub __clang_max_align_nonce2 : u128 , } # [test] fn bindgen_test_layout_max_align_t () { assert_eq ! (:: std :: mem :: size_of :: < max_align_t > () , 32usize , concat ! ("Size of: " , stringify ! (max_align_t))) ; assert_eq ! (:: std :: mem :: align_of :: < max_align_t > () , 16usize , concat ! ("Alignment of " , stringify ! (max_align_t))) ; fn test_field___clang_max_align_nonce1 () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < max_align_t > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . __clang_max_align_nonce1) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (max_align_t) , "::" , stringify ! (__clang_max_align_nonce1))) ; } test_field___clang_max_align_nonce1 () ; fn test_field___clang_max_align_nonce2 () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < max_align_t > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . __clang_max_align_nonce2) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (max_align_t) , "::" , stringify ! (__clang_max_align_nonce2))) ; } test_field___clang_max_align_nonce2 () ; } pub type __u_char = :: std :: os :: raw :: c_uchar ; pub type __u_short = :: std :: os :: raw :: c_ushort ; pub type __u_int = :: std :: os :: raw :: c_uint ; pub type __u_long = :: std :: os :: raw :: c_ulong ; pub type __int8_t = :: std :: os :: raw :: c_schar ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __int16_t = :: std :: os :: raw :: c_short ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; pub type __int32_t = :: std :: os :: raw :: c_int ; pub type __uint32_t = :: std :: os :: raw :: c_uint ; pub type __int64_t = :: std :: os :: raw :: c_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: std :: os :: raw :: c_long ; pub type __u_quad_t = :: std :: os :: raw :: c_ulong ; pub type __intmax_t = :: std :: os :: raw :: c_long ; pub type __uintmax_t = :: std :: os :: raw :: c_ulong ; pub type __dev_t = :: std :: os :: raw :: c_ulong ; pub type __uid_t = :: std :: os :: raw :: c_uint ; pub type __gid_t = :: std :: os :: raw :: c_uint ; pub type __ino_t = :: std :: os :: raw :: c_ulong ; pub type __ino64_t = :: std :: os :: raw :: c_ulong ; pub type __mode_t = :: std :: os :: raw :: c_uint ; pub type __nlink_t = :: std :: os :: raw :: c_ulong ; pub type __off_t = :: std :: os :: raw :: c_long ; pub type __off64_t = :: std :: os :: raw :: c_long ; pub type __pid_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: std :: os :: raw :: c_int ; 2usize] , } # [test] fn bindgen_test_layout___fsid_t () { assert_eq ! (:: std :: mem :: size_of :: < __fsid_t > () , 8usize , concat ! ("Size of: " , stringify ! (__fsid_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __fsid_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__fsid_t))) ; fn test_field___val () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < __fsid_t > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . __val) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__fsid_t) , "::" , stringify ! (__val))) ; } test_field___val () ; } pub type __clock_t = :: std :: os :: raw :: c_long ; pub type __rlim_t = :: std :: os :: raw :: c_ulong ; pub type __rlim64_t = :: std :: os :: raw :: c_ulong ; pub type __id_t = :: std :: os :: raw :: c_uint ; pub type __time_t = :: std :: os :: raw :: c_long ; pub type __useconds_t = :: std :: os :: raw :: c_uint ; pub type __suseconds_t = :: std :: os :: raw :: c_long ; pub type __suseconds64_t = :: std :: os :: raw :: c_long ; pub type __daddr_t = :: std :: os :: raw :: c_int ; pub type __key_t = :: std :: os :: raw :: c_int ; pub type __clockid_t = :: std :: os :: raw :: c_int ; pub type __timer_t = * mut :: std :: os :: raw :: c_void ; pub type __blksize_t = :: std :: os :: raw :: c_long ; pub type __blkcnt_t = :: std :: os :: raw :: c_long ; pub type __blkcnt64_t = :: std :: os :: raw :: c_long ; pub type __fsblkcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsblkcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsword_t = :: std :: os :: raw :: c_long ; pub type __ssize_t = :: std :: os :: raw :: c_long ; pub type __syscall_slong_t = :: std :: os :: raw :: c_long ; pub type __syscall_ulong_t = :: std :: os :: raw :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: std :: os :: raw :: c_char ; pub type __intptr_t = :: std :: os :: raw :: c_long ; pub type __socklen_t = :: std :: os :: raw :: c_uint ; pub type __sig_atomic_t = :: std :: os :: raw :: c_int ; pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = :: std :: os :: raw :: c_schar ; pub type int_fast16_t = :: std :: os :: raw :: c_long ; pub type int_fast32_t = :: std :: os :: raw :: c_long ; pub type int_fast64_t = :: std :: os :: raw :: c_long ; pub type uint_fast8_t = :: std :: os :: raw :: c_uchar ; pub type uint_fast16_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast32_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast64_t = :: std :: os :: raw :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const FlutterEngineResult_kSuccess : FlutterEngineResult = 0 ; pub const FlutterEngineResult_kInvalidLibraryVersion : FlutterEngineResult = 1 ; pub const FlutterEngineResult_kInvalidArguments : FlutterEngineResult = 2 ; pub const FlutterEngineResult_kInternalInconsistency : FlutterEngineResult = 3 ; pub type FlutterEngineResult = :: std :: os :: raw :: c_uint ; pub const FlutterRendererType_kOpenGL : FlutterRendererType = 0 ; pub const FlutterRendererType_kSoftware : FlutterRendererType = 1 ; # [doc = " Metal is only supported on Darwin platforms (macOS / iOS)."] # [doc = " iOS version >= 10.0 (device), 13.0 (simulator)"] # [doc = " macOS version >= 10.14"] pub const FlutterRendererType_kMetal : FlutterRendererType = 2 ; # [doc = " Metal is only supported on Darwin platforms (macOS / iOS)."] # [doc = " iOS version >= 10.0 (device), 13.0 (simulator)"] # [doc = " macOS version >= 10.14"] pub const FlutterRendererType_kVulkan : FlutterRendererType = 3 ; pub type FlutterRendererType = :: std :: os :: raw :: c_uint ; # [doc = " Indicate there is a running accessibility service which is changing the"] # [doc = " interaction model of the device."] pub const FlutterAccessibilityFeature_kFlutterAccessibilityFeatureAccessibleNavigation : FlutterAccessibilityFeature = 1 ; # [doc = " Indicate the platform is inverting the colors of the application."] pub const FlutterAccessibilityFeature_kFlutterAccessibilityFeatureInvertColors : FlutterAccessibilityFeature = 2 ; # [doc = " Request that animations be disabled or simplified."] pub const FlutterAccessibilityFeature_kFlutterAccessibilityFeatureDisableAnimations : FlutterAccessibilityFeature = 4 ; # [doc = " Request that text be rendered at a bold font weight."] pub const FlutterAccessibilityFeature_kFlutterAccessibilityFeatureBoldText : FlutterAccessibilityFeature = 8 ; # [doc = " Request that certain animations be simplified and parallax effects"] # [doc = " removed."] pub const FlutterAccessibilityFeature_kFlutterAccessibilityFeatureReduceMotion : FlutterAccessibilityFeature = 16 ; # [doc = " Request that UI be rendered with darker colors."] pub const FlutterAccessibilityFeature_kFlutterAccessibilityFeatureHighContrast : FlutterAccessibilityFeature = 32 ; # [doc = " Request to show on/off labels inside switches."] pub const FlutterAccessibilityFeature_kFlutterAccessibilityFeatureOnOffSwitchLabels : FlutterAccessibilityFeature = 64 ; # [doc = " Additional accessibility features that may be enabled by the platform."] # [doc = " Must match the `AccessibilityFeatures` enum in window.dart."] pub type FlutterAccessibilityFeature = :: std :: os :: raw :: c_uint ; # [doc = " The equivalent of a user briefly tapping the screen with the finger"] # [doc = " without moving it."] pub const FlutterSemanticsAction_kFlutterSemanticsActionTap : FlutterSemanticsAction = 1 ; # [doc = " The equivalent of a user pressing and holding the screen with the finger"] # [doc = " for a few seconds without moving it."] pub const FlutterSemanticsAction_kFlutterSemanticsActionLongPress : FlutterSemanticsAction = 2 ; # [doc = " The equivalent of a user moving their finger across the screen from right"] # [doc = " to left."] pub const FlutterSemanticsAction_kFlutterSemanticsActionScrollLeft : FlutterSemanticsAction = 4 ; # [doc = " The equivalent of a user moving their finger across the screen from left"] # [doc = " to"] # [doc = " right."] pub const FlutterSemanticsAction_kFlutterSemanticsActionScrollRight : FlutterSemanticsAction = 8 ; # [doc = " The equivalent of a user moving their finger across the screen from bottom"] # [doc = " to top."] pub const FlutterSemanticsAction_kFlutterSemanticsActionScrollUp : FlutterSemanticsAction = 16 ; # [doc = " The equivalent of a user moving their finger across the screen from top to"] # [doc = " bottom."] pub const FlutterSemanticsAction_kFlutterSemanticsActionScrollDown : FlutterSemanticsAction = 32 ; # [doc = " Increase the value represented by the semantics node."] pub const FlutterSemanticsAction_kFlutterSemanticsActionIncrease : FlutterSemanticsAction = 64 ; # [doc = " Decrease the value represented by the semantics node."] pub const FlutterSemanticsAction_kFlutterSemanticsActionDecrease : FlutterSemanticsAction = 128 ; # [doc = " A request to fully show the semantics node on screen."] pub const FlutterSemanticsAction_kFlutterSemanticsActionShowOnScreen : FlutterSemanticsAction = 256 ; # [doc = " Move the cursor forward by one character."] pub const FlutterSemanticsAction_kFlutterSemanticsActionMoveCursorForwardByCharacter : FlutterSemanticsAction = 512 ; # [doc = " Move the cursor backward by one character."] pub const FlutterSemanticsAction_kFlutterSemanticsActionMoveCursorBackwardByCharacter : FlutterSemanticsAction = 1024 ; # [doc = " Set the text selection to the given range."] pub const FlutterSemanticsAction_kFlutterSemanticsActionSetSelection : FlutterSemanticsAction = 2048 ; # [doc = " Copy the current selection to the clipboard."] pub const FlutterSemanticsAction_kFlutterSemanticsActionCopy : FlutterSemanticsAction = 4096 ; # [doc = " Cut the current selection and place it in the clipboard."] pub const FlutterSemanticsAction_kFlutterSemanticsActionCut : FlutterSemanticsAction = 8192 ; # [doc = " Paste the current content of the clipboard."] pub const FlutterSemanticsAction_kFlutterSemanticsActionPaste : FlutterSemanticsAction = 16384 ; # [doc = " Indicate that the node has gained accessibility focus."] pub const FlutterSemanticsAction_kFlutterSemanticsActionDidGainAccessibilityFocus : FlutterSemanticsAction = 32768 ; # [doc = " Indicate that the node has lost accessibility focus."] pub const FlutterSemanticsAction_kFlutterSemanticsActionDidLoseAccessibilityFocus : FlutterSemanticsAction = 65536 ; # [doc = " Indicate that the user has invoked a custom accessibility action."] pub const FlutterSemanticsAction_kFlutterSemanticsActionCustomAction : FlutterSemanticsAction = 131072 ; # [doc = " A request that the node should be dismissed."] pub const FlutterSemanticsAction_kFlutterSemanticsActionDismiss : FlutterSemanticsAction = 262144 ; # [doc = " Move the cursor forward by one word."] pub const FlutterSemanticsAction_kFlutterSemanticsActionMoveCursorForwardByWord : FlutterSemanticsAction = 524288 ; # [doc = " Move the cursor backward by one word."] pub const FlutterSemanticsAction_kFlutterSemanticsActionMoveCursorBackwardByWord : FlutterSemanticsAction = 1048576 ; # [doc = " Replace the current text in the text field."] pub const FlutterSemanticsAction_kFlutterSemanticsActionSetText : FlutterSemanticsAction = 2097152 ; # [doc = " The set of possible actions that can be conveyed to a semantics node."] # [doc = ""] # [doc = " Must match the `SemanticsAction` enum in semantics.dart."] pub type FlutterSemanticsAction = :: std :: os :: raw :: c_uint ; # [doc = " The semantics node has the quality of either being \"checked\" or"] # [doc = " \"unchecked\"."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagHasCheckedState : FlutterSemanticsFlag = 1 ; # [doc = " Whether a semantics node is checked."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsChecked : FlutterSemanticsFlag = 2 ; # [doc = " Whether a semantics node is selected."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsSelected : FlutterSemanticsFlag = 4 ; # [doc = " Whether the semantic node represents a button."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsButton : FlutterSemanticsFlag = 8 ; # [doc = " Whether the semantic node represents a text field."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsTextField : FlutterSemanticsFlag = 16 ; # [doc = " Whether the semantic node currently holds the user's focus."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsFocused : FlutterSemanticsFlag = 32 ; # [doc = " The semantics node has the quality of either being \"enabled\" or"] # [doc = " \"disabled\"."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagHasEnabledState : FlutterSemanticsFlag = 64 ; # [doc = " Whether a semantic node that hasEnabledState is currently enabled."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsEnabled : FlutterSemanticsFlag = 128 ; # [doc = " Whether a semantic node is in a mutually exclusive group."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsInMutuallyExclusiveGroup : FlutterSemanticsFlag = 256 ; # [doc = " Whether a semantic node is a header that divides content into sections."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsHeader : FlutterSemanticsFlag = 512 ; # [doc = " Whether the value of the semantics node is obscured."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsObscured : FlutterSemanticsFlag = 1024 ; # [doc = " Whether the semantics node is the root of a subtree for which a route name"] # [doc = " should be announced."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagScopesRoute : FlutterSemanticsFlag = 2048 ; # [doc = " Whether the semantics node label is the name of a visually distinct route."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagNamesRoute : FlutterSemanticsFlag = 4096 ; # [doc = " Whether the semantics node is considered hidden."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsHidden : FlutterSemanticsFlag = 8192 ; # [doc = " Whether the semantics node represents an image."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsImage : FlutterSemanticsFlag = 16384 ; # [doc = " Whether the semantics node is a live region."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsLiveRegion : FlutterSemanticsFlag = 32768 ; # [doc = " The semantics node has the quality of either being \"on\" or \"off\"."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagHasToggledState : FlutterSemanticsFlag = 65536 ; # [doc = " If true, the semantics node is \"on\". If false, the semantics node is"] # [doc = " \"off\"."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsToggled : FlutterSemanticsFlag = 131072 ; # [doc = " Whether the platform can scroll the semantics node when the user attempts"] # [doc = " to move the accessibility focus to an offscreen child."] # [doc = ""] # [doc = " For example, a `ListView` widget has implicit scrolling so that users can"] # [doc = " easily move the accessibility focus to the next set of children. A"] # [doc = " `PageView` widget does not have implicit scrolling, so that users don't"] # [doc = " navigate to the next page when reaching the end of the current one."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagHasImplicitScrolling : FlutterSemanticsFlag = 262144 ; # [doc = " Whether the value of the semantics node is coming from a multi-line text"] # [doc = " field."] # [doc = ""] # [doc = " This is used for text fields to distinguish single-line text fields from"] # [doc = " multi-line ones."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsMultiline : FlutterSemanticsFlag = 524288 ; # [doc = " Whether the semantic node is read only."] # [doc = ""] # [doc = " Only applicable when kFlutterSemanticsFlagIsTextField flag is on."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsReadOnly : FlutterSemanticsFlag = 1048576 ; # [doc = " Whether the semantic node can hold the user's focus."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsFocusable : FlutterSemanticsFlag = 2097152 ; # [doc = " Whether the semantics node represents a link."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsLink : FlutterSemanticsFlag = 4194304 ; # [doc = " Whether the semantics node represents a slider."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsSlider : FlutterSemanticsFlag = 8388608 ; # [doc = " Whether the semantics node represents a keyboard key."] pub const FlutterSemanticsFlag_kFlutterSemanticsFlagIsKeyboardKey : FlutterSemanticsFlag = 16777216 ; # [doc = " The set of properties that may be associated with a semantics node."] # [doc = ""] # [doc = " Must match the `SemanticsFlag` enum in semantics.dart."] pub type FlutterSemanticsFlag = :: std :: os :: raw :: c_uint ; # [doc = " Text has unknown text direction."] pub const FlutterTextDirection_kFlutterTextDirectionUnknown : FlutterTextDirection = 0 ; # [doc = " Text is read from right to left."] pub const FlutterTextDirection_kFlutterTextDirectionRTL : FlutterTextDirection = 1 ; # [doc = " Text is read from left to right."] pub const FlutterTextDirection_kFlutterTextDirectionLTR : FlutterTextDirection = 2 ; pub type FlutterTextDirection = :: std :: os :: raw :: c_uint ; # [doc = " Suitable for threads that shouldn't disrupt high priority work."] pub const FlutterThreadPriority_kBackground : FlutterThreadPriority = 0 ; # [doc = " Default priority level."] pub const FlutterThreadPriority_kNormal : FlutterThreadPriority = 1 ; # [doc = " Suitable for threads which generate data for the display."] pub const FlutterThreadPriority_kDisplay : FlutterThreadPriority = 2 ; # [doc = " Suitable for thread which raster data."] pub const FlutterThreadPriority_kRaster : FlutterThreadPriority = 3 ; # [doc = " Valid values for priority of Thread."] pub type FlutterThreadPriority = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _FlutterEngine { _unused : [u8 ; 0] , } pub type FlutterEngine = * mut _FlutterEngine ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterTransformation { # [doc = " horizontal scale factor"] pub scaleX : f64 , # [doc = " horizontal skew factor"] pub skewX : f64 , # [doc = " horizontal translation"] pub transX : f64 , # [doc = " vertical skew factor"] pub skewY : f64 , # [doc = " vertical scale factor"] pub scaleY : f64 , # [doc = " vertical translation"] pub transY : f64 , # [doc = " input x-axis perspective factor"] pub pers0 : f64 , # [doc = " input y-axis perspective factor"] pub pers1 : f64 , # [doc = " perspective scale factor"] pub pers2 : f64 , } # [test] fn bindgen_test_layout_FlutterTransformation () { assert_eq ! (:: std :: mem :: size_of :: < FlutterTransformation > () , 72usize , concat ! ("Size of: " , stringify ! (FlutterTransformation))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterTransformation > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterTransformation))) ; fn test_field_scaleX () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scaleX) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (scaleX))) ; } test_field_scaleX () ; fn test_field_skewX () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . skewX) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (skewX))) ; } test_field_skewX () ; fn test_field_transX () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . transX) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (transX))) ; } test_field_transX () ; fn test_field_skewY () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . skewY) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (skewY))) ; } test_field_skewY () ; fn test_field_scaleY () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scaleY) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (scaleY))) ; } test_field_scaleY () ; fn test_field_transY () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . transY) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (transY))) ; } test_field_transY () ; fn test_field_pers0 () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . pers0) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (pers0))) ; } test_field_pers0 () ; fn test_field_pers1 () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . pers1) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (pers1))) ; } test_field_pers1 () ; fn test_field_pers2 () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTransformation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . pers2) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterTransformation) , "::" , stringify ! (pers2))) ; } test_field_pers2 () ; } pub type VoidCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void) > ; # [doc = " Specifies an OpenGL texture target type. Textures are specified using"] # [doc = " the FlutterOpenGLTexture struct."] pub const FlutterOpenGLTargetType_kFlutterOpenGLTargetTypeTexture : FlutterOpenGLTargetType = 0 ; # [doc = " Specifies an OpenGL frame-buffer target type. Framebuffers are specified"] # [doc = " using the FlutterOpenGLFramebuffer struct."] pub const FlutterOpenGLTargetType_kFlutterOpenGLTargetTypeFramebuffer : FlutterOpenGLTargetType = 1 ; pub type FlutterOpenGLTargetType = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterOpenGLTexture { # [doc = " Target texture of the active texture unit (example GL_TEXTURE_2D or"] # [doc = " GL_TEXTURE_RECTANGLE)."] pub target : u32 , # [doc = " The name of the texture."] pub name : u32 , # [doc = " The texture format (example GL_RGBA8)."] pub format : u32 , # [doc = " User data to be returned on the invocation of the destruction callback."] pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " Callback invoked (on an engine managed thread) that asks the embedder to"] # [doc = " collect the texture."] pub destruction_callback : VoidCallback , # [doc = " Optional parameters for texture height/width, default is 0, non-zero means"] # [doc = " the texture has the specified width/height. Usually, when the texture type"] # [doc = " is GL_TEXTURE_RECTANGLE, we need to specify the texture width/height to"] # [doc = " tell the embedder to scale when rendering."] # [doc = " Width of the texture."] pub width : size_t , # [doc = " Height of the texture."] pub height : size_t , } # [test] fn bindgen_test_layout_FlutterOpenGLTexture () { assert_eq ! (:: std :: mem :: size_of :: < FlutterOpenGLTexture > () , 48usize , concat ! ("Size of: " , stringify ! (FlutterOpenGLTexture))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterOpenGLTexture > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterOpenGLTexture))) ; fn test_field_target () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . target) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLTexture) , "::" , stringify ! (target))) ; } test_field_target () ; fn test_field_name () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLTexture) , "::" , stringify ! (name))) ; } test_field_name () ; fn test_field_format () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . format) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLTexture) , "::" , stringify ! (format))) ; } test_field_format () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLTexture) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_destruction_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . destruction_callback) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLTexture) , "::" , stringify ! (destruction_callback))) ; } test_field_destruction_callback () ; fn test_field_width () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . width) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLTexture) , "::" , stringify ! (width))) ; } test_field_width () ; fn test_field_height () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . height) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLTexture) , "::" , stringify ! (height))) ; } test_field_height () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterOpenGLFramebuffer { # [doc = " The target of the color attachment of the frame-buffer. For example,"] # [doc = " GL_TEXTURE_2D or GL_RENDERBUFFER. In case of ambiguity when dealing with"] # [doc = " Window bound frame-buffers, 0 may be used."] pub target : u32 , # [doc = " The name of the framebuffer."] pub name : u32 , # [doc = " User data to be returned on the invocation of the destruction callback."] pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " Callback invoked (on an engine managed thread) that asks the embedder to"] # [doc = " collect the framebuffer."] pub destruction_callback : VoidCallback , } # [test] fn bindgen_test_layout_FlutterOpenGLFramebuffer () { assert_eq ! (:: std :: mem :: size_of :: < FlutterOpenGLFramebuffer > () , 24usize , concat ! ("Size of: " , stringify ! (FlutterOpenGLFramebuffer))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterOpenGLFramebuffer > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterOpenGLFramebuffer))) ; fn test_field_target () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLFramebuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . target) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLFramebuffer) , "::" , stringify ! (target))) ; } test_field_target () ; fn test_field_name () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLFramebuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLFramebuffer) , "::" , stringify ! (name))) ; } test_field_name () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLFramebuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLFramebuffer) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_destruction_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLFramebuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . destruction_callback) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLFramebuffer) , "::" , stringify ! (destruction_callback))) ; } test_field_destruction_callback () ; } pub type BoolCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void) -> bool > ; pub type TransformationCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void) -> FlutterTransformation > ; pub type UIntCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void) -> u32 > ; pub type SoftwareSurfacePresentCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void , arg3 : size_t , arg4 : size_t) -> bool > ; pub type ProcResolver = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_void > ; pub type TextureFrameCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : i64 , arg3 : size_t , arg4 : size_t , arg5 : * mut FlutterOpenGLTexture) -> bool > ; pub type VsyncCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : isize) > ; pub type OnPreEngineRestartCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void) > ; # [doc = " A structure to represent the width and height."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterSize { pub width : f64 , pub height : f64 , } # [test] fn bindgen_test_layout_FlutterSize () { assert_eq ! (:: std :: mem :: size_of :: < FlutterSize > () , 16usize , concat ! ("Size of: " , stringify ! (FlutterSize))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterSize > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterSize))) ; fn test_field_width () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSize > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . width) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterSize) , "::" , stringify ! (width))) ; } test_field_width () ; fn test_field_height () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSize > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . height) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterSize) , "::" , stringify ! (height))) ; } test_field_height () ; } # [doc = " A structure to represent the width and height."] # [doc = ""] # [doc = " See: \\ref FlutterSize when the value are not integers."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterUIntSize { pub width : u32 , pub height : u32 , } # [test] fn bindgen_test_layout_FlutterUIntSize () { assert_eq ! (:: std :: mem :: size_of :: < FlutterUIntSize > () , 8usize , concat ! ("Size of: " , stringify ! (FlutterUIntSize))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterUIntSize > () , 4usize , concat ! ("Alignment of " , stringify ! (FlutterUIntSize))) ; fn test_field_width () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterUIntSize > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . width) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterUIntSize) , "::" , stringify ! (width))) ; } test_field_width () ; fn test_field_height () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterUIntSize > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . height) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (FlutterUIntSize) , "::" , stringify ! (height))) ; } test_field_height () ; } # [doc = " A structure to represent a rectangle."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterRect { pub left : f64 , pub top : f64 , pub right : f64 , pub bottom : f64 , } # [test] fn bindgen_test_layout_FlutterRect () { assert_eq ! (:: std :: mem :: size_of :: < FlutterRect > () , 32usize , concat ! ("Size of: " , stringify ! (FlutterRect))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterRect > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterRect))) ; fn test_field_left () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . left) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterRect) , "::" , stringify ! (left))) ; } test_field_left () ; fn test_field_top () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . top) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterRect) , "::" , stringify ! (top))) ; } test_field_top () ; fn test_field_right () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . right) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterRect) , "::" , stringify ! (right))) ; } test_field_right () ; fn test_field_bottom () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . bottom) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterRect) , "::" , stringify ! (bottom))) ; } test_field_bottom () ; } # [doc = " A structure to represent a 2D point."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterPoint { pub x : f64 , pub y : f64 , } # [test] fn bindgen_test_layout_FlutterPoint () { assert_eq ! (:: std :: mem :: size_of :: < FlutterPoint > () , 16usize , concat ! ("Size of: " , stringify ! (FlutterPoint))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterPoint > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterPoint))) ; fn test_field_x () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPoint > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . x) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPoint) , "::" , stringify ! (x))) ; } test_field_x () ; fn test_field_y () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPoint > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . y) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterPoint) , "::" , stringify ! (y))) ; } test_field_y () ; } # [doc = " A structure to represent a rounded rectangle."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterRoundedRect { pub rect : FlutterRect , pub upper_left_corner_radius : FlutterSize , pub upper_right_corner_radius : FlutterSize , pub lower_right_corner_radius : FlutterSize , pub lower_left_corner_radius : FlutterSize , } # [test] fn bindgen_test_layout_FlutterRoundedRect () { assert_eq ! (:: std :: mem :: size_of :: < FlutterRoundedRect > () , 96usize , concat ! ("Size of: " , stringify ! (FlutterRoundedRect))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterRoundedRect > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterRoundedRect))) ; fn test_field_rect () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRoundedRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . rect) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterRoundedRect) , "::" , stringify ! (rect))) ; } test_field_rect () ; fn test_field_upper_left_corner_radius () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRoundedRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . upper_left_corner_radius) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterRoundedRect) , "::" , stringify ! (upper_left_corner_radius))) ; } test_field_upper_left_corner_radius () ; fn test_field_upper_right_corner_radius () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRoundedRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . upper_right_corner_radius) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterRoundedRect) , "::" , stringify ! (upper_right_corner_radius))) ; } test_field_upper_right_corner_radius () ; fn test_field_lower_right_corner_radius () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRoundedRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . lower_right_corner_radius) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterRoundedRect) , "::" , stringify ! (lower_right_corner_radius))) ; } test_field_lower_right_corner_radius () ; fn test_field_lower_left_corner_radius () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRoundedRect > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . lower_left_corner_radius) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (FlutterRoundedRect) , "::" , stringify ! (lower_left_corner_radius))) ; } test_field_lower_left_corner_radius () ; } # [doc = " This information is passed to the embedder when requesting a frame buffer"] # [doc = " object."] # [doc = ""] # [doc = " See: \\ref FlutterOpenGLRendererConfig.fbo_with_frame_info_callback."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterFrameInfo { # [doc = " The size of this struct. Must be sizeof(FlutterFrameInfo)."] pub struct_size : size_t , # [doc = " The size of the surface that will be backed by the fbo."] pub size : FlutterUIntSize , } # [test] fn bindgen_test_layout_FlutterFrameInfo () { assert_eq ! (:: std :: mem :: size_of :: < FlutterFrameInfo > () , 16usize , concat ! ("Size of: " , stringify ! (FlutterFrameInfo))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterFrameInfo > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterFrameInfo))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterFrameInfo > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterFrameInfo) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterFrameInfo > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterFrameInfo) , "::" , stringify ! (size))) ; } test_field_size () ; } # [doc = " Callback for when a frame buffer object is requested."] pub type UIntFrameInfoCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * const FlutterFrameInfo) -> u32 > ; # [doc = " This information is passed to the embedder when a surface is presented."] # [doc = ""] # [doc = " See: \\ref FlutterOpenGLRendererConfig.present_with_info."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterPresentInfo { # [doc = " The size of this struct. Must be sizeof(FlutterPresentInfo)."] pub struct_size : size_t , # [doc = " Id of the fbo backing the surface that was presented."] pub fbo_id : u32 , } # [test] fn bindgen_test_layout_FlutterPresentInfo () { assert_eq ! (:: std :: mem :: size_of :: < FlutterPresentInfo > () , 16usize , concat ! ("Size of: " , stringify ! (FlutterPresentInfo))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterPresentInfo > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterPresentInfo))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPresentInfo > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPresentInfo) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_fbo_id () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPresentInfo > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . fbo_id) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterPresentInfo) , "::" , stringify ! (fbo_id))) ; } test_field_fbo_id () ; } # [doc = " Callback for when a surface is presented."] pub type BoolPresentInfoCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * const FlutterPresentInfo) -> bool > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterOpenGLRendererConfig { # [doc = " The size of this struct. Must be sizeof(FlutterOpenGLRendererConfig)."] pub struct_size : size_t , pub make_current : BoolCallback , pub clear_current : BoolCallback , # [doc = " Specifying one (and only one) of `present` or `present_with_info` is"] # [doc = " required. Specifying both is an error and engine initialization will be"] # [doc = " terminated. The return value indicates success of the present call."] pub present : BoolCallback , # [doc = " Specifying one (and only one) of the `fbo_callback` or"] # [doc = " `fbo_with_frame_info_callback` is required. Specifying both is an error"] # [doc = " and engine intialization will be terminated. The return value indicates"] # [doc = " the id of the frame buffer object that flutter will obtain the gl surface"] # [doc = " from."] pub fbo_callback : UIntCallback , # [doc = " This is an optional callback. Flutter will ask the emebdder to create a GL"] # [doc = " context current on a background thread. If the embedder is able to do so,"] # [doc = " Flutter will assume that this context is in the same sharegroup as the"] # [doc = " main rendering context and use this context for asynchronous texture"] # [doc = " uploads. Though optional, it is recommended that all embedders set this"] # [doc = " callback as it will lead to better performance in texture handling."] pub make_resource_current : BoolCallback , # [doc = " By default, the renderer config assumes that the FBO does not change for"] # [doc = " the duration of the engine run. If this argument is true, the"] # [doc = " engine will ask the embedder for an updated FBO target (via an"] # [doc = " fbo_callback invocation) after a present call."] pub fbo_reset_after_present : bool , # [doc = " The transformation to apply to the render target before any rendering"] # [doc = " operations. This callback is optional."] # [doc = " @attention      When using a custom compositor, the layer offset and sizes"] # [doc = "                 will be affected by this transformation. It will be"] # [doc = "                 embedder responsibility to render contents at the"] # [doc = "                 transformed offset and size. This is useful for embedders"] # [doc = "                 that want to render transformed contents directly into"] # [doc = "                 hardware overlay planes without having to apply extra"] # [doc = "                 transformations to layer contents (which may necessitate"] # [doc = "                 an expensive off-screen render pass)."] pub surface_transformation : TransformationCallback , pub gl_proc_resolver : ProcResolver , # [doc = " When the embedder specifies that a texture has a frame available, the"] # [doc = " engine will call this method (on an internal engine managed thread) so"] # [doc = " that external texture details can be supplied to the engine for subsequent"] # [doc = " composition."] pub gl_external_texture_frame_callback : TextureFrameCallback , # [doc = " Specifying one (and only one) of the `fbo_callback` or"] # [doc = " `fbo_with_frame_info_callback` is required. Specifying both is an error"] # [doc = " and engine intialization will be terminated. The return value indicates"] # [doc = " the id of the frame buffer object (fbo) that flutter will obtain the gl"] # [doc = " surface from. When using this variant, the embedder is passed a"] # [doc = " `FlutterFrameInfo` struct that indicates the properties of the surface"] # [doc = " that flutter will acquire from the returned fbo."] pub fbo_with_frame_info_callback : UIntFrameInfoCallback , # [doc = " Specifying one (and only one) of `present` or `present_with_info` is"] # [doc = " required. Specifying both is an error and engine initialization will be"] # [doc = " terminated. When using this variant, the embedder is passed a"] # [doc = " `FlutterPresentInfo` struct that the embedder can use to release any"] # [doc = " resources. The return value indicates success of the present call."] pub present_with_info : BoolPresentInfoCallback , } # [test] fn bindgen_test_layout_FlutterOpenGLRendererConfig () { assert_eq ! (:: std :: mem :: size_of :: < FlutterOpenGLRendererConfig > () , 96usize , concat ! ("Size of: " , stringify ! (FlutterOpenGLRendererConfig))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterOpenGLRendererConfig > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterOpenGLRendererConfig))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_make_current () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . make_current) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (make_current))) ; } test_field_make_current () ; fn test_field_clear_current () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . clear_current) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (clear_current))) ; } test_field_clear_current () ; fn test_field_present () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . present) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (present))) ; } test_field_present () ; fn test_field_fbo_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . fbo_callback) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (fbo_callback))) ; } test_field_fbo_callback () ; fn test_field_make_resource_current () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . make_resource_current) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (make_resource_current))) ; } test_field_make_resource_current () ; fn test_field_fbo_reset_after_present () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . fbo_reset_after_present) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (fbo_reset_after_present))) ; } test_field_fbo_reset_after_present () ; fn test_field_surface_transformation () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . surface_transformation) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (surface_transformation))) ; } test_field_surface_transformation () ; fn test_field_gl_proc_resolver () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . gl_proc_resolver) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (gl_proc_resolver))) ; } test_field_gl_proc_resolver () ; fn test_field_gl_external_texture_frame_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . gl_external_texture_frame_callback) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (gl_external_texture_frame_callback))) ; } test_field_gl_external_texture_frame_callback () ; fn test_field_fbo_with_frame_info_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . fbo_with_frame_info_callback) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (fbo_with_frame_info_callback))) ; } test_field_fbo_with_frame_info_callback () ; fn test_field_present_with_info () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . present_with_info) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLRendererConfig) , "::" , stringify ! (present_with_info))) ; } test_field_present_with_info () ; } # [doc = " Alias for id<MTLDevice>."] pub type FlutterMetalDeviceHandle = * const :: std :: os :: raw :: c_void ; # [doc = " Alias for id<MTLCommandQueue>."] pub type FlutterMetalCommandQueueHandle = * const :: std :: os :: raw :: c_void ; # [doc = " Alias for id<MTLTexture>."] pub type FlutterMetalTextureHandle = * const :: std :: os :: raw :: c_void ; pub const FlutterMetalExternalTexturePixelFormat_kYUVA : FlutterMetalExternalTexturePixelFormat = 0 ; pub const FlutterMetalExternalTexturePixelFormat_kRGBA : FlutterMetalExternalTexturePixelFormat = 1 ; # [doc = " Pixel format for the external texture."] pub type FlutterMetalExternalTexturePixelFormat = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterMetalExternalTexture { # [doc = " The size of this struct. Must be sizeof(FlutterMetalExternalTexture)."] pub struct_size : size_t , # [doc = " Height of the texture."] pub width : size_t , # [doc = " Height of the texture."] pub height : size_t , # [doc = " The pixel format type of the external."] pub pixel_format : FlutterMetalExternalTexturePixelFormat , # [doc = " Represents the size of the `textures` array."] pub num_textures : size_t , # [doc = " Supported textures are YUVA and RGBA, in case of YUVA we expect 2 texture"] # [doc = " handles to be provided by the embedder, Y first and UV next. In case of"] # [doc = " RGBA only one should be passed."] # [doc = " These are individually aliases for id<MTLTexture>. These textures are"] # [doc = " retained by the engine for the period of the composition. Once these"] # [doc = " textures have been unregistered via the"] # [doc = " `FlutterEngineUnregisterExternalTexture`, the embedder has to release"] # [doc = " these textures."] pub textures : * mut FlutterMetalTextureHandle , } # [test] fn bindgen_test_layout_FlutterMetalExternalTexture () { assert_eq ! (:: std :: mem :: size_of :: < FlutterMetalExternalTexture > () , 48usize , concat ! ("Size of: " , stringify ! (FlutterMetalExternalTexture))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterMetalExternalTexture > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterMetalExternalTexture))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalExternalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalExternalTexture) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_width () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalExternalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . width) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalExternalTexture) , "::" , stringify ! (width))) ; } test_field_width () ; fn test_field_height () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalExternalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . height) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalExternalTexture) , "::" , stringify ! (height))) ; } test_field_height () ; fn test_field_pixel_format () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalExternalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . pixel_format) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalExternalTexture) , "::" , stringify ! (pixel_format))) ; } test_field_pixel_format () ; fn test_field_num_textures () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalExternalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . num_textures) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalExternalTexture) , "::" , stringify ! (num_textures))) ; } test_field_num_textures () ; fn test_field_textures () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalExternalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . textures) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalExternalTexture) , "::" , stringify ! (textures))) ; } test_field_textures () ; } # [doc = " Callback to provide an external texture for a given texture_id."] # [doc = " See: external_texture_frame_callback."] pub type FlutterMetalTextureFrameCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : i64 , arg3 : size_t , arg4 : size_t , arg5 : * mut FlutterMetalExternalTexture) -> bool > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterMetalTexture { # [doc = " The size of this struct. Must be sizeof(FlutterMetalTexture)."] pub struct_size : size_t , # [doc = " Embedder provided unique identifier to the texture buffer. Given that the"] # [doc = " `texture` handle is passed to the engine to render to, the texture buffer"] # [doc = " is itself owned by the embedder. This `texture_id` is then also given to"] # [doc = " the embedder in the present callback."] pub texture_id : i64 , # [doc = " Handle to the MTLTexture that is owned by the embedder. Engine will render"] # [doc = " the frame into this texture."] pub texture : FlutterMetalTextureHandle , # [doc = " A baton that is not interpreted by the engine in any way. It will be given"] # [doc = " back to the embedder in the destruction callback below. Embedder resources"] # [doc = " may be associated with this baton."] pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " The callback invoked by the engine when it no longer needs this backing"] # [doc = " store."] pub destruction_callback : VoidCallback , } # [test] fn bindgen_test_layout_FlutterMetalTexture () { assert_eq ! (:: std :: mem :: size_of :: < FlutterMetalTexture > () , 40usize , concat ! ("Size of: " , stringify ! (FlutterMetalTexture))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterMetalTexture > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterMetalTexture))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalTexture) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_texture_id () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . texture_id) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalTexture) , "::" , stringify ! (texture_id))) ; } test_field_texture_id () ; fn test_field_texture () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . texture) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalTexture) , "::" , stringify ! (texture))) ; } test_field_texture () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalTexture) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_destruction_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalTexture > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . destruction_callback) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalTexture) , "::" , stringify ! (destruction_callback))) ; } test_field_destruction_callback () ; } # [doc = " Callback for when a metal texture is requested."] pub type FlutterMetalTextureCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * const FlutterFrameInfo) -> FlutterMetalTexture > ; # [doc = " Callback for when a metal texture is presented. The texture_id here"] # [doc = " corresponds to the texture_id provided by the embedder in the"] # [doc = " `FlutterMetalTextureCallback` callback."] pub type FlutterMetalPresentCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * const FlutterMetalTexture) -> bool > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterMetalRendererConfig { # [doc = " The size of this struct. Must be sizeof(FlutterMetalRendererConfig)."] pub struct_size : size_t , # [doc = " Alias for id<MTLDevice>."] pub device : FlutterMetalDeviceHandle , `# [doc = " Alias for id<MTLCommandQueue>."]` pub present_command_queue : FlutterMetalCommandQueueHandle , # [doc = " The callback that gets invoked when the engine requests the embedder for a"] # [doc = " texture to render to."] pub get_next_drawable_callback : FlutterMetalTextureCallback , # [doc = " The callback presented to the embedder to present a fully populated metal"] # [doc = " texture to the user."] pub present_drawable_callback : FlutterMetalPresentCallback , # [doc = " When the embedder specifies that a texture has a frame available, the"] # [doc = " engine will call this method (on an internal engine managed thread) so"] # [doc = " that external texture details can be supplied to the engine for subsequent"] # [doc = " composition."] pub external_texture_frame_callback : FlutterMetalTextureFrameCallback , } # [test] fn bindgen_test_layout_FlutterMetalRendererConfig () { assert_eq ! (:: std :: mem :: size_of :: < FlutterMetalRendererConfig > () , 48usize , concat ! ("Size of: " , stringify ! (FlutterMetalRendererConfig))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterMetalRendererConfig > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterMetalRendererConfig))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalRendererConfig) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_device () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . device) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalRendererConfig) , "::" , stringify ! (device))) ; } test_field_device () ; fn test_field_present_command_queue () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . present_command_queue) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalRendererConfig) , "::" , stringify ! (present_command_queue))) ; } test_field_present_command_queue () ; fn test_field_get_next_drawable_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . get_next_drawable_callback) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalRendererConfig) , "::" , stringify ! (get_next_drawable_callback))) ; } test_field_get_next_drawable_callback () ; fn test_field_present_drawable_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . present_drawable_callback) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalRendererConfig) , "::" , stringify ! (present_drawable_callback))) ; } test_field_present_drawable_callback () ; fn test_field_external_texture_frame_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . external_texture_frame_callback) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalRendererConfig) , "::" , stringify ! (external_texture_frame_callback))) ; } test_field_external_texture_frame_callback () ; } # [doc = " Alias for VkInstance."] pub type FlutterVulkanInstanceHandle = * mut :: std :: os :: raw :: c_void ; # [doc = " Alias for VkPhysicalDevice."] pub type FlutterVulkanPhysicalDeviceHandle = * mut :: std :: os :: raw :: c_void ; # [doc = " Alias for VkDevice."] pub type FlutterVulkanDeviceHandle = * mut :: std :: os :: raw :: c_void ; # [doc = " Alias for VkQueue."] pub type FlutterVulkanQueueHandle = * mut :: std :: os :: raw :: c_void ; # [doc = " Alias for VkImage."] pub type FlutterVulkanImageHandle = u64 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterVulkanImage { # [doc = " The size of this struct. Must be sizeof(FlutterVulkanImage)."] pub struct_size : size_t , # [doc = " Handle to the VkImage that is owned by the embedder. The engine will"] # [doc = " bind this image for writing the frame."] pub image : FlutterVulkanImageHandle , # [doc = " The VkFormat of the image (for example: VK_FORMAT_R8G8B8A8_UNORM)."] pub format : u32 , } # [test] fn bindgen_test_layout_FlutterVulkanImage () { assert_eq ! (:: std :: mem :: size_of :: < FlutterVulkanImage > () , 24usize , concat ! ("Size of: " , stringify ! (FlutterVulkanImage))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterVulkanImage > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterVulkanImage))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanImage > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanImage) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_image () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanImage > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . image) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanImage) , "::" , stringify ! (image))) ; } test_field_image () ; fn test_field_format () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanImage > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . format) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanImage) , "::" , stringify ! (format))) ; } test_field_format () ; } # [doc = " Callback to fetch a Vulkan function pointer for a given instance. Normally,"] # [doc = " this should return the results of vkGetInstanceProcAddr."] pub type FlutterVulkanInstanceProcAddressCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : FlutterVulkanInstanceHandle , arg3 : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_void > ; # [doc = " Callback for when a VkImage is requested."] pub type FlutterVulkanImageCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * const FlutterFrameInfo) -> FlutterVulkanImage > ; # [doc = " Callback for when a VkImage has been written to and is ready for use by the"] # [doc = " embedder."] pub type FlutterVulkanPresentCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * const FlutterVulkanImage) -> bool > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterVulkanRendererConfig { # [doc = " The size of this struct. Must be sizeof(FlutterVulkanRendererConfig)."] pub struct_size : size_t , # [doc = " The Vulkan API version. This should match the value set in"] # [doc = " VkApplicationInfo::apiVersion when the VkInstance was created."] pub version : u32 , # [doc = " VkInstance handle. Must not be destroyed before `FlutterEngineShutdown` is"] # [doc = " called."] pub instance : FlutterVulkanInstanceHandle , # [doc = " VkPhysicalDevice handle."] pub physical_device : FlutterVulkanPhysicalDeviceHandle , # [doc = " VkDevice handle. Must not be destroyed before `FlutterEngineShutdown` is"] # [doc = " called."] pub device : FlutterVulkanDeviceHandle , # [doc = " The queue family index of the VkQueue supplied in the next field."] pub queue_family_index : u32 , # [doc = " VkQueue handle."] pub queue : FlutterVulkanQueueHandle , # [doc = " The number of instance extensions available for enumerating in the next"] # [doc = " field."] pub enabled_instance_extension_count : size_t , # [doc = " Array of enabled instance extension names. This should match the names"] # [doc = " passed to `VkInstanceCreateInfo.ppEnabledExtensionNames` when the instance"] # [doc = " was created, but any subset of enabled instance extensions may be"] # [doc = " specified."] # [doc = " This field is optional; `nullptr` may be specified."] # [doc = " This memory is only accessed during the call to FlutterEngineInitialize."] pub enabled_instance_extensions : * mut * const :: std :: os :: raw :: c_char , # [doc = " The number of device extensions available for enumerating in the next"] # [doc = " field."] pub enabled_device_extension_count : size_t , # [doc = " Array of enabled logical device extension names. This should match the"] # [doc = " names passed to `VkDeviceCreateInfo.ppEnabledExtensionNames` when the"] # [doc = " logical device was created, but any subset of enabled logical device"] # [doc = " extensions may be specified."] # [doc = " This field is optional; `nullptr` may be specified."] # [doc = " This memory is only accessed during the call to FlutterEngineInitialize."] # [doc = " For example: VK_KHR_GET_MEMORY_REQUIREMENTS_2_EXTENSION_NAME"] pub enabled_device_extensions : * mut * const :: std :: os :: raw :: c_char , # [doc = " The callback invoked when resolving Vulkan function pointers."] pub get_instance_proc_address_callback : FlutterVulkanInstanceProcAddressCallback , # [doc = " The callback invoked when the engine requests a VkImage from the embedder"] # [doc = " for rendering the next frame."] # [doc = " Not used if a FlutterCompositor is supplied in FlutterProjectArgs."] pub get_next_image_callback : FlutterVulkanImageCallback , # [doc = " The callback invoked when a VkImage has been written to and is ready for"] # [doc = " use by the embedder. Prior to calling this callback, the engine performs"] # [doc = " a host sync, and so the VkImage can be used in a pipeline by the embedder"] # [doc = " without any additional synchronization."] # [doc = " Not used if a FlutterCompositor is supplied in FlutterProjectArgs."] pub present_image_callback : FlutterVulkanPresentCallback , } # [test] fn bindgen_test_layout_FlutterVulkanRendererConfig () { assert_eq ! (:: std :: mem :: size_of :: < FlutterVulkanRendererConfig > () , 112usize , concat ! ("Size of: " , stringify ! (FlutterVulkanRendererConfig))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterVulkanRendererConfig > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterVulkanRendererConfig))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_version () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . version) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (version))) ; } test_field_version () ; fn test_field_instance () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . instance) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (instance))) ; } test_field_instance () ; fn test_field_physical_device () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . physical_device) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (physical_device))) ; } test_field_physical_device () ; fn test_field_device () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . device) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (device))) ; } test_field_device () ; fn test_field_queue_family_index () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . queue_family_index) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (queue_family_index))) ; } test_field_queue_family_index () ; fn test_field_queue () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . queue) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (queue))) ; } test_field_queue () ; fn test_field_enabled_instance_extension_count () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . enabled_instance_extension_count) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (enabled_instance_extension_count))) ; } test_field_enabled_instance_extension_count () ; fn test_field_enabled_instance_extensions () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . enabled_instance_extensions) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (enabled_instance_extensions))) ; } test_field_enabled_instance_extensions () ; fn test_field_enabled_device_extension_count () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . enabled_device_extension_count) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (enabled_device_extension_count))) ; } test_field_enabled_device_extension_count () ; fn test_field_enabled_device_extensions () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . enabled_device_extensions) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (enabled_device_extensions))) ; } test_field_enabled_device_extensions () ; fn test_field_get_instance_proc_address_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . get_instance_proc_address_callback) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (get_instance_proc_address_callback))) ; } test_field_get_instance_proc_address_callback () ; fn test_field_get_next_image_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . get_next_image_callback) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (get_next_image_callback))) ; } test_field_get_next_image_callback () ; fn test_field_present_image_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . present_image_callback) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanRendererConfig) , "::" , stringify ! (present_image_callback))) ; } test_field_present_image_callback () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterSoftwareRendererConfig { # [doc = " The size of this struct. Must be sizeof(FlutterSoftwareRendererConfig)."] pub struct_size : size_t , # [doc = " The callback presented to the embedder to present a fully populated buffer"] # [doc = " to the user. The pixel format of the buffer is the native 32-bit RGBA"] # [doc = " format. The buffer is owned by the Flutter engine and must be copied in"] # [doc = " this callback if needed."] pub surface_present_callback : SoftwareSurfacePresentCallback , } # [test] fn bindgen_test_layout_FlutterSoftwareRendererConfig () { assert_eq ! (:: std :: mem :: size_of :: < FlutterSoftwareRendererConfig > () , 16usize , concat ! ("Size of: " , stringify ! (FlutterSoftwareRendererConfig))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterSoftwareRendererConfig > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterSoftwareRendererConfig))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSoftwareRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterSoftwareRendererConfig) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_surface_present_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSoftwareRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . surface_present_callback) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterSoftwareRendererConfig) , "::" , stringify ! (surface_present_callback))) ; } test_field_surface_present_callback () ; } # [repr (C)] # [derive (Copy , Clone)] pub struct FlutterRendererConfig { pub type_ : FlutterRendererType , pub __bindgen_anon_1 : FlutterRendererConfig__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union FlutterRendererConfig__bindgen_ty_1 { pub open_gl : FlutterOpenGLRendererConfig , pub software : FlutterSoftwareRendererConfig , pub metal : FlutterMetalRendererConfig , pub vulkan : FlutterVulkanRendererConfig , } # [test] fn bindgen_test_layout_FlutterRendererConfig__bindgen_ty_1 () { assert_eq ! (:: std :: mem :: size_of :: < FlutterRendererConfig__bindgen_ty_1 > () , 112usize , concat ! ("Size of: " , stringify ! (FlutterRendererConfig__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterRendererConfig__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterRendererConfig__bindgen_ty_1))) ; fn test_field_open_gl () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRendererConfig__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . open_gl) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterRendererConfig__bindgen_ty_1) , "::" , stringify ! (open_gl))) ; } test_field_open_gl () ; fn test_field_software () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRendererConfig__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . software) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterRendererConfig__bindgen_ty_1) , "::" , stringify ! (software))) ; } test_field_software () ; fn test_field_metal () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRendererConfig__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . metal) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterRendererConfig__bindgen_ty_1) , "::" , stringify ! (metal))) ; } test_field_metal () ; fn test_field_vulkan () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRendererConfig__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . vulkan) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterRendererConfig__bindgen_ty_1) , "::" , stringify ! (vulkan))) ; } test_field_vulkan () ; } # [test] fn bindgen_test_layout_FlutterRendererConfig () { assert_eq ! (:: std :: mem :: size_of :: < FlutterRendererConfig > () , 120usize , concat ! ("Size of: " , stringify ! (FlutterRendererConfig))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterRendererConfig > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterRendererConfig))) ; fn test_field_type () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterRendererConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . type_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterRendererConfig) , "::" , stringify ! (type_))) ; } test_field_type () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterWindowMetricsEvent { # [doc = " The size of this struct. Must be sizeof(FlutterWindowMetricsEvent)."] pub struct_size : size_t , # [doc = " Physical width of the window."] pub width : size_t , # [doc = " Physical height of the window."] pub height : size_t , # [doc = " Scale factor for the physical screen."] pub pixel_ratio : f64 , # [doc = " Horizontal physical location of the left side of the window on the screen."] pub left : size_t , # [doc = " Vertical physical location of the top of the window on the screen."] pub top : size_t , # [doc = " Top inset of window."] pub physical_view_inset_top : f64 , # [doc = " Right inset of window."] pub physical_view_inset_right : f64 , # [doc = " Bottom inset of window."] pub physical_view_inset_bottom : f64 , # [doc = " Left inset of window."] pub physical_view_inset_left : f64 , } # [test] fn bindgen_test_layout_FlutterWindowMetricsEvent () { assert_eq ! (:: std :: mem :: size_of :: < FlutterWindowMetricsEvent > () , 80usize , concat ! ("Size of: " , stringify ! (FlutterWindowMetricsEvent))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterWindowMetricsEvent > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterWindowMetricsEvent))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_width () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . width) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (width))) ; } test_field_width () ; fn test_field_height () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . height) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (height))) ; } test_field_height () ; fn test_field_pixel_ratio () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . pixel_ratio) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (pixel_ratio))) ; } test_field_pixel_ratio () ; fn test_field_left () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . left) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (left))) ; } test_field_left () ; fn test_field_top () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . top) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (top))) ; } test_field_top () ; fn test_field_physical_view_inset_top () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . physical_view_inset_top) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (physical_view_inset_top))) ; } test_field_physical_view_inset_top () ; fn test_field_physical_view_inset_right () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . physical_view_inset_right) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (physical_view_inset_right))) ; } test_field_physical_view_inset_right () ; fn test_field_physical_view_inset_bottom () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . physical_view_inset_bottom) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (physical_view_inset_bottom))) ; } test_field_physical_view_inset_bottom () ; fn test_field_physical_view_inset_left () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterWindowMetricsEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . physical_view_inset_left) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (FlutterWindowMetricsEvent) , "::" , stringify ! (physical_view_inset_left))) ; } test_field_physical_view_inset_left () ; } pub const FlutterPointerPhase_kCancel : FlutterPointerPhase = 0 ; # [doc = " The pointer, which must have been down (see kDown), is now up."] # [doc = ""] # [doc = " For touch, this means that the pointer is no longer in contact with the"] # [doc = " screen. For a mouse, it means the last button was released. Note that if"] # [doc = " any other buttons are still pressed when one button is released, that"] # [doc = " should be sent as a kMove rather than a kUp."] pub const FlutterPointerPhase_kUp : FlutterPointerPhase = 1 ; # [doc = " The pointer, which must have been been up, is now down."] # [doc = ""] # [doc = " For touch, this means that the pointer has come into contact with the"] # [doc = " screen. For a mouse, it means a button is now pressed. Note that if any"] # [doc = " other buttons are already pressed when a new button is pressed, that"] # [doc = " should be sent as a kMove rather than a kDown."] pub const FlutterPointerPhase_kDown : FlutterPointerPhase = 2 ; # [doc = " The pointer moved while down."] # [doc = ""] # [doc = " This is also used for changes in button state that don't cause a kDown or"] # [doc = " kUp, such as releasing one of two pressed buttons."] pub const FlutterPointerPhase_kMove : FlutterPointerPhase = 3 ; # [doc = " The pointer is now sending input to Flutter. For instance, a mouse has"] # [doc = " entered the area where the Flutter content is displayed."] # [doc = ""] # [doc = " A pointer should always be added before sending any other events."] pub const FlutterPointerPhase_kAdd : FlutterPointerPhase = 4 ; # [doc = " The pointer is no longer sending input to Flutter. For instance, a mouse"] # [doc = " has left the area where the Flutter content is displayed."] # [doc = ""] # [doc = " A removed pointer should no longer send events until sending a new kAdd."] pub const FlutterPointerPhase_kRemove : FlutterPointerPhase = 5 ; # [doc = " The pointer moved while up."] pub const FlutterPointerPhase_kHover : FlutterPointerPhase = 6 ; # [doc = " A pan/zoom started on this pointer."] pub const FlutterPointerPhase_kPanZoomStart : FlutterPointerPhase = 7 ; # [doc = " The pan/zoom updated."] pub const FlutterPointerPhase_kPanZoomUpdate : FlutterPointerPhase = 8 ; # [doc = " The pan/zoom ended."] pub const FlutterPointerPhase_kPanZoomEnd : FlutterPointerPhase = 9 ; # [doc = " The phase of the pointer event."] pub type FlutterPointerPhase = :: std :: os :: raw :: c_uint ; pub const FlutterPointerDeviceKind_kFlutterPointerDeviceKindMouse : FlutterPointerDeviceKind = 1 ; pub const FlutterPointerDeviceKind_kFlutterPointerDeviceKindTouch : FlutterPointerDeviceKind = 2 ; pub const FlutterPointerDeviceKind_kFlutterPointerDeviceKindStylus : FlutterPointerDeviceKind = 3 ; pub const FlutterPointerDeviceKind_kFlutterPointerDeviceKindTrackpad : FlutterPointerDeviceKind = 4 ; # [doc = " The device type that created a pointer event."] pub type FlutterPointerDeviceKind = :: std :: os :: raw :: c_uint ; pub const FlutterPointerMouseButtons_kFlutterPointerButtonMousePrimary : FlutterPointerMouseButtons = 1 ; pub const FlutterPointerMouseButtons_kFlutterPointerButtonMouseSecondary : FlutterPointerMouseButtons = 2 ; pub const FlutterPointerMouseButtons_kFlutterPointerButtonMouseMiddle : FlutterPointerMouseButtons = 4 ; pub const FlutterPointerMouseButtons_kFlutterPointerButtonMouseBack : FlutterPointerMouseButtons = 8 ; pub const FlutterPointerMouseButtons_kFlutterPointerButtonMouseForward : FlutterPointerMouseButtons = 16 ; # [doc = " Flags for the `buttons` field of `FlutterPointerEvent` when `device_kind`"] # [doc = " is `kFlutterPointerDeviceKindMouse`."] pub type FlutterPointerMouseButtons = :: std :: os :: raw :: c_uint ; pub const FlutterPointerSignalKind_kFlutterPointerSignalKindNone : FlutterPointerSignalKind = 0 ; pub const FlutterPointerSignalKind_kFlutterPointerSignalKindScroll : FlutterPointerSignalKind = 1 ; # [doc = " The type of a pointer signal."] pub type FlutterPointerSignalKind = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterPointerEvent { # [doc = " The size of this struct. Must be sizeof(FlutterPointerEvent)."] pub struct_size : size_t , pub phase : FlutterPointerPhase , # [doc = " The timestamp at which the pointer event was generated. The timestamp"] # [doc = " should be specified in microseconds and the clock should be the same as"] # [doc = " that used by `FlutterEngineGetCurrentTime`."] pub timestamp : size_t , # [doc = " The x coordinate of the pointer event in physical pixels."] pub x : f64 , # [doc = " The y coordinate of the pointer event in physical pixels."] pub y : f64 , # [doc = " An optional device identifier. If this is not specified, it is assumed"] # [doc = " that the embedder has no multi-touch capability."] pub device : i32 , pub signal_kind : FlutterPointerSignalKind , # [doc = " The x offset of the scroll in physical pixels."] pub scroll_delta_x : f64 , # [doc = " The y offset of the scroll in physical pixels."] pub scroll_delta_y : f64 , # [doc = " The type of the device generating this event."] # [doc = " Backwards compatibility note: If this is not set, the device will be"] # [doc = " treated as a mouse, with the primary button set for `kDown` and `kMove`."] # [doc = " If set explicitly to `kFlutterPointerDeviceKindMouse`, you must set the"] # [doc = " correct buttons."] pub device_kind : FlutterPointerDeviceKind , # [doc = " The buttons currently pressed, if any."] pub buttons : i64 , # [doc = " The x offset of the pan/zoom in physical pixels."] pub pan_x : f64 , # [doc = " The y offset of the pan/zoom in physical pixels."] pub pan_y : f64 , # [doc = " The scale of the pan/zoom, where 1.0 is the initial scale."] pub scale : f64 , # [doc = " The rotation of the pan/zoom in radians, where 0.0 is the initial angle."] pub rotation : f64 , } # [test] fn bindgen_test_layout_FlutterPointerEvent () { assert_eq ! (:: std :: mem :: size_of :: < FlutterPointerEvent > () , 112usize , concat ! ("Size of: " , stringify ! (FlutterPointerEvent))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterPointerEvent > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterPointerEvent))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_phase () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . phase) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (phase))) ; } test_field_phase () ; fn test_field_timestamp () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . timestamp) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (timestamp))) ; } test_field_timestamp () ; fn test_field_x () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . x) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (x))) ; } test_field_x () ; fn test_field_y () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . y) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (y))) ; } test_field_y () ; fn test_field_device () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . device) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (device))) ; } test_field_device () ; fn test_field_signal_kind () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . signal_kind) as usize - ptr as usize } , 44usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (signal_kind))) ; } test_field_signal_kind () ; fn test_field_scroll_delta_x () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scroll_delta_x) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (scroll_delta_x))) ; } test_field_scroll_delta_x () ; fn test_field_scroll_delta_y () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scroll_delta_y) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (scroll_delta_y))) ; } test_field_scroll_delta_y () ; fn test_field_device_kind () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . device_kind) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (device_kind))) ; } test_field_device_kind () ; fn test_field_buttons () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . buttons) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (buttons))) ; } test_field_buttons () ; fn test_field_pan_x () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . pan_x) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (pan_x))) ; } test_field_pan_x () ; fn test_field_pan_y () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . pan_y) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (pan_y))) ; } test_field_pan_y () ; fn test_field_scale () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scale) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (scale))) ; } test_field_scale () ; fn test_field_rotation () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPointerEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . rotation) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (FlutterPointerEvent) , "::" , stringify ! (rotation))) ; } test_field_rotation () ; } pub const FlutterKeyEventType_kFlutterKeyEventTypeUp : FlutterKeyEventType = 1 ; pub const FlutterKeyEventType_kFlutterKeyEventTypeDown : FlutterKeyEventType = 2 ; pub const FlutterKeyEventType_kFlutterKeyEventTypeRepeat : FlutterKeyEventType = 3 ; pub type FlutterKeyEventType = :: std :: os :: raw :: c_uint ; # [doc = " A structure to represent a key event."] # [doc = ""] # [doc = " Sending `FlutterKeyEvent` via `FlutterEngineSendKeyEvent` results in a"] # [doc = " corresponding `FlutterKeyEvent` to be dispatched in the framework. It is"] # [doc = " embedder's responsibility to ensure the regularity of sent events, since the"] # [doc = " framework only performs simple one-to-one mapping. The events must conform"] # [doc = " the following rules:"] # [doc = ""] # [doc = "  * Each key press sequence shall consist of one key down event (`kind` being"] # [doc = "    `kFlutterKeyEventTypeDown`), zero or more repeat events, and one key up"] # [doc = "    event, representing a physical key button being pressed, held, and"] # [doc = "    released."] # [doc = "  * All events throughout a key press sequence shall have the same `physical`"] # [doc = "    and `logical`. Having different `character`s is allowed."] # [doc = ""] # [doc = " A `FlutterKeyEvent` with `physical` 0 and `logical` 0 is an empty event."] # [doc = " This is the only case either `physical` or `logical` can be 0. An empty"] # [doc = " event must be sent if a key message should be converted to no"] # [doc = " `FlutterKeyEvent`s, for example, when a key down message is received for a"] # [doc = " key that has already been pressed according to the record. This is to ensure"] # [doc = " some `FlutterKeyEvent` arrives at the framework before raw key message."] # [doc = " See https://github.com/flutter/flutter/issues/87230."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterKeyEvent { # [doc = " The size of this struct. Must be sizeof(FlutterKeyEvent)."] pub struct_size : size_t , # [doc = " The timestamp at which the key event was generated. The timestamp should"] # [doc = " be specified in microseconds and the clock should be the same as that used"] # [doc = " by `FlutterEngineGetCurrentTime`."] pub timestamp : f64 , # [doc = " The event kind."] pub type_ : FlutterKeyEventType , # [doc = " The USB HID code for the physical key of the event."] # [doc = ""] # [doc = " For the full definition and list of pre-defined physical keys, see"] # [doc = " `PhysicalKeyboardKey` from the framework."] # [doc = ""] # [doc = " The only case that `physical` might be 0 is when this is an empty event."] # [doc = " See `FlutterKeyEvent` for introduction."] pub physical : u64 , # [doc = " The key ID for the logical key of this event."] # [doc = ""] # [doc = " For the full definition and a list of pre-defined logical keys, see"] # [doc = " `LogicalKeyboardKey` from the framework."] # [doc = ""] # [doc = " The only case that `logical` might be 0 is when this is an empty event."] # [doc = " See `FlutterKeyEvent` for introduction."] pub logical : u64 , # [doc = " Null-terminated character input from the event. Can be null. Ignored for"] # [doc = " up events."] pub character : * const :: std :: os :: raw :: c_char , # [doc = " True if this event does not correspond to a native event."] # [doc = ""] # [doc = " The embedder is likely to skip events and/or construct new events that do"] # [doc = " not correspond to any native events in order to conform the regularity"] # [doc = " of events (as documented in `FlutterKeyEvent`). An example is when a key"] # [doc = " up is missed due to loss of window focus, on a platform that provides"] # [doc = " query to key pressing status, the embedder might realize that the key has"] # [doc = " been released at the next key event, and should construct a synthesized up"] # [doc = " event immediately before the actual event."] # [doc = ""] # [doc = " An event being synthesized means that the `timestamp` might greatly"] # [doc = " deviate from the actual time when the event occurs physically."] pub synthesized : bool , } # [test] fn bindgen_test_layout_FlutterKeyEvent () { assert_eq ! (:: std :: mem :: size_of :: < FlutterKeyEvent > () , 56usize , concat ! ("Size of: " , stringify ! (FlutterKeyEvent))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterKeyEvent > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterKeyEvent))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterKeyEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterKeyEvent) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_timestamp () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterKeyEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . timestamp) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterKeyEvent) , "::" , stringify ! (timestamp))) ; } test_field_timestamp () ; fn test_field_type () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterKeyEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . type_) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterKeyEvent) , "::" , stringify ! (type_))) ; } test_field_type () ; fn test_field_physical () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterKeyEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . physical) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterKeyEvent) , "::" , stringify ! (physical))) ; } test_field_physical () ; fn test_field_logical () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterKeyEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . logical) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterKeyEvent) , "::" , stringify ! (logical))) ; } test_field_logical () ; fn test_field_character () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterKeyEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . character) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterKeyEvent) , "::" , stringify ! (character))) ; } test_field_character () ; fn test_field_synthesized () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterKeyEvent > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . synthesized) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterKeyEvent) , "::" , stringify ! (synthesized))) ; } test_field_synthesized () ; } pub type FlutterKeyEventCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : bool , arg2 : * mut :: std :: os :: raw :: c_void) > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _FlutterPlatformMessageResponseHandle { _unused : [u8 ; 0] , } pub type FlutterPlatformMessageResponseHandle = _FlutterPlatformMessageResponseHandle ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterPlatformMessage { # [doc = " The size of this struct. Must be sizeof(FlutterPlatformMessage)."] pub struct_size : size_t , pub channel : * const :: std :: os :: raw :: c_char , pub message : * const u8 , pub message_size : size_t , # [doc = " The response handle on which to invoke"] # [doc = " `FlutterEngineSendPlatformMessageResponse` when the response is ready."] # [doc = " `FlutterEngineSendPlatformMessageResponse` must be called for all messages"] # [doc = " received by the embedder. Failure to call"] # [doc = " `FlutterEngineSendPlatformMessageResponse` will cause a memory leak. It is"] # [doc = " not safe to send multiple responses on a single response object."] pub response_handle : * const FlutterPlatformMessageResponseHandle , } # [test] fn bindgen_test_layout_FlutterPlatformMessage () { assert_eq ! (:: std :: mem :: size_of :: < FlutterPlatformMessage > () , 40usize , concat ! ("Size of: " , stringify ! (FlutterPlatformMessage))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterPlatformMessage > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterPlatformMessage))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformMessage > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformMessage) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_channel () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformMessage > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . channel) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformMessage) , "::" , stringify ! (channel))) ; } test_field_channel () ; fn test_field_message () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformMessage > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . message) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformMessage) , "::" , stringify ! (message))) ; } test_field_message () ; fn test_field_message_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformMessage > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . message_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformMessage) , "::" , stringify ! (message_size))) ; } test_field_message_size () ; fn test_field_response_handle () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformMessage > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . response_handle) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformMessage) , "::" , stringify ! (response_handle))) ; } test_field_response_handle () ; } pub type FlutterPlatformMessageCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const FlutterPlatformMessage , arg2 : * mut :: std :: os :: raw :: c_void) > ; pub type FlutterDataCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const u8 , arg2 : size_t , arg3 : * mut :: std :: os :: raw :: c_void) > ; # [doc = " The identifier of the platform view. This identifier is specified by the"] # [doc = " application when a platform view is added to the scene via the"] # [doc = " `SceneBuilder.addPlatformView` call."] pub type FlutterPlatformViewIdentifier = i64 ; extern "C" { # [doc = " `FlutterSemanticsNode` ID used as a sentinel to signal the end of a batch of"] # [doc = " semantics node updates."] pub static kFlutterSemanticsNodeIdBatchEnd : i32 ; } # [doc = " A node that represents some semantic data."] # [doc = ""] # [doc = " The semantics tree is maintained during the semantics phase of the pipeline"] # [doc = " (i.e., during PipelineOwner.flushSemantics), which happens after"] # [doc = " compositing. Updates are then pushed to embedders via the registered"] # [doc = " `FlutterUpdateSemanticsNodeCallback`."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterSemanticsNode { # [doc = " The size of this struct. Must be sizeof(FlutterSemanticsNode)."] pub struct_size : size_t , # [doc = " The unique identifier for this node."] pub id : i32 , # [doc = " The set of semantics flags associated with this node."] pub flags : FlutterSemanticsFlag , # [doc = " The set of semantics actions applicable to this node."] pub actions : FlutterSemanticsAction , # [doc = " The position at which the text selection originates."] pub text_selection_base : i32 , # [doc = " The position at which the text selection terminates."] pub text_selection_extent : i32 , # [doc = " The total number of scrollable children that contribute to semantics."] pub scroll_child_count : i32 , # [doc = " The index of the first visible semantic child of a scroll node."] pub scroll_index : i32 , # [doc = " The current scrolling position in logical pixels if the node is"] # [doc = " scrollable."] pub scroll_position : f64 , # [doc = " The maximum in-range value for `scrollPosition` if the node is scrollable."] pub scroll_extent_max : f64 , # [doc = " The minimum in-range value for `scrollPosition` if the node is scrollable."] pub scroll_extent_min : f64 , # [doc = " The elevation along the z-axis at which the rect of this semantics node is"] # [doc = " located above its parent."] pub elevation : f64 , # [doc = " Describes how much space the semantics node takes up along the z-axis."] pub thickness : f64 , # [doc = " A textual description of the node."] pub label : * const :: std :: os :: raw :: c_char , # [doc = " A brief description of the result of performing an action on the node."] pub hint : * const :: std :: os :: raw :: c_char , # [doc = " A textual description of the current value of the node."] pub value : * const :: std :: os :: raw :: c_char , # [doc = " A value that `value` will have after a kFlutterSemanticsActionIncrease`"] # [doc = " action has been performed."] pub increased_value : * const :: std :: os :: raw :: c_char , # [doc = " A value that `value` will have after a kFlutterSemanticsActionDecrease`"] # [doc = " action has been performed."] pub decreased_value : * const :: std :: os :: raw :: c_char , # [doc = " The reading direction for `label`, `value`, `hint`, `increasedValue`, and"] # [doc = " `decreasedValue`."] pub text_direction : FlutterTextDirection , # [doc = " The bounding box for this node in its coordinate system."] pub rect : FlutterRect , # [doc = " The transform from this node's coordinate system to its parent's"] # [doc = " coordinate system."] pub transform : FlutterTransformation , # [doc = " The number of children this node has."] pub child_count : size_t , # [doc = " Array of child node IDs in traversal order. Has length `child_count`."] pub children_in_traversal_order : * const i32 , # [doc = " Array of child node IDs in hit test order. Has length `child_count`."] pub children_in_hit_test_order : * const i32 , # [doc = " The number of custom accessibility action associated with this node."] pub custom_accessibility_actions_count : size_t , # [doc = " Array of `FlutterSemanticsCustomAction` IDs associated with this node."] # [doc = " Has length `custom_accessibility_actions_count`."] pub custom_accessibility_actions : * const i32 , # [doc = " Identifier of the platform view associated with this semantics node, or"] # [doc = " -1 if none."] pub platform_view_id : FlutterPlatformViewIdentifier , } # [test] fn bindgen_test_layout_FlutterSemanticsNode () { assert_eq ! (:: std :: mem :: size_of :: < FlutterSemanticsNode > () , 280usize , concat ! ("Size of: " , stringify ! (FlutterSemanticsNode))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterSemanticsNode > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterSemanticsNode))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_id () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . id) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (id))) ; } test_field_id () ; fn test_field_flags () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . flags) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (flags))) ; } test_field_flags () ; fn test_field_actions () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . actions) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (actions))) ; } test_field_actions () ; fn test_field_text_selection_base () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . text_selection_base) as usize - ptr as usize } , 20usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (text_selection_base))) ; } test_field_text_selection_base () ; fn test_field_text_selection_extent () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . text_selection_extent) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (text_selection_extent))) ; } test_field_text_selection_extent () ; fn test_field_scroll_child_count () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scroll_child_count) as usize - ptr as usize } , 28usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (scroll_child_count))) ; } test_field_scroll_child_count () ; fn test_field_scroll_index () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scroll_index) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (scroll_index))) ; } test_field_scroll_index () ; fn test_field_scroll_position () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scroll_position) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (scroll_position))) ; } test_field_scroll_position () ; fn test_field_scroll_extent_max () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scroll_extent_max) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (scroll_extent_max))) ; } test_field_scroll_extent_max () ; fn test_field_scroll_extent_min () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . scroll_extent_min) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (scroll_extent_min))) ; } test_field_scroll_extent_min () ; fn test_field_elevation () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . elevation) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (elevation))) ; } test_field_elevation () ; fn test_field_thickness () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . thickness) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (thickness))) ; } test_field_thickness () ; fn test_field_label () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . label) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (label))) ; } test_field_label () ; fn test_field_hint () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . hint) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (hint))) ; } test_field_hint () ; fn test_field_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . value) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (value))) ; } test_field_value () ; fn test_field_increased_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . increased_value) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (increased_value))) ; } test_field_increased_value () ; fn test_field_decreased_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . decreased_value) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (decreased_value))) ; } test_field_decreased_value () ; fn test_field_text_direction () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . text_direction) as usize - ptr as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (text_direction))) ; } test_field_text_direction () ; fn test_field_rect () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . rect) as usize - ptr as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (rect))) ; } test_field_rect () ; fn test_field_transform () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . transform) as usize - ptr as usize } , 160usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (transform))) ; } test_field_transform () ; fn test_field_child_count () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . child_count) as usize - ptr as usize } , 232usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (child_count))) ; } test_field_child_count () ; fn test_field_children_in_traversal_order () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . children_in_traversal_order) as usize - ptr as usize } , 240usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (children_in_traversal_order))) ; } test_field_children_in_traversal_order () ; fn test_field_children_in_hit_test_order () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . children_in_hit_test_order) as usize - ptr as usize } , 248usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (children_in_hit_test_order))) ; } test_field_children_in_hit_test_order () ; fn test_field_custom_accessibility_actions_count () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . custom_accessibility_actions_count) as usize - ptr as usize } , 256usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (custom_accessibility_actions_count))) ; } test_field_custom_accessibility_actions_count () ; fn test_field_custom_accessibility_actions () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . custom_accessibility_actions) as usize - ptr as usize } , 264usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (custom_accessibility_actions))) ; } test_field_custom_accessibility_actions () ; fn test_field_platform_view_id () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsNode > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . platform_view_id) as usize - ptr as usize } , 272usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsNode) , "::" , stringify ! (platform_view_id))) ; } test_field_platform_view_id () ; } extern "C" { # [doc = " `FlutterSemanticsCustomAction` ID used as a sentinel to signal the end of a"] # [doc = " batch of semantics custom action updates."] pub static kFlutterSemanticsCustomActionIdBatchEnd : i32 ; } # [doc = " A custom semantics action, or action override."] # [doc = ""] # [doc = " Custom actions can be registered by applications in order to provide"] # [doc = " semantic actions other than the standard actions available through the"] # [doc = " `FlutterSemanticsAction` enum."] # [doc = ""] # [doc = " Action overrides are custom actions that the application developer requests"] # [doc = " to be used in place of the standard actions in the `FlutterSemanticsAction`"] # [doc = " enum."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterSemanticsCustomAction { # [doc = " The size of the struct. Must be sizeof(FlutterSemanticsCustomAction)."] pub struct_size : size_t , # [doc = " The unique custom action or action override ID."] pub id : i32 , # [doc = " For overridden standard actions, corresponds to the"] # [doc = " `FlutterSemanticsAction` to override."] pub override_action : FlutterSemanticsAction , # [doc = " The user-readable name of this custom semantics action."] pub label : * const :: std :: os :: raw :: c_char , # [doc = " The hint description of this custom semantics action."] pub hint : * const :: std :: os :: raw :: c_char , } # [test] fn bindgen_test_layout_FlutterSemanticsCustomAction () { assert_eq ! (:: std :: mem :: size_of :: < FlutterSemanticsCustomAction > () , 32usize , concat ! ("Size of: " , stringify ! (FlutterSemanticsCustomAction))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterSemanticsCustomAction > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterSemanticsCustomAction))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsCustomAction > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsCustomAction) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_id () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsCustomAction > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . id) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsCustomAction) , "::" , stringify ! (id))) ; } test_field_id () ; fn test_field_override_action () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsCustomAction > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . override_action) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsCustomAction) , "::" , stringify ! (override_action))) ; } test_field_override_action () ; fn test_field_label () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsCustomAction > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . label) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsCustomAction) , "::" , stringify ! (label))) ; } test_field_label () ; fn test_field_hint () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSemanticsCustomAction > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . hint) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterSemanticsCustomAction) , "::" , stringify ! (hint))) ; } test_field_hint () ; } pub type FlutterUpdateSemanticsNodeCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const FlutterSemanticsNode , arg2 : * mut :: std :: os :: raw :: c_void) > ; pub type FlutterUpdateSemanticsCustomActionCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const FlutterSemanticsCustomAction , arg2 : * mut :: std :: os :: raw :: c_void) > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _FlutterTaskRunner { _unused : [u8 ; 0] , } pub type FlutterTaskRunner = * mut _FlutterTaskRunner ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterTask { pub runner : FlutterTaskRunner , pub task : u64 , } # [test] fn bindgen_test_layout_FlutterTask () { assert_eq ! (:: std :: mem :: size_of :: < FlutterTask > () , 16usize , concat ! ("Size of: " , stringify ! (FlutterTask))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterTask > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterTask))) ; fn test_field_runner () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTask > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . runner) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterTask) , "::" , stringify ! (runner))) ; } test_field_runner () ; fn test_field_task () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTask > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . task) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterTask) , "::" , stringify ! (task))) ; } test_field_task () ; } pub type FlutterTaskRunnerPostTaskCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : FlutterTask , arg2 : u64 , arg3 : * mut :: std :: os :: raw :: c_void) > ; # [doc = " An interface used by the Flutter engine to execute tasks at the target time"] # [doc = " on a specified thread. There should be a 1-1 relationship between a thread"] # [doc = " and a task runner. It is undefined behavior to run a task on a thread that"] # [doc = " is not associated with its task runner."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterTaskRunnerDescription { # [doc = " The size of this struct. Must be sizeof(FlutterTaskRunnerDescription)."] pub struct_size : size_t , pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " May be called from any thread. Should return true if tasks posted on the"] # [doc = " calling thread will be run on that same thread."] # [doc = ""] # [doc = " @attention     This field is required."] pub runs_task_on_current_thread_callback : BoolCallback , # [doc = " May be called from any thread. The given task should be executed by the"] # [doc = " embedder on the thread associated with that task runner by calling"] # [doc = " `FlutterEngineRunTask` at the given target time. The system monotonic"] # [doc = " clock should be used for the target time. The target time is the absolute"] # [doc = " time from epoch (NOT a delta) at which the task must be returned back to"] # [doc = " the engine on the correct thread. If the embedder needs to calculate a"] # [doc = " delta, `FlutterEngineGetCurrentTime` may be called and the difference used"] # [doc = " as the delta."] # [doc = ""] # [doc = " @attention     This field is required."] pub post_task_callback : FlutterTaskRunnerPostTaskCallback , # [doc = " A unique identifier for the task runner. If multiple task runners service"] # [doc = " tasks on the same thread, their identifiers must match."] pub identifier : size_t , } # [test] fn bindgen_test_layout_FlutterTaskRunnerDescription () { assert_eq ! (:: std :: mem :: size_of :: < FlutterTaskRunnerDescription > () , 40usize , concat ! ("Size of: " , stringify ! (FlutterTaskRunnerDescription))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterTaskRunnerDescription > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterTaskRunnerDescription))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTaskRunnerDescription > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterTaskRunnerDescription) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTaskRunnerDescription > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterTaskRunnerDescription) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_runs_task_on_current_thread_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTaskRunnerDescription > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . runs_task_on_current_thread_callback) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterTaskRunnerDescription) , "::" , stringify ! (runs_task_on_current_thread_callback))) ; } test_field_runs_task_on_current_thread_callback () ; fn test_field_post_task_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTaskRunnerDescription > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . post_task_callback) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterTaskRunnerDescription) , "::" , stringify ! (post_task_callback))) ; } test_field_post_task_callback () ; fn test_field_identifier () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterTaskRunnerDescription > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . identifier) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterTaskRunnerDescription) , "::" , stringify ! (identifier))) ; } test_field_identifier () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterCustomTaskRunners { # [doc = " The size of this struct. Must be sizeof(FlutterCustomTaskRunners)."] pub struct_size : size_t , # [doc = " Specify the task runner for the thread on which the `FlutterEngineRun`"] # [doc = " call is made. The same task runner description can be specified for both"] # [doc = " the render and platform task runners. This makes the Flutter engine use"] # [doc = " the same thread for both task runners."] pub platform_task_runner : * const FlutterTaskRunnerDescription , # [doc = " Specify the task runner for the thread on which the render tasks will be"] # [doc = " run. The same task runner description can be specified for both the render"] # [doc = " and platform task runners. This makes the Flutter engine use the same"] # [doc = " thread for both task runners."] pub render_task_runner : * const FlutterTaskRunnerDescription , # [doc = " Specify a callback that is used to set the thread priority for embedder"] # [doc = " task runners."] pub thread_priority_setter : :: std :: option :: Option < unsafe extern "C" fn (arg1 : FlutterThreadPriority) > , } # [test] fn bindgen_test_layout_FlutterCustomTaskRunners () { assert_eq ! (:: std :: mem :: size_of :: < FlutterCustomTaskRunners > () , 32usize , concat ! ("Size of: " , stringify ! (FlutterCustomTaskRunners))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterCustomTaskRunners > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterCustomTaskRunners))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCustomTaskRunners > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterCustomTaskRunners) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_platform_task_runner () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCustomTaskRunners > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . platform_task_runner) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterCustomTaskRunners) , "::" , stringify ! (platform_task_runner))) ; } test_field_platform_task_runner () ; fn test_field_render_task_runner () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCustomTaskRunners > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . render_task_runner) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterCustomTaskRunners) , "::" , stringify ! (render_task_runner))) ; } test_field_render_task_runner () ; fn test_field_thread_priority_setter () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCustomTaskRunners > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . thread_priority_setter) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterCustomTaskRunners) , "::" , stringify ! (thread_priority_setter))) ; } test_field_thread_priority_setter () ; } # [repr (C)] # [derive (Copy , Clone)] pub struct FlutterOpenGLBackingStore { # [doc = " The type of the OpenGL backing store. Currently, it can either be a"] # [doc = " texture or a framebuffer."] pub type_ : FlutterOpenGLTargetType , pub __bindgen_anon_1 : FlutterOpenGLBackingStore__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union FlutterOpenGLBackingStore__bindgen_ty_1 { # [doc = " A texture for Flutter to render into."] pub texture : FlutterOpenGLTexture , # [doc = " A framebuffer for Flutter to render into. The embedder must ensure that"] # [doc = " the framebuffer is complete."] pub framebuffer : FlutterOpenGLFramebuffer , } # [test] fn bindgen_test_layout_FlutterOpenGLBackingStore__bindgen_ty_1 () { assert_eq ! (:: std :: mem :: size_of :: < FlutterOpenGLBackingStore__bindgen_ty_1 > () , 48usize , concat ! ("Size of: " , stringify ! (FlutterOpenGLBackingStore__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterOpenGLBackingStore__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterOpenGLBackingStore__bindgen_ty_1))) ; fn test_field_texture () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLBackingStore__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . texture) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLBackingStore__bindgen_ty_1) , "::" , stringify ! (texture))) ; } test_field_texture () ; fn test_field_framebuffer () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLBackingStore__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . framebuffer) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLBackingStore__bindgen_ty_1) , "::" , stringify ! (framebuffer))) ; } test_field_framebuffer () ; } # [test] fn bindgen_test_layout_FlutterOpenGLBackingStore () { assert_eq ! (:: std :: mem :: size_of :: < FlutterOpenGLBackingStore > () , 56usize , concat ! ("Size of: " , stringify ! (FlutterOpenGLBackingStore))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterOpenGLBackingStore > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterOpenGLBackingStore))) ; fn test_field_type () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterOpenGLBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . type_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterOpenGLBackingStore) , "::" , stringify ! (type_))) ; } test_field_type () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterSoftwareBackingStore { # [doc = " A pointer to the raw bytes of the allocation described by this software"] # [doc = " backing store."] pub allocation : * const :: std :: os :: raw :: c_void , # [doc = " The number of bytes in a single row of the allocation."] pub row_bytes : size_t , # [doc = " The number of rows in the allocation."] pub height : size_t , # [doc = " A baton that is not interpreted by the engine in any way. It will be given"] # [doc = " back to the embedder in the destruction callback below. Embedder resources"] # [doc = " may be associated with this baton."] pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " The callback invoked by the engine when it no longer needs this backing"] # [doc = " store."] pub destruction_callback : VoidCallback , } # [test] fn bindgen_test_layout_FlutterSoftwareBackingStore () { assert_eq ! (:: std :: mem :: size_of :: < FlutterSoftwareBackingStore > () , 40usize , concat ! ("Size of: " , stringify ! (FlutterSoftwareBackingStore))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterSoftwareBackingStore > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterSoftwareBackingStore))) ; fn test_field_allocation () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSoftwareBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . allocation) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterSoftwareBackingStore) , "::" , stringify ! (allocation))) ; } test_field_allocation () ; fn test_field_row_bytes () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSoftwareBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . row_bytes) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterSoftwareBackingStore) , "::" , stringify ! (row_bytes))) ; } test_field_row_bytes () ; fn test_field_height () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSoftwareBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . height) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterSoftwareBackingStore) , "::" , stringify ! (height))) ; } test_field_height () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSoftwareBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterSoftwareBackingStore) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_destruction_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterSoftwareBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . destruction_callback) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterSoftwareBackingStore) , "::" , stringify ! (destruction_callback))) ; } test_field_destruction_callback () ; } # [repr (C)] # [derive (Copy , Clone)] pub struct FlutterMetalBackingStore { # [doc = " The size of this struct. Must be sizeof(FlutterMetalBackingStore)."] pub struct_size : size_t , pub __bindgen_anon_1 : FlutterMetalBackingStore__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union FlutterMetalBackingStore__bindgen_ty_1 { pub texture : FlutterMetalTexture , } # [test] fn bindgen_test_layout_FlutterMetalBackingStore__bindgen_ty_1 () { assert_eq ! (:: std :: mem :: size_of :: < FlutterMetalBackingStore__bindgen_ty_1 > () , 40usize , concat ! ("Size of: " , stringify ! (FlutterMetalBackingStore__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterMetalBackingStore__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterMetalBackingStore__bindgen_ty_1))) ; fn test_field_texture () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalBackingStore__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . texture) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalBackingStore__bindgen_ty_1) , "::" , stringify ! (texture))) ; } test_field_texture () ; } # [test] fn bindgen_test_layout_FlutterMetalBackingStore () { assert_eq ! (:: std :: mem :: size_of :: < FlutterMetalBackingStore > () , 48usize , concat ! ("Size of: " , stringify ! (FlutterMetalBackingStore))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterMetalBackingStore > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterMetalBackingStore))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterMetalBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterMetalBackingStore) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterVulkanBackingStore { # [doc = " The size of this struct. Must be sizeof(FlutterVulkanBackingStore)."] pub struct_size : size_t , # [doc = " The image that the layer will be rendered to. This image must already be"] # [doc = " available for the engine to bind for writing when it's given to the engine"] # [doc = " via the backing store creation callback. The engine will perform a host"] # [doc = " sync for all layers prior to calling the compositor present callback, and"] # [doc = " so the written layer images can be freely bound by the embedder without"] # [doc = " any additional synchronization."] pub image : * const FlutterVulkanImage , # [doc = " A baton that is not interpreted by the engine in any way. It will be given"] # [doc = " back to the embedder in the destruction callback below. Embedder resources"] # [doc = " may be associated with this baton."] pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " The callback invoked by the engine when it no longer needs this backing"] # [doc = " store."] pub destruction_callback : VoidCallback , } # [test] fn bindgen_test_layout_FlutterVulkanBackingStore () { assert_eq ! (:: std :: mem :: size_of :: < FlutterVulkanBackingStore > () , 32usize , concat ! ("Size of: " , stringify ! (FlutterVulkanBackingStore))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterVulkanBackingStore > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterVulkanBackingStore))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanBackingStore) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_image () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . image) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanBackingStore) , "::" , stringify ! (image))) ; } test_field_image () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanBackingStore) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_destruction_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterVulkanBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . destruction_callback) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterVulkanBackingStore) , "::" , stringify ! (destruction_callback))) ; } test_field_destruction_callback () ; } # [doc = " Indicates that the Flutter application requested that an opacity be"] # [doc = " applied to the platform view."] pub const FlutterPlatformViewMutationType_kFlutterPlatformViewMutationTypeOpacity : FlutterPlatformViewMutationType = 0 ; # [doc = " Indicates that the Flutter application requested that the platform view be"] # [doc = " clipped using a rectangle."] pub const FlutterPlatformViewMutationType_kFlutterPlatformViewMutationTypeClipRect : FlutterPlatformViewMutationType = 1 ; # [doc = " Indicates that the Flutter application requested that the platform view be"] # [doc = " clipped using a rounded rectangle."] pub const FlutterPlatformViewMutationType_kFlutterPlatformViewMutationTypeClipRoundedRect : FlutterPlatformViewMutationType = 2 ; # [doc = " Indicates that the Flutter application requested that the platform view be"] # [doc = " transformed before composition."] pub const FlutterPlatformViewMutationType_kFlutterPlatformViewMutationTypeTransformation : FlutterPlatformViewMutationType = 3 ; pub type FlutterPlatformViewMutationType = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct FlutterPlatformViewMutation { # [doc = " The type of the mutation described by the subsequent union."] pub type_ : FlutterPlatformViewMutationType , pub __bindgen_anon_1 : FlutterPlatformViewMutation__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union FlutterPlatformViewMutation__bindgen_ty_1 { pub opacity : f64 , pub clip_rect : FlutterRect , pub clip_rounded_rect : FlutterRoundedRect , pub transformation : FlutterTransformation , } # [test] fn bindgen_test_layout_FlutterPlatformViewMutation__bindgen_ty_1 () { assert_eq ! (:: std :: mem :: size_of :: < FlutterPlatformViewMutation__bindgen_ty_1 > () , 96usize , concat ! ("Size of: " , stringify ! (FlutterPlatformViewMutation__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterPlatformViewMutation__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterPlatformViewMutation__bindgen_ty_1))) ; fn test_field_opacity () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformViewMutation__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . opacity) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformViewMutation__bindgen_ty_1) , "::" , stringify ! (opacity))) ; } test_field_opacity () ; fn test_field_clip_rect () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformViewMutation__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . clip_rect) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformViewMutation__bindgen_ty_1) , "::" , stringify ! (clip_rect))) ; } test_field_clip_rect () ; fn test_field_clip_rounded_rect () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformViewMutation__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . clip_rounded_rect) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformViewMutation__bindgen_ty_1) , "::" , stringify ! (clip_rounded_rect))) ; } test_field_clip_rounded_rect () ; fn test_field_transformation () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformViewMutation__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . transformation) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformViewMutation__bindgen_ty_1) , "::" , stringify ! (transformation))) ; } test_field_transformation () ; } # [test] fn bindgen_test_layout_FlutterPlatformViewMutation () { assert_eq ! (:: std :: mem :: size_of :: < FlutterPlatformViewMutation > () , 104usize , concat ! ("Size of: " , stringify ! (FlutterPlatformViewMutation))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterPlatformViewMutation > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterPlatformViewMutation))) ; fn test_field_type () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformViewMutation > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . type_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformViewMutation) , "::" , stringify ! (type_))) ; } test_field_type () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterPlatformView { # [doc = " The size of this struct. Must be sizeof(FlutterPlatformView)."] pub struct_size : size_t , # [doc = " The identifier of this platform view. This identifier is specified by the"] # [doc = " application when a platform view is added to the scene via the"] # [doc = " `SceneBuilder.addPlatformView` call."] pub identifier : FlutterPlatformViewIdentifier , # [doc = " The number of mutations to be applied to the platform view by the embedder"] # [doc = " before on-screen composition."] pub mutations_count : size_t , # [doc = " The mutations to be applied by this platform view before it is composited"] # [doc = " on-screen. The Flutter application may transform the platform view but"] # [doc = " these transformations cannot be affected by the Flutter compositor because"] # [doc = " it does not render platform views. Since the embedder is responsible for"] # [doc = " composition of these views, it is also the embedder's responsibility to"] # [doc = " affect the appropriate transformation."] # [doc = ""] # [doc = " The mutations must be applied in order. The mutations done in the"] # [doc = " collection don't take into account the device pixel ratio or the root"] # [doc = " surface transformation. If these exist, the first mutation in the list"] # [doc = " will be a transformation mutation to make sure subsequent mutations are in"] # [doc = " the correct coordinate space."] pub mutations : * mut * const FlutterPlatformViewMutation , } # [test] fn bindgen_test_layout_FlutterPlatformView () { assert_eq ! (:: std :: mem :: size_of :: < FlutterPlatformView > () , 32usize , concat ! ("Size of: " , stringify ! (FlutterPlatformView))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterPlatformView > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterPlatformView))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformView > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformView) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_identifier () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformView > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . identifier) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformView) , "::" , stringify ! (identifier))) ; } test_field_identifier () ; fn test_field_mutations_count () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformView > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . mutations_count) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformView) , "::" , stringify ! (mutations_count))) ; } test_field_mutations_count () ; fn test_field_mutations () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterPlatformView > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . mutations) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterPlatformView) , "::" , stringify ! (mutations))) ; } test_field_mutations () ; } # [doc = " Specifies an OpenGL backing store. Can either be an OpenGL texture or"] # [doc = " framebuffer."] pub const FlutterBackingStoreType_kFlutterBackingStoreTypeOpenGL : FlutterBackingStoreType = 0 ; # [doc = " Specified an software allocation for Flutter to render into using the CPU."] pub const FlutterBackingStoreType_kFlutterBackingStoreTypeSoftware : FlutterBackingStoreType = 1 ; # [doc = " Specifies a Metal backing store. This is backed by a Metal texture."] pub const FlutterBackingStoreType_kFlutterBackingStoreTypeMetal : FlutterBackingStoreType = 2 ; # [doc = " Specifies a Vulkan backing store. This is backed by a Vulkan VkImage."] pub const FlutterBackingStoreType_kFlutterBackingStoreTypeVulkan : FlutterBackingStoreType = 3 ; pub type FlutterBackingStoreType = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct FlutterBackingStore { # [doc = " The size of this struct. Must be sizeof(FlutterBackingStore)."] pub struct_size : size_t , # [doc = " A baton that is not interpreted by the engine in any way. The embedder may"] # [doc = " use this to associate resources that are tied to the lifecycle of the"] # [doc = " `FlutterBackingStore`."] pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " Specifies the type of backing store."] pub type_ : FlutterBackingStoreType , # [doc = " Indicates if this backing store was updated since the last time it was"] # [doc = " associated with a presented layer."] pub did_update : bool , pub __bindgen_anon_1 : FlutterBackingStore__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union FlutterBackingStore__bindgen_ty_1 { # [doc = " The description of the OpenGL backing store."] pub open_gl : FlutterOpenGLBackingStore , # [doc = " The description of the software backing store."] pub software : FlutterSoftwareBackingStore , pub metal : FlutterMetalBackingStore , pub vulkan : FlutterVulkanBackingStore , } # [test] fn bindgen_test_layout_FlutterBackingStore__bindgen_ty_1 () { assert_eq ! (:: std :: mem :: size_of :: < FlutterBackingStore__bindgen_ty_1 > () , 56usize , concat ! ("Size of: " , stringify ! (FlutterBackingStore__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterBackingStore__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterBackingStore__bindgen_ty_1))) ; fn test_field_open_gl () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStore__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . open_gl) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStore__bindgen_ty_1) , "::" , stringify ! (open_gl))) ; } test_field_open_gl () ; fn test_field_software () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStore__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . software) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStore__bindgen_ty_1) , "::" , stringify ! (software))) ; } test_field_software () ; fn test_field_metal () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStore__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . metal) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStore__bindgen_ty_1) , "::" , stringify ! (metal))) ; } test_field_metal () ; fn test_field_vulkan () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStore__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . vulkan) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStore__bindgen_ty_1) , "::" , stringify ! (vulkan))) ; } test_field_vulkan () ; } # [test] fn bindgen_test_layout_FlutterBackingStore () { assert_eq ! (:: std :: mem :: size_of :: < FlutterBackingStore > () , 80usize , concat ! ("Size of: " , stringify ! (FlutterBackingStore))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterBackingStore > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterBackingStore))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStore) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStore) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_type () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . type_) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStore) , "::" , stringify ! (type_))) ; } test_field_type () ; fn test_field_did_update () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStore > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . did_update) as usize - ptr as usize } , 20usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStore) , "::" , stringify ! (did_update))) ; } test_field_did_update () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterBackingStoreConfig { # [doc = " The size of this struct. Must be sizeof(FlutterBackingStoreConfig)."] pub struct_size : size_t , # [doc = " The size of the render target the engine expects to render into."] pub size : FlutterSize , } # [test] fn bindgen_test_layout_FlutterBackingStoreConfig () { assert_eq ! (:: std :: mem :: size_of :: < FlutterBackingStoreConfig > () , 24usize , concat ! ("Size of: " , stringify ! (FlutterBackingStoreConfig))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterBackingStoreConfig > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterBackingStoreConfig))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStoreConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStoreConfig) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterBackingStoreConfig > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterBackingStoreConfig) , "::" , stringify ! (size))) ; } test_field_size () ; } # [doc = " Indicates that the contents of this layer are rendered by Flutter into a"] # [doc = " backing store."] pub const FlutterLayerContentType_kFlutterLayerContentTypeBackingStore : FlutterLayerContentType = 0 ; # [doc = " Indicates that the contents of this layer are determined by the embedder."] pub const FlutterLayerContentType_kFlutterLayerContentTypePlatformView : FlutterLayerContentType = 1 ; pub type FlutterLayerContentType = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct FlutterLayer { # [doc = " This size of this struct. Must be sizeof(FlutterLayer)."] pub struct_size : size_t , # [doc = " Each layer displays contents in one way or another. The type indicates"] # [doc = " whether those contents are specified by Flutter or the embedder."] pub type_ : FlutterLayerContentType , pub __bindgen_anon_1 : FlutterLayer__bindgen_ty_1 , # [doc = " The offset of this layer (in physical pixels) relative to the top left of"] # [doc = " the root surface used by the engine."] pub offset : FlutterPoint , # [doc = " The size of the layer (in physical pixels)."] pub size : FlutterSize , } # [repr (C)] # [derive (Copy , Clone)] pub union FlutterLayer__bindgen_ty_1 { # [doc = " Indicates that the contents of this layer are rendered by Flutter into a"] # [doc = " backing store."] pub backing_store : * const FlutterBackingStore , # [doc = " Indicates that the contents of this layer are determined by the"] # [doc = " embedder."] pub platform_view : * const FlutterPlatformView , } # [test] fn bindgen_test_layout_FlutterLayer__bindgen_ty_1 () { assert_eq ! (:: std :: mem :: size_of :: < FlutterLayer__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (FlutterLayer__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterLayer__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterLayer__bindgen_ty_1))) ; fn test_field_backing_store () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLayer__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . backing_store) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterLayer__bindgen_ty_1) , "::" , stringify ! (backing_store))) ; } test_field_backing_store () ; fn test_field_platform_view () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLayer__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . platform_view) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterLayer__bindgen_ty_1) , "::" , stringify ! (platform_view))) ; } test_field_platform_view () ; } # [test] fn bindgen_test_layout_FlutterLayer () { assert_eq ! (:: std :: mem :: size_of :: < FlutterLayer > () , 56usize , concat ! ("Size of: " , stringify ! (FlutterLayer))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterLayer > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterLayer))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLayer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterLayer) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_type () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLayer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . type_) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterLayer) , "::" , stringify ! (type_))) ; } test_field_type () ; fn test_field_offset () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLayer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . offset) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterLayer) , "::" , stringify ! (offset))) ; } test_field_offset () ; fn test_field_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLayer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . size) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterLayer) , "::" , stringify ! (size))) ; } test_field_size () ; } pub type FlutterBackingStoreCreateCallback = :: std :: option :: Option < unsafe extern "C" fn (config : * const FlutterBackingStoreConfig , backing_store_out : * mut FlutterBackingStore , user_data : * mut :: std :: os :: raw :: c_void) -> bool > ; pub type FlutterBackingStoreCollectCallback = :: std :: option :: Option < unsafe extern "C" fn (renderer : * const FlutterBackingStore , user_data : * mut :: std :: os :: raw :: c_void) -> bool > ; pub type FlutterLayersPresentCallback = :: std :: option :: Option < unsafe extern "C" fn (layers : * mut * const FlutterLayer , layers_count : size_t , user_data : * mut :: std :: os :: raw :: c_void) -> bool > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterCompositor { # [doc = " This size of this struct. Must be sizeof(FlutterCompositor)."] pub struct_size : size_t , # [doc = " A baton that in not interpreted by the engine in any way. If it passed"] # [doc = " back to the embedder in `FlutterCompositor.create_backing_store_callback`,"] # [doc = " `FlutterCompositor.collect_backing_store_callback` and"] # [doc = " `FlutterCompositor.present_layers_callback`"] pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " A callback invoked by the engine to obtain a backing store for a specific"] # [doc = " `FlutterLayer`."] # [doc = ""] # [doc = " On ABI stability: Callers must take care to restrict access within"] # [doc = " `FlutterBackingStore::struct_size` when specifying a new backing store to"] # [doc = " the engine. This only matters if the embedder expects to be used with"] # [doc = " engines older than the version whose headers it used during compilation."] pub create_backing_store_callback : FlutterBackingStoreCreateCallback , # [doc = " A callback invoked by the engine to release the backing store. The"] # [doc = " embedder may collect any resources associated with the backing store."] pub collect_backing_store_callback : FlutterBackingStoreCollectCallback , # [doc = " Callback invoked by the engine to composite the contents of each layer"] # [doc = " onto the screen."] pub present_layers_callback : FlutterLayersPresentCallback , # [doc = " Avoid caching backing stores provided by this compositor."] pub avoid_backing_store_cache : bool , } # [test] fn bindgen_test_layout_FlutterCompositor () { assert_eq ! (:: std :: mem :: size_of :: < FlutterCompositor > () , 48usize , concat ! ("Size of: " , stringify ! (FlutterCompositor))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterCompositor > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterCompositor))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCompositor > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterCompositor) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCompositor > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterCompositor) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_create_backing_store_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCompositor > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . create_backing_store_callback) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterCompositor) , "::" , stringify ! (create_backing_store_callback))) ; } test_field_create_backing_store_callback () ; fn test_field_collect_backing_store_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCompositor > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . collect_backing_store_callback) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterCompositor) , "::" , stringify ! (collect_backing_store_callback))) ; } test_field_collect_backing_store_callback () ; fn test_field_present_layers_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCompositor > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . present_layers_callback) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterCompositor) , "::" , stringify ! (present_layers_callback))) ; } test_field_present_layers_callback () ; fn test_field_avoid_backing_store_cache () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterCompositor > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . avoid_backing_store_cache) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterCompositor) , "::" , stringify ! (avoid_backing_store_cache))) ; } test_field_avoid_backing_store_cache () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterLocale { # [doc = " This size of this struct. Must be sizeof(FlutterLocale)."] pub struct_size : size_t , # [doc = " The language code of the locale. For example, \"en\". This is a required"] # [doc = " field. The string must be null terminated. It may be collected after the"] # [doc = " call to `FlutterEngineUpdateLocales`."] pub language_code : * const :: std :: os :: raw :: c_char , # [doc = " The country code of the locale. For example, \"US\". This is a an optional"] # [doc = " field. The string must be null terminated if present. It may be collected"] # [doc = " after the call to `FlutterEngineUpdateLocales`. If not present, a"] # [doc = " `nullptr` may be specified."] pub country_code : * const :: std :: os :: raw :: c_char , # [doc = " The script code of the locale. This is a an optional field. The string"] # [doc = " must be null terminated if present. It may be collected after the call to"] # [doc = " `FlutterEngineUpdateLocales`. If not present, a `nullptr` may be"] # [doc = " specified."] pub script_code : * const :: std :: os :: raw :: c_char , # [doc = " The variant code of the locale. This is a an optional field. The string"] # [doc = " must be null terminated if present. It may be collected after the call to"] # [doc = " `FlutterEngineUpdateLocales`. If not present, a `nullptr` may be"] # [doc = " specified."] pub variant_code : * const :: std :: os :: raw :: c_char , } # [test] fn bindgen_test_layout_FlutterLocale () { assert_eq ! (:: std :: mem :: size_of :: < FlutterLocale > () , 40usize , concat ! ("Size of: " , stringify ! (FlutterLocale))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterLocale > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterLocale))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLocale > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterLocale) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_language_code () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLocale > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . language_code) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterLocale) , "::" , stringify ! (language_code))) ; } test_field_language_code () ; fn test_field_country_code () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLocale > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . country_code) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterLocale) , "::" , stringify ! (country_code))) ; } test_field_country_code () ; fn test_field_script_code () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLocale > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . script_code) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterLocale) , "::" , stringify ! (script_code))) ; } test_field_script_code () ; fn test_field_variant_code () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterLocale > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . variant_code) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterLocale) , "::" , stringify ! (variant_code))) ; } test_field_variant_code () ; } # [doc = " Callback that returns the system locale."] # [doc = ""] # [doc = " Embedders that implement this callback should return the `FlutterLocale`"] # [doc = " from the `supported_locales` list that most closely matches the"] # [doc = " user/device's preferred locale."] # [doc = ""] # [doc = " This callback does not currently provide the user_data baton."] # [doc = " https://github.com/flutter/flutter/issues/79826"] pub type FlutterComputePlatformResolvedLocaleCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * mut * const FlutterLocale , arg2 : size_t) -> * const FlutterLocale > ; # [doc = " Display refers to a graphics hardware system consisting of a framebuffer,"] # [doc = " typically a monitor or a screen. This ID is unique per display and is"] # [doc = " stable until the Flutter application restarts."] pub type FlutterEngineDisplayId = u64 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterEngineDisplay { # [doc = " This size of this struct. Must be sizeof(FlutterDisplay)."] pub struct_size : size_t , pub display_id : FlutterEngineDisplayId , # [doc = " This is set to true if the embedder only has one display. In cases where"] # [doc = " this is set to true, the value of display_id is ignored. In cases where"] # [doc = " this is not set to true, it is expected that a valid display_id be"] # [doc = " provided."] pub single_display : bool , # [doc = " This represents the refresh period in frames per second. This value may be"] # [doc = " zero if the device is not running or unavailable or unknown."] pub refresh_rate : f64 , } # [test] fn bindgen_test_layout_FlutterEngineDisplay () { assert_eq ! (:: std :: mem :: size_of :: < FlutterEngineDisplay > () , 32usize , concat ! ("Size of: " , stringify ! (FlutterEngineDisplay))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterEngineDisplay > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterEngineDisplay))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDisplay > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDisplay) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_display_id () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDisplay > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . display_id) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDisplay) , "::" , stringify ! (display_id))) ; } test_field_display_id () ; fn test_field_single_display () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDisplay > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . single_display) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDisplay) , "::" , stringify ! (single_display))) ; } test_field_single_display () ; fn test_field_refresh_rate () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDisplay > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . refresh_rate) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDisplay) , "::" , stringify ! (refresh_rate))) ; } test_field_refresh_rate () ; } # [doc = " `FlutterEngineDisplay`s that were active during start-up. A display is"] # [doc = " considered active if:"] # [doc = "    1. The frame buffer hardware is connected."] # [doc = "    2. The display is drawable, e.g. it isn't being mirrored from another"] # [doc = "    connected display or sleeping."] pub const FlutterEngineDisplaysUpdateType_kFlutterEngineDisplaysUpdateTypeStartup : FlutterEngineDisplaysUpdateType = 0 ; # [doc = " `FlutterEngineDisplay`s that were active during start-up. A display is"] # [doc = " considered active if:"] # [doc = "    1. The frame buffer hardware is connected."] # [doc = "    2. The display is drawable, e.g. it isn't being mirrored from another"] # [doc = "    connected display or sleeping."] pub const FlutterEngineDisplaysUpdateType_kFlutterEngineDisplaysUpdateTypeCount : FlutterEngineDisplaysUpdateType = 1 ; # [doc = " The update type parameter that is passed to"] # [doc = " `FlutterEngineNotifyDisplayUpdate`."] pub type FlutterEngineDisplaysUpdateType = :: std :: os :: raw :: c_uint ; pub type FlutterEngineDartPort = i64 ; pub const FlutterEngineDartObjectType_kFlutterEngineDartObjectTypeNull : FlutterEngineDartObjectType = 0 ; pub const FlutterEngineDartObjectType_kFlutterEngineDartObjectTypeBool : FlutterEngineDartObjectType = 1 ; pub const FlutterEngineDartObjectType_kFlutterEngineDartObjectTypeInt32 : FlutterEngineDartObjectType = 2 ; pub const FlutterEngineDartObjectType_kFlutterEngineDartObjectTypeInt64 : FlutterEngineDartObjectType = 3 ; pub const FlutterEngineDartObjectType_kFlutterEngineDartObjectTypeDouble : FlutterEngineDartObjectType = 4 ; pub const FlutterEngineDartObjectType_kFlutterEngineDartObjectTypeString : FlutterEngineDartObjectType = 5 ; # [doc = " The object will be made available to Dart code as an instance of"] # [doc = " Uint8List."] pub const FlutterEngineDartObjectType_kFlutterEngineDartObjectTypeBuffer : FlutterEngineDartObjectType = 6 ; pub type FlutterEngineDartObjectType = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterEngineDartBuffer { # [doc = " The size of this struct. Must be sizeof(FlutterEngineDartBuffer)."] pub struct_size : size_t , # [doc = " An opaque baton passed back to the embedder when the"] # [doc = " buffer_collect_callback is invoked. The engine does not interpret this"] # [doc = " field in any way."] pub user_data : * mut :: std :: os :: raw :: c_void , # [doc = " This is an optional field."] # [doc = ""] # [doc = " When specified, the engine will assume that the buffer is owned by the"] # [doc = " embedder. When the data is no longer needed by any isolate, this callback"] # [doc = " will be made on an internal engine managed thread. The embedder is free to"] # [doc = " collect the buffer here. When this field is specified, it is the embedders"] # [doc = " responsibility to keep the buffer alive and not modify it till this"] # [doc = " callback is invoked by the engine. The user data specified in the callback"] # [doc = " is the value of `user_data` field in this struct."] # [doc = ""] # [doc = " When NOT specified, the VM creates an internal copy of the buffer. The"] # [doc = " caller is free to modify the buffer as necessary or collect it immediately"] # [doc = " after the call to `FlutterEnginePostDartObject`."] # [doc = ""] # [doc = " @attention      The buffer_collect_callback is will only be invoked by the"] # [doc = "                 engine when the `FlutterEnginePostDartObject` method"] # [doc = "                 returns kSuccess. In case of non-successful calls to this"] # [doc = "                 method, it is the embedders responsibility to collect the"] # [doc = "                 buffer."] pub buffer_collect_callback : VoidCallback , # [doc = " A pointer to the bytes of the buffer. When the buffer is owned by the"] # [doc = " embedder (by specifying the `buffer_collect_callback`), Dart code may"] # [doc = " modify that embedder owned buffer. For this reason, it is important that"] # [doc = " this buffer not have page protections that restrict writing to this"] # [doc = " buffer."] pub buffer : * mut u8 , # [doc = " The size of the buffer."] pub buffer_size : size_t , } # [test] fn bindgen_test_layout_FlutterEngineDartBuffer () { assert_eq ! (:: std :: mem :: size_of :: < FlutterEngineDartBuffer > () , 40usize , concat ! ("Size of: " , stringify ! (FlutterEngineDartBuffer))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterEngineDartBuffer > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterEngineDartBuffer))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartBuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartBuffer) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_user_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartBuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . user_data) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartBuffer) , "::" , stringify ! (user_data))) ; } test_field_user_data () ; fn test_field_buffer_collect_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartBuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . buffer_collect_callback) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartBuffer) , "::" , stringify ! (buffer_collect_callback))) ; } test_field_buffer_collect_callback () ; fn test_field_buffer () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartBuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . buffer) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartBuffer) , "::" , stringify ! (buffer))) ; } test_field_buffer () ; fn test_field_buffer_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartBuffer > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . buffer_size) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartBuffer) , "::" , stringify ! (buffer_size))) ; } test_field_buffer_size () ; } # [doc = " This struct specifies the native representation of a Dart object that can be"] # [doc = " sent via a send port to any isolate in the VM that has the corresponding"] # [doc = " receive port."] # [doc = ""] # [doc = " All fields in this struct are copied out in the call to"] # [doc = " `FlutterEnginePostDartObject` and the caller is free to reuse or collect"] # [doc = " this struct after that call."] # [repr (C)] # [derive (Copy , Clone)] pub struct FlutterEngineDartObject { pub type_ : FlutterEngineDartObjectType , pub __bindgen_anon_1 : FlutterEngineDartObject__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union FlutterEngineDartObject__bindgen_ty_1 { pub bool_value : bool , pub int32_value : i32 , pub int64_value : i64 , pub double_value : f64 , # [doc = " A null terminated string. This string will be copied by the VM in the"] # [doc = " call to `FlutterEnginePostDartObject` and must be collected by the"] # [doc = " embedder after that call is made."] pub string_value : * const :: std :: os :: raw :: c_char , pub buffer_value : * const FlutterEngineDartBuffer , } # [test] fn bindgen_test_layout_FlutterEngineDartObject__bindgen_ty_1 () { assert_eq ! (:: std :: mem :: size_of :: < FlutterEngineDartObject__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (FlutterEngineDartObject__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterEngineDartObject__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterEngineDartObject__bindgen_ty_1))) ; fn test_field_bool_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartObject__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . bool_value) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartObject__bindgen_ty_1) , "::" , stringify ! (bool_value))) ; } test_field_bool_value () ; fn test_field_int32_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartObject__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . int32_value) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartObject__bindgen_ty_1) , "::" , stringify ! (int32_value))) ; } test_field_int32_value () ; fn test_field_int64_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartObject__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . int64_value) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartObject__bindgen_ty_1) , "::" , stringify ! (int64_value))) ; } test_field_int64_value () ; fn test_field_double_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartObject__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . double_value) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartObject__bindgen_ty_1) , "::" , stringify ! (double_value))) ; } test_field_double_value () ; fn test_field_string_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartObject__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . string_value) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartObject__bindgen_ty_1) , "::" , stringify ! (string_value))) ; } test_field_string_value () ; fn test_field_buffer_value () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartObject__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . buffer_value) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartObject__bindgen_ty_1) , "::" , stringify ! (buffer_value))) ; } test_field_buffer_value () ; } # [test] fn bindgen_test_layout_FlutterEngineDartObject () { assert_eq ! (:: std :: mem :: size_of :: < FlutterEngineDartObject > () , 16usize , concat ! ("Size of: " , stringify ! (FlutterEngineDartObject))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterEngineDartObject > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterEngineDartObject))) ; fn test_field_type () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineDartObject > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . type_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineDartObject) , "::" , stringify ! (type_))) ; } test_field_type () ; } # [doc = " The Flutter Engine considers the thread on which the FlutterEngineRun call"] # [doc = " is made to be the platform thread. There is only one such thread per"] # [doc = " engine instance."] pub const FlutterNativeThreadType_kFlutterNativeThreadTypePlatform : FlutterNativeThreadType = 0 ; # [doc = " This is the thread the Flutter Engine uses to execute rendering commands"] # [doc = " based on the selected client rendering API. There is only one such thread"] # [doc = " per engine instance."] pub const FlutterNativeThreadType_kFlutterNativeThreadTypeRender : FlutterNativeThreadType = 1 ; # [doc = " This is a dedicated thread on which the root Dart isolate is serviced."] # [doc = " There is only one such thread per engine instance."] pub const FlutterNativeThreadType_kFlutterNativeThreadTypeUI : FlutterNativeThreadType = 2 ; # [doc = " Multiple threads are used by the Flutter engine to perform long running"] # [doc = " background tasks."] pub const FlutterNativeThreadType_kFlutterNativeThreadTypeWorker : FlutterNativeThreadType = 3 ; # [doc = " This enum allows embedders to determine the type of the engine thread in the"] # [doc = " FlutterNativeThreadCallback. Based on the thread type, the embedder may be"] # [doc = " able to tweak the thread priorities for optimum performance."] pub type FlutterNativeThreadType = :: std :: os :: raw :: c_uint ; # [doc = " A callback made by the engine in response to"] # [doc = " `FlutterEnginePostCallbackOnAllNativeThreads` on all internal thread."] pub type FlutterNativeThreadCallback = :: std :: option :: Option < unsafe extern "C" fn (type_ : FlutterNativeThreadType , user_data : * mut :: std :: os :: raw :: c_void) > ; pub const FlutterEngineAOTDataSourceType_kFlutterEngineAOTDataSourceTypeElfPath : FlutterEngineAOTDataSourceType = 0 ; # [doc = " AOT data source type."] pub type FlutterEngineAOTDataSourceType = :: std :: os :: raw :: c_uint ; # [doc = " This struct specifies one of the various locations the engine can look for"] # [doc = " AOT data sources."] # [repr (C)] # [derive (Copy , Clone)] pub struct FlutterEngineAOTDataSource { pub type_ : FlutterEngineAOTDataSourceType , pub __bindgen_anon_1 : FlutterEngineAOTDataSource__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union FlutterEngineAOTDataSource__bindgen_ty_1 { # [doc = " Absolute path to an ELF library file."] pub elf_path : * const :: std :: os :: raw :: c_char , } # [test] fn bindgen_test_layout_FlutterEngineAOTDataSource__bindgen_ty_1 () { assert_eq ! (:: std :: mem :: size_of :: < FlutterEngineAOTDataSource__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (FlutterEngineAOTDataSource__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterEngineAOTDataSource__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterEngineAOTDataSource__bindgen_ty_1))) ; fn test_field_elf_path () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineAOTDataSource__bindgen_ty_1 > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . elf_path) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineAOTDataSource__bindgen_ty_1) , "::" , stringify ! (elf_path))) ; } test_field_elf_path () ; } # [test] fn bindgen_test_layout_FlutterEngineAOTDataSource () { assert_eq ! (:: std :: mem :: size_of :: < FlutterEngineAOTDataSource > () , 16usize , concat ! ("Size of: " , stringify ! (FlutterEngineAOTDataSource))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterEngineAOTDataSource > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterEngineAOTDataSource))) ; fn test_field_type () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineAOTDataSource > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . type_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineAOTDataSource) , "::" , stringify ! (type_))) ; } test_field_type () ; } pub type FlutterLogMessageCallback = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_char , arg2 : * const :: std :: os :: raw :: c_char , arg3 : * mut :: std :: os :: raw :: c_void) > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _FlutterEngineAOTData { _unused : [u8 ; 0] , } # [doc = " An opaque object that describes the AOT data that can be used to launch a"] # [doc = " FlutterEngine instance in AOT mode."] pub type FlutterEngineAOTData = * mut _FlutterEngineAOTData ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterProjectArgs { # [doc = " The size of this struct. Must be sizeof(FlutterProjectArgs)."] pub struct_size : size_t , # [doc = " The path to the Flutter assets directory containing project assets. The"] # [doc = " string can be collected after the call to `FlutterEngineRun` returns. The"] # [doc = " string must be NULL terminated."] pub assets_path : * const :: std :: os :: raw :: c_char , # [doc = " The path to the Dart file containing the `main` entry point."] # [doc = " The string can be collected after the call to `FlutterEngineRun` returns."] # [doc = " The string must be NULL terminated."] # [doc = ""] # [doc = " @deprecated     As of Dart 2, running from Dart source is no longer"] # [doc = "                 supported. Dart code should now be compiled to kernel form"] # [doc = "                 and will be loaded by from `kernel_blob.bin` in the assets"] # [doc = "                 directory. This struct member is retained for ABI"] # [doc = "                 stability."] pub main_path__unused__ : * const :: std :: os :: raw :: c_char , # [doc = " The path to the `.packages` file for the project. The string can be"] # [doc = " collected after the call to `FlutterEngineRun` returns. The string must be"] # [doc = " NULL terminated."] # [doc = ""] # [doc = " @deprecated    As of Dart 2, running from Dart source is no longer"] # [doc = "                supported. Dart code should now be compiled to kernel form"] # [doc = "                and will be loaded by from `kernel_blob.bin` in the assets"] # [doc = "                directory. This struct member is retained for ABI"] # [doc = "                stability."] pub packages_path__unused__ : * const :: std :: os :: raw :: c_char , # [doc = " The path to the `icudtl.dat` file for the project. The string can be"] # [doc = " collected after the call to `FlutterEngineRun` returns. The string must"] # [doc = " be NULL terminated."] pub icu_data_path : * const :: std :: os :: raw :: c_char , # [doc = " The command line argument count used to initialize the project."] pub command_line_argc : :: std :: os :: raw :: c_int , # [doc = " The command line arguments used to initialize the project. The strings can"] # [doc = " be collected after the call to `FlutterEngineRun` returns. The strings"] # [doc = " must be `NULL` terminated."] # [doc = ""] # [doc = " @attention     The first item in the command line (if specified at all) is"] # [doc = "                interpreted as the executable name. So if an engine flag"] # [doc = "                needs to be passed into the same, it needs to not be the"] # [doc = "                very first item in the list."] # [doc = ""] # [doc = " The set of engine flags are only meant to control"] # [doc = " unstable features in the engine. Deployed applications should not pass any"] # [doc = " command line arguments at all as they may affect engine stability at"] # [doc = " runtime in the presence of un-sanitized input. The list of currently"] # [doc = " recognized engine flags and their descriptions can be retrieved from the"] # [doc = " `switches.h` engine source file."] pub command_line_argv : * const * const :: std :: os :: raw :: c_char , # [doc = " The callback invoked by the engine in order to give the embedder the"] # [doc = " chance to respond to platform messages from the Dart application."] # [doc = " The callback will be invoked on the thread on which the `FlutterEngineRun`"] # [doc = " call is made. The second parameter, `user_data`, is supplied when"] # [doc = " `FlutterEngineRun` or `FlutterEngineInitialize` is called."] pub platform_message_callback : FlutterPlatformMessageCallback , # [doc = " The VM snapshot data buffer used in AOT operation. This buffer must be"] # [doc = " mapped in as read-only. For more information refer to the documentation on"] # [doc = " the Wiki at"] # [doc = " https://github.com/flutter/flutter/wiki/Flutter-engine-operation-in-AOT-Mode"] pub vm_snapshot_data : * const u8 , # [doc = " The size of the VM snapshot data buffer.  If vm_snapshot_data is a symbol"] # [doc = " reference, 0 may be passed here."] pub vm_snapshot_data_size : size_t , # [doc = " The VM snapshot instructions buffer used in AOT operation. This buffer"] # [doc = " must be mapped in as read-execute. For more information refer to the"] # [doc = " documentation on the Wiki at"] # [doc = " https://github.com/flutter/flutter/wiki/Flutter-engine-operation-in-AOT-Mode"] pub vm_snapshot_instructions : * const u8 , # [doc = " The size of the VM snapshot instructions buffer. If"] # [doc = " vm_snapshot_instructions is a symbol reference, 0 may be passed here."] pub vm_snapshot_instructions_size : size_t , # [doc = " The isolate snapshot data buffer used in AOT operation. This buffer must"] # [doc = " be mapped in as read-only. For more information refer to the documentation"] # [doc = " on the Wiki at"] # [doc = " https://github.com/flutter/flutter/wiki/Flutter-engine-operation-in-AOT-Mode"] pub isolate_snapshot_data : * const u8 , # [doc = " The size of the isolate snapshot data buffer.  If isolate_snapshot_data is"] # [doc = " a symbol reference, 0 may be passed here."] pub isolate_snapshot_data_size : size_t , # [doc = " The isolate snapshot instructions buffer used in AOT operation. This"] # [doc = " buffer must be mapped in as read-execute. For more information refer to"] # [doc = " the documentation on the Wiki at"] # [doc = " https://github.com/flutter/flutter/wiki/Flutter-engine-operation-in-AOT-Mode"] pub isolate_snapshot_instructions : * const u8 , # [doc = " The size of the isolate snapshot instructions buffer. If"] # [doc = " isolate_snapshot_instructions is a symbol reference, 0 may be passed here."] pub isolate_snapshot_instructions_size : size_t , # [doc = " The callback invoked by the engine in root isolate scope. Called"] # [doc = " immediately after the root isolate has been created and marked runnable."] pub root_isolate_create_callback : VoidCallback , # [doc = " The callback invoked by the engine in order to give the embedder the"] # [doc = " chance to respond to semantics node updates from the Dart application."] # [doc = " Semantics node updates are sent in batches terminated by a 'batch end'"] # [doc = " callback that is passed a sentinel `FlutterSemanticsNode` whose `id` field"] # [doc = " has the value `kFlutterSemanticsNodeIdBatchEnd`."] # [doc = ""] # [doc = " The callback will be invoked on the thread on which the `FlutterEngineRun`"] # [doc = " call is made."] pub update_semantics_node_callback : FlutterUpdateSemanticsNodeCallback , # [doc = " The callback invoked by the engine in order to give the embedder the"] # [doc = " chance to respond to updates to semantics custom actions from the Dart"] # [doc = " application.  Custom action updates are sent in batches terminated by a"] # [doc = " 'batch end' callback that is passed a sentinel"] # [doc = " `FlutterSemanticsCustomAction` whose `id` field has the value"] # [doc = " `kFlutterSemanticsCustomActionIdBatchEnd`."] # [doc = ""] # [doc = " The callback will be invoked on the thread on which the `FlutterEngineRun`"] # [doc = " call is made."] pub update_semantics_custom_action_callback : FlutterUpdateSemanticsCustomActionCallback , # [doc = " Path to a directory used to store data that is cached across runs of a"] # [doc = " Flutter application (such as compiled shader programs used by Skia)."] # [doc = " This is optional.  The string must be NULL terminated."] # [doc = ""] pub persistent_cache_path : * const :: std :: os :: raw :: c_char , # [doc = " If true, the engine would only read the existing cache, but not write new"] # [doc = " ones."] pub is_persistent_cache_read_only : bool , # [doc = " A callback that gets invoked by the engine when it attempts to wait for a"] # [doc = " platform vsync event. The engine will give the platform a baton that needs"] # [doc = " to be returned back to the engine via `FlutterEngineOnVsync`. All batons"] # [doc = " must be retured to the engine before initializing a"] # [doc = " `FlutterEngineShutdown`. Not doing the same will result in a memory leak."] # [doc = " While the call to `FlutterEngineOnVsync` must occur on the thread that"] # [doc = " made the call to `FlutterEngineRun`, the engine will make this callback on"] # [doc = " an internal engine-managed thread. If the components accessed on the"] # [doc = " embedder are not thread safe, the appropriate re-threading must be done."] pub vsync_callback : VsyncCallback , # [doc = " The name of a custom Dart entrypoint. This is optional and specifying a"] # [doc = " null or empty entrypoint makes the engine look for a method named \"main\""] # [doc = " in the root library of the application."] # [doc = ""] # [doc = " Care must be taken to ensure that the custom entrypoint is not tree-shaken"] # [doc = " away. Usually, this is done using the `@pragma('vm:entry-point')`"] # [doc = " decoration."] pub custom_dart_entrypoint : * const :: std :: os :: raw :: c_char , # [doc = " Typically the Flutter engine create and manages its internal threads. This"] # [doc = " optional argument allows for the specification of task runner interfaces"] # [doc = " to event loops managed by the embedder on threads it creates."] pub custom_task_runners : * const FlutterCustomTaskRunners , # [doc = " All `FlutterEngine` instances in the process share the same Dart VM. When"] # [doc = " the first engine is launched, it starts the Dart VM as well. It used to be"] # [doc = " the case that it was not possible to shutdown the Dart VM cleanly and"] # [doc = " start it back up in the process in a safe manner. This issue has since"] # [doc = " been patched. Unfortunately, applications already began to make use of the"] # [doc = " fact that shutting down the Flutter engine instance left a running VM in"] # [doc = " the process. Since a Flutter engine could be launched on any thread,"] # [doc = " applications would \"warm up\" the VM on another thread by launching"] # [doc = " an engine with no isolates and then shutting it down immediately. The main"] # [doc = " Flutter application could then be started on the main thread without"] # [doc = " having to incur the Dart VM startup costs at that time. With the new"] # [doc = " behavior, this \"optimization\" immediately becomes massive performance"] # [doc = " pessimization as the VM would be started up in the \"warm up\" phase, shut"] # [doc = " down there and then started again on the main thread. Changing this"] # [doc = " behavior was deemed to be an unacceptable breaking change. Embedders that"] # [doc = " wish to shutdown the Dart VM when the last engine is terminated in the"] # [doc = " process should opt into this behavior by setting this flag to true."] pub shutdown_dart_vm_when_done : bool , # [doc = " Typically, Flutter renders the layer hierarchy into a single root surface."] # [doc = " However, when embedders need to interleave their own contents within the"] # [doc = " Flutter layer hierarchy, their applications can push platform views within"] # [doc = " the Flutter scene. This is done using the `SceneBuilder.addPlatformView`"] # [doc = " call. When this happens, the Flutter rasterizer divides the effective view"] # [doc = " hierarchy into multiple layers. Each layer gets its own backing store and"] # [doc = " Flutter renders into the same. Once the layers contents have been"] # [doc = " fulfilled, the embedder is asked to composite these layers on-screen. At"] # [doc = " this point, it can interleave its own contents within the effective"] # [doc = " hierarchy. The interface for the specification of these layer backing"] # [doc = " stores and the hooks to listen for the composition of layers on-screen can"] # [doc = " be controlled using this field. This field is completely optional. In its"] # [doc = " absence, platforms views in the scene are ignored and Flutter renders to"] # [doc = " the root surface as normal."] pub compositor : * const FlutterCompositor , # [doc = " Max size of the old gen heap for the Dart VM in MB, or 0 for unlimited, -1"] # [doc = " for default value."] # [doc = ""] # [doc = " See also:"] # [doc = " https://github.com/dart-lang/sdk/blob/ca64509108b3e7219c50d6c52877c85ab6a35ff2/runtime/vm/flag_list.h#L150"] pub dart_old_gen_heap_size : i64 , # [doc = " The AOT data to be used in AOT operation."] # [doc = ""] # [doc = " Embedders should instantiate and destroy this object via the"] # [doc = " FlutterEngineCreateAOTData and FlutterEngineCollectAOTData methods."] # [doc = ""] # [doc = " Embedders can provide either snapshot buffers or aot_data, but not both."] pub aot_data : FlutterEngineAOTData , # [doc = " A callback that computes the locale the platform would natively resolve"] # [doc = " to."] # [doc = ""] # [doc = " The input parameter is an array of FlutterLocales which represent the"] # [doc = " locales supported by the app. One of the input supported locales should"] # [doc = " be selected and returned to best match with the user/device's preferred"] # [doc = " locale. The implementation should produce a result that as closely"] # [doc = " matches what the platform would natively resolve to as possible."] pub compute_platform_resolved_locale_callback : FlutterComputePlatformResolvedLocaleCallback , # [doc = " The command line argument count for arguments passed through to the Dart"] # [doc = " entrypoint."] pub dart_entrypoint_argc : :: std :: os :: raw :: c_int , # [doc = " The command line arguments passed through to the Dart entrypoint. The"] # [doc = " strings must be `NULL` terminated."] # [doc = ""] # [doc = " The strings will be copied out and so any strings passed in here can"] # [doc = " be safely collected after initializing the engine with"] # [doc = " `FlutterProjectArgs`."] pub dart_entrypoint_argv : * const * const :: std :: os :: raw :: c_char , pub log_message_callback : FlutterLogMessageCallback , pub log_tag : * const :: std :: os :: raw :: c_char , pub on_pre_engine_restart_callback : OnPreEngineRestartCallback , } # [test] fn bindgen_test_layout_FlutterProjectArgs () { assert_eq ! (:: std :: mem :: size_of :: < FlutterProjectArgs > () , 272usize , concat ! ("Size of: " , stringify ! (FlutterProjectArgs))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterProjectArgs > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterProjectArgs))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_assets_path () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . assets_path) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (assets_path))) ; } test_field_assets_path () ; fn test_field_main_path__unused__ () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . main_path__unused__) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (main_path__unused__))) ; } test_field_main_path__unused__ () ; fn test_field_packages_path__unused__ () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . packages_path__unused__) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (packages_path__unused__))) ; } test_field_packages_path__unused__ () ; fn test_field_icu_data_path () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . icu_data_path) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (icu_data_path))) ; } test_field_icu_data_path () ; fn test_field_command_line_argc () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . command_line_argc) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (command_line_argc))) ; } test_field_command_line_argc () ; fn test_field_command_line_argv () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . command_line_argv) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (command_line_argv))) ; } test_field_command_line_argv () ; fn test_field_platform_message_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . platform_message_callback) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (platform_message_callback))) ; } test_field_platform_message_callback () ; fn test_field_vm_snapshot_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . vm_snapshot_data) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (vm_snapshot_data))) ; } test_field_vm_snapshot_data () ; fn test_field_vm_snapshot_data_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . vm_snapshot_data_size) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (vm_snapshot_data_size))) ; } test_field_vm_snapshot_data_size () ; fn test_field_vm_snapshot_instructions () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . vm_snapshot_instructions) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (vm_snapshot_instructions))) ; } test_field_vm_snapshot_instructions () ; fn test_field_vm_snapshot_instructions_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . vm_snapshot_instructions_size) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (vm_snapshot_instructions_size))) ; } test_field_vm_snapshot_instructions_size () ; fn test_field_isolate_snapshot_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . isolate_snapshot_data) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (isolate_snapshot_data))) ; } test_field_isolate_snapshot_data () ; fn test_field_isolate_snapshot_data_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . isolate_snapshot_data_size) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (isolate_snapshot_data_size))) ; } test_field_isolate_snapshot_data_size () ; fn test_field_isolate_snapshot_instructions () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . isolate_snapshot_instructions) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (isolate_snapshot_instructions))) ; } test_field_isolate_snapshot_instructions () ; fn test_field_isolate_snapshot_instructions_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . isolate_snapshot_instructions_size) as usize - ptr as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (isolate_snapshot_instructions_size))) ; } test_field_isolate_snapshot_instructions_size () ; fn test_field_root_isolate_create_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . root_isolate_create_callback) as usize - ptr as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (root_isolate_create_callback))) ; } test_field_root_isolate_create_callback () ; fn test_field_update_semantics_node_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . update_semantics_node_callback) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (update_semantics_node_callback))) ; } test_field_update_semantics_node_callback () ; fn test_field_update_semantics_custom_action_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . update_semantics_custom_action_callback) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (update_semantics_custom_action_callback))) ; } test_field_update_semantics_custom_action_callback () ; fn test_field_persistent_cache_path () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . persistent_cache_path) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (persistent_cache_path))) ; } test_field_persistent_cache_path () ; fn test_field_is_persistent_cache_read_only () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . is_persistent_cache_read_only) as usize - ptr as usize } , 160usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (is_persistent_cache_read_only))) ; } test_field_is_persistent_cache_read_only () ; fn test_field_vsync_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . vsync_callback) as usize - ptr as usize } , 168usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (vsync_callback))) ; } test_field_vsync_callback () ; fn test_field_custom_dart_entrypoint () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . custom_dart_entrypoint) as usize - ptr as usize } , 176usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (custom_dart_entrypoint))) ; } test_field_custom_dart_entrypoint () ; fn test_field_custom_task_runners () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . custom_task_runners) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (custom_task_runners))) ; } test_field_custom_task_runners () ; fn test_field_shutdown_dart_vm_when_done () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . shutdown_dart_vm_when_done) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (shutdown_dart_vm_when_done))) ; } test_field_shutdown_dart_vm_when_done () ; fn test_field_compositor () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . compositor) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (compositor))) ; } test_field_compositor () ; fn test_field_dart_old_gen_heap_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . dart_old_gen_heap_size) as usize - ptr as usize } , 208usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (dart_old_gen_heap_size))) ; } test_field_dart_old_gen_heap_size () ; fn test_field_aot_data () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . aot_data) as usize - ptr as usize } , 216usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (aot_data))) ; } test_field_aot_data () ; fn test_field_compute_platform_resolved_locale_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . compute_platform_resolved_locale_callback) as usize - ptr as usize } , 224usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (compute_platform_resolved_locale_callback))) ; } test_field_compute_platform_resolved_locale_callback () ; fn test_field_dart_entrypoint_argc () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . dart_entrypoint_argc) as usize - ptr as usize } , 232usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (dart_entrypoint_argc))) ; } test_field_dart_entrypoint_argc () ; fn test_field_dart_entrypoint_argv () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . dart_entrypoint_argv) as usize - ptr as usize } , 240usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (dart_entrypoint_argv))) ; } test_field_dart_entrypoint_argv () ; fn test_field_log_message_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . log_message_callback) as usize - ptr as usize } , 248usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (log_message_callback))) ; } test_field_log_message_callback () ; fn test_field_log_tag () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . log_tag) as usize - ptr as usize } , 256usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (log_tag))) ; } test_field_log_tag () ; fn test_field_on_pre_engine_restart_callback () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterProjectArgs > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . on_pre_engine_restart_callback) as usize - ptr as usize } , 264usize , concat ! ("Offset of field: " , stringify ! (FlutterProjectArgs) , "::" , stringify ! (on_pre_engine_restart_callback))) ; } test_field_on_pre_engine_restart_callback () ; } extern "C" { # [doc = " @brief      Creates the necessary data structures to launch a Flutter Dart"] # [doc = "             application in AOT mode. The data may only be collected after"] # [doc = "             all FlutterEngine instances launched using this data have been"] # [doc = "             terminated."] # [doc = ""] # [doc = " @param[in]  source    The source of the AOT data."] # [doc = " @param[out] data_out  The AOT data on success. Unchanged on failure."] # [doc = ""] # [doc = " @return     Returns if the AOT data could be successfully resolved."] # [doc = ""] pub fn FlutterEngineCreateAOTData (source : * const FlutterEngineAOTDataSource , data_out : * mut FlutterEngineAOTData) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Collects the AOT data."] # [doc = ""] # [doc = " @warning    The embedder must ensure that this call is made only after all"] # [doc = "             FlutterEngine instances launched using this data have been"] # [doc = "             terminated, and that all of those instances were launched with"] # [doc = "             the FlutterProjectArgs::shutdown_dart_vm_when_done flag set to"] # [doc = "             true."] # [doc = ""] # [doc = " @param[in]  data   The data to collect."] # [doc = ""] # [doc = " @return     Returns if the AOT data was successfully collected."] # [doc = ""] pub fn FlutterEngineCollectAOTData (data : FlutterEngineAOTData) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Initialize and run a Flutter engine instance and return a handle"] # [doc = "             to it. This is a convenience method for the pair of calls to"] # [doc = "             `FlutterEngineInitialize` and `FlutterEngineRunInitialized`."] # [doc = ""] # [doc = " @note       This method of running a Flutter engine works well except in"] # [doc = "             cases where the embedder specifies custom task runners via"] # [doc = "             `FlutterProjectArgs::custom_task_runners`. In such cases, the"] # [doc = "             engine may need the embedder to post tasks back to it before"] # [doc = "             `FlutterEngineRun` has returned. Embedders can only post tasks"] # [doc = "             to the engine if they have a handle to the engine. In such"] # [doc = "             cases, embedders are advised to get the engine handle via the"] # [doc = "             `FlutterInitializeCall`. Then they can call"] # [doc = "             `FlutterEngineRunInitialized` knowing that they will be able to"] # [doc = "             service custom tasks on other threads with the engine handle."] # [doc = ""] # [doc = " @param[in]  version    The Flutter embedder API version. Must be"] # [doc = "                        FLUTTER_ENGINE_VERSION."] # [doc = " @param[in]  config     The renderer configuration."] # [doc = " @param[in]  args       The Flutter project arguments."] # [doc = " @param      user_data  A user data baton passed back to embedders in"] # [doc = "                        callbacks."] # [doc = " @param[out] engine_out The engine handle on successful engine creation."] # [doc = ""] # [doc = " @return     The result of the call to run the Flutter engine."] # [doc = ""] pub fn FlutterEngineRun (version : size_t , config : * const FlutterRendererConfig , args : * const FlutterProjectArgs , user_data : * mut :: std :: os :: raw :: c_void , engine_out : * mut FlutterEngine) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Shuts down a Flutter engine instance. The engine handle is no"] # [doc = "             longer valid for any calls in the embedder API after this point."] # [doc = "             Making additional calls with this handle is undefined behavior."] # [doc = ""] # [doc = " @note       This de-initializes the Flutter engine instance (via an implicit"] # [doc = "             call to `FlutterEngineDeinitialize`) if necessary."] # [doc = ""] # [doc = " @param[in]  engine  The Flutter engine instance to collect."] # [doc = ""] # [doc = " @return     The result of the call to shutdown the Flutter engine instance."] # [doc = ""] pub fn FlutterEngineShutdown (engine : FlutterEngine) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Initialize a Flutter engine instance. This does not run the"] # [doc = "             Flutter application code till the `FlutterEngineRunInitialized`"] # [doc = "             call is made. Besides Flutter application code, no tasks are"] # [doc = "             scheduled on embedder managed task runners either. This allows"] # [doc = "             embedders providing custom task runners to the Flutter engine to"] # [doc = "             obtain a handle to the Flutter engine before the engine can post"] # [doc = "             tasks on these task runners."] # [doc = ""] # [doc = " @param[in]  version    The Flutter embedder API version. Must be"] # [doc = "                        FLUTTER_ENGINE_VERSION."] # [doc = " @param[in]  config     The renderer configuration."] # [doc = " @param[in]  args       The Flutter project arguments."] # [doc = " @param      user_data  A user data baton passed back to embedders in"] # [doc = "                        callbacks."] # [doc = " @param[out] engine_out The engine handle on successful engine creation."] # [doc = ""] # [doc = " @return     The result of the call to initialize the Flutter engine."] # [doc = ""] pub fn FlutterEngineInitialize (version : size_t , config : * const FlutterRendererConfig , args : * const FlutterProjectArgs , user_data : * mut :: std :: os :: raw :: c_void , engine_out : * mut FlutterEngine) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Stops running the Flutter engine instance. After this call, the"] # [doc = "             embedder is also guaranteed that no more calls to post tasks"] # [doc = "             onto custom task runners specified by the embedder are made. The"] # [doc = "             Flutter engine handle still needs to be collected via a call to"] # [doc = "             `FlutterEngineShutdown`."] # [doc = ""] # [doc = " @param[in]  engine    The running engine instance to de-initialize."] # [doc = ""] # [doc = " @return     The result of the call to de-initialize the Flutter engine."] # [doc = ""] pub fn FlutterEngineDeinitialize (engine : FlutterEngine) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Runs an initialized engine instance. An engine can be"] # [doc = "             initialized via `FlutterEngineInitialize`. An initialized"] # [doc = "             instance can only be run once. During and after this call,"] # [doc = "             custom task runners supplied by the embedder are expected to"] # [doc = "             start servicing tasks."] # [doc = ""] # [doc = " @param[in]  engine  An initialized engine instance that has not previously"] # [doc = "                     been run."] # [doc = ""] # [doc = " @return     The result of the call to run the initialized Flutter"] # [doc = "             engine instance."] # [doc = ""] pub fn FlutterEngineRunInitialized (engine : FlutterEngine) -> FlutterEngineResult ; } extern "C" { pub fn FlutterEngineSendWindowMetricsEvent (engine : FlutterEngine , event : * const FlutterWindowMetricsEvent) -> FlutterEngineResult ; } extern "C" { pub fn FlutterEngineSendPointerEvent (engine : FlutterEngine , events : * const FlutterPointerEvent , events_count : size_t) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Sends a key event to the engine. The framework will decide"] # [doc = "             whether to handle this event in a synchronous fashion, although"] # [doc = "             due to technical limitation, the result is always reported"] # [doc = "             asynchronously. The `callback` is guaranteed to be called"] # [doc = "             exactly once."] # [doc = ""] # [doc = " @param[in]  engine         A running engine instance."] # [doc = " @param[in]  event          The event data to be sent. This function will no"] # [doc = "                            longer access `event` after returning."] # [doc = " @param[in]  callback       The callback invoked by the engine when the"] # [doc = "                            Flutter application has decided whether it"] # [doc = "                            handles this event. Accepts nullptr."] # [doc = " @param[in]  user_data      The context associated with the callback. The"] # [doc = "                            exact same value will used to invoke `callback`."] # [doc = "                            Accepts nullptr."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineSendKeyEvent (engine : FlutterEngine , event : * const FlutterKeyEvent , callback : FlutterKeyEventCallback , user_data : * mut :: std :: os :: raw :: c_void) -> FlutterEngineResult ; } extern "C" { pub fn FlutterEngineSendPlatformMessage (engine : FlutterEngine , message : * const FlutterPlatformMessage) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief     Creates a platform message response handle that allows the"] # [doc = "            embedder to set a native callback for a response to a message."] # [doc = "            This handle may be set on the `response_handle` field of any"] # [doc = "            `FlutterPlatformMessage` sent to the engine."] # [doc = ""] # [doc = "            The handle must be collected via a call to"] # [doc = "            `FlutterPlatformMessageReleaseResponseHandle`. This may be done"] # [doc = "            immediately after a call to `FlutterEngineSendPlatformMessage`"] # [doc = "            with a platform message whose response handle contains the handle"] # [doc = "            created using this call. In case a handle is created but never"] # [doc = "            sent in a message, the release call must still be made. Not"] # [doc = "            calling release on the handle results in a small memory leak."] # [doc = ""] # [doc = "            The user data baton passed to the data callback is the one"] # [doc = "            specified in this call as the third argument."] # [doc = ""] # [doc = " @see       FlutterPlatformMessageReleaseResponseHandle()"] # [doc = ""] # [doc = " @param[in]  engine         A running engine instance."] # [doc = " @param[in]  data_callback  The callback invoked by the engine when the"] # [doc = "                            Flutter application send a response on the"] # [doc = "                            handle."] # [doc = " @param[in]  user_data      The user data associated with the data callback."] # [doc = " @param[out] response_out   The response handle created when this call is"] # [doc = "                            successful."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterPlatformMessageCreateResponseHandle (engine : FlutterEngine , data_callback : FlutterDataCallback , user_data : * mut :: std :: os :: raw :: c_void , response_out : * mut * mut FlutterPlatformMessageResponseHandle) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Collects the handle created using"] # [doc = "             `FlutterPlatformMessageCreateResponseHandle`."] # [doc = ""] # [doc = " @see        FlutterPlatformMessageCreateResponseHandle()"] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance."] # [doc = " @param[in]  response   The platform message response handle to collect."] # [doc = "                        These handles are created using"] # [doc = "                        `FlutterPlatformMessageCreateResponseHandle()`."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterPlatformMessageReleaseResponseHandle (engine : FlutterEngine , response : * mut FlutterPlatformMessageResponseHandle) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Send a response from the native side to a platform message from"] # [doc = "             the Dart Flutter application."] # [doc = ""] # [doc = " @param[in]  engine       The running engine instance."] # [doc = " @param[in]  handle       The platform message response handle."] # [doc = " @param[in]  data         The data to associate with the platform message"] # [doc = "                          response."] # [doc = " @param[in]  data_length  The length of the platform message response data."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineSendPlatformMessageResponse (engine : FlutterEngine , handle : * const FlutterPlatformMessageResponseHandle , data : * const u8 , data_length : size_t) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      This API is only meant to be used by platforms that need to"] # [doc = "             flush tasks on a message loop not controlled by the Flutter"] # [doc = "             engine."] # [doc = ""] # [doc = " @deprecated This API will be deprecated and is not part of the stable API."] # [doc = "             Please use the custom task runners API by setting an"] # [doc = "             appropriate `FlutterProjectArgs::custom_task_runners`"] # [doc = "             interface. This will yield better performance and the"] # [doc = "             interface is stable."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn __FlutterEngineFlushPendingTasksNow () -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Register an external texture with a unique (per engine)"] # [doc = "             identifier. Only rendering backends that support external"] # [doc = "             textures accept external texture registrations. After the"] # [doc = "             external texture is registered, the application can mark that a"] # [doc = "             frame is available by calling"] # [doc = "             `FlutterEngineMarkExternalTextureFrameAvailable`."] # [doc = ""] # [doc = " @see        FlutterEngineUnregisterExternalTexture()"] # [doc = " @see        FlutterEngineMarkExternalTextureFrameAvailable()"] # [doc = ""] # [doc = " @param[in]  engine              A running engine instance."] # [doc = " @param[in]  texture_identifier  The identifier of the texture to register"] # [doc = "                                 with the engine. The embedder may supply new"] # [doc = "                                 frames to this texture using the same"] # [doc = "                                 identifier."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineRegisterExternalTexture (engine : FlutterEngine , texture_identifier : i64) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Unregister a previous texture registration."] # [doc = ""] # [doc = " @see        FlutterEngineRegisterExternalTexture()"] # [doc = " @see        FlutterEngineMarkExternalTextureFrameAvailable()"] # [doc = ""] # [doc = " @param[in]  engine              A running engine instance."] # [doc = " @param[in]  texture_identifier  The identifier of the texture for which new"] # [doc = "                                 frame will not be available."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineUnregisterExternalTexture (engine : FlutterEngine , texture_identifier : i64) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Mark that a new texture frame is available for a given texture"] # [doc = "             identifier."] # [doc = ""] # [doc = " @see        FlutterEngineRegisterExternalTexture()"] # [doc = " @see        FlutterEngineUnregisterExternalTexture()"] # [doc = ""] # [doc = " @param[in]  engine              A running engine instance."] # [doc = " @param[in]  texture_identifier  The identifier of the texture whose frame"] # [doc = "                                 has been updated."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineMarkExternalTextureFrameAvailable (engine : FlutterEngine , texture_identifier : i64) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Enable or disable accessibility semantics."] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance."] # [doc = " @param[in]  enabled    When enabled, changes to the semantic contents of the"] # [doc = "                        window are sent via the"] # [doc = "                        `FlutterUpdateSemanticsNodeCallback` registered to"] # [doc = "                        `update_semantics_node_callback` in"] # [doc = "                        `FlutterProjectArgs`."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineUpdateSemanticsEnabled (engine : FlutterEngine , enabled : bool) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Sets additional accessibility features."] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance"] # [doc = " @param[in]  features   The accessibility features to set."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineUpdateAccessibilityFeatures (engine : FlutterEngine , features : FlutterAccessibilityFeature) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Dispatch a semantics action to the specified semantics node."] # [doc = ""] # [doc = " @param[in]  engine       A running engine instance."] # [doc = " @param[in]  identifier   The semantics action identifier."] # [doc = " @param[in]  action       The semantics action."] # [doc = " @param[in]  data         Data associated with the action."] # [doc = " @param[in]  data_length  The data length."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineDispatchSemanticsAction (engine : FlutterEngine , id : u64 , action : FlutterSemanticsAction , data : * const u8 , data_length : size_t) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Notify the engine that a vsync event occurred. A baton passed to"] # [doc = "             the platform via the vsync callback must be returned. This call"] # [doc = "             must be made on the thread on which the call to"] # [doc = "             `FlutterEngineRun` was made."] # [doc = ""] # [doc = " @see        FlutterEngineGetCurrentTime()"] # [doc = ""] # [doc = " @attention  That frame timepoints are in nanoseconds."] # [doc = ""] # [doc = " @attention  The system monotonic clock is used as the timebase."] # [doc = ""] # [doc = " @param[in]  engine.                  A running engine instance."] # [doc = " @param[in]  baton                    The baton supplied by the engine."] # [doc = " @param[in]  frame_start_time_nanos   The point at which the vsync event"] # [doc = "                                      occurred or will occur. If the time"] # [doc = "                                      point is in the future, the engine will"] # [doc = "                                      wait till that point to begin its frame"] # [doc = "                                      workload."] # [doc = " @param[in]  frame_target_time_nanos  The point at which the embedder"] # [doc = "                                      anticipates the next vsync to occur."] # [doc = "                                      This is a hint the engine uses to"] # [doc = "                                      schedule Dart VM garbage collection in"] # [doc = "                                      periods in which the various threads"] # [doc = "                                      are most likely to be idle. For"] # [doc = "                                      example, for a 60Hz display, embedders"] # [doc = "                                      should add 16.6 * 1e6 to the frame time"] # [doc = "                                      field."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineOnVsync (engine : FlutterEngine , baton : isize , frame_start_time_nanos : u64 , frame_target_time_nanos : u64) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Reloads the system fonts in engine."] # [doc = ""] # [doc = " @param[in]  engine.                  A running engine instance."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineReloadSystemFonts (engine : FlutterEngine) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      A profiling utility. Logs a trace duration begin event to the"] # [doc = "             timeline. If the timeline is unavailable or disabled, this has"] # [doc = "             no effect. Must be balanced with an duration end event (via"] # [doc = "             `FlutterEngineTraceEventDurationEnd`) with the same name on the"] # [doc = "             same thread. Can be called on any thread. Strings passed into"] # [doc = "             the function will NOT be copied when added to the timeline. Only"] # [doc = "             string literals may be passed in."] # [doc = ""] # [doc = " @param[in]  name  The name of the trace event."] # [doc = ""] pub fn FlutterEngineTraceEventDurationBegin (name : * const :: std :: os :: raw :: c_char) ; } extern "C" { # [doc = " @brief      A profiling utility. Logs a trace duration end event to the"] # [doc = "             timeline. If the timeline is unavailable or disabled, this has"] # [doc = "             no effect. This call must be preceded by a trace duration begin"] # [doc = "             call (via `FlutterEngineTraceEventDurationBegin`) with the same"] # [doc = "             name on the same thread. Can be called on any thread. Strings"] # [doc = "             passed into the function will NOT be copied when added to the"] # [doc = "             timeline. Only string literals may be passed in."] # [doc = ""] # [doc = " @param[in]  name  The name of the trace event."] # [doc = ""] pub fn FlutterEngineTraceEventDurationEnd (name : * const :: std :: os :: raw :: c_char) ; } extern "C" { # [doc = " @brief      A profiling utility. Logs a trace duration instant event to the"] # [doc = "             timeline. If the timeline is unavailable or disabled, this has"] # [doc = "             no effect. Can be called on any thread. Strings passed into the"] # [doc = "             function will NOT be copied when added to the timeline. Only"] # [doc = "             string literals may be passed in."] # [doc = ""] # [doc = " @param[in]  name  The name of the trace event."] # [doc = ""] pub fn FlutterEngineTraceEventInstant (name : * const :: std :: os :: raw :: c_char) ; } extern "C" { # [doc = " @brief      Posts a task onto the Flutter render thread. Typically, this may"] # [doc = "             be called from any thread as long as a `FlutterEngineShutdown`"] # [doc = "             on the specific engine has not already been initiated."] # [doc = ""] # [doc = " @param[in]  engine         A running engine instance."] # [doc = " @param[in]  callback       The callback to execute on the render thread."] # [doc = " @param      callback_data  The callback context."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEnginePostRenderThreadTask (engine : FlutterEngine , callback : VoidCallback , callback_data : * mut :: std :: os :: raw :: c_void) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Get the current time in nanoseconds from the clock used by the"] # [doc = "             flutter engine. This is the system monotonic clock."] # [doc = ""] # [doc = " @return     The current time in nanoseconds."] # [doc = ""] pub fn FlutterEngineGetCurrentTime () -> u64 ; } extern "C" { # [doc = " @brief      Inform the engine to run the specified task. This task has been"] # [doc = "             given to the engine via the"] # [doc = "             `FlutterTaskRunnerDescription.post_task_callback`. This call"] # [doc = "             must only be made at the target time specified in that callback."] # [doc = "             Running the task before that time is undefined behavior."] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance."] # [doc = " @param[in]  task       the task handle."] # [doc = ""] # [doc = " @return     The result of the call."] # [doc = ""] pub fn FlutterEngineRunTask (engine : FlutterEngine , task : * const FlutterTask) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Notify a running engine instance that the locale has been"] # [doc = "             updated. The preferred locale must be the first item in the list"] # [doc = "             of locales supplied. The other entries will be used as a"] # [doc = "             fallback."] # [doc = ""] # [doc = " @param[in]  engine         A running engine instance."] # [doc = " @param[in]  locales        The updated locales in the order of preference."] # [doc = " @param[in]  locales_count  The count of locales supplied."] # [doc = ""] # [doc = " @return     Whether the locale updates were applied."] # [doc = ""] pub fn FlutterEngineUpdateLocales (engine : FlutterEngine , locales : * mut * const FlutterLocale , locales_count : size_t) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Returns if the Flutter engine instance will run AOT compiled"] # [doc = "             Dart code. This call has no threading restrictions."] # [doc = ""] # [doc = "             For embedder code that is configured for both AOT and JIT mode"] # [doc = "             Dart execution based on the Flutter engine being linked to, this"] # [doc = "             runtime check may be used to appropriately configure the"] # [doc = "             `FlutterProjectArgs`. In JIT mode execution, the kernel"] # [doc = "             snapshots must be present in the Flutter assets directory"] # [doc = "             specified in the `FlutterProjectArgs`. For AOT execution, the"] # [doc = "             fields `vm_snapshot_data`, `vm_snapshot_instructions`,"] # [doc = "             `isolate_snapshot_data` and `isolate_snapshot_instructions`"] # [doc = "             (along with their size fields) must be specified in"] # [doc = "             `FlutterProjectArgs`."] # [doc = ""] # [doc = " @return     True, if AOT Dart code is run. JIT otherwise."] # [doc = ""] pub fn FlutterEngineRunsAOTCompiledDartCode () -> bool ; } extern "C" { # [doc = " @brief      Posts a Dart object to specified send port. The corresponding"] # [doc = "             receive port for send port can be in any isolate running in the"] # [doc = "             VM. This isolate can also be the root isolate for an"] # [doc = "             unrelated engine. The engine parameter is necessary only to"] # [doc = "             ensure the call is not made when no engine (and hence no VM) is"] # [doc = "             running."] # [doc = ""] # [doc = "             Unlike the platform messages mechanism, there are no threading"] # [doc = "             restrictions when using this API. Message can be posted on any"] # [doc = "             thread and they will be made available to isolate on which the"] # [doc = "             corresponding send port is listening."] # [doc = ""] # [doc = "             However, it is the embedders responsibility to ensure that the"] # [doc = "             call is not made during an ongoing call the"] # [doc = "             `FlutterEngineDeinitialize` or `FlutterEngineShutdown` on"] # [doc = "             another thread."] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance."] # [doc = " @param[in]  port       The send port to send the object to."] # [doc = " @param[in]  object     The object to send to the isolate with the"] # [doc = "                        corresponding receive port."] # [doc = ""] # [doc = " @return     If the message was posted to the send port."] # [doc = ""] pub fn FlutterEnginePostDartObject (engine : FlutterEngine , port : FlutterEngineDartPort , object : * const FlutterEngineDartObject) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Posts a low memory notification to a running engine instance."] # [doc = "             The engine will do its best to release non-critical resources in"] # [doc = "             response. It is not guaranteed that the resource would have been"] # [doc = "             collected by the time this call returns however. The"] # [doc = "             notification is posted to engine subsystems that may be"] # [doc = "             operating on other threads."] # [doc = ""] # [doc = "             Flutter applications can respond to these notifications by"] # [doc = "             setting `WidgetsBindingObserver.didHaveMemoryPressure`"] # [doc = "             observers."] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance."] # [doc = ""] # [doc = " @return     If the low memory notification was sent to the running engine"] # [doc = "             instance."] # [doc = ""] pub fn FlutterEngineNotifyLowMemoryWarning (engine : FlutterEngine) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Schedule a callback to be run on all engine managed threads."] # [doc = "             The engine will attempt to service this callback the next time"] # [doc = "             the message loop for each managed thread is idle. Since the"] # [doc = "             engine manages the entire lifecycle of multiple threads, there"] # [doc = "             is no opportunity for the embedders to finely tune the"] # [doc = "             priorities of threads directly, or, perform other thread"] # [doc = "             specific configuration (for example, setting thread names for"] # [doc = "             tracing). This callback gives embedders a chance to affect such"] # [doc = "             tuning."] # [doc = ""] # [doc = " @attention  This call is expensive and must be made as few times as"] # [doc = "             possible. The callback must also return immediately as not doing"] # [doc = "             so may risk performance issues (especially for callbacks of type"] # [doc = "             kFlutterNativeThreadTypeUI and kFlutterNativeThreadTypeRender)."] # [doc = ""] # [doc = " @attention  Some callbacks (especially the ones of type"] # [doc = "             kFlutterNativeThreadTypeWorker) may be called after the"] # [doc = "             FlutterEngine instance has shut down. Embedders must be careful"] # [doc = "             in handling the lifecycle of objects associated with the user"] # [doc = "             data baton."] # [doc = ""] # [doc = " @attention  In case there are multiple running Flutter engine instances,"] # [doc = "             their workers are shared."] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance."] # [doc = " @param[in]  callback   The callback that will get called multiple times on"] # [doc = "                        each engine managed thread."] # [doc = " @param[in]  user_data  A baton passed by the engine to the callback. This"] # [doc = "                        baton is not interpreted by the engine in any way."] # [doc = ""] # [doc = " @return     Returns if the callback was successfully posted to all threads."] # [doc = ""] pub fn FlutterEnginePostCallbackOnAllNativeThreads (engine : FlutterEngine , callback : FlutterNativeThreadCallback , user_data : * mut :: std :: os :: raw :: c_void) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief    Posts updates corresponding to display changes to a running engine"] # [doc = "           instance."] # [doc = ""] # [doc = " @param[in] update_type      The type of update pushed to the engine."] # [doc = " @param[in] displays         The displays affected by this update."] # [doc = " @param[in] display_count    Size of the displays array, must be at least 1."] # [doc = ""] # [doc = " @return the result of the call made to the engine."] # [doc = ""] pub fn FlutterEngineNotifyDisplayUpdate (engine : FlutterEngine , update_type : FlutterEngineDisplaysUpdateType , displays : * const FlutterEngineDisplay , display_count : size_t) -> FlutterEngineResult ; } extern "C" { # [doc = " @brief      Schedule a new frame to redraw the content."] # [doc = ""] # [doc = " @param[in]  engine     A running engine instance."] # [doc = ""] # [doc = " @return the result of the call made to the engine."] # [doc = ""] pub fn FlutterEngineScheduleFrame (engine : FlutterEngine) -> FlutterEngineResult ; } pub type FlutterEngineCreateAOTDataFnPtr = :: std :: option :: Option < unsafe extern "C" fn (source : * const FlutterEngineAOTDataSource , data_out : * mut FlutterEngineAOTData) -> FlutterEngineResult > ; pub type FlutterEngineCollectAOTDataFnPtr = :: std :: option :: Option < unsafe extern "C" fn (data : FlutterEngineAOTData) -> FlutterEngineResult > ; pub type FlutterEngineRunFnPtr = :: std :: option :: Option < unsafe extern "C" fn (version : size_t , config : * const FlutterRendererConfig , args : * const FlutterProjectArgs , user_data : * mut :: std :: os :: raw :: c_void , engine_out : * mut FlutterEngine) -> FlutterEngineResult > ; pub type FlutterEngineShutdownFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine) -> FlutterEngineResult > ; pub type FlutterEngineInitializeFnPtr = :: std :: option :: Option < unsafe extern "C" fn (version : size_t , config : * const FlutterRendererConfig , args : * const FlutterProjectArgs , user_data : * mut :: std :: os :: raw :: c_void , engine_out : * mut FlutterEngine) -> FlutterEngineResult > ; pub type FlutterEngineDeinitializeFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine) -> FlutterEngineResult > ; pub type FlutterEngineRunInitializedFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine) -> FlutterEngineResult > ; pub type FlutterEngineSendWindowMetricsEventFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , event : * const FlutterWindowMetricsEvent) -> FlutterEngineResult > ; pub type FlutterEngineSendPointerEventFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , events : * const FlutterPointerEvent , events_count : size_t) -> FlutterEngineResult > ; pub type FlutterEngineSendKeyEventFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , event : * const FlutterKeyEvent , callback : FlutterKeyEventCallback , user_data : * mut :: std :: os :: raw :: c_void) -> FlutterEngineResult > ; pub type FlutterEngineSendPlatformMessageFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , message : * const FlutterPlatformMessage) -> FlutterEngineResult > ; pub type FlutterEnginePlatformMessageCreateResponseHandleFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , data_callback : FlutterDataCallback , user_data : * mut :: std :: os :: raw :: c_void , response_out : * mut * mut FlutterPlatformMessageResponseHandle) -> FlutterEngineResult > ; pub type FlutterEnginePlatformMessageReleaseResponseHandleFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , response : * mut FlutterPlatformMessageResponseHandle) -> FlutterEngineResult > ; pub type FlutterEngineSendPlatformMessageResponseFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , handle : * const FlutterPlatformMessageResponseHandle , data : * const u8 , data_length : size_t) -> FlutterEngineResult > ; pub type FlutterEngineRegisterExternalTextureFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , texture_identifier : i64) -> FlutterEngineResult > ; pub type FlutterEngineUnregisterExternalTextureFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , texture_identifier : i64) -> FlutterEngineResult > ; pub type FlutterEngineMarkExternalTextureFrameAvailableFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , texture_identifier : i64) -> FlutterEngineResult > ; pub type FlutterEngineUpdateSemanticsEnabledFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , enabled : bool) -> FlutterEngineResult > ; pub type FlutterEngineUpdateAccessibilityFeaturesFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , features : FlutterAccessibilityFeature) -> FlutterEngineResult > ; pub type FlutterEngineDispatchSemanticsActionFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , id : u64 , action : FlutterSemanticsAction , data : * const u8 , data_length : size_t) -> FlutterEngineResult > ; pub type FlutterEngineOnVsyncFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , baton : isize , frame_start_time_nanos : u64 , frame_target_time_nanos : u64) -> FlutterEngineResult > ; pub type FlutterEngineReloadSystemFontsFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine) -> FlutterEngineResult > ; pub type FlutterEngineTraceEventDurationBeginFnPtr = :: std :: option :: Option < unsafe extern "C" fn (name : * const :: std :: os :: raw :: c_char) > ; pub type FlutterEngineTraceEventDurationEndFnPtr = :: std :: option :: Option < unsafe extern "C" fn (name : * const :: std :: os :: raw :: c_char) > ; pub type FlutterEngineTraceEventInstantFnPtr = :: std :: option :: Option < unsafe extern "C" fn (name : * const :: std :: os :: raw :: c_char) > ; pub type FlutterEnginePostRenderThreadTaskFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , callback : VoidCallback , callback_data : * mut :: std :: os :: raw :: c_void) -> FlutterEngineResult > ; pub type FlutterEngineGetCurrentTimeFnPtr = :: std :: option :: Option < unsafe extern "C" fn () -> u64 > ; pub type FlutterEngineRunTaskFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , task : * const FlutterTask) -> FlutterEngineResult > ; pub type FlutterEngineUpdateLocalesFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , locales : * mut * const FlutterLocale , locales_count : size_t) -> FlutterEngineResult > ; pub type FlutterEngineRunsAOTCompiledDartCodeFnPtr = :: std :: option :: Option < unsafe extern "C" fn () -> bool > ; pub type FlutterEnginePostDartObjectFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , port : FlutterEngineDartPort , object : * const FlutterEngineDartObject) -> FlutterEngineResult > ; pub type FlutterEngineNotifyLowMemoryWarningFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine) -> FlutterEngineResult > ; pub type FlutterEnginePostCallbackOnAllNativeThreadsFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , callback : FlutterNativeThreadCallback , user_data : * mut :: std :: os :: raw :: c_void) -> FlutterEngineResult > ; pub type FlutterEngineNotifyDisplayUpdateFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine , update_type : FlutterEngineDisplaysUpdateType , displays : * const FlutterEngineDisplay , display_count : size_t) -> FlutterEngineResult > ; pub type FlutterEngineScheduleFrameFnPtr = :: std :: option :: Option < unsafe extern "C" fn (engine : FlutterEngine) -> FlutterEngineResult > ; # [doc = " Function-pointer-based versions of the APIs above."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlutterEngineProcTable { # [doc = " The size of this struct. Must be sizeof(FlutterEngineProcs)."] pub struct_size : size_t , pub CreateAOTData : FlutterEngineCreateAOTDataFnPtr , pub CollectAOTData : FlutterEngineCollectAOTDataFnPtr , pub Run : FlutterEngineRunFnPtr , pub Shutdown : FlutterEngineShutdownFnPtr , pub Initialize : FlutterEngineInitializeFnPtr , pub Deinitialize : FlutterEngineDeinitializeFnPtr , pub RunInitialized : FlutterEngineRunInitializedFnPtr , pub SendWindowMetricsEvent : FlutterEngineSendWindowMetricsEventFnPtr , pub SendPointerEvent : FlutterEngineSendPointerEventFnPtr , pub SendKeyEvent : FlutterEngineSendKeyEventFnPtr , pub SendPlatformMessage : FlutterEngineSendPlatformMessageFnPtr , pub PlatformMessageCreateResponseHandle : FlutterEnginePlatformMessageCreateResponseHandleFnPtr , pub PlatformMessageReleaseResponseHandle : FlutterEnginePlatformMessageReleaseResponseHandleFnPtr , pub SendPlatformMessageResponse : FlutterEngineSendPlatformMessageResponseFnPtr , pub RegisterExternalTexture : FlutterEngineRegisterExternalTextureFnPtr , pub UnregisterExternalTexture : FlutterEngineUnregisterExternalTextureFnPtr , pub MarkExternalTextureFrameAvailable : FlutterEngineMarkExternalTextureFrameAvailableFnPtr , pub UpdateSemanticsEnabled : FlutterEngineUpdateSemanticsEnabledFnPtr , pub UpdateAccessibilityFeatures : FlutterEngineUpdateAccessibilityFeaturesFnPtr , pub DispatchSemanticsAction : FlutterEngineDispatchSemanticsActionFnPtr , pub OnVsync : FlutterEngineOnVsyncFnPtr , pub ReloadSystemFonts : FlutterEngineReloadSystemFontsFnPtr , pub TraceEventDurationBegin : FlutterEngineTraceEventDurationBeginFnPtr , pub TraceEventDurationEnd : FlutterEngineTraceEventDurationEndFnPtr , pub TraceEventInstant : FlutterEngineTraceEventInstantFnPtr , pub PostRenderThreadTask : FlutterEnginePostRenderThreadTaskFnPtr , pub GetCurrentTime : FlutterEngineGetCurrentTimeFnPtr , pub RunTask : FlutterEngineRunTaskFnPtr , pub UpdateLocales : FlutterEngineUpdateLocalesFnPtr , pub RunsAOTCompiledDartCode : FlutterEngineRunsAOTCompiledDartCodeFnPtr , pub PostDartObject : FlutterEnginePostDartObjectFnPtr , pub NotifyLowMemoryWarning : FlutterEngineNotifyLowMemoryWarningFnPtr , pub PostCallbackOnAllNativeThreads : FlutterEnginePostCallbackOnAllNativeThreadsFnPtr , pub NotifyDisplayUpdate : FlutterEngineNotifyDisplayUpdateFnPtr , pub ScheduleFrame : FlutterEngineScheduleFrameFnPtr , } # [test] fn bindgen_test_layout_FlutterEngineProcTable () { assert_eq ! (:: std :: mem :: size_of :: < FlutterEngineProcTable > () , 288usize , concat ! ("Size of: " , stringify ! (FlutterEngineProcTable))) ; assert_eq ! (:: std :: mem :: align_of :: < FlutterEngineProcTable > () , 8usize , concat ! ("Alignment of " , stringify ! (FlutterEngineProcTable))) ; fn test_field_struct_size () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . struct_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (struct_size))) ; } test_field_struct_size () ; fn test_field_CreateAOTData () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . CreateAOTData) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (CreateAOTData))) ; } test_field_CreateAOTData () ; fn test_field_CollectAOTData () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . CollectAOTData) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (CollectAOTData))) ; } test_field_CollectAOTData () ; fn test_field_Run () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . Run) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (Run))) ; } test_field_Run () ; fn test_field_Shutdown () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . Shutdown) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (Shutdown))) ; } test_field_Shutdown () ; fn test_field_Initialize () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . Initialize) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (Initialize))) ; } test_field_Initialize () ; fn test_field_Deinitialize () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . Deinitialize) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (Deinitialize))) ; } test_field_Deinitialize () ; fn test_field_RunInitialized () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . RunInitialized) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (RunInitialized))) ; } test_field_RunInitialized () ; fn test_field_SendWindowMetricsEvent () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . SendWindowMetricsEvent) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (SendWindowMetricsEvent))) ; } test_field_SendWindowMetricsEvent () ; fn test_field_SendPointerEvent () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . SendPointerEvent) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (SendPointerEvent))) ; } test_field_SendPointerEvent () ; fn test_field_SendKeyEvent () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . SendKeyEvent) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (SendKeyEvent))) ; } test_field_SendKeyEvent () ; fn test_field_SendPlatformMessage () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . SendPlatformMessage) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (SendPlatformMessage))) ; } test_field_SendPlatformMessage () ; fn test_field_PlatformMessageCreateResponseHandle () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . PlatformMessageCreateResponseHandle) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (PlatformMessageCreateResponseHandle))) ; } test_field_PlatformMessageCreateResponseHandle () ; fn test_field_PlatformMessageReleaseResponseHandle () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . PlatformMessageReleaseResponseHandle) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (PlatformMessageReleaseResponseHandle))) ; } test_field_PlatformMessageReleaseResponseHandle () ; fn test_field_SendPlatformMessageResponse () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . SendPlatformMessageResponse) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (SendPlatformMessageResponse))) ; } test_field_SendPlatformMessageResponse () ; fn test_field_RegisterExternalTexture () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . RegisterExternalTexture) as usize - ptr as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (RegisterExternalTexture))) ; } test_field_RegisterExternalTexture () ; fn test_field_UnregisterExternalTexture () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . UnregisterExternalTexture) as usize - ptr as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (UnregisterExternalTexture))) ; } test_field_UnregisterExternalTexture () ; fn test_field_MarkExternalTextureFrameAvailable () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . MarkExternalTextureFrameAvailable) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (MarkExternalTextureFrameAvailable))) ; } test_field_MarkExternalTextureFrameAvailable () ; fn test_field_UpdateSemanticsEnabled () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . UpdateSemanticsEnabled) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (UpdateSemanticsEnabled))) ; } test_field_UpdateSemanticsEnabled () ; fn test_field_UpdateAccessibilityFeatures () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . UpdateAccessibilityFeatures) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (UpdateAccessibilityFeatures))) ; } test_field_UpdateAccessibilityFeatures () ; fn test_field_DispatchSemanticsAction () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . DispatchSemanticsAction) as usize - ptr as usize } , 160usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (DispatchSemanticsAction))) ; } test_field_DispatchSemanticsAction () ; fn test_field_OnVsync () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . OnVsync) as usize - ptr as usize } , 168usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (OnVsync))) ; } test_field_OnVsync () ; fn test_field_ReloadSystemFonts () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . ReloadSystemFonts) as usize - ptr as usize } , 176usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (ReloadSystemFonts))) ; } test_field_ReloadSystemFonts () ; fn test_field_TraceEventDurationBegin () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . TraceEventDurationBegin) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (TraceEventDurationBegin))) ; } test_field_TraceEventDurationBegin () ; fn test_field_TraceEventDurationEnd () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . TraceEventDurationEnd) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (TraceEventDurationEnd))) ; } test_field_TraceEventDurationEnd () ; fn test_field_TraceEventInstant () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . TraceEventInstant) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (TraceEventInstant))) ; } test_field_TraceEventInstant () ; fn test_field_PostRenderThreadTask () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . PostRenderThreadTask) as usize - ptr as usize } , 208usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (PostRenderThreadTask))) ; } test_field_PostRenderThreadTask () ; fn test_field_GetCurrentTime () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . GetCurrentTime) as usize - ptr as usize } , 216usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (GetCurrentTime))) ; } test_field_GetCurrentTime () ; fn test_field_RunTask () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . RunTask) as usize - ptr as usize } , 224usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (RunTask))) ; } test_field_RunTask () ; fn test_field_UpdateLocales () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . UpdateLocales) as usize - ptr as usize } , 232usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (UpdateLocales))) ; } test_field_UpdateLocales () ; fn test_field_RunsAOTCompiledDartCode () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . RunsAOTCompiledDartCode) as usize - ptr as usize } , 240usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (RunsAOTCompiledDartCode))) ; } test_field_RunsAOTCompiledDartCode () ; fn test_field_PostDartObject () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . PostDartObject) as usize - ptr as usize } , 248usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (PostDartObject))) ; } test_field_PostDartObject () ; fn test_field_NotifyLowMemoryWarning () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . NotifyLowMemoryWarning) as usize - ptr as usize } , 256usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (NotifyLowMemoryWarning))) ; } test_field_NotifyLowMemoryWarning () ; fn test_field_PostCallbackOnAllNativeThreads () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . PostCallbackOnAllNativeThreads) as usize - ptr as usize } , 264usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (PostCallbackOnAllNativeThreads))) ; } test_field_PostCallbackOnAllNativeThreads () ; fn test_field_NotifyDisplayUpdate () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . NotifyDisplayUpdate) as usize - ptr as usize } , 272usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (NotifyDisplayUpdate))) ; } test_field_NotifyDisplayUpdate () ; fn test_field_ScheduleFrame () { assert_eq ! (unsafe { let uninit = :: std :: mem :: MaybeUninit :: < FlutterEngineProcTable > :: uninit () ; let ptr = uninit . as_ptr () ; :: std :: ptr :: addr_of ! ((* ptr) . ScheduleFrame) as usize - ptr as usize } , 280usize , concat ! ("Offset of field: " , stringify ! (FlutterEngineProcTable) , "::" , stringify ! (ScheduleFrame))) ; } test_field_ScheduleFrame () ; } extern "C" { # [doc = " @brief      Gets the table of engine function pointers."] # [doc = ""] # [doc = " @param[out] table   The table to fill with pointers. This should be"] # [doc = "                     zero-initialized, except for struct_size."] # [doc = ""] # [doc = " @return     Returns whether the table was successfully populated."] # [doc = ""] pub fn FlutterEngineGetProcAddresses (table : * mut FlutterEngineProcTable) -> FlutterEngineResult ; }
[INFO] [stdout]   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               +                                           +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: this URL is not a hyperlink
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/flutter_embedder-b39e10e859f308b8/out/embedder.rs:3:107510
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... ; # [doc = " A structure to represent a key event."] # [doc = ""] # [doc = " Sending `FlutterKeyEvent` via `FlutterEngineSendKeyEvent` results in a"] # [doc = " corresponding `FlutterKeyEvent` to be dispatched in the framework. It is"] # [doc = " embedder's responsibility to ensure the regularity of sent events, since the"] # [doc = " framework only performs simple one-to-one mapping. The events must conform"] # [doc = " the following rules:"] # [doc = ""] # [doc = "  * Each key press sequence shall consist of one key down event (`kind` being"] # [doc = "    `kFlutterKeyEventTypeDown`), zero or more repeat events, and one key up"] # [doc = "    event, representing a physical key button being pressed, held, and"] # [doc = "    released."] # [doc = "  * All events throughout a key press sequence shall have the same `physical`"] # [doc = "    and `logical`. Having different `character`s is allowed."] # [doc = ""] # [doc = " A `FlutterKeyEvent` with `physical` 0 and `logical` 0 is an empty event."] # [doc = " This is the only case either `physical` or `logical` can be 0. An empty"] # [doc = " event must be sent if a key message should be converted to no"] # [doc = " `FlutterKeyEvent`s, for example, when a key down message is received for a"] # [doc = " key that has already been pressed according to the record. This is to ensure"] # [doc = " some `FlutterKeyEvent` arrives at the framework before raw key message."] # [doc = " See https://github.com/flutter/flutter/issues/87230."] # ...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<https://github.com/flutter/flutter/issues/87230.>`
[INFO] [stdout]   |
[INFO] [stdout]   = note: bare URLs are not automatically turned into clickable links
[INFO] [stdout]   = note: `#[warn(rustdoc::bare_urls)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: this URL is not a hyperlink
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/flutter_embedder-b39e10e859f308b8/out/embedder.rs:3:186623
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... } # [doc = " Callback that returns the system locale."] # [doc = ""] # [doc = " Embedders that implement this callback should return the `FlutterLocale`"] # [doc = " from the `supported_locales` list that most closely matches the"] # [doc = " user/device's preferred locale."] # [doc = ""] # [doc = " This callback does not currently provide the user_data baton."] # [doc = " https://github.com/flutter/flutter/issues/79826"] pu...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<https://github.com/flutter/flutter/issues/79826>`
[INFO] [stdout]   |
[INFO] [stdout]   = note: bare URLs are not automatically turned into clickable links
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: this URL is not a hyperlink
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/flutter_embedder-b39e10e859f308b8/out/embedder.rs:3:209894
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... , # [doc = " The VM snapshot data buffer used in AOT operation. This buffer must be"] # [doc = " mapped in as read-only. For more information refer to the documentation on"] # [doc = " the Wiki at"] # [doc = " https://github.com/flutter/flutter/wiki/Flutter-engine-operation-in-AOT-Mode"] pu...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<https://github.com/flutter/flutter/wiki/Flutter-engine-operation-in-AOT-Mode>`
[INFO] [stdout]   |
[INFO] [stdout]   = note: bare URLs are not automatically turned into clickable links
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: this URL is not a hyperlink
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/flutter_embedder-b39e10e859f308b8/out/embedder.rs:3:210387
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... , # [doc = " The VM snapshot instructions buffer used in AOT operation. This buffer"] # [doc = " must be mapped in as read-execute. For more information refer to the"] # [doc = " documentation on the Wiki at"] # [doc = " https://github.com/flutter/flutter/wiki/Flutter-engine-operation-in-AOT-Mode"] pu...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<https://github.com/flutter/flutter/wiki/Flutter-engine-operation-in-AOT-Mode>`
[INFO] [stdout]   |
[INFO] [stdout]   = note: bare URLs are not automatically turned into clickable links
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: this URL is not a hyperlink
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/flutter_embedder-b39e10e859f308b8/out/embedder.rs:3:210922
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... , # [doc = " The isolate snapshot data buffer used in AOT operation. This buffer must"] # [doc = " be mapped in as read-only. For more information refer to the documentation"] # [doc = " on the Wiki at"] # [doc = " https://github.com/flutter/flutter/wiki/Flutter-engine-operation-in-AOT-Mode"] pu...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<https://github.com/flutter/flutter/wiki/Flutter-engine-operation-in-AOT-Mode>`
[INFO] [stdout]   |
[INFO] [stdout]   = note: bare URLs are not automatically turned into clickable links
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: this URL is not a hyperlink
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/flutter_embedder-b39e10e859f308b8/out/embedder.rs:3:211440
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... , # [doc = " The isolate snapshot instructions buffer used in AOT operation. This"] # [doc = " buffer must be mapped in as read-execute. For more information refer to"] # [doc = " the documentation on the Wiki at"] # [doc = " https://github.com/flutter/flutter/wiki/Flutter-engine-operation-in-AOT-Mode"] pu...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<https://github.com/flutter/flutter/wiki/Flutter-engine-operation-in-AOT-Mode>`
[INFO] [stdout]   |
[INFO] [stdout]   = note: bare URLs are not automatically turned into clickable links
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: this URL is not a hyperlink
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/flutter_embedder-b39e10e859f308b8/out/embedder.rs:3:218218
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... , # [doc = " Max size of the old gen heap for the Dart VM in MB, or 0 for unlimited, -1"] # [doc = " for default value."] # [doc = ""] # [doc = " See also:"] # [doc = " https://github.com/dart-lang/sdk/blob/ca64509108b3e7219c50d6c52877c85ab6a35ff2/runtime/vm/flag_list.h#L150"] pu...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<https://github.com/dart-lang/sdk/blob/ca64509108b3e7219c50d6c52877c85ab6a35ff2/runtime/vm/flag_list.h#L150>`
[INFO] [stdout]   |
[INFO] [stdout]   = note: bare URLs are not automatically turned into clickable links
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors; 96 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0554`.
[INFO] [stdout] 
[INFO] [stderr] error: could not document `flutter_embedder`
[INFO] [stderr] 
[INFO] [stderr] Caused by:
[INFO] [stderr]   process didn't exit successfully: `rustdoc --edition=2021 --crate-type bin --crate-name flutter_embedder src/main.rs -o /opt/rustwide/target/doc --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --document-private-items '-Arustdoc::private-intra-doc-links' -C metadata=8a06f023248663e6 -L dependency=/opt/rustwide/target/debug/deps --extern arboard=/opt/rustwide/target/debug/deps/libarboard-23e3561bff71575d.rmeta --extern ash=/opt/rustwide/target/debug/deps/libash-92a44a7eb026224e.rmeta --extern clap=/opt/rustwide/target/debug/deps/libclap-b218319f05491b70.rmeta --extern env_logger=/opt/rustwide/target/debug/deps/libenv_logger-2590c1a3f06bfddd.rmeta --extern log=/opt/rustwide/target/debug/deps/liblog-f510c523c272d5d5.rmeta --extern num_derive=/opt/rustwide/target/debug/deps/libnum_derive-6d1f0feaec0ccc28.so --extern num_traits=/opt/rustwide/target/debug/deps/libnum_traits-0e261f3cbe679f25.rmeta --extern serde=/opt/rustwide/target/debug/deps/libserde-8e4a8b510a6d327b.rmeta --extern serde_json=/opt/rustwide/target/debug/deps/libserde_json-34aa40ae50b785db.rmeta --extern serde_variant=/opt/rustwide/target/debug/deps/libserde_variant-09f29aaa32513c32.rmeta --extern tokio=/opt/rustwide/target/debug/deps/libtokio-a80ed6d8e1b158b3.rmeta --extern wgpu=/opt/rustwide/target/debug/deps/libwgpu-1f28545aed9f309a.rmeta --extern wgpu_hal=/opt/rustwide/target/debug/deps/libwgpu_hal-525a6be287f82845.rmeta --extern winit=/opt/rustwide/target/debug/deps/libwinit-2351b72f94e64787.rmeta --cap-lints=warn --crate-version 0.1.0` (exit status: 1)
[INFO] running `Command { std: "docker" "inspect" "cc62ab8064c3a929ad8c10065a32208ee8d12f542585bf4d383df8cafad9632d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "cc62ab8064c3a929ad8c10065a32208ee8d12f542585bf4d383df8cafad9632d", kill_on_drop: false }`
[INFO] [stdout] cc62ab8064c3a929ad8c10065a32208ee8d12f542585bf4d383df8cafad9632d
