From c0ba177ec1c3e12a833c69d7658471e819e1ad35 Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Fri, 14 Feb 2025 07:46:33 -0600 Subject: [PATCH] Introducing the dedicated `windows-numerics` crate (#3488) --- .github/workflows/clippy.yml | 2 + .github/workflows/no-default-features.yml | 2 + .github/workflows/raw-dylib.yml | 6 +- .github/workflows/test.yml | 6 +- Cargo.toml | 1 + crates/libs/numerics/Cargo.toml | 29 + crates/libs/numerics/license-apache-2.0 | 201 ++ crates/libs/numerics/license-mit | 21 + crates/libs/numerics/readme.md | 7 + crates/libs/numerics/src/bindings.rs | 89 + crates/libs/numerics/src/lib.rs | 13 + .../src/matrix3x2.rs} | 29 +- .../src/matrix4x4.rs} | 2 +- .../Vector2.rs => numerics/src/vector2.rs} | 32 +- .../Vector3.rs => numerics/src/vector3.rs} | 68 +- .../Vector4.rs => numerics/src/vector4.rs} | 86 +- crates/libs/windows/Cargo.toml | 6 + .../ApplicationModel/Holographic/mod.rs | 8 +- .../Preview/Holographic/mod.rs | 20 +- .../windows/src/Windows/Devices/Lights/mod.rs | 16 +- .../src/Windows/Foundation/Numerics/mod.rs | 83 +- .../Windows/Gaming/Input/ForceFeedback/mod.rs | 56 +- .../src/Windows/Graphics/Holographic/mod.rs | 90 +- .../src/Windows/Graphics/Printing3D/mod.rs | 16 +- .../windows/src/Windows/Media/Audio/mod.rs | 80 +- .../src/Windows/Media/Devices/Core/mod.rs | 100 +- .../src/Windows/Perception/People/mod.rs | 40 +- .../Windows/Perception/Spatial/Preview/mod.rs | 32 +- .../Perception/Spatial/Surfaces/mod.rs | 8 +- .../src/Windows/Perception/Spatial/mod.rs | 146 +- .../UI/Composition/Interactions/mod.rs | 194 +- .../src/Windows/UI/Composition/Scenes/mod.rs | 180 +- .../windows/src/Windows/UI/Composition/mod.rs | 2062 +++++------------ .../src/Windows/UI/Input/Inking/Core/mod.rs | 16 +- .../src/Windows/UI/Input/Inking/mod.rs | 87 +- .../src/Windows/UI/Input/Spatial/mod.rs | 74 +- .../windows/src/Windows/UI/StartScreen/mod.rs | 12 +- .../src/Windows/Wdk/Graphics/Direct3D/mod.rs | 24 +- .../Windows/Win32/Graphics/Direct2D/mod.rs | 803 +++---- .../Windows/Win32/Graphics/Direct3D9/mod.rs | 48 +- .../Win32/Graphics/DirectComposition/mod.rs | 84 +- .../libs/windows/src/extensions/Foundation.rs | 2 - .../src/extensions/Foundation/Numerics.rs | 5 - crates/samples/windows/dcomp/Cargo.toml | 4 +- crates/samples/windows/dcomp/src/main.rs | 3 +- crates/samples/windows/direct2d/Cargo.toml | 4 +- crates/samples/windows/direct2d/src/main.rs | 4 +- crates/tests/misc/matrix3x2/Cargo.toml | 5 +- .../tests/misc/matrix3x2/tests/matrix3x2.rs | 2 +- crates/tests/misc/no_std/Cargo.toml | 5 +- crates/tests/misc/no_std/src/lib.rs | 1 + crates/tests/winrt/old/Cargo.toml | 4 +- crates/tests/winrt/old/tests/composition.rs | 2 +- crates/tests/winrt/old/tests/numerics.rs | 2 +- crates/tools/bindings/src/main.rs | 1 + crates/tools/bindings/src/numerics.txt | 11 + crates/tools/bindings/src/windows.txt | 9 + 57 files changed, 1939 insertions(+), 3004 deletions(-) create mode 100644 crates/libs/numerics/Cargo.toml create mode 100644 crates/libs/numerics/license-apache-2.0 create mode 100644 crates/libs/numerics/license-mit create mode 100644 crates/libs/numerics/readme.md create mode 100644 crates/libs/numerics/src/bindings.rs create mode 100644 crates/libs/numerics/src/lib.rs rename crates/libs/{windows/src/extensions/Foundation/Numerics/Matrix3x2.rs => numerics/src/matrix3x2.rs} (87%) rename crates/libs/{windows/src/extensions/Foundation/Numerics/Matrix4x4.rs => numerics/src/matrix4x4.rs} (99%) rename crates/libs/{windows/src/extensions/Foundation/Numerics/Vector2.rs => numerics/src/vector2.rs} (88%) rename crates/libs/{windows/src/extensions/Foundation/Numerics/Vector3.rs => numerics/src/vector3.rs} (78%) rename crates/libs/{windows/src/extensions/Foundation/Numerics/Vector4.rs => numerics/src/vector4.rs} (73%) delete mode 100644 crates/libs/windows/src/extensions/Foundation/Numerics.rs create mode 100644 crates/tools/bindings/src/numerics.txt diff --git a/.github/workflows/clippy.yml b/.github/workflows/clippy.yml index 742d098c3e..a812af1f0a 100644 --- a/.github/workflows/clippy.yml +++ b/.github/workflows/clippy.yml @@ -315,6 +315,8 @@ jobs: run: cargo clippy -p windows-interface - name: Clippy windows-link run: cargo clippy -p windows-link + - name: Clippy windows-numerics + run: cargo clippy -p windows-numerics - name: Clippy windows-registry run: cargo clippy -p windows-registry - name: Clippy windows-result diff --git a/.github/workflows/no-default-features.yml b/.github/workflows/no-default-features.yml index 6c628440ee..086b43418e 100644 --- a/.github/workflows/no-default-features.yml +++ b/.github/workflows/no-default-features.yml @@ -49,6 +49,8 @@ jobs: run: cargo check -p windows-interface --no-default-features - name: Check windows-link run: cargo check -p windows-link --no-default-features + - name: Check windows-numerics + run: cargo check -p windows-numerics --no-default-features - name: Check windows-registry run: cargo check -p windows-registry --no-default-features - name: Check windows-result diff --git a/.github/workflows/raw-dylib.yml b/.github/workflows/raw-dylib.yml index 27e027d906..5e0b87b93d 100644 --- a/.github/workflows/raw-dylib.yml +++ b/.github/workflows/raw-dylib.yml @@ -346,6 +346,8 @@ jobs: run: cargo test -p windows-interface --target ${{ matrix.target }} ${{ matrix.etc }} - name: Test windows-link run: cargo test -p windows-link --target ${{ matrix.target }} ${{ matrix.etc }} + - name: Test windows-numerics + run: cargo test -p windows-numerics --target ${{ matrix.target }} ${{ matrix.etc }} - name: Test windows-registry run: cargo test -p windows-registry --target ${{ matrix.target }} ${{ matrix.etc }} - name: Test windows-result @@ -362,10 +364,10 @@ jobs: run: cargo test -p windows_aarch64_gnullvm --target ${{ matrix.target }} ${{ matrix.etc }} - name: Test windows_aarch64_msvc run: cargo test -p windows_aarch64_msvc --target ${{ matrix.target }} ${{ matrix.etc }} - - name: Test windows_i686_gnu - run: cargo test -p windows_i686_gnu --target ${{ matrix.target }} ${{ matrix.etc }} - name: Clean run: cargo clean + - name: Test windows_i686_gnu + run: cargo test -p windows_i686_gnu --target ${{ matrix.target }} ${{ matrix.etc }} - name: Test windows_i686_gnullvm run: cargo test -p windows_i686_gnullvm --target ${{ matrix.target }} ${{ matrix.etc }} - name: Test windows_i686_msvc diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 512222f9af..e21d9ae102 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -343,6 +343,8 @@ jobs: run: cargo test -p windows-interface --target ${{ matrix.target }} ${{ matrix.etc }} - name: Test windows-link run: cargo test -p windows-link --target ${{ matrix.target }} ${{ matrix.etc }} + - name: Test windows-numerics + run: cargo test -p windows-numerics --target ${{ matrix.target }} ${{ matrix.etc }} - name: Test windows-registry run: cargo test -p windows-registry --target ${{ matrix.target }} ${{ matrix.etc }} - name: Test windows-result @@ -359,10 +361,10 @@ jobs: run: cargo test -p windows_aarch64_gnullvm --target ${{ matrix.target }} ${{ matrix.etc }} - name: Test windows_aarch64_msvc run: cargo test -p windows_aarch64_msvc --target ${{ matrix.target }} ${{ matrix.etc }} - - name: Test windows_i686_gnu - run: cargo test -p windows_i686_gnu --target ${{ matrix.target }} ${{ matrix.etc }} - name: Clean run: cargo clean + - name: Test windows_i686_gnu + run: cargo test -p windows_i686_gnu --target ${{ matrix.target }} ${{ matrix.etc }} - name: Test windows_i686_gnullvm run: cargo test -p windows_i686_gnullvm --target ${{ matrix.target }} ${{ matrix.etc }} - name: Test windows_i686_msvc diff --git a/Cargo.toml b/Cargo.toml index 2d6b6f6c5d..e7557e4b8d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,6 +28,7 @@ windows-bindgen = { path = "crates/libs/bindgen" } windows-collections = { path = "crates/libs/collections" } windows-core = { path = "crates/libs/core" } windows-link = { path = "crates/libs/link" } +windows-numerics = { path = "crates/libs/numerics" } windows-registry = { path = "crates/libs/registry" } windows-result = { path = "crates/libs/result" } windows-strings = { path = "crates/libs/strings" } diff --git a/crates/libs/numerics/Cargo.toml b/crates/libs/numerics/Cargo.toml new file mode 100644 index 0000000000..9d8e202558 --- /dev/null +++ b/crates/libs/numerics/Cargo.toml @@ -0,0 +1,29 @@ +[package] +name = "windows-numerics" +version = "0.1.0" +edition = "2021" +rust-version = "1.74" +license = "MIT OR Apache-2.0" +description = "Windows numeric types" +repository = "https://github.com/microsoft/windows-rs" +readme = "readme.md" + +[lints] +workspace = true + +[package.metadata.docs.rs] +default-target = "x86_64-pc-windows-msvc" +targets = [] + +[features] +default = ["std"] +std = [] + +[dependencies.windows-core] +version = "0.59.0" +path = "../core" +default-features = false + +[dependencies.windows-link] +version = "0.1.0" +path = "../link" diff --git a/crates/libs/numerics/license-apache-2.0 b/crates/libs/numerics/license-apache-2.0 new file mode 100644 index 0000000000..b5ed4ecec2 --- /dev/null +++ b/crates/libs/numerics/license-apache-2.0 @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright (c) Microsoft Corporation. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/crates/libs/numerics/license-mit b/crates/libs/numerics/license-mit new file mode 100644 index 0000000000..9e841e7a26 --- /dev/null +++ b/crates/libs/numerics/license-mit @@ -0,0 +1,21 @@ + MIT License + + Copyright (c) Microsoft Corporation. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE diff --git a/crates/libs/numerics/readme.md b/crates/libs/numerics/readme.md new file mode 100644 index 0000000000..b9050c05b8 --- /dev/null +++ b/crates/libs/numerics/readme.md @@ -0,0 +1,7 @@ +## Windows numeric types + +The [windows-numerics](https://crates.io/crates/windows-numerics) crate provides graphics-oriented math types for Windows. + +* [Getting started](https://kennykerr.ca/rust-getting-started/) +* [Samples](https://github.com/microsoft/windows-rs/tree/master/crates/samples) +* [Releases](https://github.com/microsoft/windows-rs/releases) diff --git a/crates/libs/numerics/src/bindings.rs b/crates/libs/numerics/src/bindings.rs new file mode 100644 index 0000000000..1cbe260002 --- /dev/null +++ b/crates/libs/numerics/src/bindings.rs @@ -0,0 +1,89 @@ +#[repr(C)] +#[derive(Clone, Copy, Debug, Default, PartialEq)] +pub struct Matrix3x2 { + pub M11: f32, + pub M12: f32, + pub M21: f32, + pub M22: f32, + pub M31: f32, + pub M32: f32, +} +impl windows_core::TypeKind for Matrix3x2 { + type TypeKind = windows_core::CopyType; +} +impl windows_core::RuntimeType for Matrix3x2 { + const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::from_slice( + b"struct(Windows.Foundation.Numerics.Matrix3x2;f4;f4;f4;f4;f4;f4)", + ); +} +#[repr(C)] +#[derive(Clone, Copy, Debug, Default, PartialEq)] +pub struct Matrix4x4 { + pub M11: f32, + pub M12: f32, + pub M13: f32, + pub M14: f32, + pub M21: f32, + pub M22: f32, + pub M23: f32, + pub M24: f32, + pub M31: f32, + pub M32: f32, + pub M33: f32, + pub M34: f32, + pub M41: f32, + pub M42: f32, + pub M43: f32, + pub M44: f32, +} +impl windows_core::TypeKind for Matrix4x4 { + type TypeKind = windows_core::CopyType; +} +impl windows_core::RuntimeType for Matrix4x4 { + const SIGNATURE :windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::from_slice ( b"struct(Windows.Foundation.Numerics.Matrix4x4;f4;f4;f4;f4;f4;f4;f4;f4;f4;f4;f4;f4;f4;f4;f4;f4)" ) ; +} +#[repr(C)] +#[derive(Clone, Copy, Debug, Default, PartialEq)] +pub struct Vector2 { + pub X: f32, + pub Y: f32, +} +impl windows_core::TypeKind for Vector2 { + type TypeKind = windows_core::CopyType; +} +impl windows_core::RuntimeType for Vector2 { + const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::from_slice( + b"struct(Windows.Foundation.Numerics.Vector2;f4;f4)", + ); +} +#[repr(C)] +#[derive(Clone, Copy, Debug, Default, PartialEq)] +pub struct Vector3 { + pub X: f32, + pub Y: f32, + pub Z: f32, +} +impl windows_core::TypeKind for Vector3 { + type TypeKind = windows_core::CopyType; +} +impl windows_core::RuntimeType for Vector3 { + const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::from_slice( + b"struct(Windows.Foundation.Numerics.Vector3;f4;f4;f4)", + ); +} +#[repr(C)] +#[derive(Clone, Copy, Debug, Default, PartialEq)] +pub struct Vector4 { + pub X: f32, + pub Y: f32, + pub Z: f32, + pub W: f32, +} +impl windows_core::TypeKind for Vector4 { + type TypeKind = windows_core::CopyType; +} +impl windows_core::RuntimeType for Vector4 { + const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::from_slice( + b"struct(Windows.Foundation.Numerics.Vector4;f4;f4;f4;f4)", + ); +} diff --git a/crates/libs/numerics/src/lib.rs b/crates/libs/numerics/src/lib.rs new file mode 100644 index 0000000000..39d0e21c62 --- /dev/null +++ b/crates/libs/numerics/src/lib.rs @@ -0,0 +1,13 @@ +#![allow(non_snake_case, clippy::all)] +#![doc = include_str!("../readme.md")] +#![allow(missing_docs)] +#![cfg_attr(all(not(feature = "std")), no_std)] + +mod bindings; +pub use bindings::*; + +mod matrix3x2; +mod matrix4x4; +mod vector2; +mod vector3; +mod vector4; diff --git a/crates/libs/windows/src/extensions/Foundation/Numerics/Matrix3x2.rs b/crates/libs/numerics/src/matrix3x2.rs similarity index 87% rename from crates/libs/windows/src/extensions/Foundation/Numerics/Matrix3x2.rs rename to crates/libs/numerics/src/matrix3x2.rs index ec4d9e3c87..ddb46852d5 100644 --- a/crates/libs/windows/src/extensions/Foundation/Numerics/Matrix3x2.rs +++ b/crates/libs/numerics/src/matrix3x2.rs @@ -1,11 +1,25 @@ -use crate::Foundation::Numerics::Matrix3x2; +use super::*; impl Matrix3x2 { pub const fn identity() -> Self { - Self { M11: 1.0, M12: 0.0, M21: 0.0, M22: 1.0, M31: 0.0, M32: 0.0 } + Self { + M11: 1.0, + M12: 0.0, + M21: 0.0, + M22: 1.0, + M31: 0.0, + M32: 0.0, + } } pub const fn translation(x: f32, y: f32) -> Self { - Self { M11: 1.0, M12: 0.0, M21: 0.0, M22: 1.0, M31: x, M32: y } + Self { + M11: 1.0, + M12: 0.0, + M21: 0.0, + M22: 1.0, + M31: x, + M32: y, + } } pub fn rotation(angle: f32, x: f32, y: f32) -> Self { #[repr(C)] @@ -51,7 +65,14 @@ impl Matrix3x2 { } } fn impl_mul_f32(&self, rhs: f32) -> Self { - Self { M11: self.M11 * rhs, M12: self.M12 * rhs, M21: self.M21 * rhs, M22: self.M22 * rhs, M31: self.M31 * rhs, M32: self.M32 * rhs } + Self { + M11: self.M11 * rhs, + M12: self.M12 * rhs, + M21: self.M21 * rhs, + M22: self.M22 * rhs, + M31: self.M31 * rhs, + M32: self.M32 * rhs, + } } } diff --git a/crates/libs/windows/src/extensions/Foundation/Numerics/Matrix4x4.rs b/crates/libs/numerics/src/matrix4x4.rs similarity index 99% rename from crates/libs/windows/src/extensions/Foundation/Numerics/Matrix4x4.rs rename to crates/libs/numerics/src/matrix4x4.rs index d3319d1974..beb2f1d40b 100644 --- a/crates/libs/windows/src/extensions/Foundation/Numerics/Matrix4x4.rs +++ b/crates/libs/numerics/src/matrix4x4.rs @@ -1,4 +1,4 @@ -use crate::Foundation::Numerics::Matrix4x4; +use super::*; impl Matrix4x4 { pub const fn translation(x: f32, y: f32, z: f32) -> Self { diff --git a/crates/libs/windows/src/extensions/Foundation/Numerics/Vector2.rs b/crates/libs/numerics/src/vector2.rs similarity index 88% rename from crates/libs/windows/src/extensions/Foundation/Numerics/Vector2.rs rename to crates/libs/numerics/src/vector2.rs index 62b9907e1c..56e9119390 100644 --- a/crates/libs/windows/src/extensions/Foundation/Numerics/Vector2.rs +++ b/crates/libs/numerics/src/vector2.rs @@ -1,4 +1,4 @@ -use crate::Foundation::Numerics::Vector2; +use super::*; impl Vector2 { pub fn new(X: f32, Y: f32) -> Self { @@ -39,22 +39,40 @@ impl Vector2 { } fn impl_add(&self, rhs: &Self) -> Self { - Self { X: self.X + rhs.X, Y: self.Y + rhs.Y } + Self { + X: self.X + rhs.X, + Y: self.Y + rhs.Y, + } } fn impl_sub(&self, rhs: &Self) -> Self { - Self { X: self.X - rhs.X, Y: self.Y - rhs.Y } + Self { + X: self.X - rhs.X, + Y: self.Y - rhs.Y, + } } fn impl_div(&self, rhs: &Self) -> Self { - Self { X: self.X / rhs.X, Y: self.Y / rhs.Y } + Self { + X: self.X / rhs.X, + Y: self.Y / rhs.Y, + } } fn impl_div_f32(&self, rhs: f32) -> Self { - Self { X: self.X / rhs, Y: self.Y / rhs } + Self { + X: self.X / rhs, + Y: self.Y / rhs, + } } fn impl_mul(&self, rhs: &Self) -> Self { - Self { X: self.X * rhs.X, Y: self.Y * rhs.Y } + Self { + X: self.X * rhs.X, + Y: self.Y * rhs.Y, + } } fn impl_mul_f32(&self, rhs: f32) -> Self { - Self { X: self.X * rhs, Y: self.Y * rhs } + Self { + X: self.X * rhs, + Y: self.Y * rhs, + } } } diff --git a/crates/libs/windows/src/extensions/Foundation/Numerics/Vector3.rs b/crates/libs/numerics/src/vector3.rs similarity index 78% rename from crates/libs/windows/src/extensions/Foundation/Numerics/Vector3.rs rename to crates/libs/numerics/src/vector3.rs index d041951024..a4210d8864 100644 --- a/crates/libs/windows/src/extensions/Foundation/Numerics/Vector3.rs +++ b/crates/libs/numerics/src/vector3.rs @@ -1,23 +1,43 @@ -use crate::Foundation::Numerics::Vector3; +use super::*; impl Vector3 { pub fn new(X: f32, Y: f32, Z: f32) -> Self { Self { X, Y, Z } } pub fn zero() -> Self { - Self { X: 0f32, Y: 0f32, Z: 0f32 } + Self { + X: 0f32, + Y: 0f32, + Z: 0f32, + } } pub fn one() -> Self { - Self { X: 1f32, Y: 1f32, Z: 1f32 } + Self { + X: 1f32, + Y: 1f32, + Z: 1f32, + } } pub fn unit_x() -> Self { - Self { X: 1.0, Y: 0.0, Z: 0.0 } + Self { + X: 1.0, + Y: 0.0, + Z: 0.0, + } } pub fn unit_y() -> Self { - Self { X: 0.0, Y: 1.0, Z: 0.0 } + Self { + X: 0.0, + Y: 1.0, + Z: 0.0, + } } pub fn unit_z() -> Self { - Self { X: 0.0, Y: 0.0, Z: 1.0 } + Self { + X: 0.0, + Y: 0.0, + Z: 1.0, + } } pub fn dot(&self, rhs: &Self) -> f32 { self.X * rhs.X + self.Y * rhs.Y + self.Z * rhs.Z @@ -42,22 +62,46 @@ impl Vector3 { } fn impl_add(&self, rhs: &Self) -> Self { - Self { X: self.X + rhs.X, Y: self.Y + rhs.Y, Z: self.Z + rhs.Z } + Self { + X: self.X + rhs.X, + Y: self.Y + rhs.Y, + Z: self.Z + rhs.Z, + } } fn impl_sub(&self, rhs: &Self) -> Self { - Self { X: self.X - rhs.X, Y: self.Y - rhs.Y, Z: self.Z - rhs.Z } + Self { + X: self.X - rhs.X, + Y: self.Y - rhs.Y, + Z: self.Z - rhs.Z, + } } fn impl_div(&self, rhs: &Self) -> Self { - Self { X: self.X / rhs.X, Y: self.Y / rhs.Y, Z: self.Z / rhs.Z } + Self { + X: self.X / rhs.X, + Y: self.Y / rhs.Y, + Z: self.Z / rhs.Z, + } } fn impl_div_f32(&self, rhs: f32) -> Self { - Self { X: self.X / rhs, Y: self.Y / rhs, Z: self.Z / rhs } + Self { + X: self.X / rhs, + Y: self.Y / rhs, + Z: self.Z / rhs, + } } fn impl_mul(&self, rhs: &Self) -> Self { - Self { X: self.X * rhs.X, Y: self.Y * rhs.Y, Z: self.Z * rhs.Z } + Self { + X: self.X * rhs.X, + Y: self.Y * rhs.Y, + Z: self.Z * rhs.Z, + } } fn impl_mul_f32(&self, rhs: f32) -> Self { - Self { X: self.X * rhs, Y: self.Y * rhs, Z: self.Z * rhs } + Self { + X: self.X * rhs, + Y: self.Y * rhs, + Z: self.Z * rhs, + } } } diff --git a/crates/libs/windows/src/extensions/Foundation/Numerics/Vector4.rs b/crates/libs/numerics/src/vector4.rs similarity index 73% rename from crates/libs/windows/src/extensions/Foundation/Numerics/Vector4.rs rename to crates/libs/numerics/src/vector4.rs index d5b9426799..e54c59c8ca 100644 --- a/crates/libs/windows/src/extensions/Foundation/Numerics/Vector4.rs +++ b/crates/libs/numerics/src/vector4.rs @@ -1,26 +1,56 @@ -use crate::Foundation::Numerics::Vector4; +use super::*; impl Vector4 { pub fn new(X: f32, Y: f32, Z: f32, W: f32) -> Self { Self { X, Y, Z, W } } pub fn zero() -> Self { - Self { X: 0f32, Y: 0f32, Z: 0f32, W: 0f32 } + Self { + X: 0f32, + Y: 0f32, + Z: 0f32, + W: 0f32, + } } pub fn one() -> Self { - Self { X: 1f32, Y: 1f32, Z: 1f32, W: 1f32 } + Self { + X: 1f32, + Y: 1f32, + Z: 1f32, + W: 1f32, + } } pub fn unit_x() -> Self { - Self { X: 1.0, Y: 0.0, Z: 0.0, W: 0.0 } + Self { + X: 1.0, + Y: 0.0, + Z: 0.0, + W: 0.0, + } } pub fn unit_y() -> Self { - Self { X: 0.0, Y: 1.0, Z: 0.0, W: 0.0 } + Self { + X: 0.0, + Y: 1.0, + Z: 0.0, + W: 0.0, + } } pub fn unit_z() -> Self { - Self { X: 0.0, Y: 0.0, Z: 1.0, W: 0.0 } + Self { + X: 0.0, + Y: 0.0, + Z: 1.0, + W: 0.0, + } } pub fn unit_w() -> Self { - Self { X: 0.0, Y: 0.0, Z: 0.0, W: 1.0 } + Self { + X: 0.0, + Y: 0.0, + Z: 0.0, + W: 1.0, + } } pub fn dot(&self, rhs: &Self) -> f32 { self.X * rhs.X + self.Y * rhs.Y + self.Z * rhs.Z + self.W * rhs.W @@ -45,22 +75,52 @@ impl Vector4 { } fn impl_add(&self, rhs: &Self) -> Self { - Self { X: self.X + rhs.X, Y: self.Y + rhs.Y, Z: self.Z + rhs.Z, W: self.W + rhs.W } + Self { + X: self.X + rhs.X, + Y: self.Y + rhs.Y, + Z: self.Z + rhs.Z, + W: self.W + rhs.W, + } } fn impl_sub(&self, rhs: &Self) -> Self { - Self { X: self.X - rhs.X, Y: self.Y - rhs.Y, Z: self.Z - rhs.Z, W: self.W - rhs.W } + Self { + X: self.X - rhs.X, + Y: self.Y - rhs.Y, + Z: self.Z - rhs.Z, + W: self.W - rhs.W, + } } fn impl_div(&self, rhs: &Self) -> Self { - Self { X: self.X / rhs.X, Y: self.Y / rhs.Y, Z: self.Z / rhs.Z, W: self.W / rhs.W } + Self { + X: self.X / rhs.X, + Y: self.Y / rhs.Y, + Z: self.Z / rhs.Z, + W: self.W / rhs.W, + } } fn impl_div_f32(&self, rhs: f32) -> Self { - Self { X: self.X / rhs, Y: self.Y / rhs, Z: self.Z / rhs, W: self.W / rhs } + Self { + X: self.X / rhs, + Y: self.Y / rhs, + Z: self.Z / rhs, + W: self.W / rhs, + } } fn impl_mul(&self, rhs: &Self) -> Self { - Self { X: self.X * rhs.X, Y: self.Y * rhs.Y, Z: self.Z * rhs.Z, W: self.W * rhs.W } + Self { + X: self.X * rhs.X, + Y: self.Y * rhs.Y, + Z: self.Z * rhs.Z, + W: self.W * rhs.W, + } } fn impl_mul_f32(&self, rhs: f32) -> Self { - Self { X: self.X * rhs, Y: self.Y * rhs, Z: self.Z * rhs, W: self.W * rhs } + Self { + X: self.X * rhs, + Y: self.Y * rhs, + Z: self.Z * rhs, + W: self.W * rhs, + } } } diff --git a/crates/libs/windows/Cargo.toml b/crates/libs/windows/Cargo.toml index a8a5e67995..b4f053f431 100644 --- a/crates/libs/windows/Cargo.toml +++ b/crates/libs/windows/Cargo.toml @@ -40,6 +40,12 @@ version = "0.1.0" path = "../collections" default-features = false +[dependencies.windows-numerics] +version = "0.1.0" +path = "../numerics" +default-features = false + + [features] default = ["std"] docs = [] diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Holographic/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Holographic/mod.rs index d7d2c8eecd..4a4e6b64db 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Holographic/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Holographic/mod.rs @@ -4,7 +4,7 @@ pub struct HolographicKeyboard(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(HolographicKeyboard, windows_core::IUnknown, windows_core::IInspectable); impl HolographicKeyboard { #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] - pub fn SetPlacementOverride(&self, coordinatesystem: P0, topcenterposition: super::super::Foundation::Numerics::Vector3, orientation: super::super::Foundation::Numerics::Quaternion) -> windows_core::Result<()> + pub fn SetPlacementOverride(&self, coordinatesystem: P0, topcenterposition: windows_numerics::Vector3, orientation: super::super::Foundation::Numerics::Quaternion) -> windows_core::Result<()> where P0: windows_core::Param, { @@ -12,7 +12,7 @@ impl HolographicKeyboard { unsafe { (windows_core::Interface::vtable(this).SetPlacementOverride)(windows_core::Interface::as_raw(this), coordinatesystem.param().abi(), topcenterposition, orientation).ok() } } #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] - pub fn SetPlacementOverrideWithMaxSize(&self, coordinatesystem: P0, topcenterposition: super::super::Foundation::Numerics::Vector3, orientation: super::super::Foundation::Numerics::Quaternion, maxsize: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> + pub fn SetPlacementOverrideWithMaxSize(&self, coordinatesystem: P0, topcenterposition: windows_numerics::Vector3, orientation: super::super::Foundation::Numerics::Quaternion, maxsize: windows_numerics::Vector2) -> windows_core::Result<()> where P0: windows_core::Param, { @@ -54,11 +54,11 @@ impl windows_core::RuntimeType for IHolographicKeyboard { pub struct IHolographicKeyboard_Vtbl { pub base__: windows_core::IInspectable_Vtbl, #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] - pub SetPlacementOverride: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::Numerics::Vector3, super::super::Foundation::Numerics::Quaternion) -> windows_core::HRESULT, + pub SetPlacementOverride: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_numerics::Vector3, super::super::Foundation::Numerics::Quaternion) -> windows_core::HRESULT, #[cfg(not(all(feature = "Foundation_Numerics", feature = "Perception_Spatial")))] SetPlacementOverride: usize, #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] - pub SetPlacementOverrideWithMaxSize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::Numerics::Vector3, super::super::Foundation::Numerics::Quaternion, super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, + pub SetPlacementOverrideWithMaxSize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_numerics::Vector3, super::super::Foundation::Numerics::Quaternion, windows_numerics::Vector2) -> windows_core::HRESULT, #[cfg(not(all(feature = "Foundation_Numerics", feature = "Perception_Spatial")))] SetPlacementOverrideWithMaxSize: usize, pub ResetPlacementOverride: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Preview/Holographic/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Preview/Holographic/mod.rs index 43a14aad83..9858a3eb4b 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Preview/Holographic/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Preview/Holographic/mod.rs @@ -32,16 +32,16 @@ pub struct HolographicKeyboardPlacementOverridePreview(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(HolographicKeyboardPlacementOverridePreview, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl HolographicKeyboardPlacementOverridePreview { - #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] - pub fn SetPlacementOverride(&self, coordinatesystem: P0, topcenterposition: super::super::super::Foundation::Numerics::Vector3, normal: super::super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> + #[cfg(feature = "Perception_Spatial")] + pub fn SetPlacementOverride(&self, coordinatesystem: P0, topcenterposition: windows_numerics::Vector3, normal: windows_numerics::Vector3) -> windows_core::Result<()> where P0: windows_core::Param, { let this = self; unsafe { (windows_core::Interface::vtable(this).SetPlacementOverride)(windows_core::Interface::as_raw(this), coordinatesystem.param().abi(), topcenterposition, normal).ok() } } - #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] - pub fn SetPlacementOverrideWithMaxSize(&self, coordinatesystem: P0, topcenterposition: super::super::super::Foundation::Numerics::Vector3, normal: super::super::super::Foundation::Numerics::Vector3, maxsize: super::super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> + #[cfg(feature = "Perception_Spatial")] + pub fn SetPlacementOverrideWithMaxSize(&self, coordinatesystem: P0, topcenterposition: windows_numerics::Vector3, normal: windows_numerics::Vector3, maxsize: windows_numerics::Vector2) -> windows_core::Result<()> where P0: windows_core::Param, { @@ -103,13 +103,13 @@ impl windows_core::RuntimeType for IHolographicKeyboardPlacementOverridePreview #[repr(C)] pub struct IHolographicKeyboardPlacementOverridePreview_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] - pub SetPlacementOverride: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::super::Foundation::Numerics::Vector3, super::super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Numerics", feature = "Perception_Spatial")))] + #[cfg(feature = "Perception_Spatial")] + pub SetPlacementOverride: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_numerics::Vector3, windows_numerics::Vector3) -> windows_core::HRESULT, + #[cfg(not(feature = "Perception_Spatial"))] SetPlacementOverride: usize, - #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] - pub SetPlacementOverrideWithMaxSize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::super::Foundation::Numerics::Vector3, super::super::super::Foundation::Numerics::Vector3, super::super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Numerics", feature = "Perception_Spatial")))] + #[cfg(feature = "Perception_Spatial")] + pub SetPlacementOverrideWithMaxSize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_numerics::Vector3, windows_numerics::Vector3, windows_numerics::Vector2) -> windows_core::HRESULT, + #[cfg(not(feature = "Perception_Spatial"))] SetPlacementOverrideWithMaxSize: usize, pub ResetPlacementOverride: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } diff --git a/crates/libs/windows/src/Windows/Devices/Lights/mod.rs b/crates/libs/windows/src/Windows/Devices/Lights/mod.rs index 9961bbb082..40ece7a957 100644 --- a/crates/libs/windows/src/Windows/Devices/Lights/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Lights/mod.rs @@ -38,10 +38,7 @@ pub struct ILampArray_Vtbl { pub LampArrayKind: unsafe extern "system" fn(*mut core::ffi::c_void, *mut LampArrayKind) -> windows_core::HRESULT, pub LampCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub MinUpdateInterval: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::TimeSpan) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub BoundingBox: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - BoundingBox: usize, + pub BoundingBox: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, pub IsEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub SetIsEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, pub BrightnessLevel: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, @@ -130,10 +127,7 @@ pub struct ILampInfo_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Index: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub Purposes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut LampPurposes) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub Position: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - Position: usize, + pub Position: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, pub RedLevelCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub GreenLevelCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub BlueLevelCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, @@ -321,8 +315,7 @@ impl LampArray { (windows_core::Interface::vtable(this).MinUpdateInterval)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn BoundingBox(&self) -> windows_core::Result { + pub fn BoundingBox(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -560,8 +553,7 @@ impl LampInfo { (windows_core::Interface::vtable(this).Purposes)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Position(&self) -> windows_core::Result { + pub fn Position(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Foundation/Numerics/mod.rs b/crates/libs/windows/src/Windows/Foundation/Numerics/mod.rs index e98fb880eb..bb61746251 100644 --- a/crates/libs/windows/src/Windows/Foundation/Numerics/mod.rs +++ b/crates/libs/windows/src/Windows/Foundation/Numerics/mod.rs @@ -1,49 +1,7 @@ #[repr(C)] #[derive(Clone, Copy, Debug, Default, PartialEq)] -pub struct Matrix3x2 { - pub M11: f32, - pub M12: f32, - pub M21: f32, - pub M22: f32, - pub M31: f32, - pub M32: f32, -} -impl windows_core::TypeKind for Matrix3x2 { - type TypeKind = windows_core::CopyType; -} -impl windows_core::RuntimeType for Matrix3x2 { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::from_slice(b"struct(Windows.Foundation.Numerics.Matrix3x2;f4;f4;f4;f4;f4;f4)"); -} -#[repr(C)] -#[derive(Clone, Copy, Debug, Default, PartialEq)] -pub struct Matrix4x4 { - pub M11: f32, - pub M12: f32, - pub M13: f32, - pub M14: f32, - pub M21: f32, - pub M22: f32, - pub M23: f32, - pub M24: f32, - pub M31: f32, - pub M32: f32, - pub M33: f32, - pub M34: f32, - pub M41: f32, - pub M42: f32, - pub M43: f32, - pub M44: f32, -} -impl windows_core::TypeKind for Matrix4x4 { - type TypeKind = windows_core::CopyType; -} -impl windows_core::RuntimeType for Matrix4x4 { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::from_slice(b"struct(Windows.Foundation.Numerics.Matrix4x4;f4;f4;f4;f4;f4;f4;f4;f4;f4;f4;f4;f4;f4;f4;f4;f4)"); -} -#[repr(C)] -#[derive(Clone, Copy, Debug, Default, PartialEq)] pub struct Plane { - pub Normal: Vector3, + pub Normal: windows_numerics::Vector3, pub D: f32, } impl windows_core::TypeKind for Plane { @@ -78,42 +36,3 @@ impl windows_core::TypeKind for Rational { impl windows_core::RuntimeType for Rational { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::from_slice(b"struct(Windows.Foundation.Numerics.Rational;u4;u4)"); } -#[repr(C)] -#[derive(Clone, Copy, Debug, Default, PartialEq)] -pub struct Vector2 { - pub X: f32, - pub Y: f32, -} -impl windows_core::TypeKind for Vector2 { - type TypeKind = windows_core::CopyType; -} -impl windows_core::RuntimeType for Vector2 { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::from_slice(b"struct(Windows.Foundation.Numerics.Vector2;f4;f4)"); -} -#[repr(C)] -#[derive(Clone, Copy, Debug, Default, PartialEq)] -pub struct Vector3 { - pub X: f32, - pub Y: f32, - pub Z: f32, -} -impl windows_core::TypeKind for Vector3 { - type TypeKind = windows_core::CopyType; -} -impl windows_core::RuntimeType for Vector3 { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::from_slice(b"struct(Windows.Foundation.Numerics.Vector3;f4;f4;f4)"); -} -#[repr(C)] -#[derive(Clone, Copy, Debug, Default, PartialEq)] -pub struct Vector4 { - pub X: f32, - pub Y: f32, - pub Z: f32, - pub W: f32, -} -impl windows_core::TypeKind for Vector4 { - type TypeKind = windows_core::CopyType; -} -impl windows_core::RuntimeType for Vector4 { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::from_slice(b"struct(Windows.Foundation.Numerics.Vector4;f4;f4;f4;f4)"); -} diff --git a/crates/libs/windows/src/Windows/Gaming/Input/ForceFeedback/mod.rs b/crates/libs/windows/src/Windows/Gaming/Input/ForceFeedback/mod.rs index 85d24939f7..e0af126777 100644 --- a/crates/libs/windows/src/Windows/Gaming/Input/ForceFeedback/mod.rs +++ b/crates/libs/windows/src/Windows/Gaming/Input/ForceFeedback/mod.rs @@ -10,8 +10,7 @@ impl ConditionForceEffect { (windows_core::Interface::vtable(this).Kind)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetParameters(&self, direction: super::super::super::Foundation::Numerics::Vector3, positivecoefficient: f32, negativecoefficient: f32, maxpositivemagnitude: f32, maxnegativemagnitude: f32, deadzone: f32, bias: f32) -> windows_core::Result<()> { + pub fn SetParameters(&self, direction: windows_numerics::Vector3, positivecoefficient: f32, negativecoefficient: f32, maxpositivemagnitude: f32, maxnegativemagnitude: f32, deadzone: f32, bias: f32) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetParameters)(windows_core::Interface::as_raw(this), direction, positivecoefficient, negativecoefficient, maxpositivemagnitude, maxnegativemagnitude, deadzone, bias).ok() } } @@ -91,13 +90,11 @@ impl ConstantForceEffect { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetParameters(&self, vector: super::super::super::Foundation::Numerics::Vector3, duration: super::super::super::Foundation::TimeSpan) -> windows_core::Result<()> { + pub fn SetParameters(&self, vector: windows_numerics::Vector3, duration: super::super::super::Foundation::TimeSpan) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetParameters)(windows_core::Interface::as_raw(this), vector, duration).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetParametersWithEnvelope(&self, vector: super::super::super::Foundation::Numerics::Vector3, attackgain: f32, sustaingain: f32, releasegain: f32, startdelay: super::super::super::Foundation::TimeSpan, attackduration: super::super::super::Foundation::TimeSpan, sustainduration: super::super::super::Foundation::TimeSpan, releaseduration: super::super::super::Foundation::TimeSpan, repeatcount: u32) -> windows_core::Result<()> { + pub fn SetParametersWithEnvelope(&self, vector: windows_numerics::Vector3, attackgain: f32, sustaingain: f32, releasegain: f32, startdelay: super::super::super::Foundation::TimeSpan, attackduration: super::super::super::Foundation::TimeSpan, sustainduration: super::super::super::Foundation::TimeSpan, releaseduration: super::super::super::Foundation::TimeSpan, repeatcount: u32) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetParametersWithEnvelope)(windows_core::Interface::as_raw(this), vector, attackgain, sustaingain, releasegain, startdelay, attackduration, sustainduration, releaseduration, repeatcount).ok() } } @@ -328,10 +325,7 @@ impl windows_core::RuntimeType for IConditionForceEffect { pub struct IConditionForceEffect_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Kind: unsafe extern "system" fn(*mut core::ffi::c_void, *mut ConditionForceEffectKind) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub SetParameters: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::Numerics::Vector3, f32, f32, f32, f32, f32, f32) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetParameters: usize, + pub SetParameters: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector3, f32, f32, f32, f32, f32, f32) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IConditionForceEffectFactory, IConditionForceEffectFactory_Vtbl, 0x91a99264_1810_4eb6_a773_bfd3b8cddbab); impl windows_core::RuntimeType for IConditionForceEffectFactory { @@ -349,14 +343,8 @@ impl windows_core::RuntimeType for IConstantForceEffect { #[repr(C)] pub struct IConstantForceEffect_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Numerics")] - pub SetParameters: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::Numerics::Vector3, super::super::super::Foundation::TimeSpan) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetParameters: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetParametersWithEnvelope: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::Numerics::Vector3, f32, f32, f32, super::super::super::Foundation::TimeSpan, super::super::super::Foundation::TimeSpan, super::super::super::Foundation::TimeSpan, super::super::super::Foundation::TimeSpan, u32) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetParametersWithEnvelope: usize, + pub SetParameters: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector3, super::super::super::Foundation::TimeSpan) -> windows_core::HRESULT, + pub SetParametersWithEnvelope: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector3, f32, f32, f32, super::super::super::Foundation::TimeSpan, super::super::super::Foundation::TimeSpan, super::super::super::Foundation::TimeSpan, super::super::super::Foundation::TimeSpan, u32) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IForceFeedbackEffect, IForceFeedbackEffect_Vtbl, 0xa17fba0c_2ae4_48c2_8063_eabd0777cb89); impl windows_core::RuntimeType for IForceFeedbackEffect { @@ -496,14 +484,8 @@ impl windows_core::RuntimeType for IPeriodicForceEffect { pub struct IPeriodicForceEffect_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Kind: unsafe extern "system" fn(*mut core::ffi::c_void, *mut PeriodicForceEffectKind) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub SetParameters: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::Numerics::Vector3, f32, f32, f32, super::super::super::Foundation::TimeSpan) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetParameters: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetParametersWithEnvelope: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::Numerics::Vector3, f32, f32, f32, f32, f32, f32, super::super::super::Foundation::TimeSpan, super::super::super::Foundation::TimeSpan, super::super::super::Foundation::TimeSpan, super::super::super::Foundation::TimeSpan, u32) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetParametersWithEnvelope: usize, + pub SetParameters: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector3, f32, f32, f32, super::super::super::Foundation::TimeSpan) -> windows_core::HRESULT, + pub SetParametersWithEnvelope: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector3, f32, f32, f32, f32, f32, f32, super::super::super::Foundation::TimeSpan, super::super::super::Foundation::TimeSpan, super::super::super::Foundation::TimeSpan, super::super::super::Foundation::TimeSpan, u32) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IPeriodicForceEffectFactory, IPeriodicForceEffectFactory_Vtbl, 0x6f62eb1a_9851_477b_b318_35ecaa15070f); impl windows_core::RuntimeType for IPeriodicForceEffectFactory { @@ -521,14 +503,8 @@ impl windows_core::RuntimeType for IRampForceEffect { #[repr(C)] pub struct IRampForceEffect_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Numerics")] - pub SetParameters: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::Numerics::Vector3, super::super::super::Foundation::Numerics::Vector3, super::super::super::Foundation::TimeSpan) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetParameters: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetParametersWithEnvelope: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::Numerics::Vector3, super::super::super::Foundation::Numerics::Vector3, f32, f32, f32, super::super::super::Foundation::TimeSpan, super::super::super::Foundation::TimeSpan, super::super::super::Foundation::TimeSpan, super::super::super::Foundation::TimeSpan, u32) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetParametersWithEnvelope: usize, + pub SetParameters: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector3, windows_numerics::Vector3, super::super::super::Foundation::TimeSpan) -> windows_core::HRESULT, + pub SetParametersWithEnvelope: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector3, windows_numerics::Vector3, f32, f32, f32, super::super::super::Foundation::TimeSpan, super::super::super::Foundation::TimeSpan, super::super::super::Foundation::TimeSpan, super::super::super::Foundation::TimeSpan, u32) -> windows_core::HRESULT, } #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] @@ -568,13 +544,11 @@ impl PeriodicForceEffect { (windows_core::Interface::vtable(this).Kind)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetParameters(&self, vector: super::super::super::Foundation::Numerics::Vector3, frequency: f32, phase: f32, bias: f32, duration: super::super::super::Foundation::TimeSpan) -> windows_core::Result<()> { + pub fn SetParameters(&self, vector: windows_numerics::Vector3, frequency: f32, phase: f32, bias: f32, duration: super::super::super::Foundation::TimeSpan) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetParameters)(windows_core::Interface::as_raw(this), vector, frequency, phase, bias, duration).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetParametersWithEnvelope(&self, vector: super::super::super::Foundation::Numerics::Vector3, frequency: f32, phase: f32, bias: f32, attackgain: f32, sustaingain: f32, releasegain: f32, startdelay: super::super::super::Foundation::TimeSpan, attackduration: super::super::super::Foundation::TimeSpan, sustainduration: super::super::super::Foundation::TimeSpan, releaseduration: super::super::super::Foundation::TimeSpan, repeatcount: u32) -> windows_core::Result<()> { + pub fn SetParametersWithEnvelope(&self, vector: windows_numerics::Vector3, frequency: f32, phase: f32, bias: f32, attackgain: f32, sustaingain: f32, releasegain: f32, startdelay: super::super::super::Foundation::TimeSpan, attackduration: super::super::super::Foundation::TimeSpan, sustainduration: super::super::super::Foundation::TimeSpan, releaseduration: super::super::super::Foundation::TimeSpan, repeatcount: u32) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetParametersWithEnvelope)(windows_core::Interface::as_raw(this), vector, frequency, phase, bias, attackgain, sustaingain, releasegain, startdelay, attackduration, sustainduration, releaseduration, repeatcount).ok() } } @@ -655,13 +629,11 @@ impl RampForceEffect { let this = self; unsafe { (windows_core::Interface::vtable(this).Stop)(windows_core::Interface::as_raw(this)).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetParameters(&self, startvector: super::super::super::Foundation::Numerics::Vector3, endvector: super::super::super::Foundation::Numerics::Vector3, duration: super::super::super::Foundation::TimeSpan) -> windows_core::Result<()> { + pub fn SetParameters(&self, startvector: windows_numerics::Vector3, endvector: windows_numerics::Vector3, duration: super::super::super::Foundation::TimeSpan) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetParameters)(windows_core::Interface::as_raw(this), startvector, endvector, duration).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetParametersWithEnvelope(&self, startvector: super::super::super::Foundation::Numerics::Vector3, endvector: super::super::super::Foundation::Numerics::Vector3, attackgain: f32, sustaingain: f32, releasegain: f32, startdelay: super::super::super::Foundation::TimeSpan, attackduration: super::super::super::Foundation::TimeSpan, sustainduration: super::super::super::Foundation::TimeSpan, releaseduration: super::super::super::Foundation::TimeSpan, repeatcount: u32) -> windows_core::Result<()> { + pub fn SetParametersWithEnvelope(&self, startvector: windows_numerics::Vector3, endvector: windows_numerics::Vector3, attackgain: f32, sustaingain: f32, releasegain: f32, startdelay: super::super::super::Foundation::TimeSpan, attackduration: super::super::super::Foundation::TimeSpan, sustainduration: super::super::super::Foundation::TimeSpan, releaseduration: super::super::super::Foundation::TimeSpan, repeatcount: u32) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetParametersWithEnvelope)(windows_core::Interface::as_raw(this), startvector, endvector, attackgain, sustaingain, releasegain, startdelay, attackduration, sustainduration, releaseduration, repeatcount).ok() } } diff --git a/crates/libs/windows/src/Windows/Graphics/Holographic/mod.rs b/crates/libs/windows/src/Windows/Graphics/Holographic/mod.rs index e203f4dfd9..e0badad4f2 100644 --- a/crates/libs/windows/src/Windows/Graphics/Holographic/mod.rs +++ b/crates/libs/windows/src/Windows/Graphics/Holographic/mod.rs @@ -165,7 +165,7 @@ impl HolographicCameraPose { (windows_core::Interface::vtable(this).Viewport)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] + #[cfg(feature = "Perception_Spatial")] pub fn TryGetViewTransform(&self, coordinatesystem: P0) -> windows_core::Result> where P0: windows_core::Param, @@ -176,7 +176,6 @@ impl HolographicCameraPose { (windows_core::Interface::vtable(this).TryGetViewTransform)(windows_core::Interface::as_raw(this), coordinatesystem.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Numerics")] pub fn ProjectionTransform(&self) -> windows_core::Result { let this = self; unsafe { @@ -220,7 +219,7 @@ impl HolographicCameraPose { (windows_core::Interface::vtable(this).FarPlaneDistance)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] + #[cfg(feature = "Perception_Spatial")] pub fn OverrideViewTransform(&self, coordinatesystem: P0, coordinatesystemtoviewtransform: HolographicStereoTransform) -> windows_core::Result<()> where P0: windows_core::Param, @@ -228,7 +227,6 @@ impl HolographicCameraPose { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).OverrideViewTransform)(windows_core::Interface::as_raw(this), coordinatesystem.param().abi(), coordinatesystemtoviewtransform).ok() } } - #[cfg(feature = "Foundation_Numerics")] pub fn OverrideProjectionTransform(&self, projectiontransform: HolographicStereoTransform) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).OverrideProjectionTransform)(windows_core::Interface::as_raw(this), projectiontransform).ok() } @@ -255,24 +253,24 @@ unsafe impl Sync for HolographicCameraPose {} pub struct HolographicCameraRenderingParameters(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(HolographicCameraRenderingParameters, windows_core::IUnknown, windows_core::IInspectable); impl HolographicCameraRenderingParameters { - #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] - pub fn SetFocusPoint(&self, coordinatesystem: P0, position: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> + #[cfg(feature = "Perception_Spatial")] + pub fn SetFocusPoint(&self, coordinatesystem: P0, position: windows_numerics::Vector3) -> windows_core::Result<()> where P0: windows_core::Param, { let this = self; unsafe { (windows_core::Interface::vtable(this).SetFocusPoint)(windows_core::Interface::as_raw(this), coordinatesystem.param().abi(), position).ok() } } - #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] - pub fn SetFocusPointWithNormal(&self, coordinatesystem: P0, position: super::super::Foundation::Numerics::Vector3, normal: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> + #[cfg(feature = "Perception_Spatial")] + pub fn SetFocusPointWithNormal(&self, coordinatesystem: P0, position: windows_numerics::Vector3, normal: windows_numerics::Vector3) -> windows_core::Result<()> where P0: windows_core::Param, { let this = self; unsafe { (windows_core::Interface::vtable(this).SetFocusPointWithNormal)(windows_core::Interface::as_raw(this), coordinatesystem.param().abi(), position, normal).ok() } } - #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] - pub fn SetFocusPointWithNormalLinearVelocity(&self, coordinatesystem: P0, position: super::super::Foundation::Numerics::Vector3, normal: super::super::Foundation::Numerics::Vector3, linearvelocity: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> + #[cfg(feature = "Perception_Spatial")] + pub fn SetFocusPointWithNormalLinearVelocity(&self, coordinatesystem: P0, position: windows_numerics::Vector3, normal: windows_numerics::Vector3, linearvelocity: windows_numerics::Vector3) -> windows_core::Result<()> where P0: windows_core::Param, { @@ -354,20 +352,18 @@ unsafe impl Sync for HolographicCameraRenderingParameters {} pub struct HolographicCameraViewportParameters(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(HolographicCameraViewportParameters, windows_core::IUnknown, windows_core::IInspectable); impl HolographicCameraViewportParameters { - #[cfg(feature = "Foundation_Numerics")] - pub fn HiddenAreaMesh(&self) -> windows_core::Result> { + pub fn HiddenAreaMesh(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::MaybeUninit::zeroed(); - (windows_core::Interface::vtable(this).HiddenAreaMesh)(windows_core::Interface::as_raw(this), windows_core::Array::::set_abi_len(core::mem::transmute(&mut result__)), result__.as_mut_ptr() as *mut _ as _).map(|| result__.assume_init()) + (windows_core::Interface::vtable(this).HiddenAreaMesh)(windows_core::Interface::as_raw(this), windows_core::Array::::set_abi_len(core::mem::transmute(&mut result__)), result__.as_mut_ptr() as *mut _ as _).map(|| result__.assume_init()) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn VisibleAreaMesh(&self) -> windows_core::Result> { + pub fn VisibleAreaMesh(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::MaybeUninit::zeroed(); - (windows_core::Interface::vtable(this).VisibleAreaMesh)(windows_core::Interface::as_raw(this), windows_core::Array::::set_abi_len(core::mem::transmute(&mut result__)), result__.as_mut_ptr() as *mut _ as _).map(|| result__.assume_init()) + (windows_core::Interface::vtable(this).VisibleAreaMesh)(windows_core::Interface::as_raw(this), windows_core::Array::::set_abi_len(core::mem::transmute(&mut result__)), result__.as_mut_ptr() as *mut _ as _).map(|| result__.assume_init()) } } } @@ -958,13 +954,12 @@ impl HolographicQuadLayerUpdateParameters { let this = self; unsafe { (windows_core::Interface::vtable(this).UpdateContentProtectionEnabled)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn UpdateExtents(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn UpdateExtents(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).UpdateExtents)(windows_core::Interface::as_raw(this), value).ok() } } #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] - pub fn UpdateLocationWithStationaryMode(&self, coordinatesystem: P0, position: super::super::Foundation::Numerics::Vector3, orientation: super::super::Foundation::Numerics::Quaternion) -> windows_core::Result<()> + pub fn UpdateLocationWithStationaryMode(&self, coordinatesystem: P0, position: windows_numerics::Vector3, orientation: super::super::Foundation::Numerics::Quaternion) -> windows_core::Result<()> where P0: windows_core::Param, { @@ -972,7 +967,7 @@ impl HolographicQuadLayerUpdateParameters { unsafe { (windows_core::Interface::vtable(this).UpdateLocationWithStationaryMode)(windows_core::Interface::as_raw(this), coordinatesystem.param().abi(), position, orientation).ok() } } #[cfg(feature = "Foundation_Numerics")] - pub fn UpdateLocationWithDisplayRelativeMode(&self, position: super::super::Foundation::Numerics::Vector3, orientation: super::super::Foundation::Numerics::Quaternion) -> windows_core::Result<()> { + pub fn UpdateLocationWithDisplayRelativeMode(&self, position: windows_numerics::Vector3, orientation: super::super::Foundation::Numerics::Quaternion) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).UpdateLocationWithDisplayRelativeMode)(windows_core::Interface::as_raw(this), position, orientation).ok() } } @@ -1256,8 +1251,8 @@ impl windows_core::RuntimeType for HolographicSpaceUserPresence { #[repr(C)] #[derive(Clone, Copy, Debug, Default, PartialEq)] pub struct HolographicStereoTransform { - pub Left: super::super::Foundation::Numerics::Matrix4x4, - pub Right: super::super::Foundation::Numerics::Matrix4x4, + pub Left: windows_numerics::Matrix4x4, + pub Right: windows_numerics::Matrix4x4, } impl windows_core::TypeKind for HolographicStereoTransform { type TypeKind = windows_core::CopyType; @@ -1460,14 +1455,11 @@ pub struct IHolographicCameraPose_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub HolographicCamera: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Viewport: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Rect) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] + #[cfg(feature = "Perception_Spatial")] pub TryGetViewTransform: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Numerics", feature = "Perception_Spatial")))] + #[cfg(not(feature = "Perception_Spatial"))] TryGetViewTransform: usize, - #[cfg(feature = "Foundation_Numerics")] pub ProjectionTransform: unsafe extern "system" fn(*mut core::ffi::c_void, *mut HolographicStereoTransform) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - ProjectionTransform: usize, #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] pub TryGetCullingFrustum: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(all(feature = "Foundation_Numerics", feature = "Perception_Spatial")))] @@ -1486,14 +1478,11 @@ impl windows_core::RuntimeType for IHolographicCameraPose2 { #[repr(C)] pub struct IHolographicCameraPose2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] + #[cfg(feature = "Perception_Spatial")] pub OverrideViewTransform: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, HolographicStereoTransform) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Numerics", feature = "Perception_Spatial")))] + #[cfg(not(feature = "Perception_Spatial"))] OverrideViewTransform: usize, - #[cfg(feature = "Foundation_Numerics")] pub OverrideProjectionTransform: unsafe extern "system" fn(*mut core::ffi::c_void, HolographicStereoTransform) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - OverrideProjectionTransform: usize, pub OverrideViewport: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Rect, super::super::Foundation::Rect) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IHolographicCameraRenderingParameters, IHolographicCameraRenderingParameters_Vtbl, 0x8eac2ed1_5bf4_4e16_8236_ae0800c11d0d); @@ -1503,17 +1492,17 @@ impl windows_core::RuntimeType for IHolographicCameraRenderingParameters { #[repr(C)] pub struct IHolographicCameraRenderingParameters_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] - pub SetFocusPoint: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Numerics", feature = "Perception_Spatial")))] + #[cfg(feature = "Perception_Spatial")] + pub SetFocusPoint: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_numerics::Vector3) -> windows_core::HRESULT, + #[cfg(not(feature = "Perception_Spatial"))] SetFocusPoint: usize, - #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] - pub SetFocusPointWithNormal: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::Numerics::Vector3, super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Numerics", feature = "Perception_Spatial")))] + #[cfg(feature = "Perception_Spatial")] + pub SetFocusPointWithNormal: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_numerics::Vector3, windows_numerics::Vector3) -> windows_core::HRESULT, + #[cfg(not(feature = "Perception_Spatial"))] SetFocusPointWithNormal: usize, - #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] - pub SetFocusPointWithNormalLinearVelocity: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::Numerics::Vector3, super::super::Foundation::Numerics::Vector3, super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Numerics", feature = "Perception_Spatial")))] + #[cfg(feature = "Perception_Spatial")] + pub SetFocusPointWithNormalLinearVelocity: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_numerics::Vector3, windows_numerics::Vector3, windows_numerics::Vector3) -> windows_core::HRESULT, + #[cfg(not(feature = "Perception_Spatial"))] SetFocusPointWithNormalLinearVelocity: usize, #[cfg(feature = "Graphics_DirectX_Direct3D11")] pub Direct3D11Device: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -1565,14 +1554,8 @@ impl windows_core::RuntimeType for IHolographicCameraViewportParameters { #[repr(C)] pub struct IHolographicCameraViewportParameters_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Numerics")] - pub HiddenAreaMesh: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut *mut super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - HiddenAreaMesh: usize, - #[cfg(feature = "Foundation_Numerics")] - pub VisibleAreaMesh: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut *mut super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - VisibleAreaMesh: usize, + pub HiddenAreaMesh: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut *mut windows_numerics::Vector2) -> windows_core::HRESULT, + pub VisibleAreaMesh: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut *mut windows_numerics::Vector2) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IHolographicDisplay, IHolographicDisplay_Vtbl, 0x9acea414_1d9f_4090_a388_90c06f6eae9c); impl windows_core::RuntimeType for IHolographicDisplay { @@ -1768,16 +1751,13 @@ pub struct IHolographicQuadLayerUpdateParameters_Vtbl { AcquireBufferToUpdateContent: usize, pub UpdateViewport: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Rect) -> windows_core::HRESULT, pub UpdateContentProtectionEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub UpdateExtents: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - UpdateExtents: usize, + pub UpdateExtents: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector2) -> windows_core::HRESULT, #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] - pub UpdateLocationWithStationaryMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::Numerics::Vector3, super::super::Foundation::Numerics::Quaternion) -> windows_core::HRESULT, + pub UpdateLocationWithStationaryMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_numerics::Vector3, super::super::Foundation::Numerics::Quaternion) -> windows_core::HRESULT, #[cfg(not(all(feature = "Foundation_Numerics", feature = "Perception_Spatial")))] UpdateLocationWithStationaryMode: usize, #[cfg(feature = "Foundation_Numerics")] - pub UpdateLocationWithDisplayRelativeMode: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector3, super::super::Foundation::Numerics::Quaternion) -> windows_core::HRESULT, + pub UpdateLocationWithDisplayRelativeMode: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector3, super::super::Foundation::Numerics::Quaternion) -> windows_core::HRESULT, #[cfg(not(feature = "Foundation_Numerics"))] UpdateLocationWithDisplayRelativeMode: usize, } diff --git a/crates/libs/windows/src/Windows/Graphics/Printing3D/mod.rs b/crates/libs/windows/src/Windows/Graphics/Printing3D/mod.rs index 004636ea32..b682e51170 100644 --- a/crates/libs/windows/src/Windows/Graphics/Printing3D/mod.rs +++ b/crates/libs/windows/src/Windows/Graphics/Printing3D/mod.rs @@ -251,14 +251,8 @@ pub struct IPrinting3DComponentWithMatrix_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Component: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetComponent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub Matrix: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Matrix4x4) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - Matrix: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetMatrix: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Matrix4x4) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetMatrix: usize, + pub Matrix: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Matrix4x4) -> windows_core::HRESULT, + pub SetMatrix: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Matrix4x4) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IPrinting3DCompositeMaterial, IPrinting3DCompositeMaterial_Vtbl, 0x462238dd_562e_4f6c_882d_f4d841fd63c7); impl windows_core::RuntimeType for IPrinting3DCompositeMaterial { @@ -1359,16 +1353,14 @@ impl Printing3DComponentWithMatrix { let this = self; unsafe { (windows_core::Interface::vtable(this).SetComponent)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Matrix(&self) -> windows_core::Result { + pub fn Matrix(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Matrix)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetMatrix(&self, value: super::super::Foundation::Numerics::Matrix4x4) -> windows_core::Result<()> { + pub fn SetMatrix(&self, value: windows_numerics::Matrix4x4) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetMatrix)(windows_core::Interface::as_raw(this), value).ok() } } diff --git a/crates/libs/windows/src/Windows/Media/Audio/mod.rs b/crates/libs/windows/src/Windows/Media/Audio/mod.rs index 0ec844cd23..9238e41ac0 100644 --- a/crates/libs/windows/src/Windows/Media/Audio/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Audio/mod.rs @@ -1570,29 +1570,25 @@ impl AudioNodeEmitter { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(feature = "Foundation_Numerics")] - pub fn Position(&self) -> windows_core::Result { + pub fn Position(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Position)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetPosition(&self, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetPosition(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetPosition)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Direction(&self) -> windows_core::Result { + pub fn Direction(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Direction)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetDirection(&self, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetDirection(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetDirection)(windows_core::Interface::as_raw(this), value).ok() } } @@ -1643,16 +1639,14 @@ impl AudioNodeEmitter { let this = self; unsafe { (windows_core::Interface::vtable(this).SetDopplerScale)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn DopplerVelocity(&self) -> windows_core::Result { + pub fn DopplerVelocity(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).DopplerVelocity)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetDopplerVelocity(&self, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetDopplerVelocity(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetDopplerVelocity)(windows_core::Interface::as_raw(this), value).ok() } } @@ -1966,16 +1960,14 @@ impl AudioNodeListener { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(feature = "Foundation_Numerics")] - pub fn Position(&self) -> windows_core::Result { + pub fn Position(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Position)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetPosition(&self, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetPosition(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetPosition)(windows_core::Interface::as_raw(this), value).ok() } } @@ -2003,16 +1995,14 @@ impl AudioNodeListener { let this = self; unsafe { (windows_core::Interface::vtable(this).SetSpeedOfSound)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn DopplerVelocity(&self) -> windows_core::Result { + pub fn DopplerVelocity(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).DopplerVelocity)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetDopplerVelocity(&self, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetDopplerVelocity(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetDopplerVelocity)(windows_core::Interface::as_raw(this), value).ok() } } @@ -3753,22 +3743,10 @@ impl windows_core::RuntimeType for IAudioNodeEmitter { #[repr(C)] pub struct IAudioNodeEmitter_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Numerics")] - pub Position: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - Position: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetPosition: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetPosition: usize, - #[cfg(feature = "Foundation_Numerics")] - pub Direction: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - Direction: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetDirection: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetDirection: usize, + pub Position: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, + pub SetPosition: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector3) -> windows_core::HRESULT, + pub Direction: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, + pub SetDirection: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector3) -> windows_core::HRESULT, pub Shape: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub DecayModel: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Gain: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, @@ -3777,14 +3755,8 @@ pub struct IAudioNodeEmitter_Vtbl { pub SetDistanceScale: unsafe extern "system" fn(*mut core::ffi::c_void, f64) -> windows_core::HRESULT, pub DopplerScale: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, pub SetDopplerScale: unsafe extern "system" fn(*mut core::ffi::c_void, f64) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub DopplerVelocity: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - DopplerVelocity: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetDopplerVelocity: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetDopplerVelocity: usize, + pub DopplerVelocity: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, + pub SetDopplerVelocity: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector3) -> windows_core::HRESULT, pub IsDopplerDisabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IAudioNodeEmitter2, IAudioNodeEmitter2_Vtbl, 0x4ab6eecb_ec29_47f8_818c_b6b660a5aeb1); @@ -3876,14 +3848,8 @@ impl windows_core::RuntimeType for IAudioNodeListener { #[repr(C)] pub struct IAudioNodeListener_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Numerics")] - pub Position: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - Position: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetPosition: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetPosition: usize, + pub Position: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, + pub SetPosition: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector3) -> windows_core::HRESULT, #[cfg(feature = "Foundation_Numerics")] pub Orientation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Quaternion) -> windows_core::HRESULT, #[cfg(not(feature = "Foundation_Numerics"))] @@ -3894,14 +3860,8 @@ pub struct IAudioNodeListener_Vtbl { SetOrientation: usize, pub SpeedOfSound: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, pub SetSpeedOfSound: unsafe extern "system" fn(*mut core::ffi::c_void, f64) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub DopplerVelocity: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - DopplerVelocity: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetDopplerVelocity: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetDopplerVelocity: usize, + pub DopplerVelocity: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, + pub SetDopplerVelocity: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector3) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IAudioNodeWithListener, IAudioNodeWithListener_Vtbl, 0x0e0f907c_79ff_4544_9eeb_01257b15105a); impl windows_core::RuntimeType for IAudioNodeWithListener { diff --git a/crates/libs/windows/src/Windows/Media/Devices/Core/mod.rs b/crates/libs/windows/src/Windows/Media/Devices/Core/mod.rs index 57331e5b4a..037137856f 100644 --- a/crates/libs/windows/src/Windows/Media/Devices/Core/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Devices/Core/mod.rs @@ -3,32 +3,28 @@ pub struct CameraIntrinsics(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(CameraIntrinsics, windows_core::IUnknown, windows_core::IInspectable); impl CameraIntrinsics { - #[cfg(feature = "Foundation_Numerics")] - pub fn FocalLength(&self) -> windows_core::Result { + pub fn FocalLength(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FocalLength)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn PrincipalPoint(&self) -> windows_core::Result { + pub fn PrincipalPoint(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).PrincipalPoint)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn RadialDistortion(&self) -> windows_core::Result { + pub fn RadialDistortion(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RadialDistortion)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn TangentialDistortion(&self) -> windows_core::Result { + pub fn TangentialDistortion(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -49,34 +45,29 @@ impl CameraIntrinsics { (windows_core::Interface::vtable(this).ImageHeight)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn ProjectOntoFrame(&self, coordinate: super::super::super::Foundation::Numerics::Vector3) -> windows_core::Result { + pub fn ProjectOntoFrame(&self, coordinate: windows_numerics::Vector3) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).ProjectOntoFrame)(windows_core::Interface::as_raw(this), coordinate, &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn UnprojectAtUnitDepth(&self, pixelcoordinate: super::super::super::Foundation::Point) -> windows_core::Result { + pub fn UnprojectAtUnitDepth(&self, pixelcoordinate: super::super::super::Foundation::Point) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).UnprojectAtUnitDepth)(windows_core::Interface::as_raw(this), pixelcoordinate, &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn ProjectManyOntoFrame(&self, coordinates: &[super::super::super::Foundation::Numerics::Vector3], results: &mut [super::super::super::Foundation::Point]) -> windows_core::Result<()> { + pub fn ProjectManyOntoFrame(&self, coordinates: &[windows_numerics::Vector3], results: &mut [super::super::super::Foundation::Point]) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).ProjectManyOntoFrame)(windows_core::Interface::as_raw(this), coordinates.len().try_into().unwrap(), coordinates.as_ptr(), results.len().try_into().unwrap(), results.as_mut_ptr()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn UnprojectPixelsAtUnitDepth(&self, pixelcoordinates: &[super::super::super::Foundation::Point], results: &mut [super::super::super::Foundation::Numerics::Vector2]) -> windows_core::Result<()> { + pub fn UnprojectPixelsAtUnitDepth(&self, pixelcoordinates: &[super::super::super::Foundation::Point], results: &mut [windows_numerics::Vector2]) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).UnprojectPixelsAtUnitDepth)(windows_core::Interface::as_raw(this), pixelcoordinates.len().try_into().unwrap(), pixelcoordinates.as_ptr(), results.len().try_into().unwrap(), results.as_mut_ptr()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn UndistortedProjectionTransform(&self) -> windows_core::Result { + pub fn UndistortedProjectionTransform(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -105,8 +96,7 @@ impl CameraIntrinsics { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).UndistortPoints)(windows_core::Interface::as_raw(this), inputs.len().try_into().unwrap(), inputs.as_ptr(), results.len().try_into().unwrap(), results.as_mut_ptr()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Create(focallength: super::super::super::Foundation::Numerics::Vector2, principalpoint: super::super::super::Foundation::Numerics::Vector2, radialdistortion: super::super::super::Foundation::Numerics::Vector3, tangentialdistortion: super::super::super::Foundation::Numerics::Vector2, imagewidth: u32, imageheight: u32) -> windows_core::Result { + pub fn Create(focallength: windows_numerics::Vector2, principalpoint: windows_numerics::Vector2, radialdistortion: windows_numerics::Vector3, tangentialdistortion: windows_numerics::Vector2, imagewidth: u32, imageheight: u32) -> windows_core::Result { Self::ICameraIntrinsicsFactory(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), focallength, principalpoint, radialdistortion, tangentialdistortion, imagewidth, imageheight, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -139,8 +129,8 @@ impl DepthCorrelatedCoordinateMapper { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).Close)(windows_core::Interface::as_raw(this)).ok() } } - #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] - pub fn UnprojectPoint(&self, sourcepoint: super::super::super::Foundation::Point, targetcoordinatesystem: P1) -> windows_core::Result + #[cfg(feature = "Perception_Spatial")] + pub fn UnprojectPoint(&self, sourcepoint: super::super::super::Foundation::Point, targetcoordinatesystem: P1) -> windows_core::Result where P1: windows_core::Param, { @@ -150,8 +140,8 @@ impl DepthCorrelatedCoordinateMapper { (windows_core::Interface::vtable(this).UnprojectPoint)(windows_core::Interface::as_raw(this), sourcepoint, targetcoordinatesystem.param().abi(), &mut result__).map(|| result__) } } - #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] - pub fn UnprojectPoints(&self, sourcepoints: &[super::super::super::Foundation::Point], targetcoordinatesystem: P1, results: &mut [super::super::super::Foundation::Numerics::Vector3]) -> windows_core::Result<()> + #[cfg(feature = "Perception_Spatial")] + pub fn UnprojectPoints(&self, sourcepoints: &[super::super::super::Foundation::Point], targetcoordinatesystem: P1, results: &mut [windows_numerics::Vector3]) -> windows_core::Result<()> where P1: windows_core::Param, { @@ -760,40 +750,16 @@ impl windows_core::RuntimeType for ICameraIntrinsics { #[repr(C)] pub struct ICameraIntrinsics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Numerics")] - pub FocalLength: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - FocalLength: usize, - #[cfg(feature = "Foundation_Numerics")] - pub PrincipalPoint: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - PrincipalPoint: usize, - #[cfg(feature = "Foundation_Numerics")] - pub RadialDistortion: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - RadialDistortion: usize, - #[cfg(feature = "Foundation_Numerics")] - pub TangentialDistortion: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - TangentialDistortion: usize, + pub FocalLength: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector2) -> windows_core::HRESULT, + pub PrincipalPoint: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector2) -> windows_core::HRESULT, + pub RadialDistortion: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, + pub TangentialDistortion: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector2) -> windows_core::HRESULT, pub ImageWidth: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub ImageHeight: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub ProjectOntoFrame: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::Numerics::Vector3, *mut super::super::super::Foundation::Point) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - ProjectOntoFrame: usize, - #[cfg(feature = "Foundation_Numerics")] - pub UnprojectAtUnitDepth: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::Point, *mut super::super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - UnprojectAtUnitDepth: usize, - #[cfg(feature = "Foundation_Numerics")] - pub ProjectManyOntoFrame: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const super::super::super::Foundation::Numerics::Vector3, u32, *mut super::super::super::Foundation::Point) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - ProjectManyOntoFrame: usize, - #[cfg(feature = "Foundation_Numerics")] - pub UnprojectPixelsAtUnitDepth: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const super::super::super::Foundation::Point, u32, *mut super::super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - UnprojectPixelsAtUnitDepth: usize, + pub ProjectOntoFrame: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector3, *mut super::super::super::Foundation::Point) -> windows_core::HRESULT, + pub UnprojectAtUnitDepth: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::Point, *mut windows_numerics::Vector2) -> windows_core::HRESULT, + pub ProjectManyOntoFrame: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const windows_numerics::Vector3, u32, *mut super::super::super::Foundation::Point) -> windows_core::HRESULT, + pub UnprojectPixelsAtUnitDepth: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const super::super::super::Foundation::Point, u32, *mut windows_numerics::Vector2) -> windows_core::HRESULT, } windows_core::imp::define_interface!(ICameraIntrinsics2, ICameraIntrinsics2_Vtbl, 0x0cdaa447_0798_4b4d_839f_c5ec414db27a); impl windows_core::RuntimeType for ICameraIntrinsics2 { @@ -802,10 +768,7 @@ impl windows_core::RuntimeType for ICameraIntrinsics2 { #[repr(C)] pub struct ICameraIntrinsics2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Numerics")] - pub UndistortedProjectionTransform: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::Numerics::Matrix4x4) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - UndistortedProjectionTransform: usize, + pub UndistortedProjectionTransform: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Matrix4x4) -> windows_core::HRESULT, pub DistortPoint: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::Point, *mut super::super::super::Foundation::Point) -> windows_core::HRESULT, pub DistortPoints: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const super::super::super::Foundation::Point, u32, *mut super::super::super::Foundation::Point) -> windows_core::HRESULT, pub UndistortPoint: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::Point, *mut super::super::super::Foundation::Point) -> windows_core::HRESULT, @@ -818,10 +781,7 @@ impl windows_core::RuntimeType for ICameraIntrinsicsFactory { #[repr(C)] pub struct ICameraIntrinsicsFactory_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Numerics")] - pub Create: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::Numerics::Vector2, super::super::super::Foundation::Numerics::Vector2, super::super::super::Foundation::Numerics::Vector3, super::super::super::Foundation::Numerics::Vector2, u32, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - Create: usize, + pub Create: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector2, windows_numerics::Vector2, windows_numerics::Vector3, windows_numerics::Vector2, u32, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IDepthCorrelatedCoordinateMapper, IDepthCorrelatedCoordinateMapper_Vtbl, 0xf95d89fb_8af0_4cb0_926d_696866e5046a); impl windows_core::RuntimeType for IDepthCorrelatedCoordinateMapper { @@ -830,13 +790,13 @@ impl windows_core::RuntimeType for IDepthCorrelatedCoordinateMapper { #[repr(C)] pub struct IDepthCorrelatedCoordinateMapper_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] - pub UnprojectPoint: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::Point, *mut core::ffi::c_void, *mut super::super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Numerics", feature = "Perception_Spatial")))] + #[cfg(feature = "Perception_Spatial")] + pub UnprojectPoint: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::Point, *mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, + #[cfg(not(feature = "Perception_Spatial"))] UnprojectPoint: usize, - #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] - pub UnprojectPoints: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const super::super::super::Foundation::Point, *mut core::ffi::c_void, u32, *mut super::super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Numerics", feature = "Perception_Spatial")))] + #[cfg(feature = "Perception_Spatial")] + pub UnprojectPoints: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const super::super::super::Foundation::Point, *mut core::ffi::c_void, u32, *mut windows_numerics::Vector3) -> windows_core::HRESULT, + #[cfg(not(feature = "Perception_Spatial"))] UnprojectPoints: usize, #[cfg(feature = "Perception_Spatial")] pub MapPoint: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::Point, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::super::Foundation::Point) -> windows_core::HRESULT, diff --git a/crates/libs/windows/src/Windows/Perception/People/mod.rs b/crates/libs/windows/src/Windows/Perception/People/mod.rs index 5264a5afa7..5f165e3360 100644 --- a/crates/libs/windows/src/Windows/Perception/People/mod.rs +++ b/crates/libs/windows/src/Windows/Perception/People/mod.rs @@ -10,7 +10,7 @@ impl EyesPose { (windows_core::Interface::vtable(this).IsCalibrationValid)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] + #[cfg(feature = "Perception_Spatial")] pub fn Gaze(&self) -> windows_core::Result> { let this = self; unsafe { @@ -170,8 +170,8 @@ unsafe impl Sync for HandMeshObserver {} #[repr(C)] #[derive(Clone, Copy, Debug, Default, PartialEq)] pub struct HandMeshVertex { - pub Position: super::super::Foundation::Numerics::Vector3, - pub Normal: super::super::Foundation::Numerics::Vector3, + pub Position: windows_numerics::Vector3, + pub Normal: windows_numerics::Vector3, } impl windows_core::TypeKind for HandMeshVertex { type TypeKind = windows_core::CopyType; @@ -192,7 +192,6 @@ impl HandMeshVertexState { (windows_core::Interface::vtable(this).CoordinateSystem)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Numerics")] pub fn GetVertices(&self, vertices: &mut [HandMeshVertex]) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).GetVertices)(windows_core::Interface::as_raw(this), vertices.len().try_into().unwrap(), vertices.as_mut_ptr()).ok() } @@ -275,24 +274,21 @@ unsafe impl Sync for HandPose {} pub struct HeadPose(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(HeadPose, windows_core::IUnknown, windows_core::IInspectable); impl HeadPose { - #[cfg(feature = "Foundation_Numerics")] - pub fn Position(&self) -> windows_core::Result { + pub fn Position(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Position)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn ForwardDirection(&self) -> windows_core::Result { + pub fn ForwardDirection(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).ForwardDirection)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn UpDirection(&self) -> windows_core::Result { + pub fn UpDirection(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -320,9 +316,9 @@ impl windows_core::RuntimeType for IEyesPose { pub struct IEyesPose_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub IsCalibrationValid: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] + #[cfg(feature = "Perception_Spatial")] pub Gaze: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Numerics", feature = "Perception_Spatial")))] + #[cfg(not(feature = "Perception_Spatial"))] Gaze: usize, pub UpdateTimestamp: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -369,10 +365,7 @@ pub struct IHandMeshVertexState_Vtbl { pub CoordinateSystem: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Perception_Spatial"))] CoordinateSystem: usize, - #[cfg(feature = "Foundation_Numerics")] pub GetVertices: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut HandMeshVertex) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - GetVertices: usize, pub UpdateTimestamp: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IHandPose, IHandPose_Vtbl, 0x4d98e79a_bb08_5d09_91de_df0dd3fae46c); @@ -406,24 +399,15 @@ impl windows_core::RuntimeType for IHeadPose { #[repr(C)] pub struct IHeadPose_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Numerics")] - pub Position: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - Position: usize, - #[cfg(feature = "Foundation_Numerics")] - pub ForwardDirection: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - ForwardDirection: usize, - #[cfg(feature = "Foundation_Numerics")] - pub UpDirection: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - UpDirection: usize, + pub Position: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, + pub ForwardDirection: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, + pub UpDirection: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, } #[repr(C)] #[derive(Clone, Copy, Debug, Default, PartialEq)] pub struct JointPose { pub Orientation: super::super::Foundation::Numerics::Quaternion, - pub Position: super::super::Foundation::Numerics::Vector3, + pub Position: windows_numerics::Vector3, pub Radius: f32, pub Accuracy: JointPoseAccuracy, } diff --git a/crates/libs/windows/src/Windows/Perception/Spatial/Preview/mod.rs b/crates/libs/windows/src/Windows/Perception/Spatial/Preview/mod.rs index 31be7c2ef0..0434fb5ab5 100644 --- a/crates/libs/windows/src/Windows/Perception/Spatial/Preview/mod.rs +++ b/crates/libs/windows/src/Windows/Perception/Spatial/Preview/mod.rs @@ -7,10 +7,7 @@ pub struct ISpatialGraphInteropFrameOfReferencePreview_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub CoordinateSystem: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub NodeId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub CoordinateSystemToNodeTransform: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::Numerics::Matrix4x4) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - CoordinateSystemToNodeTransform: usize, + pub CoordinateSystemToNodeTransform: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Matrix4x4) -> windows_core::HRESULT, } windows_core::imp::define_interface!(ISpatialGraphInteropPreviewStatics, ISpatialGraphInteropPreviewStatics_Vtbl, 0xc042644c_20d8_4ed0_aef7_6805b8e53f55); impl windows_core::RuntimeType for ISpatialGraphInteropPreviewStatics { @@ -20,12 +17,9 @@ impl windows_core::RuntimeType for ISpatialGraphInteropPreviewStatics { pub struct ISpatialGraphInteropPreviewStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub CreateCoordinateSystemForNode: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub CreateCoordinateSystemForNodeWithPosition: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, windows_numerics::Vector3, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Foundation_Numerics")] - pub CreateCoordinateSystemForNodeWithPosition: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, super::super::super::Foundation::Numerics::Vector3, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - CreateCoordinateSystemForNodeWithPosition: usize, - #[cfg(feature = "Foundation_Numerics")] - pub CreateCoordinateSystemForNodeWithPositionAndOrientation: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, super::super::super::Foundation::Numerics::Vector3, super::super::super::Foundation::Numerics::Quaternion, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub CreateCoordinateSystemForNodeWithPositionAndOrientation: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, windows_numerics::Vector3, super::super::super::Foundation::Numerics::Quaternion, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Foundation_Numerics"))] CreateCoordinateSystemForNodeWithPositionAndOrientation: usize, pub CreateLocatorForNode: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -38,12 +32,9 @@ impl windows_core::RuntimeType for ISpatialGraphInteropPreviewStatics2 { pub struct ISpatialGraphInteropPreviewStatics2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub TryCreateFrameOfReference: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub TryCreateFrameOfReferenceWithPosition: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_numerics::Vector3, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Foundation_Numerics")] - pub TryCreateFrameOfReferenceWithPosition: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::super::Foundation::Numerics::Vector3, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - TryCreateFrameOfReferenceWithPosition: usize, - #[cfg(feature = "Foundation_Numerics")] - pub TryCreateFrameOfReferenceWithPositionAndOrientation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::super::Foundation::Numerics::Vector3, super::super::super::Foundation::Numerics::Quaternion, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub TryCreateFrameOfReferenceWithPositionAndOrientation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_numerics::Vector3, super::super::super::Foundation::Numerics::Quaternion, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Foundation_Numerics"))] TryCreateFrameOfReferenceWithPositionAndOrientation: usize, } @@ -66,8 +57,7 @@ impl SpatialGraphInteropFrameOfReferencePreview { (windows_core::Interface::vtable(this).NodeId)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn CoordinateSystemToNodeTransform(&self) -> windows_core::Result { + pub fn CoordinateSystemToNodeTransform(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -95,15 +85,14 @@ impl SpatialGraphInteropPreview { (windows_core::Interface::vtable(this).CreateCoordinateSystemForNode)(windows_core::Interface::as_raw(this), nodeid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Numerics")] - pub fn CreateCoordinateSystemForNodeWithPosition(nodeid: windows_core::GUID, relativeposition: super::super::super::Foundation::Numerics::Vector3) -> windows_core::Result { + pub fn CreateCoordinateSystemForNodeWithPosition(nodeid: windows_core::GUID, relativeposition: windows_numerics::Vector3) -> windows_core::Result { Self::ISpatialGraphInteropPreviewStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CreateCoordinateSystemForNodeWithPosition)(windows_core::Interface::as_raw(this), nodeid, relativeposition, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Numerics")] - pub fn CreateCoordinateSystemForNodeWithPositionAndOrientation(nodeid: windows_core::GUID, relativeposition: super::super::super::Foundation::Numerics::Vector3, relativeorientation: super::super::super::Foundation::Numerics::Quaternion) -> windows_core::Result { + pub fn CreateCoordinateSystemForNodeWithPositionAndOrientation(nodeid: windows_core::GUID, relativeposition: windows_numerics::Vector3, relativeorientation: super::super::super::Foundation::Numerics::Quaternion) -> windows_core::Result { Self::ISpatialGraphInteropPreviewStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CreateCoordinateSystemForNodeWithPositionAndOrientation)(windows_core::Interface::as_raw(this), nodeid, relativeposition, relativeorientation, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -124,8 +113,7 @@ impl SpatialGraphInteropPreview { (windows_core::Interface::vtable(this).TryCreateFrameOfReference)(windows_core::Interface::as_raw(this), coordinatesystem.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Numerics")] - pub fn TryCreateFrameOfReferenceWithPosition(coordinatesystem: P0, relativeposition: super::super::super::Foundation::Numerics::Vector3) -> windows_core::Result + pub fn TryCreateFrameOfReferenceWithPosition(coordinatesystem: P0, relativeposition: windows_numerics::Vector3) -> windows_core::Result where P0: windows_core::Param, { @@ -135,7 +123,7 @@ impl SpatialGraphInteropPreview { }) } #[cfg(feature = "Foundation_Numerics")] - pub fn TryCreateFrameOfReferenceWithPositionAndOrientation(coordinatesystem: P0, relativeposition: super::super::super::Foundation::Numerics::Vector3, relativeorientation: super::super::super::Foundation::Numerics::Quaternion) -> windows_core::Result + pub fn TryCreateFrameOfReferenceWithPositionAndOrientation(coordinatesystem: P0, relativeposition: windows_numerics::Vector3, relativeorientation: super::super::super::Foundation::Numerics::Quaternion) -> windows_core::Result where P0: windows_core::Param, { diff --git a/crates/libs/windows/src/Windows/Perception/Spatial/Surfaces/mod.rs b/crates/libs/windows/src/Windows/Perception/Spatial/Surfaces/mod.rs index 9ceb64dcec..fe1588823e 100644 --- a/crates/libs/windows/src/Windows/Perception/Spatial/Surfaces/mod.rs +++ b/crates/libs/windows/src/Windows/Perception/Spatial/Surfaces/mod.rs @@ -25,10 +25,7 @@ pub struct ISpatialSurfaceMesh_Vtbl { pub CoordinateSystem: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub TriangleIndices: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub VertexPositions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub VertexPositionScale: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - VertexPositionScale: usize, + pub VertexPositionScale: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, pub VertexNormals: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(ISpatialSurfaceMeshBuffer, ISpatialSurfaceMeshBuffer_Vtbl, 0x93cf59e0_871f_33f8_98b2_03d101458f6f); @@ -227,8 +224,7 @@ impl SpatialSurfaceMesh { (windows_core::Interface::vtable(this).VertexPositions)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn VertexPositionScale(&self) -> windows_core::Result { + pub fn VertexPositionScale(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Perception/Spatial/mod.rs b/crates/libs/windows/src/Windows/Perception/Spatial/mod.rs index 8f31f5f792..cea807653a 100644 --- a/crates/libs/windows/src/Windows/Perception/Spatial/mod.rs +++ b/crates/libs/windows/src/Windows/Perception/Spatial/mod.rs @@ -73,10 +73,7 @@ impl windows_core::RuntimeType for ISpatialAnchorRawCoordinateSystemAdjustedEven #[repr(C)] pub struct ISpatialAnchorRawCoordinateSystemAdjustedEventArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Numerics")] - pub OldRawCoordinateSystemToNewRawCoordinateSystemTransform: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Matrix4x4) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - OldRawCoordinateSystemToNewRawCoordinateSystemTransform: usize, + pub OldRawCoordinateSystemToNewRawCoordinateSystemTransform: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Matrix4x4) -> windows_core::HRESULT, } windows_core::imp::define_interface!(ISpatialAnchorStatics, ISpatialAnchorStatics_Vtbl, 0xa9928642_0174_311c_ae79_0e5107669f16); impl windows_core::RuntimeType for ISpatialAnchorStatics { @@ -86,12 +83,9 @@ impl windows_core::RuntimeType for ISpatialAnchorStatics { pub struct ISpatialAnchorStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub TryCreateRelativeTo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub TryCreateWithPositionRelativeTo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_numerics::Vector3, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Foundation_Numerics")] - pub TryCreateWithPositionRelativeTo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::Numerics::Vector3, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - TryCreateWithPositionRelativeTo: usize, - #[cfg(feature = "Foundation_Numerics")] - pub TryCreateWithPositionAndOrientationRelativeTo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::Numerics::Vector3, super::super::Foundation::Numerics::Quaternion, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub TryCreateWithPositionAndOrientationRelativeTo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_numerics::Vector3, super::super::Foundation::Numerics::Quaternion, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Foundation_Numerics"))] TryCreateWithPositionAndOrientationRelativeTo: usize, } @@ -142,18 +136,12 @@ impl windows_core::RuntimeType for ISpatialBoundingVolumeStatics { #[repr(C)] pub struct ISpatialBoundingVolumeStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Numerics")] pub FromBox: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, SpatialBoundingBox, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - FromBox: usize, #[cfg(feature = "Foundation_Numerics")] pub FromOrientedBox: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, SpatialBoundingOrientedBox, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Foundation_Numerics"))] FromOrientedBox: usize, - #[cfg(feature = "Foundation_Numerics")] pub FromSphere: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, SpatialBoundingSphere, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - FromSphere: usize, #[cfg(feature = "Foundation_Numerics")] pub FromFrustum: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, SpatialBoundingFrustum, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Foundation_Numerics"))] @@ -166,10 +154,7 @@ impl windows_core::RuntimeType for ISpatialCoordinateSystem { #[repr(C)] pub struct ISpatialCoordinateSystem_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Numerics")] pub TryGetTransformTo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - TryGetTransformTo: usize, } windows_core::imp::define_interface!(ISpatialEntity, ISpatialEntity_Vtbl, 0x166de955_e1eb_454c_ba08_e6c0668ddc65); impl windows_core::RuntimeType for ISpatialEntity { @@ -275,22 +260,13 @@ impl windows_core::RuntimeType for ISpatialLocation { #[repr(C)] pub struct ISpatialLocation_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Numerics")] - pub Position: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - Position: usize, + pub Position: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, #[cfg(feature = "Foundation_Numerics")] pub Orientation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Quaternion) -> windows_core::HRESULT, #[cfg(not(feature = "Foundation_Numerics"))] Orientation: usize, - #[cfg(feature = "Foundation_Numerics")] - pub AbsoluteLinearVelocity: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - AbsoluteLinearVelocity: usize, - #[cfg(feature = "Foundation_Numerics")] - pub AbsoluteLinearAcceleration: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - AbsoluteLinearAcceleration: usize, + pub AbsoluteLinearVelocity: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, + pub AbsoluteLinearAcceleration: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, #[cfg(all(feature = "Foundation_Numerics", feature = "deprecated"))] pub AbsoluteAngularVelocity: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Quaternion) -> windows_core::HRESULT, #[cfg(not(all(feature = "Foundation_Numerics", feature = "deprecated")))] @@ -307,14 +283,8 @@ impl windows_core::RuntimeType for ISpatialLocation2 { #[repr(C)] pub struct ISpatialLocation2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Numerics")] - pub AbsoluteAngularVelocityAxisAngle: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - AbsoluteAngularVelocityAxisAngle: usize, - #[cfg(feature = "Foundation_Numerics")] - pub AbsoluteAngularAccelerationAxisAngle: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - AbsoluteAngularAccelerationAxisAngle: usize, + pub AbsoluteAngularVelocityAxisAngle: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, + pub AbsoluteAngularAccelerationAxisAngle: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, } windows_core::imp::define_interface!(ISpatialLocator, ISpatialLocator_Vtbl, 0xf6478925_9e0c_3bb6_997e_b64ecca24cf4); impl windows_core::RuntimeType for ISpatialLocator { @@ -330,29 +300,23 @@ pub struct ISpatialLocator_Vtbl { pub RemovePositionalTrackingDeactivating: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, pub TryLocateAtTimestamp: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateAttachedFrameOfReferenceAtCurrentHeading: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub CreateAttachedFrameOfReferenceAtCurrentHeadingWithPosition: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector3, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Foundation_Numerics")] - pub CreateAttachedFrameOfReferenceAtCurrentHeadingWithPosition: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector3, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - CreateAttachedFrameOfReferenceAtCurrentHeadingWithPosition: usize, - #[cfg(feature = "Foundation_Numerics")] - pub CreateAttachedFrameOfReferenceAtCurrentHeadingWithPositionAndOrientation: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector3, super::super::Foundation::Numerics::Quaternion, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub CreateAttachedFrameOfReferenceAtCurrentHeadingWithPositionAndOrientation: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector3, super::super::Foundation::Numerics::Quaternion, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Foundation_Numerics"))] CreateAttachedFrameOfReferenceAtCurrentHeadingWithPositionAndOrientation: usize, #[cfg(feature = "Foundation_Numerics")] - pub CreateAttachedFrameOfReferenceAtCurrentHeadingWithPositionAndOrientationAndRelativeHeading: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector3, super::super::Foundation::Numerics::Quaternion, f64, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub CreateAttachedFrameOfReferenceAtCurrentHeadingWithPositionAndOrientationAndRelativeHeading: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector3, super::super::Foundation::Numerics::Quaternion, f64, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Foundation_Numerics"))] CreateAttachedFrameOfReferenceAtCurrentHeadingWithPositionAndOrientationAndRelativeHeading: usize, pub CreateStationaryFrameOfReferenceAtCurrentLocation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub CreateStationaryFrameOfReferenceAtCurrentLocationWithPosition: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector3, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Foundation_Numerics")] - pub CreateStationaryFrameOfReferenceAtCurrentLocationWithPosition: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector3, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - CreateStationaryFrameOfReferenceAtCurrentLocationWithPosition: usize, - #[cfg(feature = "Foundation_Numerics")] - pub CreateStationaryFrameOfReferenceAtCurrentLocationWithPositionAndOrientation: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector3, super::super::Foundation::Numerics::Quaternion, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub CreateStationaryFrameOfReferenceAtCurrentLocationWithPositionAndOrientation: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector3, super::super::Foundation::Numerics::Quaternion, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Foundation_Numerics"))] CreateStationaryFrameOfReferenceAtCurrentLocationWithPositionAndOrientation: usize, #[cfg(feature = "Foundation_Numerics")] - pub CreateStationaryFrameOfReferenceAtCurrentLocationWithPositionAndOrientationAndRelativeHeading: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector3, super::super::Foundation::Numerics::Quaternion, f64, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub CreateStationaryFrameOfReferenceAtCurrentLocationWithPositionAndOrientationAndRelativeHeading: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector3, super::super::Foundation::Numerics::Quaternion, f64, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Foundation_Numerics"))] CreateStationaryFrameOfReferenceAtCurrentLocationWithPositionAndOrientationAndRelativeHeading: usize, } @@ -363,14 +327,8 @@ impl windows_core::RuntimeType for ISpatialLocatorAttachedFrameOfReference { #[repr(C)] pub struct ISpatialLocatorAttachedFrameOfReference_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Numerics")] - pub RelativePosition: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - RelativePosition: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetRelativePosition: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetRelativePosition: usize, + pub RelativePosition: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, + pub SetRelativePosition: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector3) -> windows_core::HRESULT, #[cfg(feature = "Foundation_Numerics")] pub RelativeOrientation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Quaternion) -> windows_core::HRESULT, #[cfg(not(feature = "Foundation_Numerics"))] @@ -413,10 +371,7 @@ pub struct ISpatialStageFrameOfReference_Vtbl { pub MovementRange: unsafe extern "system" fn(*mut core::ffi::c_void, *mut SpatialMovementRange) -> windows_core::HRESULT, pub LookDirectionRange: unsafe extern "system" fn(*mut core::ffi::c_void, *mut SpatialLookDirectionRange) -> windows_core::HRESULT, pub GetCoordinateSystemAtCurrentLocation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub TryGetMovementBounds: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut u32, *mut *mut super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - TryGetMovementBounds: usize, + pub TryGetMovementBounds: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut u32, *mut *mut windows_numerics::Vector3) -> windows_core::HRESULT, } windows_core::imp::define_interface!(ISpatialStageFrameOfReferenceStatics, ISpatialStageFrameOfReferenceStatics_Vtbl, 0xf78d5c4d_a0a4_499c_8d91_a8c965d40654); impl windows_core::RuntimeType for ISpatialStageFrameOfReferenceStatics { @@ -488,8 +443,7 @@ impl SpatialAnchor { (windows_core::Interface::vtable(this).TryCreateRelativeTo)(windows_core::Interface::as_raw(this), coordinatesystem.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Numerics")] - pub fn TryCreateWithPositionRelativeTo(coordinatesystem: P0, position: super::super::Foundation::Numerics::Vector3) -> windows_core::Result + pub fn TryCreateWithPositionRelativeTo(coordinatesystem: P0, position: windows_numerics::Vector3) -> windows_core::Result where P0: windows_core::Param, { @@ -499,7 +453,7 @@ impl SpatialAnchor { }) } #[cfg(feature = "Foundation_Numerics")] - pub fn TryCreateWithPositionAndOrientationRelativeTo(coordinatesystem: P0, position: super::super::Foundation::Numerics::Vector3, orientation: super::super::Foundation::Numerics::Quaternion) -> windows_core::Result + pub fn TryCreateWithPositionAndOrientationRelativeTo(coordinatesystem: P0, position: windows_numerics::Vector3, orientation: super::super::Foundation::Numerics::Quaternion) -> windows_core::Result where P0: windows_core::Param, { @@ -654,8 +608,7 @@ impl windows_core::RuntimeName for SpatialAnchorManager { pub struct SpatialAnchorRawCoordinateSystemAdjustedEventArgs(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(SpatialAnchorRawCoordinateSystemAdjustedEventArgs, windows_core::IUnknown, windows_core::IInspectable); impl SpatialAnchorRawCoordinateSystemAdjustedEventArgs { - #[cfg(feature = "Foundation_Numerics")] - pub fn OldRawCoordinateSystemToNewRawCoordinateSystemTransform(&self) -> windows_core::Result { + pub fn OldRawCoordinateSystemToNewRawCoordinateSystemTransform(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -761,8 +714,8 @@ impl windows_core::RuntimeName for SpatialAnchorTransferManager { #[repr(C)] #[derive(Clone, Copy, Debug, Default, PartialEq)] pub struct SpatialBoundingBox { - pub Center: super::super::Foundation::Numerics::Vector3, - pub Extents: super::super::Foundation::Numerics::Vector3, + pub Center: windows_numerics::Vector3, + pub Extents: windows_numerics::Vector3, } impl windows_core::TypeKind for SpatialBoundingBox { type TypeKind = windows_core::CopyType; @@ -789,8 +742,8 @@ impl windows_core::RuntimeType for SpatialBoundingFrustum { #[repr(C)] #[derive(Clone, Copy, Debug, Default, PartialEq)] pub struct SpatialBoundingOrientedBox { - pub Center: super::super::Foundation::Numerics::Vector3, - pub Extents: super::super::Foundation::Numerics::Vector3, + pub Center: windows_numerics::Vector3, + pub Extents: windows_numerics::Vector3, pub Orientation: super::super::Foundation::Numerics::Quaternion, } impl windows_core::TypeKind for SpatialBoundingOrientedBox { @@ -802,7 +755,7 @@ impl windows_core::RuntimeType for SpatialBoundingOrientedBox { #[repr(C)] #[derive(Clone, Copy, Debug, Default, PartialEq)] pub struct SpatialBoundingSphere { - pub Center: super::super::Foundation::Numerics::Vector3, + pub Center: windows_numerics::Vector3, pub Radius: f32, } impl windows_core::TypeKind for SpatialBoundingSphere { @@ -816,7 +769,6 @@ impl windows_core::RuntimeType for SpatialBoundingSphere { pub struct SpatialBoundingVolume(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(SpatialBoundingVolume, windows_core::IUnknown, windows_core::IInspectable); impl SpatialBoundingVolume { - #[cfg(feature = "Foundation_Numerics")] pub fn FromBox(coordinatesystem: P0, r#box: SpatialBoundingBox) -> windows_core::Result where P0: windows_core::Param, @@ -836,7 +788,6 @@ impl SpatialBoundingVolume { (windows_core::Interface::vtable(this).FromOrientedBox)(windows_core::Interface::as_raw(this), coordinatesystem.param().abi(), r#box, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Numerics")] pub fn FromSphere(coordinatesystem: P0, sphere: SpatialBoundingSphere) -> windows_core::Result where P0: windows_core::Param, @@ -878,8 +829,7 @@ unsafe impl Sync for SpatialBoundingVolume {} pub struct SpatialCoordinateSystem(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(SpatialCoordinateSystem, windows_core::IUnknown, windows_core::IInspectable); impl SpatialCoordinateSystem { - #[cfg(feature = "Foundation_Numerics")] - pub fn TryGetTransformTo(&self, target: P0) -> windows_core::Result> + pub fn TryGetTransformTo(&self, target: P0) -> windows_core::Result> where P0: windows_core::Param, { @@ -1233,8 +1183,7 @@ impl windows_core::RuntimeType for SpatialLocatability { pub struct SpatialLocation(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(SpatialLocation, windows_core::IUnknown, windows_core::IInspectable); impl SpatialLocation { - #[cfg(feature = "Foundation_Numerics")] - pub fn Position(&self) -> windows_core::Result { + pub fn Position(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1249,16 +1198,14 @@ impl SpatialLocation { (windows_core::Interface::vtable(this).Orientation)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn AbsoluteLinearVelocity(&self) -> windows_core::Result { + pub fn AbsoluteLinearVelocity(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AbsoluteLinearVelocity)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn AbsoluteLinearAcceleration(&self) -> windows_core::Result { + pub fn AbsoluteLinearAcceleration(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1281,16 +1228,14 @@ impl SpatialLocation { (windows_core::Interface::vtable(this).AbsoluteAngularAcceleration)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn AbsoluteAngularVelocityAxisAngle(&self) -> windows_core::Result { + pub fn AbsoluteAngularVelocityAxisAngle(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AbsoluteAngularVelocityAxisAngle)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn AbsoluteAngularAccelerationAxisAngle(&self) -> windows_core::Result { + pub fn AbsoluteAngularAccelerationAxisAngle(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -1368,8 +1313,7 @@ impl SpatialLocator { (windows_core::Interface::vtable(this).CreateAttachedFrameOfReferenceAtCurrentHeading)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn CreateAttachedFrameOfReferenceAtCurrentHeadingWithPosition(&self, relativeposition: super::super::Foundation::Numerics::Vector3) -> windows_core::Result { + pub fn CreateAttachedFrameOfReferenceAtCurrentHeadingWithPosition(&self, relativeposition: windows_numerics::Vector3) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1377,7 +1321,7 @@ impl SpatialLocator { } } #[cfg(feature = "Foundation_Numerics")] - pub fn CreateAttachedFrameOfReferenceAtCurrentHeadingWithPositionAndOrientation(&self, relativeposition: super::super::Foundation::Numerics::Vector3, relativeorientation: super::super::Foundation::Numerics::Quaternion) -> windows_core::Result { + pub fn CreateAttachedFrameOfReferenceAtCurrentHeadingWithPositionAndOrientation(&self, relativeposition: windows_numerics::Vector3, relativeorientation: super::super::Foundation::Numerics::Quaternion) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1385,7 +1329,7 @@ impl SpatialLocator { } } #[cfg(feature = "Foundation_Numerics")] - pub fn CreateAttachedFrameOfReferenceAtCurrentHeadingWithPositionAndOrientationAndRelativeHeading(&self, relativeposition: super::super::Foundation::Numerics::Vector3, relativeorientation: super::super::Foundation::Numerics::Quaternion, relativeheadinginradians: f64) -> windows_core::Result { + pub fn CreateAttachedFrameOfReferenceAtCurrentHeadingWithPositionAndOrientationAndRelativeHeading(&self, relativeposition: windows_numerics::Vector3, relativeorientation: super::super::Foundation::Numerics::Quaternion, relativeheadinginradians: f64) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1399,8 +1343,7 @@ impl SpatialLocator { (windows_core::Interface::vtable(this).CreateStationaryFrameOfReferenceAtCurrentLocation)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn CreateStationaryFrameOfReferenceAtCurrentLocationWithPosition(&self, relativeposition: super::super::Foundation::Numerics::Vector3) -> windows_core::Result { + pub fn CreateStationaryFrameOfReferenceAtCurrentLocationWithPosition(&self, relativeposition: windows_numerics::Vector3) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1408,7 +1351,7 @@ impl SpatialLocator { } } #[cfg(feature = "Foundation_Numerics")] - pub fn CreateStationaryFrameOfReferenceAtCurrentLocationWithPositionAndOrientation(&self, relativeposition: super::super::Foundation::Numerics::Vector3, relativeorientation: super::super::Foundation::Numerics::Quaternion) -> windows_core::Result { + pub fn CreateStationaryFrameOfReferenceAtCurrentLocationWithPositionAndOrientation(&self, relativeposition: windows_numerics::Vector3, relativeorientation: super::super::Foundation::Numerics::Quaternion) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1416,7 +1359,7 @@ impl SpatialLocator { } } #[cfg(feature = "Foundation_Numerics")] - pub fn CreateStationaryFrameOfReferenceAtCurrentLocationWithPositionAndOrientationAndRelativeHeading(&self, relativeposition: super::super::Foundation::Numerics::Vector3, relativeorientation: super::super::Foundation::Numerics::Quaternion, relativeheadinginradians: f64) -> windows_core::Result { + pub fn CreateStationaryFrameOfReferenceAtCurrentLocationWithPositionAndOrientationAndRelativeHeading(&self, relativeposition: windows_numerics::Vector3, relativeorientation: super::super::Foundation::Numerics::Quaternion, relativeheadinginradians: f64) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1451,16 +1394,14 @@ unsafe impl Sync for SpatialLocator {} pub struct SpatialLocatorAttachedFrameOfReference(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(SpatialLocatorAttachedFrameOfReference, windows_core::IUnknown, windows_core::IInspectable); impl SpatialLocatorAttachedFrameOfReference { - #[cfg(feature = "Foundation_Numerics")] - pub fn RelativePosition(&self) -> windows_core::Result { + pub fn RelativePosition(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RelativePosition)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetRelativePosition(&self, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetRelativePosition(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetRelativePosition)(windows_core::Interface::as_raw(this), value).ok() } } @@ -1587,8 +1528,8 @@ impl windows_core::RuntimeType for SpatialPerceptionAccessStatus { #[repr(C)] #[derive(Clone, Copy, Debug, Default, PartialEq)] pub struct SpatialRay { - pub Origin: super::super::Foundation::Numerics::Vector3, - pub Direction: super::super::Foundation::Numerics::Vector3, + pub Origin: windows_numerics::Vector3, + pub Direction: windows_numerics::Vector3, } impl windows_core::TypeKind for SpatialRay { type TypeKind = windows_core::CopyType; @@ -1632,15 +1573,14 @@ impl SpatialStageFrameOfReference { (windows_core::Interface::vtable(this).GetCoordinateSystemAtCurrentLocation)(windows_core::Interface::as_raw(this), locator.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn TryGetMovementBounds(&self, coordinatesystem: P0) -> windows_core::Result> + pub fn TryGetMovementBounds(&self, coordinatesystem: P0) -> windows_core::Result> where P0: windows_core::Param, { let this = self; unsafe { let mut result__ = core::mem::MaybeUninit::zeroed(); - (windows_core::Interface::vtable(this).TryGetMovementBounds)(windows_core::Interface::as_raw(this), coordinatesystem.param().abi(), windows_core::Array::::set_abi_len(core::mem::transmute(&mut result__)), result__.as_mut_ptr() as *mut _ as _).map(|| result__.assume_init()) + (windows_core::Interface::vtable(this).TryGetMovementBounds)(windows_core::Interface::as_raw(this), coordinatesystem.param().abi(), windows_core::Array::::set_abi_len(core::mem::transmute(&mut result__)), result__.as_mut_ptr() as *mut _ as _).map(|| result__.assume_init()) } } pub fn Current() -> windows_core::Result { diff --git a/crates/libs/windows/src/Windows/UI/Composition/Interactions/mod.rs b/crates/libs/windows/src/Windows/UI/Composition/Interactions/mod.rs index 86ea344a7b..9c096e35a4 100644 --- a/crates/libs/windows/src/Windows/UI/Composition/Interactions/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Composition/Interactions/mod.rs @@ -412,48 +412,21 @@ pub struct IInteractionTracker_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub InteractionSources: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub IsPositionRoundingSuggested: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub MaxPosition: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - MaxPosition: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetMaxPosition: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetMaxPosition: usize, + pub MaxPosition: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, + pub SetMaxPosition: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector3) -> windows_core::HRESULT, pub MaxScale: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32) -> windows_core::HRESULT, pub SetMaxScale: unsafe extern "system" fn(*mut core::ffi::c_void, f32) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub MinPosition: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - MinPosition: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetMinPosition: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetMinPosition: usize, + pub MinPosition: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, + pub SetMinPosition: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector3) -> windows_core::HRESULT, pub MinScale: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32) -> windows_core::HRESULT, pub SetMinScale: unsafe extern "system" fn(*mut core::ffi::c_void, f32) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub NaturalRestingPosition: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - NaturalRestingPosition: usize, + pub NaturalRestingPosition: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, pub NaturalRestingScale: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32) -> windows_core::HRESULT, pub Owner: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub Position: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - Position: usize, - #[cfg(feature = "Foundation_Numerics")] + pub Position: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, pub PositionInertiaDecayRate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - PositionInertiaDecayRate: usize, - #[cfg(feature = "Foundation_Numerics")] pub SetPositionInertiaDecayRate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetPositionInertiaDecayRate: usize, - #[cfg(feature = "Foundation_Numerics")] - pub PositionVelocityInPixelsPerSecond: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - PositionVelocityInPixelsPerSecond: usize, + pub PositionVelocityInPixelsPerSecond: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, pub Scale: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32) -> windows_core::HRESULT, pub ScaleInertiaDecayRate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetScaleInertiaDecayRate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -463,31 +436,13 @@ pub struct IInteractionTracker_Vtbl { pub ConfigurePositionXInertiaModifiers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub ConfigurePositionYInertiaModifiers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub ConfigureScaleInertiaModifiers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub TryUpdatePosition: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::Numerics::Vector3, *mut i32) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - TryUpdatePosition: usize, - #[cfg(feature = "Foundation_Numerics")] - pub TryUpdatePositionBy: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::Numerics::Vector3, *mut i32) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - TryUpdatePositionBy: usize, + pub TryUpdatePosition: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector3, *mut i32) -> windows_core::HRESULT, + pub TryUpdatePositionBy: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector3, *mut i32) -> windows_core::HRESULT, pub TryUpdatePositionWithAnimation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub TryUpdatePositionWithAdditionalVelocity: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::Numerics::Vector3, *mut i32) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - TryUpdatePositionWithAdditionalVelocity: usize, - #[cfg(feature = "Foundation_Numerics")] - pub TryUpdateScale: unsafe extern "system" fn(*mut core::ffi::c_void, f32, super::super::super::Foundation::Numerics::Vector3, *mut i32) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - TryUpdateScale: usize, - #[cfg(feature = "Foundation_Numerics")] - pub TryUpdateScaleWithAnimation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::super::Foundation::Numerics::Vector3, *mut i32) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - TryUpdateScaleWithAnimation: usize, - #[cfg(feature = "Foundation_Numerics")] - pub TryUpdateScaleWithAdditionalVelocity: unsafe extern "system" fn(*mut core::ffi::c_void, f32, super::super::super::Foundation::Numerics::Vector3, *mut i32) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - TryUpdateScaleWithAdditionalVelocity: usize, + pub TryUpdatePositionWithAdditionalVelocity: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector3, *mut i32) -> windows_core::HRESULT, + pub TryUpdateScale: unsafe extern "system" fn(*mut core::ffi::c_void, f32, windows_numerics::Vector3, *mut i32) -> windows_core::HRESULT, + pub TryUpdateScaleWithAnimation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_numerics::Vector3, *mut i32) -> windows_core::HRESULT, + pub TryUpdateScaleWithAdditionalVelocity: unsafe extern "system" fn(*mut core::ffi::c_void, f32, windows_numerics::Vector3, *mut i32) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IInteractionTracker2, IInteractionTracker2_Vtbl, 0x25769a3e_ce6d_448c_8386_92620d240756); impl windows_core::RuntimeType for IInteractionTracker2 { @@ -515,14 +470,8 @@ impl windows_core::RuntimeType for IInteractionTracker4 { #[repr(C)] pub struct IInteractionTracker4_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Numerics")] - pub TryUpdatePositionWithOption: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::Numerics::Vector3, InteractionTrackerClampingOption, *mut i32) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - TryUpdatePositionWithOption: usize, - #[cfg(feature = "Foundation_Numerics")] - pub TryUpdatePositionByWithOption: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::Numerics::Vector3, InteractionTrackerClampingOption, *mut i32) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - TryUpdatePositionByWithOption: usize, + pub TryUpdatePositionWithOption: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector3, InteractionTrackerClampingOption, *mut i32) -> windows_core::HRESULT, + pub TryUpdatePositionByWithOption: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector3, InteractionTrackerClampingOption, *mut i32) -> windows_core::HRESULT, pub IsInertiaFromImpulse: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IInteractionTracker5, IInteractionTracker5_Vtbl, 0xd3ef5da2_a254_40e4_88d5_44e4e16b5809); @@ -532,10 +481,7 @@ impl windows_core::RuntimeType for IInteractionTracker5 { #[repr(C)] pub struct IInteractionTracker5_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Numerics")] - pub TryUpdatePositionWithOption: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::Numerics::Vector3, InteractionTrackerClampingOption, InteractionTrackerPositionUpdateOption, *mut i32) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - TryUpdatePositionWithOption: usize, + pub TryUpdatePositionWithOption: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector3, InteractionTrackerClampingOption, InteractionTrackerPositionUpdateOption, *mut i32) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IInteractionTrackerCustomAnimationStateEnteredArgs, IInteractionTrackerCustomAnimationStateEnteredArgs_Vtbl, 0x8d1c8cf1_d7b0_434c_a5d2_2d7611864834); impl windows_core::RuntimeType for IInteractionTrackerCustomAnimationStateEnteredArgs { @@ -659,20 +605,11 @@ impl windows_core::RuntimeType for IInteractionTrackerInertiaStateEnteredArgs { #[repr(C)] pub struct IInteractionTrackerInertiaStateEnteredArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Numerics")] pub ModifiedRestingPosition: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - ModifiedRestingPosition: usize, pub ModifiedRestingScale: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub NaturalRestingPosition: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - NaturalRestingPosition: usize, + pub NaturalRestingPosition: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, pub NaturalRestingScale: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub PositionVelocityInPixelsPerSecond: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - PositionVelocityInPixelsPerSecond: usize, + pub PositionVelocityInPixelsPerSecond: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, pub RequestId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub ScaleVelocityInPercentPerSecond: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32) -> windows_core::HRESULT, } @@ -876,10 +813,7 @@ impl windows_core::RuntimeType for IInteractionTrackerValuesChangedArgs { #[repr(C)] pub struct IInteractionTrackerValuesChangedArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Numerics")] - pub Position: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - Position: usize, + pub Position: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, pub RequestId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub Scale: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32) -> windows_core::HRESULT, } @@ -958,19 +892,10 @@ impl windows_core::RuntimeType for IVisualInteractionSource2 { #[repr(C)] pub struct IVisualInteractionSource2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Numerics")] - pub DeltaPosition: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - DeltaPosition: usize, + pub DeltaPosition: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, pub DeltaScale: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub Position: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - Position: usize, - #[cfg(feature = "Foundation_Numerics")] - pub PositionVelocity: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - PositionVelocity: usize, + pub Position: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, + pub PositionVelocity: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, pub Scale: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32) -> windows_core::HRESULT, pub ScaleVelocity: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32) -> windows_core::HRESULT, pub ConfigureCenterPointXModifiers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -1387,16 +1312,14 @@ impl InteractionTracker { (windows_core::Interface::vtable(this).IsPositionRoundingSuggested)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn MaxPosition(&self) -> windows_core::Result { + pub fn MaxPosition(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).MaxPosition)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetMaxPosition(&self, value: super::super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetMaxPosition(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetMaxPosition)(windows_core::Interface::as_raw(this), value).ok() } } @@ -1411,16 +1334,14 @@ impl InteractionTracker { let this = self; unsafe { (windows_core::Interface::vtable(this).SetMaxScale)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn MinPosition(&self) -> windows_core::Result { + pub fn MinPosition(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).MinPosition)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetMinPosition(&self, value: super::super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetMinPosition(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetMinPosition)(windows_core::Interface::as_raw(this), value).ok() } } @@ -1435,8 +1356,7 @@ impl InteractionTracker { let this = self; unsafe { (windows_core::Interface::vtable(this).SetMinScale)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn NaturalRestingPosition(&self) -> windows_core::Result { + pub fn NaturalRestingPosition(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1457,32 +1377,28 @@ impl InteractionTracker { (windows_core::Interface::vtable(this).Owner)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Position(&self) -> windows_core::Result { + pub fn Position(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Position)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn PositionInertiaDecayRate(&self) -> windows_core::Result> { + pub fn PositionInertiaDecayRate(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).PositionInertiaDecayRate)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Numerics")] pub fn SetPositionInertiaDecayRate(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).SetPositionInertiaDecayRate)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn PositionVelocityInPixelsPerSecond(&self) -> windows_core::Result { + pub fn PositionVelocityInPixelsPerSecond(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1546,16 +1462,14 @@ impl InteractionTracker { let this = self; unsafe { (windows_core::Interface::vtable(this).ConfigureScaleInertiaModifiers)(windows_core::Interface::as_raw(this), modifiers.param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn TryUpdatePosition(&self, value: super::super::super::Foundation::Numerics::Vector3) -> windows_core::Result { + pub fn TryUpdatePosition(&self, value: windows_numerics::Vector3) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).TryUpdatePosition)(windows_core::Interface::as_raw(this), value, &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn TryUpdatePositionBy(&self, amount: super::super::super::Foundation::Numerics::Vector3) -> windows_core::Result { + pub fn TryUpdatePositionBy(&self, amount: windows_numerics::Vector3) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1572,24 +1486,21 @@ impl InteractionTracker { (windows_core::Interface::vtable(this).TryUpdatePositionWithAnimation)(windows_core::Interface::as_raw(this), animation.param().abi(), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn TryUpdatePositionWithAdditionalVelocity(&self, velocityinpixelspersecond: super::super::super::Foundation::Numerics::Vector3) -> windows_core::Result { + pub fn TryUpdatePositionWithAdditionalVelocity(&self, velocityinpixelspersecond: windows_numerics::Vector3) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).TryUpdatePositionWithAdditionalVelocity)(windows_core::Interface::as_raw(this), velocityinpixelspersecond, &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn TryUpdateScale(&self, value: f32, centerpoint: super::super::super::Foundation::Numerics::Vector3) -> windows_core::Result { + pub fn TryUpdateScale(&self, value: f32, centerpoint: windows_numerics::Vector3) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).TryUpdateScale)(windows_core::Interface::as_raw(this), value, centerpoint, &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn TryUpdateScaleWithAnimation(&self, animation: P0, centerpoint: super::super::super::Foundation::Numerics::Vector3) -> windows_core::Result + pub fn TryUpdateScaleWithAnimation(&self, animation: P0, centerpoint: windows_numerics::Vector3) -> windows_core::Result where P0: windows_core::Param, { @@ -1599,8 +1510,7 @@ impl InteractionTracker { (windows_core::Interface::vtable(this).TryUpdateScaleWithAnimation)(windows_core::Interface::as_raw(this), animation.param().abi(), centerpoint, &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn TryUpdateScaleWithAdditionalVelocity(&self, velocityinpercentpersecond: f32, centerpoint: super::super::super::Foundation::Numerics::Vector3) -> windows_core::Result { + pub fn TryUpdateScaleWithAdditionalVelocity(&self, velocityinpercentpersecond: f32, centerpoint: windows_numerics::Vector3) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1628,16 +1538,14 @@ impl InteractionTracker { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).ConfigureVector2PositionInertiaModifiers)(windows_core::Interface::as_raw(this), modifiers.param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn TryUpdatePositionWithOption(&self, value: super::super::super::Foundation::Numerics::Vector3, option: InteractionTrackerClampingOption) -> windows_core::Result { + pub fn TryUpdatePositionWithOption(&self, value: windows_numerics::Vector3, option: InteractionTrackerClampingOption) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).TryUpdatePositionWithOption)(windows_core::Interface::as_raw(this), value, option, &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn TryUpdatePositionByWithOption(&self, amount: super::super::super::Foundation::Numerics::Vector3, option: InteractionTrackerClampingOption) -> windows_core::Result { + pub fn TryUpdatePositionByWithOption(&self, amount: windows_numerics::Vector3, option: InteractionTrackerClampingOption) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -1651,8 +1559,7 @@ impl InteractionTracker { (windows_core::Interface::vtable(this).IsInertiaFromImpulse)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn TryUpdatePositionWithOption2(&self, value: super::super::super::Foundation::Numerics::Vector3, option: InteractionTrackerClampingOption, posupdateoption: InteractionTrackerPositionUpdateOption) -> windows_core::Result { + pub fn TryUpdatePositionWithOption2(&self, value: windows_numerics::Vector3, option: InteractionTrackerClampingOption, posupdateoption: InteractionTrackerPositionUpdateOption) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -2421,8 +2328,7 @@ unsafe impl Sync for InteractionTrackerInertiaRestingValue {} pub struct InteractionTrackerInertiaStateEnteredArgs(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(InteractionTrackerInertiaStateEnteredArgs, windows_core::IUnknown, windows_core::IInspectable); impl InteractionTrackerInertiaStateEnteredArgs { - #[cfg(feature = "Foundation_Numerics")] - pub fn ModifiedRestingPosition(&self) -> windows_core::Result> { + pub fn ModifiedRestingPosition(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2436,8 +2342,7 @@ impl InteractionTrackerInertiaStateEnteredArgs { (windows_core::Interface::vtable(this).ModifiedRestingScale)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn NaturalRestingPosition(&self) -> windows_core::Result { + pub fn NaturalRestingPosition(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2451,8 +2356,7 @@ impl InteractionTrackerInertiaStateEnteredArgs { (windows_core::Interface::vtable(this).NaturalRestingScale)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn PositionVelocityInPixelsPerSecond(&self) -> windows_core::Result { + pub fn PositionVelocityInPixelsPerSecond(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2575,8 +2479,7 @@ unsafe impl Sync for InteractionTrackerRequestIgnoredArgs {} pub struct InteractionTrackerValuesChangedArgs(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(InteractionTrackerValuesChangedArgs, windows_core::IUnknown, windows_core::IInspectable); impl InteractionTrackerValuesChangedArgs { - #[cfg(feature = "Foundation_Numerics")] - pub fn Position(&self) -> windows_core::Result { + pub fn Position(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -3127,8 +3030,7 @@ impl VisualInteractionSource { let this = self; unsafe { (windows_core::Interface::vtable(this).TryRedirectForManipulation)(windows_core::Interface::as_raw(this), pointerpoint.param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn DeltaPosition(&self) -> windows_core::Result { + pub fn DeltaPosition(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -3142,16 +3044,14 @@ impl VisualInteractionSource { (windows_core::Interface::vtable(this).DeltaScale)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Position(&self) -> windows_core::Result { + pub fn Position(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Position)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn PositionVelocity(&self) -> windows_core::Result { + pub fn PositionVelocity(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/UI/Composition/Scenes/mod.rs b/crates/libs/windows/src/Windows/UI/Composition/Scenes/mod.rs index f5b2f48c3e..d75b57df61 100644 --- a/crates/libs/windows/src/Windows/UI/Composition/Scenes/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Composition/Scenes/mod.rs @@ -5,26 +5,11 @@ impl windows_core::RuntimeType for ISceneBoundingBox { #[repr(C)] pub struct ISceneBoundingBox_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Numerics")] - pub Center: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - Center: usize, - #[cfg(feature = "Foundation_Numerics")] - pub Extents: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - Extents: usize, - #[cfg(feature = "Foundation_Numerics")] - pub Max: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - Max: usize, - #[cfg(feature = "Foundation_Numerics")] - pub Min: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - Min: usize, - #[cfg(feature = "Foundation_Numerics")] - pub Size: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - Size: usize, + pub Center: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, + pub Extents: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, + pub Max: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, + pub Min: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, + pub Size: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, } windows_core::imp::define_interface!(ISceneComponent, ISceneComponent_Vtbl, 0xae20fc96_226c_44bd_95cb_dd5ed9ebe9a5); impl windows_core::RuntimeType for ISceneComponent { @@ -152,14 +137,8 @@ pub struct ISceneMetallicRoughnessMaterial_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub BaseColorInput: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetBaseColorInput: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub BaseColorFactor: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::Numerics::Vector4) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - BaseColorFactor: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetBaseColorFactor: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::Numerics::Vector4) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetBaseColorFactor: usize, + pub BaseColorFactor: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector4) -> windows_core::HRESULT, + pub SetBaseColorFactor: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector4) -> windows_core::HRESULT, pub MetallicFactor: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32) -> windows_core::HRESULT, pub SetMetallicFactor: unsafe extern "system" fn(*mut core::ffi::c_void, f32) -> windows_core::HRESULT, pub MetallicRoughnessInput: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -195,30 +174,12 @@ pub struct ISceneModelTransform_Vtbl { pub SetRotationAngle: unsafe extern "system" fn(*mut core::ffi::c_void, f32) -> windows_core::HRESULT, pub RotationAngleInDegrees: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32) -> windows_core::HRESULT, pub SetRotationAngleInDegrees: unsafe extern "system" fn(*mut core::ffi::c_void, f32) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub RotationAxis: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - RotationAxis: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetRotationAxis: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetRotationAxis: usize, - #[cfg(feature = "Foundation_Numerics")] - pub Scale: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - Scale: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetScale: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetScale: usize, - #[cfg(feature = "Foundation_Numerics")] - pub Translation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - Translation: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetTranslation: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetTranslation: usize, + pub RotationAxis: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, + pub SetRotationAxis: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector3) -> windows_core::HRESULT, + pub Scale: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, + pub SetScale: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector3) -> windows_core::HRESULT, + pub Translation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, + pub SetTranslation: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector3) -> windows_core::HRESULT, } windows_core::imp::define_interface!(ISceneNode, ISceneNode_Vtbl, 0xacf2c247_f307_4581_9c41_af2e29c3b016); impl windows_core::RuntimeType for ISceneNode { @@ -279,14 +240,8 @@ pub struct IScenePbrMaterial_Vtbl { pub SetAlphaMode: unsafe extern "system" fn(*mut core::ffi::c_void, SceneAlphaMode) -> windows_core::HRESULT, pub EmissiveInput: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetEmissiveInput: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub EmissiveFactor: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - EmissiveFactor: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetEmissiveFactor: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetEmissiveFactor: usize, + pub EmissiveFactor: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, + pub SetEmissiveFactor: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector3) -> windows_core::HRESULT, pub IsDoubleSided: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub SetIsDoubleSided: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, pub NormalInput: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -510,40 +465,35 @@ impl SceneBoundingBox { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Center(&self) -> windows_core::Result { + pub fn Center(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Center)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Extents(&self) -> windows_core::Result { + pub fn Extents(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Extents)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Max(&self) -> windows_core::Result { + pub fn Max(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Max)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Min(&self) -> windows_core::Result { + pub fn Min(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Min)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Size(&self) -> windows_core::Result { + pub fn Size(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1839,16 +1789,14 @@ impl SceneMetallicRoughnessMaterial { let this = self; unsafe { (windows_core::Interface::vtable(this).SetBaseColorInput)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn BaseColorFactor(&self) -> windows_core::Result { + pub fn BaseColorFactor(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).BaseColorFactor)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetBaseColorFactor(&self, value: super::super::super::Foundation::Numerics::Vector4) -> windows_core::Result<()> { + pub fn SetBaseColorFactor(&self, value: windows_numerics::Vector4) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetBaseColorFactor)(windows_core::Interface::as_raw(this), value).ok() } } @@ -1933,16 +1881,14 @@ impl SceneMetallicRoughnessMaterial { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetEmissiveInput)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn EmissiveFactor(&self) -> windows_core::Result { + pub fn EmissiveFactor(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).EmissiveFactor)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetEmissiveFactor(&self, value: super::super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetEmissiveFactor(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetEmissiveFactor)(windows_core::Interface::as_raw(this), value).ok() } } @@ -2171,42 +2117,36 @@ impl SceneModelTransform { let this = self; unsafe { (windows_core::Interface::vtable(this).SetRotationAngleInDegrees)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn RotationAxis(&self) -> windows_core::Result { + pub fn RotationAxis(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RotationAxis)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetRotationAxis(&self, value: super::super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetRotationAxis(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetRotationAxis)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Scale(&self) -> windows_core::Result { + pub fn Scale(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Scale)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetScale(&self, value: super::super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetScale(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetScale)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Translation(&self) -> windows_core::Result { + pub fn Translation(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Translation)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTranslation(&self, value: super::super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetTranslation(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetTranslation)(windows_core::Interface::as_raw(this), value).ok() } } @@ -2890,16 +2830,14 @@ impl ScenePbrMaterial { let this = self; unsafe { (windows_core::Interface::vtable(this).SetEmissiveInput)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn EmissiveFactor(&self) -> windows_core::Result { + pub fn EmissiveFactor(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).EmissiveFactor)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetEmissiveFactor(&self, value: super::super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetEmissiveFactor(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetEmissiveFactor)(windows_core::Interface::as_raw(this), value).ok() } } @@ -3436,16 +3374,14 @@ impl SceneVisual { (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), compositor.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Numerics")] - pub fn AnchorPoint(&self) -> windows_core::Result { + pub fn AnchorPoint(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AnchorPoint)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetAnchorPoint(&self, value: super::super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetAnchorPoint(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetAnchorPoint)(windows_core::Interface::as_raw(this), value).ok() } } @@ -3471,16 +3407,14 @@ impl SceneVisual { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetBorderMode)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn CenterPoint(&self) -> windows_core::Result { + pub fn CenterPoint(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CenterPoint)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetCenterPoint(&self, value: super::super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetCenterPoint(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetCenterPoint)(windows_core::Interface::as_raw(this), value).ok() } } @@ -3520,16 +3454,14 @@ impl SceneVisual { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetIsVisible)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Offset(&self) -> windows_core::Result { + pub fn Offset(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Offset)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetOffset(&self, value: super::super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetOffset(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetOffset)(windows_core::Interface::as_raw(this), value).ok() } } @@ -3586,55 +3518,47 @@ impl SceneVisual { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetRotationAngleInDegrees)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn RotationAxis(&self) -> windows_core::Result { + pub fn RotationAxis(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RotationAxis)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetRotationAxis(&self, value: super::super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetRotationAxis(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetRotationAxis)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Scale(&self) -> windows_core::Result { + pub fn Scale(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Scale)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetScale(&self, value: super::super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetScale(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetScale)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Size(&self) -> windows_core::Result { + pub fn Size(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetSize(&self, value: super::super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetSize(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetSize)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn TransformMatrix(&self) -> windows_core::Result { + pub fn TransformMatrix(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).TransformMatrix)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTransformMatrix(&self, value: super::super::super::Foundation::Numerics::Matrix4x4) -> windows_core::Result<()> { + pub fn SetTransformMatrix(&self, value: windows_numerics::Matrix4x4) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetTransformMatrix)(windows_core::Interface::as_raw(this), value).ok() } } @@ -3652,29 +3576,25 @@ impl SceneVisual { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetParentForTransform)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn RelativeOffsetAdjustment(&self) -> windows_core::Result { + pub fn RelativeOffsetAdjustment(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RelativeOffsetAdjustment)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetRelativeOffsetAdjustment(&self, value: super::super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetRelativeOffsetAdjustment(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetRelativeOffsetAdjustment)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn RelativeSizeAdjustment(&self) -> windows_core::Result { + pub fn RelativeSizeAdjustment(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RelativeSizeAdjustment)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetRelativeSizeAdjustment(&self, value: super::super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetRelativeSizeAdjustment(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetRelativeSizeAdjustment)(windows_core::Interface::as_raw(this), value).ok() } } diff --git a/crates/libs/windows/src/Windows/UI/Composition/mod.rs b/crates/libs/windows/src/Windows/UI/Composition/mod.rs index eb792b6bc0..821e8fafb2 100644 --- a/crates/libs/windows/src/Windows/UI/Composition/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Composition/mod.rs @@ -769,13 +769,11 @@ impl BooleanKeyFrameAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetColorParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetMatrix3x2Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { + pub fn SetMatrix3x2Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Matrix3x2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetMatrix3x2Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetMatrix4x4Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix4x4) -> windows_core::Result<()> { + pub fn SetMatrix4x4Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Matrix4x4) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetMatrix4x4Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } @@ -795,18 +793,15 @@ impl BooleanKeyFrameAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetScalarParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector2Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetVector2Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector2Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector3Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetVector3Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector3Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector4Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector4) -> windows_core::Result<()> { + pub fn SetVector4Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector4) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector4Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } @@ -1239,13 +1234,11 @@ impl BounceScalarNaturalMotionAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetColorParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetMatrix3x2Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { + pub fn SetMatrix3x2Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Matrix3x2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetMatrix3x2Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetMatrix4x4Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix4x4) -> windows_core::Result<()> { + pub fn SetMatrix4x4Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Matrix4x4) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetMatrix4x4Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } @@ -1265,18 +1258,15 @@ impl BounceScalarNaturalMotionAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetScalarParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector2Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetVector2Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector2Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector3Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetVector3Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector3Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector4Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector4) -> windows_core::Result<()> { + pub fn SetVector4Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector4) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector4Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } @@ -1540,13 +1530,11 @@ impl BounceVector2NaturalMotionAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetColorParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetMatrix3x2Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { + pub fn SetMatrix3x2Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Matrix3x2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetMatrix3x2Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetMatrix4x4Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix4x4) -> windows_core::Result<()> { + pub fn SetMatrix4x4Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Matrix4x4) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetMatrix4x4Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } @@ -1566,18 +1554,15 @@ impl BounceVector2NaturalMotionAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetScalarParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector2Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetVector2Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector2Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector3Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetVector3Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector3Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector4Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector4) -> windows_core::Result<()> { + pub fn SetVector4Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector4) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector4Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } @@ -1738,48 +1723,42 @@ impl BounceVector2NaturalMotionAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetStopBehavior)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn FinalValue(&self) -> windows_core::Result> { + pub fn FinalValue(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FinalValue)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Numerics")] pub fn SetFinalValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetFinalValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn InitialValue(&self) -> windows_core::Result> { + pub fn InitialValue(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).InitialValue)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Numerics")] pub fn SetInitialValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetInitialValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn InitialVelocity(&self) -> windows_core::Result { + pub fn InitialVelocity(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).InitialVelocity)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetInitialVelocity(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetInitialVelocity(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetInitialVelocity)(windows_core::Interface::as_raw(this), value).ok() } } @@ -1847,13 +1826,11 @@ impl BounceVector3NaturalMotionAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetColorParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetMatrix3x2Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { + pub fn SetMatrix3x2Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Matrix3x2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetMatrix3x2Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetMatrix4x4Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix4x4) -> windows_core::Result<()> { + pub fn SetMatrix4x4Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Matrix4x4) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetMatrix4x4Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } @@ -1873,18 +1850,15 @@ impl BounceVector3NaturalMotionAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetScalarParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector2Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetVector2Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector2Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector3Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetVector3Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector3Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector4Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector4) -> windows_core::Result<()> { + pub fn SetVector4Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector4) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector4Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } @@ -2045,48 +2019,42 @@ impl BounceVector3NaturalMotionAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetStopBehavior)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn FinalValue(&self) -> windows_core::Result> { + pub fn FinalValue(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FinalValue)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Numerics")] pub fn SetFinalValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetFinalValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn InitialValue(&self) -> windows_core::Result> { + pub fn InitialValue(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).InitialValue)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Numerics")] pub fn SetInitialValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetInitialValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn InitialVelocity(&self) -> windows_core::Result { + pub fn InitialVelocity(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).InitialVelocity)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetInitialVelocity(&self, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetInitialVelocity(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetInitialVelocity)(windows_core::Interface::as_raw(this), value).ok() } } @@ -2286,13 +2254,11 @@ impl ColorKeyFrameAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetColorParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetMatrix3x2Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { + pub fn SetMatrix3x2Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Matrix3x2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetMatrix3x2Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetMatrix4x4Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix4x4) -> windows_core::Result<()> { + pub fn SetMatrix4x4Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Matrix4x4) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetMatrix4x4Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } @@ -2312,18 +2278,15 @@ impl ColorKeyFrameAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetScalarParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector2Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetVector2Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector2Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector3Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetVector3Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector3Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector4Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector4) -> windows_core::Result<()> { + pub fn SetVector4Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector4) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector4Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } @@ -2588,13 +2551,11 @@ impl CompositionAnimation { let this = self; unsafe { (windows_core::Interface::vtable(this).SetColorParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetMatrix3x2Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { + pub fn SetMatrix3x2Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Matrix3x2) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetMatrix3x2Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetMatrix4x4Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix4x4) -> windows_core::Result<()> { + pub fn SetMatrix4x4Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Matrix4x4) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetMatrix4x4Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } @@ -2614,18 +2575,15 @@ impl CompositionAnimation { let this = self; unsafe { (windows_core::Interface::vtable(this).SetScalarParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector2Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetVector2Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetVector2Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector3Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetVector3Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetVector3Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector4Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector4) -> windows_core::Result<()> { + pub fn SetVector4Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector4) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetVector4Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } @@ -3483,42 +3441,36 @@ impl CompositionClip { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).Close)(windows_core::Interface::as_raw(this)).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn AnchorPoint(&self) -> windows_core::Result { + pub fn AnchorPoint(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AnchorPoint)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetAnchorPoint(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetAnchorPoint(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetAnchorPoint)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn CenterPoint(&self) -> windows_core::Result { + pub fn CenterPoint(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CenterPoint)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetCenterPoint(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetCenterPoint(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetCenterPoint)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Offset(&self) -> windows_core::Result { + pub fn Offset(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Offset)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetOffset(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetOffset(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetOffset)(windows_core::Interface::as_raw(this), value).ok() } } @@ -3544,29 +3496,25 @@ impl CompositionClip { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetRotationAngleInDegrees)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Scale(&self) -> windows_core::Result { + pub fn Scale(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Scale)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetScale(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetScale(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetScale)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn TransformMatrix(&self) -> windows_core::Result { + pub fn TransformMatrix(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).TransformMatrix)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTransformMatrix(&self, value: super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { + pub fn SetTransformMatrix(&self, value: windows_numerics::Matrix3x2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetTransformMatrix)(windows_core::Interface::as_raw(this), value).ok() } } @@ -4379,29 +4327,25 @@ impl CompositionContainerShape { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn CenterPoint(&self) -> windows_core::Result { + pub fn CenterPoint(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CenterPoint)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetCenterPoint(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetCenterPoint(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetCenterPoint)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Offset(&self) -> windows_core::Result { + pub fn Offset(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Offset)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetOffset(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetOffset(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetOffset)(windows_core::Interface::as_raw(this), value).ok() } } @@ -4427,29 +4371,25 @@ impl CompositionContainerShape { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetRotationAngleInDegrees)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Scale(&self) -> windows_core::Result { + pub fn Scale(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Scale)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetScale(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetScale(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetScale)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn TransformMatrix(&self) -> windows_core::Result { + pub fn TransformMatrix(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).TransformMatrix)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTransformMatrix(&self, value: super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { + pub fn SetTransformMatrix(&self, value: windows_numerics::Matrix3x2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetTransformMatrix)(windows_core::Interface::as_raw(this), value).ok() } } @@ -4677,8 +4617,7 @@ impl CompositionEasingFunction { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).Close)(windows_core::Interface::as_raw(this)).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn CreateCubicBezierEasingFunction(owner: P0, controlpoint1: super::super::Foundation::Numerics::Vector2, controlpoint2: super::super::Foundation::Numerics::Vector2) -> windows_core::Result + pub fn CreateCubicBezierEasingFunction(owner: P0, controlpoint1: windows_numerics::Vector2, controlpoint2: windows_numerics::Vector2) -> windows_core::Result where P0: windows_core::Param, { @@ -5265,29 +5204,25 @@ impl CompositionEllipseGeometry { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).Close)(windows_core::Interface::as_raw(this)).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Center(&self) -> windows_core::Result { + pub fn Center(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Center)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetCenter(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetCenter(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetCenter)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Radius(&self) -> windows_core::Result { + pub fn Radius(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Radius)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetRadius(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetRadius(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetRadius)(windows_core::Interface::as_raw(this), value).ok() } } @@ -5449,42 +5384,36 @@ impl CompositionGeometricClip { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).Close)(windows_core::Interface::as_raw(this)).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn AnchorPoint(&self) -> windows_core::Result { + pub fn AnchorPoint(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AnchorPoint)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetAnchorPoint(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetAnchorPoint(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetAnchorPoint)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn CenterPoint(&self) -> windows_core::Result { + pub fn CenterPoint(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CenterPoint)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetCenterPoint(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetCenterPoint(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetCenterPoint)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Offset(&self) -> windows_core::Result { + pub fn Offset(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Offset)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetOffset(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetOffset(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetOffset)(windows_core::Interface::as_raw(this), value).ok() } } @@ -5510,29 +5439,25 @@ impl CompositionGeometricClip { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetRotationAngleInDegrees)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Scale(&self) -> windows_core::Result { + pub fn Scale(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Scale)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetScale(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetScale(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetScale)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn TransformMatrix(&self) -> windows_core::Result { + pub fn TransformMatrix(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).TransformMatrix)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTransformMatrix(&self, value: super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { + pub fn SetTransformMatrix(&self, value: windows_numerics::Matrix3x2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetTransformMatrix)(windows_core::Interface::as_raw(this), value).ok() } } @@ -5861,29 +5786,25 @@ impl CompositionGradientBrush { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).Close)(windows_core::Interface::as_raw(this)).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn AnchorPoint(&self) -> windows_core::Result { + pub fn AnchorPoint(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AnchorPoint)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetAnchorPoint(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetAnchorPoint(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetAnchorPoint)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn CenterPoint(&self) -> windows_core::Result { + pub fn CenterPoint(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CenterPoint)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetCenterPoint(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetCenterPoint(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetCenterPoint)(windows_core::Interface::as_raw(this), value).ok() } } @@ -5916,16 +5837,14 @@ impl CompositionGradientBrush { let this = self; unsafe { (windows_core::Interface::vtable(this).SetInterpolationSpace)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Offset(&self) -> windows_core::Result { + pub fn Offset(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Offset)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetOffset(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetOffset(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetOffset)(windows_core::Interface::as_raw(this), value).ok() } } @@ -5951,29 +5870,25 @@ impl CompositionGradientBrush { let this = self; unsafe { (windows_core::Interface::vtable(this).SetRotationAngleInDegrees)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Scale(&self) -> windows_core::Result { + pub fn Scale(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Scale)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetScale(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetScale(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetScale)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn TransformMatrix(&self) -> windows_core::Result { + pub fn TransformMatrix(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).TransformMatrix)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTransformMatrix(&self, value: super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { + pub fn SetTransformMatrix(&self, value: windows_numerics::Matrix3x2) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetTransformMatrix)(windows_core::Interface::as_raw(this), value).ok() } } @@ -6496,29 +6411,25 @@ impl CompositionLineGeometry { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetTrimStart)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Start(&self) -> windows_core::Result { + pub fn Start(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Start)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetStart(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetStart(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetStart)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn End(&self) -> windows_core::Result { + pub fn End(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).End)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetEnd(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetEnd(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetEnd)(windows_core::Interface::as_raw(this), value).ok() } } @@ -6647,29 +6558,25 @@ impl CompositionLinearGradientBrush { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).Close)(windows_core::Interface::as_raw(this)).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn AnchorPoint(&self) -> windows_core::Result { + pub fn AnchorPoint(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AnchorPoint)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetAnchorPoint(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetAnchorPoint(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetAnchorPoint)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn CenterPoint(&self) -> windows_core::Result { + pub fn CenterPoint(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CenterPoint)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetCenterPoint(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetCenterPoint(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetCenterPoint)(windows_core::Interface::as_raw(this), value).ok() } } @@ -6702,16 +6609,14 @@ impl CompositionLinearGradientBrush { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetInterpolationSpace)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Offset(&self) -> windows_core::Result { + pub fn Offset(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Offset)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetOffset(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetOffset(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetOffset)(windows_core::Interface::as_raw(this), value).ok() } } @@ -6737,29 +6642,25 @@ impl CompositionLinearGradientBrush { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetRotationAngleInDegrees)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Scale(&self) -> windows_core::Result { + pub fn Scale(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Scale)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetScale(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetScale(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetScale)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn TransformMatrix(&self) -> windows_core::Result { + pub fn TransformMatrix(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).TransformMatrix)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTransformMatrix(&self, value: super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { + pub fn SetTransformMatrix(&self, value: windows_numerics::Matrix3x2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetTransformMatrix)(windows_core::Interface::as_raw(this), value).ok() } } @@ -6774,29 +6675,25 @@ impl CompositionLinearGradientBrush { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetMappingMode)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn EndPoint(&self) -> windows_core::Result { + pub fn EndPoint(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).EndPoint)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetEndPoint(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetEndPoint(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetEndPoint)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn StartPoint(&self) -> windows_core::Result { + pub fn StartPoint(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).StartPoint)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetStartPoint(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetStartPoint(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetStartPoint)(windows_core::Interface::as_raw(this), value).ok() } } @@ -8818,13 +8715,11 @@ impl CompositionPropertySet { let this = self; unsafe { (windows_core::Interface::vtable(this).InsertColor)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn InsertMatrix3x2(&self, propertyname: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { + pub fn InsertMatrix3x2(&self, propertyname: &windows_core::HSTRING, value: windows_numerics::Matrix3x2) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).InsertMatrix3x2)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn InsertMatrix4x4(&self, propertyname: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix4x4) -> windows_core::Result<()> { + pub fn InsertMatrix4x4(&self, propertyname: &windows_core::HSTRING, value: windows_numerics::Matrix4x4) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).InsertMatrix4x4)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), value).ok() } } @@ -8837,18 +8732,15 @@ impl CompositionPropertySet { let this = self; unsafe { (windows_core::Interface::vtable(this).InsertScalar)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn InsertVector2(&self, propertyname: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn InsertVector2(&self, propertyname: &windows_core::HSTRING, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).InsertVector2)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn InsertVector3(&self, propertyname: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn InsertVector3(&self, propertyname: &windows_core::HSTRING, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).InsertVector3)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn InsertVector4(&self, propertyname: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector4) -> windows_core::Result<()> { + pub fn InsertVector4(&self, propertyname: &windows_core::HSTRING, value: windows_numerics::Vector4) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).InsertVector4)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), value).ok() } } @@ -8859,16 +8751,14 @@ impl CompositionPropertySet { (windows_core::Interface::vtable(this).TryGetColor)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), value, &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn TryGetMatrix3x2(&self, propertyname: &windows_core::HSTRING, value: &mut super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result { + pub fn TryGetMatrix3x2(&self, propertyname: &windows_core::HSTRING, value: &mut windows_numerics::Matrix3x2) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).TryGetMatrix3x2)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), value, &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn TryGetMatrix4x4(&self, propertyname: &windows_core::HSTRING, value: &mut super::super::Foundation::Numerics::Matrix4x4) -> windows_core::Result { + pub fn TryGetMatrix4x4(&self, propertyname: &windows_core::HSTRING, value: &mut windows_numerics::Matrix4x4) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -8890,24 +8780,21 @@ impl CompositionPropertySet { (windows_core::Interface::vtable(this).TryGetScalar)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), value, &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn TryGetVector2(&self, propertyname: &windows_core::HSTRING, value: &mut super::super::Foundation::Numerics::Vector2) -> windows_core::Result { + pub fn TryGetVector2(&self, propertyname: &windows_core::HSTRING, value: &mut windows_numerics::Vector2) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).TryGetVector2)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), value, &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn TryGetVector3(&self, propertyname: &windows_core::HSTRING, value: &mut super::super::Foundation::Numerics::Vector3) -> windows_core::Result { + pub fn TryGetVector3(&self, propertyname: &windows_core::HSTRING, value: &mut windows_numerics::Vector3) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).TryGetVector3)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), value, &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn TryGetVector4(&self, propertyname: &windows_core::HSTRING, value: &mut super::super::Foundation::Numerics::Vector4) -> windows_core::Result { + pub fn TryGetVector4(&self, propertyname: &windows_core::HSTRING, value: &mut windows_numerics::Vector4) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -8955,29 +8842,25 @@ impl CompositionRadialGradientBrush { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).Close)(windows_core::Interface::as_raw(this)).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn AnchorPoint(&self) -> windows_core::Result { + pub fn AnchorPoint(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AnchorPoint)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetAnchorPoint(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetAnchorPoint(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetAnchorPoint)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn CenterPoint(&self) -> windows_core::Result { + pub fn CenterPoint(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CenterPoint)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetCenterPoint(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetCenterPoint(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetCenterPoint)(windows_core::Interface::as_raw(this), value).ok() } } @@ -9010,16 +8893,14 @@ impl CompositionRadialGradientBrush { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetInterpolationSpace)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Offset(&self) -> windows_core::Result { + pub fn Offset(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Offset)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetOffset(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetOffset(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetOffset)(windows_core::Interface::as_raw(this), value).ok() } } @@ -9045,29 +8926,25 @@ impl CompositionRadialGradientBrush { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetRotationAngleInDegrees)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Scale(&self) -> windows_core::Result { + pub fn Scale(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Scale)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetScale(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetScale(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetScale)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn TransformMatrix(&self) -> windows_core::Result { + pub fn TransformMatrix(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).TransformMatrix)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTransformMatrix(&self, value: super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { + pub fn SetTransformMatrix(&self, value: windows_numerics::Matrix3x2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetTransformMatrix)(windows_core::Interface::as_raw(this), value).ok() } } @@ -9177,42 +9054,36 @@ impl CompositionRadialGradientBrush { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn EllipseCenter(&self) -> windows_core::Result { + pub fn EllipseCenter(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).EllipseCenter)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetEllipseCenter(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetEllipseCenter(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetEllipseCenter)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn EllipseRadius(&self) -> windows_core::Result { + pub fn EllipseRadius(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).EllipseRadius)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetEllipseRadius(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetEllipseRadius(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetEllipseRadius)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn GradientOriginOffset(&self) -> windows_core::Result { + pub fn GradientOriginOffset(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GradientOriginOffset)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetGradientOriginOffset(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetGradientOriginOffset(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetGradientOriginOffset)(windows_core::Interface::as_raw(this), value).ok() } } @@ -9374,29 +9245,25 @@ impl CompositionRectangleGeometry { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Offset(&self) -> windows_core::Result { + pub fn Offset(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Offset)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetOffset(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetOffset(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetOffset)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Size(&self) -> windows_core::Result { + pub fn Size(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetSize(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetSize(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetSize)(windows_core::Interface::as_raw(this), value).ok() } } @@ -9558,42 +9425,36 @@ impl CompositionRoundedRectangleGeometry { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn CornerRadius(&self) -> windows_core::Result { + pub fn CornerRadius(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CornerRadius)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetCornerRadius(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetCornerRadius(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetCornerRadius)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Offset(&self) -> windows_core::Result { + pub fn Offset(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Offset)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetOffset(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetOffset(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetOffset)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Size(&self) -> windows_core::Result { + pub fn Size(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetSize(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetSize(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetSize)(windows_core::Interface::as_raw(this), value).ok() } } @@ -10012,29 +9873,25 @@ impl CompositionShape { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn CenterPoint(&self) -> windows_core::Result { + pub fn CenterPoint(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CenterPoint)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetCenterPoint(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetCenterPoint(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetCenterPoint)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Offset(&self) -> windows_core::Result { + pub fn Offset(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Offset)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetOffset(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetOffset(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetOffset)(windows_core::Interface::as_raw(this), value).ok() } } @@ -10060,29 +9917,25 @@ impl CompositionShape { let this = self; unsafe { (windows_core::Interface::vtable(this).SetRotationAngleInDegrees)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Scale(&self) -> windows_core::Result { + pub fn Scale(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Scale)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetScale(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetScale(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetScale)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn TransformMatrix(&self) -> windows_core::Result { + pub fn TransformMatrix(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).TransformMatrix)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTransformMatrix(&self, value: super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { + pub fn SetTransformMatrix(&self, value: windows_numerics::Matrix3x2) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetTransformMatrix)(windows_core::Interface::as_raw(this), value).ok() } } @@ -10432,29 +10285,25 @@ impl CompositionSpriteShape { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn CenterPoint(&self) -> windows_core::Result { + pub fn CenterPoint(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CenterPoint)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetCenterPoint(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetCenterPoint(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetCenterPoint)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Offset(&self) -> windows_core::Result { + pub fn Offset(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Offset)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetOffset(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetOffset(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetOffset)(windows_core::Interface::as_raw(this), value).ok() } } @@ -10480,29 +10329,25 @@ impl CompositionSpriteShape { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetRotationAngleInDegrees)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Scale(&self) -> windows_core::Result { + pub fn Scale(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Scale)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetScale(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetScale(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetScale)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn TransformMatrix(&self) -> windows_core::Result { + pub fn TransformMatrix(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).TransformMatrix)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTransformMatrix(&self, value: super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { + pub fn SetTransformMatrix(&self, value: windows_numerics::Matrix3x2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetTransformMatrix)(windows_core::Interface::as_raw(this), value).ok() } } @@ -11080,42 +10925,36 @@ impl CompositionSurfaceBrush { let this = self; unsafe { (windows_core::Interface::vtable(this).SetVerticalAlignmentRatio)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn AnchorPoint(&self) -> windows_core::Result { + pub fn AnchorPoint(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AnchorPoint)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetAnchorPoint(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetAnchorPoint(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetAnchorPoint)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn CenterPoint(&self) -> windows_core::Result { + pub fn CenterPoint(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CenterPoint)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetCenterPoint(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetCenterPoint(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetCenterPoint)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Offset(&self) -> windows_core::Result { + pub fn Offset(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Offset)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetOffset(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetOffset(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetOffset)(windows_core::Interface::as_raw(this), value).ok() } } @@ -11141,29 +10980,25 @@ impl CompositionSurfaceBrush { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetRotationAngleInDegrees)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Scale(&self) -> windows_core::Result { + pub fn Scale(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Scale)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetScale(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetScale(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetScale)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn TransformMatrix(&self) -> windows_core::Result { + pub fn TransformMatrix(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).TransformMatrix)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTransformMatrix(&self, value: super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { + pub fn SetTransformMatrix(&self, value: windows_numerics::Matrix3x2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetTransformMatrix)(windows_core::Interface::as_raw(this), value).ok() } } @@ -11742,29 +11577,25 @@ impl CompositionViewBox { let this = self; unsafe { (windows_core::Interface::vtable(this).SetHorizontalAlignmentRatio)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Offset(&self) -> windows_core::Result { + pub fn Offset(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Offset)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetOffset(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetOffset(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetOffset)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Size(&self) -> windows_core::Result { + pub fn Size(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetSize(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetSize(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetSize)(windows_core::Interface::as_raw(this), value).ok() } } @@ -12115,29 +11946,25 @@ impl CompositionVisualSurface { let this = self; unsafe { (windows_core::Interface::vtable(this).SetSourceVisual)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SourceOffset(&self) -> windows_core::Result { + pub fn SourceOffset(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).SourceOffset)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetSourceOffset(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetSourceOffset(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetSourceOffset)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SourceSize(&self) -> windows_core::Result { + pub fn SourceSize(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).SourceSize)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetSourceSize(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetSourceSize(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetSourceSize)(windows_core::Interface::as_raw(this), value).ok() } } @@ -12199,8 +12026,7 @@ impl Compositor { (windows_core::Interface::vtable(this).CreateContainerVisual)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn CreateCubicBezierEasingFunction(&self, controlpoint1: super::super::Foundation::Numerics::Vector2, controlpoint2: super::super::Foundation::Numerics::Vector2) -> windows_core::Result { + pub fn CreateCubicBezierEasingFunction(&self, controlpoint1: windows_numerics::Vector2, controlpoint2: windows_numerics::Vector2) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -12703,8 +12529,7 @@ impl Compositor { (windows_core::Interface::vtable(this).CreateRectangleClipWithSides)(windows_core::Interface::as_raw(this), left, top, right, bottom, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn CreateRectangleClipWithSidesAndRadius(&self, left: f32, top: f32, right: f32, bottom: f32, topleftradius: super::super::Foundation::Numerics::Vector2, toprightradius: super::super::Foundation::Numerics::Vector2, bottomrightradius: super::super::Foundation::Numerics::Vector2, bottomleftradius: super::super::Foundation::Numerics::Vector2) -> windows_core::Result { + pub fn CreateRectangleClipWithSidesAndRadius(&self, left: f32, top: f32, right: f32, bottom: f32, topleftradius: windows_numerics::Vector2, toprightradius: windows_numerics::Vector2, bottomrightradius: windows_numerics::Vector2, bottomleftradius: windows_numerics::Vector2) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -12908,16 +12733,14 @@ impl ContainerVisual { (windows_core::Interface::vtable(this).Children)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn AnchorPoint(&self) -> windows_core::Result { + pub fn AnchorPoint(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AnchorPoint)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetAnchorPoint(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetAnchorPoint(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetAnchorPoint)(windows_core::Interface::as_raw(this), value).ok() } } @@ -12943,16 +12766,14 @@ impl ContainerVisual { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetBorderMode)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn CenterPoint(&self) -> windows_core::Result { + pub fn CenterPoint(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CenterPoint)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetCenterPoint(&self, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetCenterPoint(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetCenterPoint)(windows_core::Interface::as_raw(this), value).ok() } } @@ -12992,16 +12813,14 @@ impl ContainerVisual { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetIsVisible)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Offset(&self) -> windows_core::Result { + pub fn Offset(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Offset)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetOffset(&self, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetOffset(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetOffset)(windows_core::Interface::as_raw(this), value).ok() } } @@ -13058,55 +12877,47 @@ impl ContainerVisual { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetRotationAngleInDegrees)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn RotationAxis(&self) -> windows_core::Result { + pub fn RotationAxis(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RotationAxis)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetRotationAxis(&self, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetRotationAxis(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetRotationAxis)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Scale(&self) -> windows_core::Result { + pub fn Scale(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Scale)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetScale(&self, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetScale(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetScale)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Size(&self) -> windows_core::Result { + pub fn Size(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetSize(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetSize(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetSize)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn TransformMatrix(&self) -> windows_core::Result { + pub fn TransformMatrix(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).TransformMatrix)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTransformMatrix(&self, value: super::super::Foundation::Numerics::Matrix4x4) -> windows_core::Result<()> { + pub fn SetTransformMatrix(&self, value: windows_numerics::Matrix4x4) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetTransformMatrix)(windows_core::Interface::as_raw(this), value).ok() } } @@ -13124,29 +12935,25 @@ impl ContainerVisual { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetParentForTransform)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn RelativeOffsetAdjustment(&self) -> windows_core::Result { + pub fn RelativeOffsetAdjustment(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RelativeOffsetAdjustment)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetRelativeOffsetAdjustment(&self, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetRelativeOffsetAdjustment(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetRelativeOffsetAdjustment)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn RelativeSizeAdjustment(&self) -> windows_core::Result { + pub fn RelativeSizeAdjustment(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RelativeSizeAdjustment)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetRelativeSizeAdjustment(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetRelativeSizeAdjustment(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetRelativeSizeAdjustment)(windows_core::Interface::as_raw(this), value).ok() } } @@ -13297,16 +13104,14 @@ impl CubicBezierEasingFunction { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn ControlPoint1(&self) -> windows_core::Result { + pub fn ControlPoint1(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).ControlPoint1)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn ControlPoint2(&self) -> windows_core::Result { + pub fn ControlPoint2(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -13479,16 +13284,14 @@ impl DelegatedInkTrailVisual { (windows_core::Interface::vtable(this).CreateForSwapChain)(windows_core::Interface::as_raw(this), compositor.param().abi(), swapchain.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Numerics")] - pub fn AnchorPoint(&self) -> windows_core::Result { + pub fn AnchorPoint(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AnchorPoint)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetAnchorPoint(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetAnchorPoint(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetAnchorPoint)(windows_core::Interface::as_raw(this), value).ok() } } @@ -13514,16 +13317,14 @@ impl DelegatedInkTrailVisual { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetBorderMode)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn CenterPoint(&self) -> windows_core::Result { + pub fn CenterPoint(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CenterPoint)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetCenterPoint(&self, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetCenterPoint(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetCenterPoint)(windows_core::Interface::as_raw(this), value).ok() } } @@ -13563,16 +13364,14 @@ impl DelegatedInkTrailVisual { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetIsVisible)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Offset(&self) -> windows_core::Result { + pub fn Offset(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Offset)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetOffset(&self, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetOffset(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetOffset)(windows_core::Interface::as_raw(this), value).ok() } } @@ -13629,55 +13428,47 @@ impl DelegatedInkTrailVisual { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetRotationAngleInDegrees)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn RotationAxis(&self) -> windows_core::Result { + pub fn RotationAxis(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RotationAxis)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetRotationAxis(&self, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetRotationAxis(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetRotationAxis)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Scale(&self) -> windows_core::Result { + pub fn Scale(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Scale)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetScale(&self, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetScale(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetScale)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Size(&self) -> windows_core::Result { + pub fn Size(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetSize(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetSize(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetSize)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn TransformMatrix(&self) -> windows_core::Result { + pub fn TransformMatrix(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).TransformMatrix)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTransformMatrix(&self, value: super::super::Foundation::Numerics::Matrix4x4) -> windows_core::Result<()> { + pub fn SetTransformMatrix(&self, value: windows_numerics::Matrix4x4) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetTransformMatrix)(windows_core::Interface::as_raw(this), value).ok() } } @@ -13695,29 +13486,25 @@ impl DelegatedInkTrailVisual { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetParentForTransform)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn RelativeOffsetAdjustment(&self) -> windows_core::Result { + pub fn RelativeOffsetAdjustment(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RelativeOffsetAdjustment)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetRelativeOffsetAdjustment(&self, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetRelativeOffsetAdjustment(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetRelativeOffsetAdjustment)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn RelativeSizeAdjustment(&self) -> windows_core::Result { + pub fn RelativeSizeAdjustment(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RelativeSizeAdjustment)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetRelativeSizeAdjustment(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetRelativeSizeAdjustment(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetRelativeSizeAdjustment)(windows_core::Interface::as_raw(this), value).ok() } } @@ -13922,16 +13709,14 @@ impl DistantLight { let this = self; unsafe { (windows_core::Interface::vtable(this).SetCoordinateSpace)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Direction(&self) -> windows_core::Result { + pub fn Direction(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Direction)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetDirection(&self, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetDirection(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetDirection)(windows_core::Interface::as_raw(this), value).ok() } } @@ -14107,16 +13892,14 @@ impl DropShadow { let this = self; unsafe { (windows_core::Interface::vtable(this).SetMask)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Offset(&self) -> windows_core::Result { + pub fn Offset(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Offset)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetOffset(&self, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetOffset(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetOffset)(windows_core::Interface::as_raw(this), value).ok() } } @@ -14469,13 +14252,11 @@ impl ExpressionAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetColorParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetMatrix3x2Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { + pub fn SetMatrix3x2Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Matrix3x2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetMatrix3x2Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetMatrix4x4Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix4x4) -> windows_core::Result<()> { + pub fn SetMatrix4x4Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Matrix4x4) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetMatrix4x4Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } @@ -14495,18 +14276,15 @@ impl ExpressionAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetScalarParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector2Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetVector2Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector2Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector3Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetVector3Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector3Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector4Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector4) -> windows_core::Result<()> { + pub fn SetVector4Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector4) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector4Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } @@ -14863,32 +14641,17 @@ pub struct ICompositionAnimation_Vtbl { pub ClearAllParameters: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub ClearParameter: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetColorParameter: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::Color) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub SetMatrix3x2Parameter: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::Numerics::Matrix3x2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetMatrix3x2Parameter: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetMatrix4x4Parameter: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::Numerics::Matrix4x4) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetMatrix4x4Parameter: usize, + pub SetMatrix3x2Parameter: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_numerics::Matrix3x2) -> windows_core::HRESULT, + pub SetMatrix4x4Parameter: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_numerics::Matrix4x4) -> windows_core::HRESULT, #[cfg(feature = "Foundation_Numerics")] pub SetQuaternionParameter: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::Numerics::Quaternion) -> windows_core::HRESULT, #[cfg(not(feature = "Foundation_Numerics"))] SetQuaternionParameter: usize, pub SetReferenceParameter: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetScalarParameter: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, f32) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub SetVector2Parameter: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetVector2Parameter: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetVector3Parameter: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetVector3Parameter: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetVector4Parameter: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::Numerics::Vector4) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetVector4Parameter: usize, + pub SetVector2Parameter: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_numerics::Vector2) -> windows_core::HRESULT, + pub SetVector3Parameter: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_numerics::Vector3) -> windows_core::HRESULT, + pub SetVector4Parameter: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_numerics::Vector4) -> windows_core::HRESULT, } windows_core::imp::define_interface!(ICompositionAnimation2, ICompositionAnimation2_Vtbl, 0x369b603e_a80f_4948_93e3_ed23fb38c6cb); impl windows_core::RuntimeType for ICompositionAnimation2 { @@ -15028,50 +14791,20 @@ impl windows_core::RuntimeType for ICompositionClip2 { #[repr(C)] pub struct ICompositionClip2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Numerics")] - pub AnchorPoint: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - AnchorPoint: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetAnchorPoint: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetAnchorPoint: usize, - #[cfg(feature = "Foundation_Numerics")] - pub CenterPoint: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - CenterPoint: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetCenterPoint: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetCenterPoint: usize, - #[cfg(feature = "Foundation_Numerics")] - pub Offset: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - Offset: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetOffset: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetOffset: usize, + pub AnchorPoint: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector2) -> windows_core::HRESULT, + pub SetAnchorPoint: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector2) -> windows_core::HRESULT, + pub CenterPoint: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector2) -> windows_core::HRESULT, + pub SetCenterPoint: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector2) -> windows_core::HRESULT, + pub Offset: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector2) -> windows_core::HRESULT, + pub SetOffset: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector2) -> windows_core::HRESULT, pub RotationAngle: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32) -> windows_core::HRESULT, pub SetRotationAngle: unsafe extern "system" fn(*mut core::ffi::c_void, f32) -> windows_core::HRESULT, pub RotationAngleInDegrees: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32) -> windows_core::HRESULT, pub SetRotationAngleInDegrees: unsafe extern "system" fn(*mut core::ffi::c_void, f32) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub Scale: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - Scale: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetScale: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetScale: usize, - #[cfg(feature = "Foundation_Numerics")] - pub TransformMatrix: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Matrix3x2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - TransformMatrix: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetTransformMatrix: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Matrix3x2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetTransformMatrix: usize, + pub Scale: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector2) -> windows_core::HRESULT, + pub SetScale: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector2) -> windows_core::HRESULT, + pub TransformMatrix: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Matrix3x2) -> windows_core::HRESULT, + pub SetTransformMatrix: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Matrix3x2) -> windows_core::HRESULT, } windows_core::imp::define_interface!(ICompositionClipFactory, ICompositionClipFactory_Vtbl, 0xb9484caf_20c7_4aed_ac4a_9c78ba1302cf); impl windows_core::RuntimeType for ICompositionClipFactory { @@ -15212,10 +14945,7 @@ impl windows_core::RuntimeType for ICompositionEasingFunctionStatics { #[repr(C)] pub struct ICompositionEasingFunctionStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Numerics")] - pub CreateCubicBezierEasingFunction: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::Numerics::Vector2, super::super::Foundation::Numerics::Vector2, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - CreateCubicBezierEasingFunction: usize, + pub CreateCubicBezierEasingFunction: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_numerics::Vector2, windows_numerics::Vector2, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateLinearEasingFunction: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateStepEasingFunction: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateStepEasingFunctionWithStepCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, i32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -15276,22 +15006,10 @@ impl windows_core::RuntimeType for ICompositionEllipseGeometry { #[repr(C)] pub struct ICompositionEllipseGeometry_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Numerics")] - pub Center: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - Center: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetCenter: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetCenter: usize, - #[cfg(feature = "Foundation_Numerics")] - pub Radius: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - Radius: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetRadius: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetRadius: usize, + pub Center: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector2) -> windows_core::HRESULT, + pub SetCenter: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector2) -> windows_core::HRESULT, + pub Radius: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector2) -> windows_core::HRESULT, + pub SetRadius: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector2) -> windows_core::HRESULT, } windows_core::imp::define_interface!(ICompositionGeometricClip, ICompositionGeometricClip_Vtbl, 0xc840b581_81c9_4444_a2c1_ccaece3a50e5); impl windows_core::RuntimeType for ICompositionGeometricClip { @@ -15334,55 +15052,25 @@ impl windows_core::RuntimeType for ICompositionGradientBrush { #[repr(C)] pub struct ICompositionGradientBrush_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Numerics")] - pub AnchorPoint: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - AnchorPoint: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetAnchorPoint: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetAnchorPoint: usize, - #[cfg(feature = "Foundation_Numerics")] - pub CenterPoint: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - CenterPoint: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetCenterPoint: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetCenterPoint: usize, + pub AnchorPoint: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector2) -> windows_core::HRESULT, + pub SetAnchorPoint: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector2) -> windows_core::HRESULT, + pub CenterPoint: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector2) -> windows_core::HRESULT, + pub SetCenterPoint: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector2) -> windows_core::HRESULT, pub ColorStops: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub ExtendMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut CompositionGradientExtendMode) -> windows_core::HRESULT, pub SetExtendMode: unsafe extern "system" fn(*mut core::ffi::c_void, CompositionGradientExtendMode) -> windows_core::HRESULT, pub InterpolationSpace: unsafe extern "system" fn(*mut core::ffi::c_void, *mut CompositionColorSpace) -> windows_core::HRESULT, pub SetInterpolationSpace: unsafe extern "system" fn(*mut core::ffi::c_void, CompositionColorSpace) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub Offset: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - Offset: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetOffset: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetOffset: usize, + pub Offset: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector2) -> windows_core::HRESULT, + pub SetOffset: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector2) -> windows_core::HRESULT, pub RotationAngle: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32) -> windows_core::HRESULT, pub SetRotationAngle: unsafe extern "system" fn(*mut core::ffi::c_void, f32) -> windows_core::HRESULT, pub RotationAngleInDegrees: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32) -> windows_core::HRESULT, pub SetRotationAngleInDegrees: unsafe extern "system" fn(*mut core::ffi::c_void, f32) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub Scale: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - Scale: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetScale: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetScale: usize, - #[cfg(feature = "Foundation_Numerics")] - pub TransformMatrix: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Matrix3x2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - TransformMatrix: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetTransformMatrix: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Matrix3x2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetTransformMatrix: usize, + pub Scale: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector2) -> windows_core::HRESULT, + pub SetScale: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector2) -> windows_core::HRESULT, + pub TransformMatrix: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Matrix3x2) -> windows_core::HRESULT, + pub SetTransformMatrix: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Matrix3x2) -> windows_core::HRESULT, } windows_core::imp::define_interface!(ICompositionGradientBrush2, ICompositionGradientBrush2_Vtbl, 0x899dd5a1_b4c7_4b33_a1b6_264addc26d10); impl windows_core::RuntimeType for ICompositionGradientBrush2 { @@ -15500,22 +15188,10 @@ impl windows_core::RuntimeType for ICompositionLineGeometry { #[repr(C)] pub struct ICompositionLineGeometry_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Numerics")] - pub Start: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - Start: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetStart: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetStart: usize, - #[cfg(feature = "Foundation_Numerics")] - pub End: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - End: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetEnd: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetEnd: usize, + pub Start: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector2) -> windows_core::HRESULT, + pub SetStart: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector2) -> windows_core::HRESULT, + pub End: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector2) -> windows_core::HRESULT, + pub SetEnd: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector2) -> windows_core::HRESULT, } windows_core::imp::define_interface!(ICompositionLinearGradientBrush, ICompositionLinearGradientBrush_Vtbl, 0x983bc519_a9db_413c_a2d8_2a9056fc525e); impl windows_core::RuntimeType for ICompositionLinearGradientBrush { @@ -15524,22 +15200,10 @@ impl windows_core::RuntimeType for ICompositionLinearGradientBrush { #[repr(C)] pub struct ICompositionLinearGradientBrush_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Numerics")] - pub EndPoint: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - EndPoint: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetEndPoint: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetEndPoint: usize, - #[cfg(feature = "Foundation_Numerics")] - pub StartPoint: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - StartPoint: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetStartPoint: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetStartPoint: usize, + pub EndPoint: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector2) -> windows_core::HRESULT, + pub SetEndPoint: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector2) -> windows_core::HRESULT, + pub StartPoint: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector2) -> windows_core::HRESULT, + pub SetStartPoint: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector2) -> windows_core::HRESULT, } windows_core::imp::define_interface!(ICompositionMaskBrush, ICompositionMaskBrush_Vtbl, 0x522cf09e_be6b_4f41_be49_f9226d471b4a); impl windows_core::RuntimeType for ICompositionMaskBrush { @@ -15805,57 +15469,27 @@ impl windows_core::RuntimeType for ICompositionPropertySet { pub struct ICompositionPropertySet_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub InsertColor: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::Color) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub InsertMatrix3x2: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::Numerics::Matrix3x2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - InsertMatrix3x2: usize, - #[cfg(feature = "Foundation_Numerics")] - pub InsertMatrix4x4: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::Numerics::Matrix4x4) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - InsertMatrix4x4: usize, + pub InsertMatrix3x2: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_numerics::Matrix3x2) -> windows_core::HRESULT, + pub InsertMatrix4x4: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_numerics::Matrix4x4) -> windows_core::HRESULT, #[cfg(feature = "Foundation_Numerics")] pub InsertQuaternion: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::Numerics::Quaternion) -> windows_core::HRESULT, #[cfg(not(feature = "Foundation_Numerics"))] InsertQuaternion: usize, pub InsertScalar: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, f32) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub InsertVector2: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - InsertVector2: usize, - #[cfg(feature = "Foundation_Numerics")] - pub InsertVector3: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - InsertVector3: usize, - #[cfg(feature = "Foundation_Numerics")] - pub InsertVector4: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::Numerics::Vector4) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - InsertVector4: usize, + pub InsertVector2: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_numerics::Vector2) -> windows_core::HRESULT, + pub InsertVector3: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_numerics::Vector3) -> windows_core::HRESULT, + pub InsertVector4: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_numerics::Vector4) -> windows_core::HRESULT, pub TryGetColor: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::Color, *mut CompositionGetValueStatus) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub TryGetMatrix3x2: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Matrix3x2, *mut CompositionGetValueStatus) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - TryGetMatrix3x2: usize, - #[cfg(feature = "Foundation_Numerics")] - pub TryGetMatrix4x4: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Matrix4x4, *mut CompositionGetValueStatus) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - TryGetMatrix4x4: usize, + pub TryGetMatrix3x2: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut windows_numerics::Matrix3x2, *mut CompositionGetValueStatus) -> windows_core::HRESULT, + pub TryGetMatrix4x4: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut windows_numerics::Matrix4x4, *mut CompositionGetValueStatus) -> windows_core::HRESULT, #[cfg(feature = "Foundation_Numerics")] pub TryGetQuaternion: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Quaternion, *mut CompositionGetValueStatus) -> windows_core::HRESULT, #[cfg(not(feature = "Foundation_Numerics"))] TryGetQuaternion: usize, pub TryGetScalar: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut f32, *mut CompositionGetValueStatus) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub TryGetVector2: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector2, *mut CompositionGetValueStatus) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - TryGetVector2: usize, - #[cfg(feature = "Foundation_Numerics")] - pub TryGetVector3: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector3, *mut CompositionGetValueStatus) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - TryGetVector3: usize, - #[cfg(feature = "Foundation_Numerics")] - pub TryGetVector4: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector4, *mut CompositionGetValueStatus) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - TryGetVector4: usize, + pub TryGetVector2: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut windows_numerics::Vector2, *mut CompositionGetValueStatus) -> windows_core::HRESULT, + pub TryGetVector3: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut windows_numerics::Vector3, *mut CompositionGetValueStatus) -> windows_core::HRESULT, + pub TryGetVector4: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut windows_numerics::Vector4, *mut CompositionGetValueStatus) -> windows_core::HRESULT, } windows_core::imp::define_interface!(ICompositionPropertySet2, ICompositionPropertySet2_Vtbl, 0xde80731e_a211_4455_8880_7d0f3f6a44fd); impl windows_core::RuntimeType for ICompositionPropertySet2 { @@ -15874,30 +15508,12 @@ impl windows_core::RuntimeType for ICompositionRadialGradientBrush { #[repr(C)] pub struct ICompositionRadialGradientBrush_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Numerics")] - pub EllipseCenter: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - EllipseCenter: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetEllipseCenter: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetEllipseCenter: usize, - #[cfg(feature = "Foundation_Numerics")] - pub EllipseRadius: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - EllipseRadius: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetEllipseRadius: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetEllipseRadius: usize, - #[cfg(feature = "Foundation_Numerics")] - pub GradientOriginOffset: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - GradientOriginOffset: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetGradientOriginOffset: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetGradientOriginOffset: usize, + pub EllipseCenter: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector2) -> windows_core::HRESULT, + pub SetEllipseCenter: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector2) -> windows_core::HRESULT, + pub EllipseRadius: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector2) -> windows_core::HRESULT, + pub SetEllipseRadius: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector2) -> windows_core::HRESULT, + pub GradientOriginOffset: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector2) -> windows_core::HRESULT, + pub SetGradientOriginOffset: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector2) -> windows_core::HRESULT, } windows_core::imp::define_interface!(ICompositionRectangleGeometry, ICompositionRectangleGeometry_Vtbl, 0x0cd51428_5356_4246_aecf_7a0b76975400); impl windows_core::RuntimeType for ICompositionRectangleGeometry { @@ -15906,22 +15522,10 @@ impl windows_core::RuntimeType for ICompositionRectangleGeometry { #[repr(C)] pub struct ICompositionRectangleGeometry_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Numerics")] - pub Offset: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - Offset: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetOffset: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetOffset: usize, - #[cfg(feature = "Foundation_Numerics")] - pub Size: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - Size: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetSize: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetSize: usize, + pub Offset: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector2) -> windows_core::HRESULT, + pub SetOffset: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector2) -> windows_core::HRESULT, + pub Size: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector2) -> windows_core::HRESULT, + pub SetSize: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector2) -> windows_core::HRESULT, } windows_core::imp::define_interface!(ICompositionRoundedRectangleGeometry, ICompositionRoundedRectangleGeometry_Vtbl, 0x8770c822_1d50_4b8b_b013_7c9a0e46935f); impl windows_core::RuntimeType for ICompositionRoundedRectangleGeometry { @@ -15930,30 +15534,12 @@ impl windows_core::RuntimeType for ICompositionRoundedRectangleGeometry { #[repr(C)] pub struct ICompositionRoundedRectangleGeometry_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Numerics")] - pub CornerRadius: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - CornerRadius: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetCornerRadius: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetCornerRadius: usize, - #[cfg(feature = "Foundation_Numerics")] - pub Offset: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - Offset: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetOffset: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetOffset: usize, - #[cfg(feature = "Foundation_Numerics")] - pub Size: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - Size: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetSize: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetSize: usize, + pub CornerRadius: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector2) -> windows_core::HRESULT, + pub SetCornerRadius: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector2) -> windows_core::HRESULT, + pub Offset: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector2) -> windows_core::HRESULT, + pub SetOffset: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector2) -> windows_core::HRESULT, + pub Size: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector2) -> windows_core::HRESULT, + pub SetSize: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector2) -> windows_core::HRESULT, } windows_core::imp::define_interface!(ICompositionScopedBatch, ICompositionScopedBatch_Vtbl, 0x0d00dad0_fb07_46fd_8c72_6280d1a3d1dd); impl windows_core::RuntimeType for ICompositionScopedBatch { @@ -15993,42 +15579,18 @@ impl windows_core::RuntimeType for ICompositionShape { #[repr(C)] pub struct ICompositionShape_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Numerics")] - pub CenterPoint: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - CenterPoint: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetCenterPoint: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetCenterPoint: usize, - #[cfg(feature = "Foundation_Numerics")] - pub Offset: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - Offset: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetOffset: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetOffset: usize, + pub CenterPoint: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector2) -> windows_core::HRESULT, + pub SetCenterPoint: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector2) -> windows_core::HRESULT, + pub Offset: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector2) -> windows_core::HRESULT, + pub SetOffset: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector2) -> windows_core::HRESULT, pub RotationAngle: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32) -> windows_core::HRESULT, pub SetRotationAngle: unsafe extern "system" fn(*mut core::ffi::c_void, f32) -> windows_core::HRESULT, pub RotationAngleInDegrees: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32) -> windows_core::HRESULT, pub SetRotationAngleInDegrees: unsafe extern "system" fn(*mut core::ffi::c_void, f32) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub Scale: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - Scale: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetScale: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetScale: usize, - #[cfg(feature = "Foundation_Numerics")] - pub TransformMatrix: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Matrix3x2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - TransformMatrix: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetTransformMatrix: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Matrix3x2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetTransformMatrix: usize, + pub Scale: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector2) -> windows_core::HRESULT, + pub SetScale: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector2) -> windows_core::HRESULT, + pub TransformMatrix: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Matrix3x2) -> windows_core::HRESULT, + pub SetTransformMatrix: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Matrix3x2) -> windows_core::HRESULT, } windows_core::imp::define_interface!(ICompositionShapeFactory, ICompositionShapeFactory_Vtbl, 0x1dfc36d0_b05a_44ef_82b0_12118bcd4cd0); impl windows_core::RuntimeType for ICompositionShapeFactory { @@ -16180,50 +15742,20 @@ impl windows_core::RuntimeType for ICompositionSurfaceBrush2 { #[repr(C)] pub struct ICompositionSurfaceBrush2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Numerics")] - pub AnchorPoint: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - AnchorPoint: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetAnchorPoint: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetAnchorPoint: usize, - #[cfg(feature = "Foundation_Numerics")] - pub CenterPoint: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - CenterPoint: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetCenterPoint: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetCenterPoint: usize, - #[cfg(feature = "Foundation_Numerics")] - pub Offset: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - Offset: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetOffset: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetOffset: usize, + pub AnchorPoint: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector2) -> windows_core::HRESULT, + pub SetAnchorPoint: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector2) -> windows_core::HRESULT, + pub CenterPoint: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector2) -> windows_core::HRESULT, + pub SetCenterPoint: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector2) -> windows_core::HRESULT, + pub Offset: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector2) -> windows_core::HRESULT, + pub SetOffset: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector2) -> windows_core::HRESULT, pub RotationAngle: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32) -> windows_core::HRESULT, pub SetRotationAngle: unsafe extern "system" fn(*mut core::ffi::c_void, f32) -> windows_core::HRESULT, pub RotationAngleInDegrees: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32) -> windows_core::HRESULT, pub SetRotationAngleInDegrees: unsafe extern "system" fn(*mut core::ffi::c_void, f32) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub Scale: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - Scale: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetScale: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetScale: usize, - #[cfg(feature = "Foundation_Numerics")] - pub TransformMatrix: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Matrix3x2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - TransformMatrix: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetTransformMatrix: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Matrix3x2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetTransformMatrix: usize, + pub Scale: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector2) -> windows_core::HRESULT, + pub SetScale: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector2) -> windows_core::HRESULT, + pub TransformMatrix: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Matrix3x2) -> windows_core::HRESULT, + pub SetTransformMatrix: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Matrix3x2) -> windows_core::HRESULT, } windows_core::imp::define_interface!(ICompositionSurfaceBrush3, ICompositionSurfaceBrush3_Vtbl, 0x550bb289_1fe0_42e5_8195_1eefa87ff08e); impl windows_core::RuntimeType for ICompositionSurfaceBrush3 { @@ -16367,22 +15899,10 @@ pub struct ICompositionViewBox_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub HorizontalAlignmentRatio: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32) -> windows_core::HRESULT, pub SetHorizontalAlignmentRatio: unsafe extern "system" fn(*mut core::ffi::c_void, f32) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub Offset: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - Offset: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetOffset: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetOffset: usize, - #[cfg(feature = "Foundation_Numerics")] - pub Size: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - Size: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetSize: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetSize: usize, + pub Offset: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector2) -> windows_core::HRESULT, + pub SetOffset: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector2) -> windows_core::HRESULT, + pub Size: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector2) -> windows_core::HRESULT, + pub SetSize: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector2) -> windows_core::HRESULT, pub Stretch: unsafe extern "system" fn(*mut core::ffi::c_void, *mut CompositionStretch) -> windows_core::HRESULT, pub SetStretch: unsafe extern "system" fn(*mut core::ffi::c_void, CompositionStretch) -> windows_core::HRESULT, pub VerticalAlignmentRatio: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32) -> windows_core::HRESULT, @@ -16417,22 +15937,10 @@ pub struct ICompositionVisualSurface_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub SourceVisual: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetSourceVisual: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub SourceOffset: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SourceOffset: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetSourceOffset: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetSourceOffset: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SourceSize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SourceSize: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetSourceSize: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetSourceSize: usize, + pub SourceOffset: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector2) -> windows_core::HRESULT, + pub SetSourceOffset: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector2) -> windows_core::HRESULT, + pub SourceSize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector2) -> windows_core::HRESULT, + pub SetSourceSize: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector2) -> windows_core::HRESULT, } windows_core::imp::define_interface!(ICompositor, ICompositor_Vtbl, 0xb403ca50_7f8c_4e83_985f_cc45060036d8); impl windows_core::RuntimeType for ICompositor { @@ -16445,10 +15953,7 @@ pub struct ICompositor_Vtbl { pub CreateColorBrush: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateColorBrushWithColor: unsafe extern "system" fn(*mut core::ffi::c_void, super::Color, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateContainerVisual: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub CreateCubicBezierEasingFunction: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector2, super::super::Foundation::Numerics::Vector2, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - CreateCubicBezierEasingFunction: usize, + pub CreateCubicBezierEasingFunction: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector2, windows_numerics::Vector2, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Graphics_Effects")] pub CreateEffectFactory: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Graphics_Effects"))] @@ -16577,10 +16082,7 @@ pub struct ICompositor7_Vtbl { pub CreateAnimationPropertyInfo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateRectangleClip: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateRectangleClipWithSides: unsafe extern "system" fn(*mut core::ffi::c_void, f32, f32, f32, f32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub CreateRectangleClipWithSidesAndRadius: unsafe extern "system" fn(*mut core::ffi::c_void, f32, f32, f32, f32, super::super::Foundation::Numerics::Vector2, super::super::Foundation::Numerics::Vector2, super::super::Foundation::Numerics::Vector2, super::super::Foundation::Numerics::Vector2, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - CreateRectangleClipWithSidesAndRadius: usize, + pub CreateRectangleClipWithSidesAndRadius: unsafe extern "system" fn(*mut core::ffi::c_void, f32, f32, f32, f32, windows_numerics::Vector2, windows_numerics::Vector2, windows_numerics::Vector2, windows_numerics::Vector2, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(ICompositor8, ICompositor8_Vtbl, 0x9a0bdee2_fe7b_5f62_a366_9cf8effe2112); impl windows_core::RuntimeType for ICompositor8 { @@ -16663,14 +16165,8 @@ impl windows_core::RuntimeType for ICubicBezierEasingFunction { #[repr(C)] pub struct ICubicBezierEasingFunction_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Numerics")] - pub ControlPoint1: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - ControlPoint1: usize, - #[cfg(feature = "Foundation_Numerics")] - pub ControlPoint2: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - ControlPoint2: usize, + pub ControlPoint1: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector2) -> windows_core::HRESULT, + pub ControlPoint2: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector2) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IDelegatedInkTrailVisual, IDelegatedInkTrailVisual_Vtbl, 0x856e60b1_e1ab_5b23_8e3d_d513f221c998); impl windows_core::RuntimeType for IDelegatedInkTrailVisual { @@ -16705,14 +16201,8 @@ pub struct IDistantLight_Vtbl { pub SetColor: unsafe extern "system" fn(*mut core::ffi::c_void, super::Color) -> windows_core::HRESULT, pub CoordinateSpace: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetCoordinateSpace: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub Direction: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - Direction: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetDirection: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetDirection: usize, + pub Direction: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, + pub SetDirection: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector3) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IDistantLight2, IDistantLight2_Vtbl, 0xdbcdaa1c_294b_48d7_b60e_76df64aa392b); impl windows_core::RuntimeType for IDistantLight2 { @@ -16737,14 +16227,8 @@ pub struct IDropShadow_Vtbl { pub SetColor: unsafe extern "system" fn(*mut core::ffi::c_void, super::Color) -> windows_core::HRESULT, pub Mask: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetMask: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub Offset: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - Offset: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetOffset: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetOffset: usize, + pub Offset: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, + pub SetOffset: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector3) -> windows_core::HRESULT, pub Opacity: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32) -> windows_core::HRESULT, pub SetOpacity: unsafe extern "system" fn(*mut core::ffi::c_void, f32) -> windows_core::HRESULT, } @@ -16943,14 +16427,8 @@ pub struct IPointLight_Vtbl { pub SetCoordinateSpace: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub LinearAttenuation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32) -> windows_core::HRESULT, pub SetLinearAttenuation: unsafe extern "system" fn(*mut core::ffi::c_void, f32) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub Offset: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - Offset: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetOffset: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetOffset: usize, + pub Offset: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, + pub SetOffset: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector3) -> windows_core::HRESULT, pub QuadraticAttenuation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32) -> windows_core::HRESULT, pub SetQuadraticAttenuation: unsafe extern "system" fn(*mut core::ffi::c_void, f32) -> windows_core::HRESULT, } @@ -17011,44 +16489,20 @@ pub struct IRectangleClip_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Bottom: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32) -> windows_core::HRESULT, pub SetBottom: unsafe extern "system" fn(*mut core::ffi::c_void, f32) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub BottomLeftRadius: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - BottomLeftRadius: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetBottomLeftRadius: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetBottomLeftRadius: usize, - #[cfg(feature = "Foundation_Numerics")] - pub BottomRightRadius: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - BottomRightRadius: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetBottomRightRadius: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetBottomRightRadius: usize, + pub BottomLeftRadius: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector2) -> windows_core::HRESULT, + pub SetBottomLeftRadius: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector2) -> windows_core::HRESULT, + pub BottomRightRadius: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector2) -> windows_core::HRESULT, + pub SetBottomRightRadius: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector2) -> windows_core::HRESULT, pub Left: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32) -> windows_core::HRESULT, pub SetLeft: unsafe extern "system" fn(*mut core::ffi::c_void, f32) -> windows_core::HRESULT, pub Right: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32) -> windows_core::HRESULT, pub SetRight: unsafe extern "system" fn(*mut core::ffi::c_void, f32) -> windows_core::HRESULT, pub Top: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32) -> windows_core::HRESULT, pub SetTop: unsafe extern "system" fn(*mut core::ffi::c_void, f32) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub TopLeftRadius: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - TopLeftRadius: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetTopLeftRadius: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetTopLeftRadius: usize, - #[cfg(feature = "Foundation_Numerics")] - pub TopRightRadius: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - TopRightRadius: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetTopRightRadius: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetTopRightRadius: usize, + pub TopLeftRadius: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector2) -> windows_core::HRESULT, + pub SetTopLeftRadius: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector2) -> windows_core::HRESULT, + pub TopRightRadius: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector2) -> windows_core::HRESULT, + pub SetTopRightRadius: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector2) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IRedirectVisual, IRedirectVisual_Vtbl, 0x8cc6e340_8b75_5422_b06f_09ffe9f8617e); impl windows_core::RuntimeType for IRedirectVisual { @@ -17132,14 +16586,8 @@ pub struct ISpotLight_Vtbl { pub SetConstantAttenuation: unsafe extern "system" fn(*mut core::ffi::c_void, f32) -> windows_core::HRESULT, pub CoordinateSpace: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetCoordinateSpace: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub Direction: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - Direction: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetDirection: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetDirection: usize, + pub Direction: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, + pub SetDirection: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector3) -> windows_core::HRESULT, pub InnerConeAngle: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32) -> windows_core::HRESULT, pub SetInnerConeAngle: unsafe extern "system" fn(*mut core::ffi::c_void, f32) -> windows_core::HRESULT, pub InnerConeAngleInDegrees: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32) -> windows_core::HRESULT, @@ -17148,14 +16596,8 @@ pub struct ISpotLight_Vtbl { pub SetInnerConeColor: unsafe extern "system" fn(*mut core::ffi::c_void, super::Color) -> windows_core::HRESULT, pub LinearAttenuation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32) -> windows_core::HRESULT, pub SetLinearAttenuation: unsafe extern "system" fn(*mut core::ffi::c_void, f32) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub Offset: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - Offset: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetOffset: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetOffset: usize, + pub Offset: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, + pub SetOffset: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector3) -> windows_core::HRESULT, pub OuterConeAngle: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32) -> windows_core::HRESULT, pub SetOuterConeAngle: unsafe extern "system" fn(*mut core::ffi::c_void, f32) -> windows_core::HRESULT, pub OuterConeAngleInDegrees: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32) -> windows_core::HRESULT, @@ -17270,14 +16712,8 @@ impl windows_core::RuntimeType for IVector2KeyFrameAnimation { #[repr(C)] pub struct IVector2KeyFrameAnimation_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Numerics")] - pub InsertKeyFrame: unsafe extern "system" fn(*mut core::ffi::c_void, f32, super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - InsertKeyFrame: usize, - #[cfg(feature = "Foundation_Numerics")] - pub InsertKeyFrameWithEasingFunction: unsafe extern "system" fn(*mut core::ffi::c_void, f32, super::super::Foundation::Numerics::Vector2, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - InsertKeyFrameWithEasingFunction: usize, + pub InsertKeyFrame: unsafe extern "system" fn(*mut core::ffi::c_void, f32, windows_numerics::Vector2) -> windows_core::HRESULT, + pub InsertKeyFrameWithEasingFunction: unsafe extern "system" fn(*mut core::ffi::c_void, f32, windows_numerics::Vector2, *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IVector2NaturalMotionAnimation, IVector2NaturalMotionAnimation_Vtbl, 0x0f3e0b7d_e512_479d_a00c_77c93a30a395); impl windows_core::RuntimeType for IVector2NaturalMotionAnimation { @@ -17286,30 +16722,12 @@ impl windows_core::RuntimeType for IVector2NaturalMotionAnimation { #[repr(C)] pub struct IVector2NaturalMotionAnimation_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Numerics")] pub FinalValue: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - FinalValue: usize, - #[cfg(feature = "Foundation_Numerics")] pub SetFinalValue: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetFinalValue: usize, - #[cfg(feature = "Foundation_Numerics")] pub InitialValue: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - InitialValue: usize, - #[cfg(feature = "Foundation_Numerics")] pub SetInitialValue: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetInitialValue: usize, - #[cfg(feature = "Foundation_Numerics")] - pub InitialVelocity: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - InitialVelocity: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetInitialVelocity: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetInitialVelocity: usize, + pub InitialVelocity: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector2) -> windows_core::HRESULT, + pub SetInitialVelocity: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector2) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IVector2NaturalMotionAnimationFactory, IVector2NaturalMotionAnimationFactory_Vtbl, 0x8c74ff61_0761_48a2_bddb_6afcc52b89d8); impl windows_core::RuntimeType for IVector2NaturalMotionAnimationFactory { @@ -17326,14 +16744,8 @@ impl windows_core::RuntimeType for IVector3KeyFrameAnimation { #[repr(C)] pub struct IVector3KeyFrameAnimation_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Numerics")] - pub InsertKeyFrame: unsafe extern "system" fn(*mut core::ffi::c_void, f32, super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - InsertKeyFrame: usize, - #[cfg(feature = "Foundation_Numerics")] - pub InsertKeyFrameWithEasingFunction: unsafe extern "system" fn(*mut core::ffi::c_void, f32, super::super::Foundation::Numerics::Vector3, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - InsertKeyFrameWithEasingFunction: usize, + pub InsertKeyFrame: unsafe extern "system" fn(*mut core::ffi::c_void, f32, windows_numerics::Vector3) -> windows_core::HRESULT, + pub InsertKeyFrameWithEasingFunction: unsafe extern "system" fn(*mut core::ffi::c_void, f32, windows_numerics::Vector3, *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IVector3NaturalMotionAnimation, IVector3NaturalMotionAnimation_Vtbl, 0x9c17042c_e2ca_45ad_969e_4e78b7b9ad41); impl windows_core::RuntimeType for IVector3NaturalMotionAnimation { @@ -17342,30 +16754,12 @@ impl windows_core::RuntimeType for IVector3NaturalMotionAnimation { #[repr(C)] pub struct IVector3NaturalMotionAnimation_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Numerics")] pub FinalValue: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - FinalValue: usize, - #[cfg(feature = "Foundation_Numerics")] pub SetFinalValue: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetFinalValue: usize, - #[cfg(feature = "Foundation_Numerics")] pub InitialValue: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - InitialValue: usize, - #[cfg(feature = "Foundation_Numerics")] pub SetInitialValue: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetInitialValue: usize, - #[cfg(feature = "Foundation_Numerics")] - pub InitialVelocity: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - InitialVelocity: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetInitialVelocity: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetInitialVelocity: usize, + pub InitialVelocity: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, + pub SetInitialVelocity: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector3) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IVector3NaturalMotionAnimationFactory, IVector3NaturalMotionAnimationFactory_Vtbl, 0x21a81d2f_0880_457b_ac87_b609018c876d); impl windows_core::RuntimeType for IVector3NaturalMotionAnimationFactory { @@ -17382,14 +16776,8 @@ impl windows_core::RuntimeType for IVector4KeyFrameAnimation { #[repr(C)] pub struct IVector4KeyFrameAnimation_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Numerics")] - pub InsertKeyFrame: unsafe extern "system" fn(*mut core::ffi::c_void, f32, super::super::Foundation::Numerics::Vector4) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - InsertKeyFrame: usize, - #[cfg(feature = "Foundation_Numerics")] - pub InsertKeyFrameWithEasingFunction: unsafe extern "system" fn(*mut core::ffi::c_void, f32, super::super::Foundation::Numerics::Vector4, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - InsertKeyFrameWithEasingFunction: usize, + pub InsertKeyFrame: unsafe extern "system" fn(*mut core::ffi::c_void, f32, windows_numerics::Vector4) -> windows_core::HRESULT, + pub InsertKeyFrameWithEasingFunction: unsafe extern "system" fn(*mut core::ffi::c_void, f32, windows_numerics::Vector4, *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IVisual, IVisual_Vtbl, 0x117e202d_a859_4c89_873b_c2aa566788e3); impl windows_core::RuntimeType for IVisual { @@ -17398,40 +16786,22 @@ impl windows_core::RuntimeType for IVisual { #[repr(C)] pub struct IVisual_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Numerics")] - pub AnchorPoint: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - AnchorPoint: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetAnchorPoint: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetAnchorPoint: usize, + pub AnchorPoint: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector2) -> windows_core::HRESULT, + pub SetAnchorPoint: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector2) -> windows_core::HRESULT, pub BackfaceVisibility: unsafe extern "system" fn(*mut core::ffi::c_void, *mut CompositionBackfaceVisibility) -> windows_core::HRESULT, pub SetBackfaceVisibility: unsafe extern "system" fn(*mut core::ffi::c_void, CompositionBackfaceVisibility) -> windows_core::HRESULT, pub BorderMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut CompositionBorderMode) -> windows_core::HRESULT, pub SetBorderMode: unsafe extern "system" fn(*mut core::ffi::c_void, CompositionBorderMode) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub CenterPoint: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - CenterPoint: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetCenterPoint: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetCenterPoint: usize, + pub CenterPoint: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, + pub SetCenterPoint: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector3) -> windows_core::HRESULT, pub Clip: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetClip: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub CompositeMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut CompositionCompositeMode) -> windows_core::HRESULT, pub SetCompositeMode: unsafe extern "system" fn(*mut core::ffi::c_void, CompositionCompositeMode) -> windows_core::HRESULT, pub IsVisible: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub SetIsVisible: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub Offset: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - Offset: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetOffset: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetOffset: usize, + pub Offset: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, + pub SetOffset: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector3) -> windows_core::HRESULT, pub Opacity: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32) -> windows_core::HRESULT, pub SetOpacity: unsafe extern "system" fn(*mut core::ffi::c_void, f32) -> windows_core::HRESULT, #[cfg(feature = "Foundation_Numerics")] @@ -17447,38 +16817,14 @@ pub struct IVisual_Vtbl { pub SetRotationAngle: unsafe extern "system" fn(*mut core::ffi::c_void, f32) -> windows_core::HRESULT, pub RotationAngleInDegrees: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32) -> windows_core::HRESULT, pub SetRotationAngleInDegrees: unsafe extern "system" fn(*mut core::ffi::c_void, f32) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub RotationAxis: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - RotationAxis: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetRotationAxis: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetRotationAxis: usize, - #[cfg(feature = "Foundation_Numerics")] - pub Scale: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - Scale: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetScale: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetScale: usize, - #[cfg(feature = "Foundation_Numerics")] - pub Size: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - Size: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetSize: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetSize: usize, - #[cfg(feature = "Foundation_Numerics")] - pub TransformMatrix: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Matrix4x4) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - TransformMatrix: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetTransformMatrix: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Matrix4x4) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetTransformMatrix: usize, + pub RotationAxis: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, + pub SetRotationAxis: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector3) -> windows_core::HRESULT, + pub Scale: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, + pub SetScale: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector3) -> windows_core::HRESULT, + pub Size: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector2) -> windows_core::HRESULT, + pub SetSize: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector2) -> windows_core::HRESULT, + pub TransformMatrix: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Matrix4x4) -> windows_core::HRESULT, + pub SetTransformMatrix: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Matrix4x4) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IVisual2, IVisual2_Vtbl, 0x3052b611_56c3_4c3e_8bf3_f6e1ad473f06); impl windows_core::RuntimeType for IVisual2 { @@ -17489,22 +16835,10 @@ pub struct IVisual2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub ParentForTransform: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetParentForTransform: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub RelativeOffsetAdjustment: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - RelativeOffsetAdjustment: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetRelativeOffsetAdjustment: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetRelativeOffsetAdjustment: usize, - #[cfg(feature = "Foundation_Numerics")] - pub RelativeSizeAdjustment: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - RelativeSizeAdjustment: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetRelativeSizeAdjustment: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetRelativeSizeAdjustment: usize, + pub RelativeOffsetAdjustment: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, + pub SetRelativeOffsetAdjustment: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector3) -> windows_core::HRESULT, + pub RelativeSizeAdjustment: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector2) -> windows_core::HRESULT, + pub SetRelativeSizeAdjustment: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Vector2) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IVisual3, IVisual3_Vtbl, 0x30be580d_f4b6_4ab7_80dd_3738cbac9f2c); impl windows_core::RuntimeType for IVisual3 { @@ -18038,42 +17372,36 @@ impl InsetClip { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).Close)(windows_core::Interface::as_raw(this)).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn AnchorPoint(&self) -> windows_core::Result { + pub fn AnchorPoint(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AnchorPoint)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetAnchorPoint(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetAnchorPoint(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetAnchorPoint)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn CenterPoint(&self) -> windows_core::Result { + pub fn CenterPoint(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CenterPoint)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetCenterPoint(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetCenterPoint(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetCenterPoint)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Offset(&self) -> windows_core::Result { + pub fn Offset(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Offset)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetOffset(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetOffset(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetOffset)(windows_core::Interface::as_raw(this), value).ok() } } @@ -18099,29 +17427,25 @@ impl InsetClip { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetRotationAngleInDegrees)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Scale(&self) -> windows_core::Result { + pub fn Scale(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Scale)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetScale(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetScale(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetScale)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn TransformMatrix(&self) -> windows_core::Result { + pub fn TransformMatrix(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).TransformMatrix)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTransformMatrix(&self, value: super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { + pub fn SetTransformMatrix(&self, value: windows_numerics::Matrix3x2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetTransformMatrix)(windows_core::Interface::as_raw(this), value).ok() } } @@ -18306,13 +17630,11 @@ impl KeyFrameAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetColorParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetMatrix3x2Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { + pub fn SetMatrix3x2Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Matrix3x2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetMatrix3x2Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetMatrix4x4Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix4x4) -> windows_core::Result<()> { + pub fn SetMatrix4x4Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Matrix4x4) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetMatrix4x4Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } @@ -18332,18 +17654,15 @@ impl KeyFrameAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetScalarParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector2Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetVector2Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector2Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector3Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetVector3Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector3Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector4Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector4) -> windows_core::Result<()> { + pub fn SetVector4Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector4) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector4Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } @@ -18726,16 +18045,14 @@ impl LayerVisual { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetShadow)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn AnchorPoint(&self) -> windows_core::Result { + pub fn AnchorPoint(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AnchorPoint)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetAnchorPoint(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetAnchorPoint(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetAnchorPoint)(windows_core::Interface::as_raw(this), value).ok() } } @@ -18761,16 +18078,14 @@ impl LayerVisual { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetBorderMode)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn CenterPoint(&self) -> windows_core::Result { + pub fn CenterPoint(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CenterPoint)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetCenterPoint(&self, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetCenterPoint(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetCenterPoint)(windows_core::Interface::as_raw(this), value).ok() } } @@ -18810,16 +18125,14 @@ impl LayerVisual { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetIsVisible)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Offset(&self) -> windows_core::Result { + pub fn Offset(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Offset)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetOffset(&self, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetOffset(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetOffset)(windows_core::Interface::as_raw(this), value).ok() } } @@ -18876,55 +18189,47 @@ impl LayerVisual { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetRotationAngleInDegrees)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn RotationAxis(&self) -> windows_core::Result { + pub fn RotationAxis(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RotationAxis)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetRotationAxis(&self, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetRotationAxis(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetRotationAxis)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Scale(&self) -> windows_core::Result { + pub fn Scale(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Scale)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetScale(&self, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetScale(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetScale)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Size(&self) -> windows_core::Result { + pub fn Size(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetSize(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetSize(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetSize)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn TransformMatrix(&self) -> windows_core::Result { + pub fn TransformMatrix(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).TransformMatrix)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTransformMatrix(&self, value: super::super::Foundation::Numerics::Matrix4x4) -> windows_core::Result<()> { + pub fn SetTransformMatrix(&self, value: windows_numerics::Matrix4x4) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetTransformMatrix)(windows_core::Interface::as_raw(this), value).ok() } } @@ -18942,29 +18247,25 @@ impl LayerVisual { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetParentForTransform)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn RelativeOffsetAdjustment(&self) -> windows_core::Result { + pub fn RelativeOffsetAdjustment(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RelativeOffsetAdjustment)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetRelativeOffsetAdjustment(&self, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetRelativeOffsetAdjustment(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetRelativeOffsetAdjustment)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn RelativeSizeAdjustment(&self) -> windows_core::Result { + pub fn RelativeSizeAdjustment(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RelativeSizeAdjustment)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetRelativeSizeAdjustment(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetRelativeSizeAdjustment(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetRelativeSizeAdjustment)(windows_core::Interface::as_raw(this), value).ok() } } @@ -19157,13 +18458,11 @@ impl NaturalMotionAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetColorParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetMatrix3x2Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { + pub fn SetMatrix3x2Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Matrix3x2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetMatrix3x2Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetMatrix4x4Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix4x4) -> windows_core::Result<()> { + pub fn SetMatrix4x4Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Matrix4x4) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetMatrix4x4Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } @@ -19183,18 +18482,15 @@ impl NaturalMotionAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetScalarParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector2Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetVector2Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector2Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector3Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetVector3Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector3Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector4Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector4) -> windows_core::Result<()> { + pub fn SetVector4Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector4) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector4Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } @@ -19397,13 +18693,11 @@ impl PathKeyFrameAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetColorParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetMatrix3x2Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { + pub fn SetMatrix3x2Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Matrix3x2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetMatrix3x2Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetMatrix4x4Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix4x4) -> windows_core::Result<()> { + pub fn SetMatrix4x4Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Matrix4x4) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetMatrix4x4Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } @@ -19423,18 +18717,15 @@ impl PathKeyFrameAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetScalarParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector2Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetVector2Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector2Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector3Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetVector3Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector3Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector4Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector4) -> windows_core::Result<()> { + pub fn SetVector4Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector4) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector4Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } @@ -19871,16 +19162,14 @@ impl PointLight { let this = self; unsafe { (windows_core::Interface::vtable(this).SetLinearAttenuation)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Offset(&self) -> windows_core::Result { + pub fn Offset(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Offset)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetOffset(&self, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetOffset(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetOffset)(windows_core::Interface::as_raw(this), value).ok() } } @@ -20109,13 +19398,11 @@ impl QuaternionKeyFrameAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetColorParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetMatrix3x2Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { + pub fn SetMatrix3x2Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Matrix3x2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetMatrix3x2Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetMatrix4x4Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix4x4) -> windows_core::Result<()> { + pub fn SetMatrix4x4Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Matrix4x4) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetMatrix4x4Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } @@ -20135,18 +19422,15 @@ impl QuaternionKeyFrameAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetScalarParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector2Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetVector2Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector2Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector3Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetVector3Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector3Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector4Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector4) -> windows_core::Result<()> { + pub fn SetVector4Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector4) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector4Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } @@ -20412,42 +19696,36 @@ impl RectangleClip { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).Close)(windows_core::Interface::as_raw(this)).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn AnchorPoint(&self) -> windows_core::Result { + pub fn AnchorPoint(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AnchorPoint)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetAnchorPoint(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetAnchorPoint(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetAnchorPoint)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn CenterPoint(&self) -> windows_core::Result { + pub fn CenterPoint(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CenterPoint)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetCenterPoint(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetCenterPoint(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetCenterPoint)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Offset(&self) -> windows_core::Result { + pub fn Offset(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Offset)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetOffset(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetOffset(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetOffset)(windows_core::Interface::as_raw(this), value).ok() } } @@ -20473,29 +19751,25 @@ impl RectangleClip { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetRotationAngleInDegrees)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Scale(&self) -> windows_core::Result { + pub fn Scale(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Scale)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetScale(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetScale(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetScale)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn TransformMatrix(&self) -> windows_core::Result { + pub fn TransformMatrix(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).TransformMatrix)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTransformMatrix(&self, value: super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { + pub fn SetTransformMatrix(&self, value: windows_numerics::Matrix3x2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetTransformMatrix)(windows_core::Interface::as_raw(this), value).ok() } } @@ -20605,29 +19879,25 @@ impl RectangleClip { let this = self; unsafe { (windows_core::Interface::vtable(this).SetBottom)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn BottomLeftRadius(&self) -> windows_core::Result { + pub fn BottomLeftRadius(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).BottomLeftRadius)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetBottomLeftRadius(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetBottomLeftRadius(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetBottomLeftRadius)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn BottomRightRadius(&self) -> windows_core::Result { + pub fn BottomRightRadius(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).BottomRightRadius)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetBottomRightRadius(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetBottomRightRadius(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetBottomRightRadius)(windows_core::Interface::as_raw(this), value).ok() } } @@ -20664,29 +19934,25 @@ impl RectangleClip { let this = self; unsafe { (windows_core::Interface::vtable(this).SetTop)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn TopLeftRadius(&self) -> windows_core::Result { + pub fn TopLeftRadius(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).TopLeftRadius)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTopLeftRadius(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetTopLeftRadius(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetTopLeftRadius)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn TopRightRadius(&self) -> windows_core::Result { + pub fn TopRightRadius(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).TopRightRadius)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTopRightRadius(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetTopRightRadius(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetTopRightRadius)(windows_core::Interface::as_raw(this), value).ok() } } @@ -20836,16 +20102,14 @@ impl RedirectVisual { let this = self; unsafe { (windows_core::Interface::vtable(this).SetSource)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn AnchorPoint(&self) -> windows_core::Result { + pub fn AnchorPoint(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AnchorPoint)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetAnchorPoint(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetAnchorPoint(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetAnchorPoint)(windows_core::Interface::as_raw(this), value).ok() } } @@ -20871,16 +20135,14 @@ impl RedirectVisual { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetBorderMode)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn CenterPoint(&self) -> windows_core::Result { + pub fn CenterPoint(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CenterPoint)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetCenterPoint(&self, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetCenterPoint(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetCenterPoint)(windows_core::Interface::as_raw(this), value).ok() } } @@ -20920,16 +20182,14 @@ impl RedirectVisual { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetIsVisible)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Offset(&self) -> windows_core::Result { + pub fn Offset(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Offset)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetOffset(&self, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetOffset(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetOffset)(windows_core::Interface::as_raw(this), value).ok() } } @@ -20986,55 +20246,47 @@ impl RedirectVisual { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetRotationAngleInDegrees)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn RotationAxis(&self) -> windows_core::Result { + pub fn RotationAxis(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RotationAxis)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetRotationAxis(&self, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetRotationAxis(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetRotationAxis)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Scale(&self) -> windows_core::Result { + pub fn Scale(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Scale)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetScale(&self, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetScale(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetScale)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Size(&self) -> windows_core::Result { + pub fn Size(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetSize(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetSize(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetSize)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn TransformMatrix(&self) -> windows_core::Result { + pub fn TransformMatrix(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).TransformMatrix)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTransformMatrix(&self, value: super::super::Foundation::Numerics::Matrix4x4) -> windows_core::Result<()> { + pub fn SetTransformMatrix(&self, value: windows_numerics::Matrix4x4) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetTransformMatrix)(windows_core::Interface::as_raw(this), value).ok() } } @@ -21052,29 +20304,25 @@ impl RedirectVisual { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetParentForTransform)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn RelativeOffsetAdjustment(&self) -> windows_core::Result { + pub fn RelativeOffsetAdjustment(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RelativeOffsetAdjustment)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetRelativeOffsetAdjustment(&self, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetRelativeOffsetAdjustment(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetRelativeOffsetAdjustment)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn RelativeSizeAdjustment(&self) -> windows_core::Result { + pub fn RelativeSizeAdjustment(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RelativeSizeAdjustment)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetRelativeSizeAdjustment(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetRelativeSizeAdjustment(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetRelativeSizeAdjustment)(windows_core::Interface::as_raw(this), value).ok() } } @@ -21274,13 +20522,11 @@ impl ScalarKeyFrameAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetColorParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetMatrix3x2Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { + pub fn SetMatrix3x2Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Matrix3x2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetMatrix3x2Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetMatrix4x4Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix4x4) -> windows_core::Result<()> { + pub fn SetMatrix4x4Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Matrix4x4) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetMatrix4x4Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } @@ -21300,18 +20546,15 @@ impl ScalarKeyFrameAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetScalarParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector2Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetVector2Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector2Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector3Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetVector3Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector3Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector4Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector4) -> windows_core::Result<()> { + pub fn SetVector4Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector4) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector4Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } @@ -21587,13 +20830,11 @@ impl ScalarNaturalMotionAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetColorParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetMatrix3x2Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { + pub fn SetMatrix3x2Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Matrix3x2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetMatrix3x2Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetMatrix4x4Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix4x4) -> windows_core::Result<()> { + pub fn SetMatrix4x4Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Matrix4x4) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetMatrix4x4Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } @@ -21613,18 +20854,15 @@ impl ScalarNaturalMotionAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetScalarParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector2Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetVector2Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector2Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector3Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetVector3Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector3Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector4Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector4) -> windows_core::Result<()> { + pub fn SetVector4Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector4) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector4Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } @@ -21977,16 +21215,14 @@ impl ShapeVisual { let this = self; unsafe { (windows_core::Interface::vtable(this).SetViewBox)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn AnchorPoint(&self) -> windows_core::Result { + pub fn AnchorPoint(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AnchorPoint)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetAnchorPoint(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetAnchorPoint(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetAnchorPoint)(windows_core::Interface::as_raw(this), value).ok() } } @@ -22012,16 +21248,14 @@ impl ShapeVisual { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetBorderMode)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn CenterPoint(&self) -> windows_core::Result { + pub fn CenterPoint(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CenterPoint)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetCenterPoint(&self, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetCenterPoint(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetCenterPoint)(windows_core::Interface::as_raw(this), value).ok() } } @@ -22061,16 +21295,14 @@ impl ShapeVisual { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetIsVisible)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Offset(&self) -> windows_core::Result { + pub fn Offset(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Offset)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetOffset(&self, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetOffset(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetOffset)(windows_core::Interface::as_raw(this), value).ok() } } @@ -22127,55 +21359,47 @@ impl ShapeVisual { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetRotationAngleInDegrees)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn RotationAxis(&self) -> windows_core::Result { + pub fn RotationAxis(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RotationAxis)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetRotationAxis(&self, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetRotationAxis(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetRotationAxis)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Scale(&self) -> windows_core::Result { + pub fn Scale(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Scale)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetScale(&self, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetScale(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetScale)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Size(&self) -> windows_core::Result { + pub fn Size(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetSize(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetSize(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetSize)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn TransformMatrix(&self) -> windows_core::Result { + pub fn TransformMatrix(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).TransformMatrix)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTransformMatrix(&self, value: super::super::Foundation::Numerics::Matrix4x4) -> windows_core::Result<()> { + pub fn SetTransformMatrix(&self, value: windows_numerics::Matrix4x4) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetTransformMatrix)(windows_core::Interface::as_raw(this), value).ok() } } @@ -22193,29 +21417,25 @@ impl ShapeVisual { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetParentForTransform)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn RelativeOffsetAdjustment(&self) -> windows_core::Result { + pub fn RelativeOffsetAdjustment(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RelativeOffsetAdjustment)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetRelativeOffsetAdjustment(&self, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetRelativeOffsetAdjustment(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetRelativeOffsetAdjustment)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn RelativeSizeAdjustment(&self) -> windows_core::Result { + pub fn RelativeSizeAdjustment(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RelativeSizeAdjustment)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetRelativeSizeAdjustment(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetRelativeSizeAdjustment(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetRelativeSizeAdjustment)(windows_core::Interface::as_raw(this), value).ok() } } @@ -22548,16 +21768,14 @@ impl SpotLight { let this = self; unsafe { (windows_core::Interface::vtable(this).SetCoordinateSpace)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Direction(&self) -> windows_core::Result { + pub fn Direction(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Direction)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetDirection(&self, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetDirection(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetDirection)(windows_core::Interface::as_raw(this), value).ok() } } @@ -22605,16 +21823,14 @@ impl SpotLight { let this = self; unsafe { (windows_core::Interface::vtable(this).SetLinearAttenuation)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Offset(&self) -> windows_core::Result { + pub fn Offset(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Offset)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetOffset(&self, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetOffset(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetOffset)(windows_core::Interface::as_raw(this), value).ok() } } @@ -22748,13 +21964,11 @@ impl SpringScalarNaturalMotionAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetColorParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetMatrix3x2Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { + pub fn SetMatrix3x2Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Matrix3x2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetMatrix3x2Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetMatrix4x4Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix4x4) -> windows_core::Result<()> { + pub fn SetMatrix4x4Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Matrix4x4) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetMatrix4x4Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } @@ -22774,18 +21988,15 @@ impl SpringScalarNaturalMotionAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetScalarParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector2Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetVector2Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector2Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector3Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetVector3Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector3Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector4Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector4) -> windows_core::Result<()> { + pub fn SetVector4Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector4) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector4Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } @@ -23049,13 +22260,11 @@ impl SpringVector2NaturalMotionAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetColorParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetMatrix3x2Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { + pub fn SetMatrix3x2Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Matrix3x2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetMatrix3x2Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetMatrix4x4Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix4x4) -> windows_core::Result<()> { + pub fn SetMatrix4x4Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Matrix4x4) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetMatrix4x4Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } @@ -23075,18 +22284,15 @@ impl SpringVector2NaturalMotionAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetScalarParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector2Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetVector2Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector2Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector3Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetVector3Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector3Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector4Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector4) -> windows_core::Result<()> { + pub fn SetVector4Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector4) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector4Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } @@ -23269,48 +22475,42 @@ impl SpringVector2NaturalMotionAnimation { let this = self; unsafe { (windows_core::Interface::vtable(this).SetPeriod)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn FinalValue(&self) -> windows_core::Result> { + pub fn FinalValue(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FinalValue)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Numerics")] pub fn SetFinalValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetFinalValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn InitialValue(&self) -> windows_core::Result> { + pub fn InitialValue(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).InitialValue)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Numerics")] pub fn SetInitialValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetInitialValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn InitialVelocity(&self) -> windows_core::Result { + pub fn InitialVelocity(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).InitialVelocity)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetInitialVelocity(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetInitialVelocity(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetInitialVelocity)(windows_core::Interface::as_raw(this), value).ok() } } @@ -23356,13 +22556,11 @@ impl SpringVector3NaturalMotionAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetColorParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetMatrix3x2Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { + pub fn SetMatrix3x2Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Matrix3x2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetMatrix3x2Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetMatrix4x4Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix4x4) -> windows_core::Result<()> { + pub fn SetMatrix4x4Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Matrix4x4) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetMatrix4x4Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } @@ -23382,18 +22580,15 @@ impl SpringVector3NaturalMotionAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetScalarParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector2Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetVector2Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector2Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector3Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetVector3Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector3Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector4Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector4) -> windows_core::Result<()> { + pub fn SetVector4Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector4) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector4Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } @@ -23576,48 +22771,42 @@ impl SpringVector3NaturalMotionAnimation { let this = self; unsafe { (windows_core::Interface::vtable(this).SetPeriod)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn FinalValue(&self) -> windows_core::Result> { + pub fn FinalValue(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FinalValue)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Numerics")] pub fn SetFinalValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetFinalValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn InitialValue(&self) -> windows_core::Result> { + pub fn InitialValue(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).InitialValue)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Numerics")] pub fn SetInitialValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetInitialValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn InitialVelocity(&self) -> windows_core::Result { + pub fn InitialVelocity(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).InitialVelocity)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetInitialVelocity(&self, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetInitialVelocity(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetInitialVelocity)(windows_core::Interface::as_raw(this), value).ok() } } @@ -23781,16 +22970,14 @@ impl SpriteVisual { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetShadow)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn AnchorPoint(&self) -> windows_core::Result { + pub fn AnchorPoint(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AnchorPoint)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetAnchorPoint(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetAnchorPoint(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetAnchorPoint)(windows_core::Interface::as_raw(this), value).ok() } } @@ -23816,16 +23003,14 @@ impl SpriteVisual { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetBorderMode)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn CenterPoint(&self) -> windows_core::Result { + pub fn CenterPoint(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CenterPoint)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetCenterPoint(&self, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetCenterPoint(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetCenterPoint)(windows_core::Interface::as_raw(this), value).ok() } } @@ -23865,16 +23050,14 @@ impl SpriteVisual { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetIsVisible)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Offset(&self) -> windows_core::Result { + pub fn Offset(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Offset)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetOffset(&self, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetOffset(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetOffset)(windows_core::Interface::as_raw(this), value).ok() } } @@ -23931,55 +23114,47 @@ impl SpriteVisual { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetRotationAngleInDegrees)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn RotationAxis(&self) -> windows_core::Result { + pub fn RotationAxis(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RotationAxis)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetRotationAxis(&self, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetRotationAxis(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetRotationAxis)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Scale(&self) -> windows_core::Result { + pub fn Scale(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Scale)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetScale(&self, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetScale(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetScale)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Size(&self) -> windows_core::Result { + pub fn Size(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetSize(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetSize(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetSize)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn TransformMatrix(&self) -> windows_core::Result { + pub fn TransformMatrix(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).TransformMatrix)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTransformMatrix(&self, value: super::super::Foundation::Numerics::Matrix4x4) -> windows_core::Result<()> { + pub fn SetTransformMatrix(&self, value: windows_numerics::Matrix4x4) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetTransformMatrix)(windows_core::Interface::as_raw(this), value).ok() } } @@ -23997,29 +23172,25 @@ impl SpriteVisual { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetParentForTransform)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn RelativeOffsetAdjustment(&self) -> windows_core::Result { + pub fn RelativeOffsetAdjustment(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RelativeOffsetAdjustment)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetRelativeOffsetAdjustment(&self, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetRelativeOffsetAdjustment(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetRelativeOffsetAdjustment)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn RelativeSizeAdjustment(&self) -> windows_core::Result { + pub fn RelativeSizeAdjustment(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RelativeSizeAdjustment)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetRelativeSizeAdjustment(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetRelativeSizeAdjustment(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetRelativeSizeAdjustment)(windows_core::Interface::as_raw(this), value).ok() } } @@ -24267,13 +23438,11 @@ impl Vector2KeyFrameAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetColorParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetMatrix3x2Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { + pub fn SetMatrix3x2Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Matrix3x2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetMatrix3x2Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetMatrix4x4Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix4x4) -> windows_core::Result<()> { + pub fn SetMatrix4x4Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Matrix4x4) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetMatrix4x4Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } @@ -24293,18 +23462,15 @@ impl Vector2KeyFrameAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetScalarParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector2Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetVector2Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector2Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector3Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetVector3Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector3Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector4Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector4) -> windows_core::Result<()> { + pub fn SetVector4Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector4) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector4Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } @@ -24527,13 +23693,11 @@ impl Vector2KeyFrameAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetDelayBehavior)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn InsertKeyFrame(&self, normalizedprogresskey: f32, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn InsertKeyFrame(&self, normalizedprogresskey: f32, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).InsertKeyFrame)(windows_core::Interface::as_raw(this), normalizedprogresskey, value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn InsertKeyFrameWithEasingFunction(&self, normalizedprogresskey: f32, value: super::super::Foundation::Numerics::Vector2, easingfunction: P2) -> windows_core::Result<()> + pub fn InsertKeyFrameWithEasingFunction(&self, normalizedprogresskey: f32, value: windows_numerics::Vector2, easingfunction: P2) -> windows_core::Result<()> where P2: windows_core::Param, { @@ -24582,13 +23746,11 @@ impl Vector2NaturalMotionAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetColorParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetMatrix3x2Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { + pub fn SetMatrix3x2Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Matrix3x2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetMatrix3x2Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetMatrix4x4Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix4x4) -> windows_core::Result<()> { + pub fn SetMatrix4x4Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Matrix4x4) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetMatrix4x4Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } @@ -24608,18 +23770,15 @@ impl Vector2NaturalMotionAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetScalarParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector2Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetVector2Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector2Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector3Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetVector3Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector3Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector4Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector4) -> windows_core::Result<()> { + pub fn SetVector4Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector4) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector4Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } @@ -24780,48 +23939,42 @@ impl Vector2NaturalMotionAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetStopBehavior)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn FinalValue(&self) -> windows_core::Result> { + pub fn FinalValue(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FinalValue)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Numerics")] pub fn SetFinalValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).SetFinalValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn InitialValue(&self) -> windows_core::Result> { + pub fn InitialValue(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).InitialValue)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Numerics")] pub fn SetInitialValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).SetInitialValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn InitialVelocity(&self) -> windows_core::Result { + pub fn InitialVelocity(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).InitialVelocity)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetInitialVelocity(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetInitialVelocity(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetInitialVelocity)(windows_core::Interface::as_raw(this), value).ok() } } @@ -24867,13 +24020,11 @@ impl Vector3KeyFrameAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetColorParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetMatrix3x2Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { + pub fn SetMatrix3x2Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Matrix3x2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetMatrix3x2Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetMatrix4x4Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix4x4) -> windows_core::Result<()> { + pub fn SetMatrix4x4Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Matrix4x4) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetMatrix4x4Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } @@ -24893,18 +24044,15 @@ impl Vector3KeyFrameAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetScalarParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector2Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetVector2Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector2Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector3Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetVector3Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector3Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector4Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector4) -> windows_core::Result<()> { + pub fn SetVector4Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector4) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector4Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } @@ -25127,13 +24275,11 @@ impl Vector3KeyFrameAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetDelayBehavior)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn InsertKeyFrame(&self, normalizedprogresskey: f32, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn InsertKeyFrame(&self, normalizedprogresskey: f32, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).InsertKeyFrame)(windows_core::Interface::as_raw(this), normalizedprogresskey, value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn InsertKeyFrameWithEasingFunction(&self, normalizedprogresskey: f32, value: super::super::Foundation::Numerics::Vector3, easingfunction: P2) -> windows_core::Result<()> + pub fn InsertKeyFrameWithEasingFunction(&self, normalizedprogresskey: f32, value: windows_numerics::Vector3, easingfunction: P2) -> windows_core::Result<()> where P2: windows_core::Param, { @@ -25182,13 +24328,11 @@ impl Vector3NaturalMotionAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetColorParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetMatrix3x2Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { + pub fn SetMatrix3x2Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Matrix3x2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetMatrix3x2Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetMatrix4x4Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix4x4) -> windows_core::Result<()> { + pub fn SetMatrix4x4Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Matrix4x4) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetMatrix4x4Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } @@ -25208,18 +24352,15 @@ impl Vector3NaturalMotionAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetScalarParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector2Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetVector2Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector2Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector3Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetVector3Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector3Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector4Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector4) -> windows_core::Result<()> { + pub fn SetVector4Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector4) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector4Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } @@ -25380,48 +24521,42 @@ impl Vector3NaturalMotionAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetStopBehavior)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn FinalValue(&self) -> windows_core::Result> { + pub fn FinalValue(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FinalValue)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Numerics")] pub fn SetFinalValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).SetFinalValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn InitialValue(&self) -> windows_core::Result> { + pub fn InitialValue(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).InitialValue)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Numerics")] pub fn SetInitialValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).SetInitialValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn InitialVelocity(&self) -> windows_core::Result { + pub fn InitialVelocity(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).InitialVelocity)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetInitialVelocity(&self, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetInitialVelocity(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetInitialVelocity)(windows_core::Interface::as_raw(this), value).ok() } } @@ -25467,13 +24602,11 @@ impl Vector4KeyFrameAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetColorParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetMatrix3x2Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { + pub fn SetMatrix3x2Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Matrix3x2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetMatrix3x2Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetMatrix4x4Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix4x4) -> windows_core::Result<()> { + pub fn SetMatrix4x4Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Matrix4x4) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetMatrix4x4Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } @@ -25493,18 +24626,15 @@ impl Vector4KeyFrameAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetScalarParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector2Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetVector2Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector2Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector3Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetVector3Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector3Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetVector4Parameter(&self, key: &windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector4) -> windows_core::Result<()> { + pub fn SetVector4Parameter(&self, key: &windows_core::HSTRING, value: windows_numerics::Vector4) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVector4Parameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value).ok() } } @@ -25727,13 +24857,11 @@ impl Vector4KeyFrameAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetDelayBehavior)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn InsertKeyFrame(&self, normalizedprogresskey: f32, value: super::super::Foundation::Numerics::Vector4) -> windows_core::Result<()> { + pub fn InsertKeyFrame(&self, normalizedprogresskey: f32, value: windows_numerics::Vector4) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).InsertKeyFrame)(windows_core::Interface::as_raw(this), normalizedprogresskey, value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn InsertKeyFrameWithEasingFunction(&self, normalizedprogresskey: f32, value: super::super::Foundation::Numerics::Vector4, easingfunction: P2) -> windows_core::Result<()> + pub fn InsertKeyFrameWithEasingFunction(&self, normalizedprogresskey: f32, value: windows_numerics::Vector4, easingfunction: P2) -> windows_core::Result<()> where P2: windows_core::Param, { @@ -25865,16 +24993,14 @@ impl Visual { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn AnchorPoint(&self) -> windows_core::Result { + pub fn AnchorPoint(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AnchorPoint)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetAnchorPoint(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetAnchorPoint(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetAnchorPoint)(windows_core::Interface::as_raw(this), value).ok() } } @@ -25900,16 +25026,14 @@ impl Visual { let this = self; unsafe { (windows_core::Interface::vtable(this).SetBorderMode)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn CenterPoint(&self) -> windows_core::Result { + pub fn CenterPoint(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CenterPoint)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetCenterPoint(&self, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetCenterPoint(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetCenterPoint)(windows_core::Interface::as_raw(this), value).ok() } } @@ -25949,16 +25073,14 @@ impl Visual { let this = self; unsafe { (windows_core::Interface::vtable(this).SetIsVisible)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Offset(&self) -> windows_core::Result { + pub fn Offset(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Offset)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetOffset(&self, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetOffset(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetOffset)(windows_core::Interface::as_raw(this), value).ok() } } @@ -26015,55 +25137,47 @@ impl Visual { let this = self; unsafe { (windows_core::Interface::vtable(this).SetRotationAngleInDegrees)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn RotationAxis(&self) -> windows_core::Result { + pub fn RotationAxis(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RotationAxis)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetRotationAxis(&self, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetRotationAxis(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetRotationAxis)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Scale(&self) -> windows_core::Result { + pub fn Scale(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Scale)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetScale(&self, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetScale(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetScale)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Size(&self) -> windows_core::Result { + pub fn Size(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetSize(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetSize(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetSize)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn TransformMatrix(&self) -> windows_core::Result { + pub fn TransformMatrix(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).TransformMatrix)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTransformMatrix(&self, value: super::super::Foundation::Numerics::Matrix4x4) -> windows_core::Result<()> { + pub fn SetTransformMatrix(&self, value: windows_numerics::Matrix4x4) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetTransformMatrix)(windows_core::Interface::as_raw(this), value).ok() } } @@ -26081,29 +25195,25 @@ impl Visual { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetParentForTransform)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn RelativeOffsetAdjustment(&self) -> windows_core::Result { + pub fn RelativeOffsetAdjustment(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RelativeOffsetAdjustment)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetRelativeOffsetAdjustment(&self, value: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> { + pub fn SetRelativeOffsetAdjustment(&self, value: windows_numerics::Vector3) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetRelativeOffsetAdjustment)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn RelativeSizeAdjustment(&self) -> windows_core::Result { + pub fn RelativeSizeAdjustment(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RelativeSizeAdjustment)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetRelativeSizeAdjustment(&self, value: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> { + pub fn SetRelativeSizeAdjustment(&self, value: windows_numerics::Vector2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetRelativeSizeAdjustment)(windows_core::Interface::as_raw(this), value).ok() } } diff --git a/crates/libs/windows/src/Windows/UI/Input/Inking/Core/mod.rs b/crates/libs/windows/src/Windows/UI/Input/Inking/Core/mod.rs index bd1f346433..c629d3f8c2 100644 --- a/crates/libs/windows/src/Windows/UI/Input/Inking/Core/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Input/Inking/Core/mod.rs @@ -27,8 +27,7 @@ impl CoreIncrementalInkStroke { (windows_core::Interface::vtable(this).DrawingAttributes)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn PointTransform(&self) -> windows_core::Result { + pub fn PointTransform(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -42,8 +41,7 @@ impl CoreIncrementalInkStroke { (windows_core::Interface::vtable(this).BoundingRect)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Create(drawingattributes: P0, pointtransform: super::super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result + pub fn Create(drawingattributes: P0, pointtransform: windows_numerics::Matrix3x2) -> windows_core::Result where P0: windows_core::Param, { @@ -451,10 +449,7 @@ pub struct ICoreIncrementalInkStroke_Vtbl { pub AppendInkPoints: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::super::super::Foundation::Rect) -> windows_core::HRESULT, pub CreateInkStroke: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub DrawingAttributes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub PointTransform: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - PointTransform: usize, + pub PointTransform: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Matrix3x2) -> windows_core::HRESULT, pub BoundingRect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::super::Foundation::Rect) -> windows_core::HRESULT, } windows_core::imp::define_interface!(ICoreIncrementalInkStrokeFactory, ICoreIncrementalInkStrokeFactory_Vtbl, 0xd7c59f46_8da8_4f70_9751_e53bb6df4596); @@ -464,10 +459,7 @@ impl windows_core::RuntimeType for ICoreIncrementalInkStrokeFactory { #[repr(C)] pub struct ICoreIncrementalInkStrokeFactory_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Numerics")] - pub Create: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::super::super::Foundation::Numerics::Matrix3x2, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - Create: usize, + pub Create: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_numerics::Matrix3x2, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(ICoreInkIndependentInputSource, ICoreInkIndependentInputSource_Vtbl, 0x39b38da9_7639_4499_a5b5_191d00e35b16); impl windows_core::RuntimeType for ICoreInkIndependentInputSource { diff --git a/crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs b/crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs index 81b1b821b1..7e7d13f9d2 100644 --- a/crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs @@ -43,14 +43,8 @@ impl windows_core::RuntimeType for IInkDrawingAttributes2 { #[repr(C)] pub struct IInkDrawingAttributes2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Numerics")] - pub PenTipTransform: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - PenTipTransform: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetPenTipTransform: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetPenTipTransform: usize, + pub PenTipTransform: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Matrix3x2) -> windows_core::HRESULT, + pub SetPenTipTransform: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Matrix3x2) -> windows_core::HRESULT, pub DrawAsHighlighter: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub SetDrawAsHighlighter: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, } @@ -449,25 +443,21 @@ impl IInkPresenterStencil { let this = self; unsafe { (windows_core::Interface::vtable(this).SetForegroundColor)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Transform(&self) -> windows_core::Result { + pub fn Transform(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Transform)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTransform(&self, value: super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { + pub fn SetTransform(&self, value: windows_numerics::Matrix3x2) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetTransform)(windows_core::Interface::as_raw(this), value).ok() } } } -#[cfg(feature = "Foundation_Numerics")] impl windows_core::RuntimeName for IInkPresenterStencil { const NAME: &'static str = "Windows.UI.Input.Inking.IInkPresenterStencil"; } -#[cfg(feature = "Foundation_Numerics")] pub trait IInkPresenterStencil_Impl: windows_core::IUnknownImpl { fn Kind(&self) -> windows_core::Result; fn IsVisible(&self) -> windows_core::Result; @@ -476,10 +466,9 @@ pub trait IInkPresenterStencil_Impl: windows_core::IUnknownImpl { fn SetBackgroundColor(&self, value: &super::super::Color) -> windows_core::Result<()>; fn ForegroundColor(&self) -> windows_core::Result; fn SetForegroundColor(&self, value: &super::super::Color) -> windows_core::Result<()>; - fn Transform(&self) -> windows_core::Result; - fn SetTransform(&self, value: &super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()>; + fn Transform(&self) -> windows_core::Result; + fn SetTransform(&self, value: &windows_numerics::Matrix3x2) -> windows_core::Result<()>; } -#[cfg(feature = "Foundation_Numerics")] impl IInkPresenterStencil_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn Kind(this: *mut core::ffi::c_void, result__: *mut InkPresenterStencilKind) -> windows_core::HRESULT { @@ -548,7 +537,7 @@ impl IInkPresenterStencil_Vtbl { IInkPresenterStencil_Impl::SetForegroundColor(this, core::mem::transmute(&value)).into() } } - unsafe extern "system" fn Transform(this: *mut core::ffi::c_void, result__: *mut super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::HRESULT { + unsafe extern "system" fn Transform(this: *mut core::ffi::c_void, result__: *mut windows_numerics::Matrix3x2) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkPresenterStencil_Impl::Transform(this) { @@ -560,7 +549,7 @@ impl IInkPresenterStencil_Vtbl { } } } - unsafe extern "system" fn SetTransform(this: *mut core::ffi::c_void, value: super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::HRESULT { + unsafe extern "system" fn SetTransform(this: *mut core::ffi::c_void, value: windows_numerics::Matrix3x2) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkPresenterStencil_Impl::SetTransform(this, core::mem::transmute(&value)).into() @@ -593,14 +582,8 @@ pub struct IInkPresenterStencil_Vtbl { pub SetBackgroundColor: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Color) -> windows_core::HRESULT, pub ForegroundColor: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Color) -> windows_core::HRESULT, pub SetForegroundColor: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Color) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub Transform: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - Transform: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetTransform: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetTransform: usize, + pub Transform: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Matrix3x2) -> windows_core::HRESULT, + pub SetTransform: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Matrix3x2) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IInkRecognitionResult, IInkRecognitionResult_Vtbl, 0x36461a94_5068_40ef_8a05_2c2fb60908a2); impl windows_core::RuntimeType for IInkRecognitionResult { @@ -736,14 +719,8 @@ impl windows_core::RuntimeType for IInkStroke2 { #[repr(C)] pub struct IInkStroke2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Numerics")] - pub PointTransform: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - PointTransform: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetPointTransform: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetPointTransform: usize, + pub PointTransform: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Matrix3x2) -> windows_core::HRESULT, + pub SetPointTransform: unsafe extern "system" fn(*mut core::ffi::c_void, windows_numerics::Matrix3x2) -> windows_core::HRESULT, pub GetInkPoints: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IInkStroke3, IInkStroke3_Vtbl, 0x4a807374_9499_411d_a1c4_68855d03d65f); @@ -788,10 +765,7 @@ impl windows_core::RuntimeType for IInkStrokeBuilder2 { #[repr(C)] pub struct IInkStrokeBuilder2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Numerics")] - pub CreateStrokeFromInkPoints: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::super::Foundation::Numerics::Matrix3x2, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - CreateStrokeFromInkPoints: usize, + pub CreateStrokeFromInkPoints: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_numerics::Matrix3x2, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IInkStrokeBuilder3, IInkStrokeBuilder3_Vtbl, 0xb2c71fcd_5472_46b1_a81d_c37a3d169441); impl windows_core::RuntimeType for IInkStrokeBuilder3 { @@ -800,10 +774,7 @@ impl windows_core::RuntimeType for IInkStrokeBuilder3 { #[repr(C)] pub struct IInkStrokeBuilder3_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Numerics")] - pub CreateStrokeFromInkPoints: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::super::Foundation::Numerics::Matrix3x2, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - CreateStrokeFromInkPoints: usize, + pub CreateStrokeFromInkPoints: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_numerics::Matrix3x2, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IInkStrokeContainer, IInkStrokeContainer_Vtbl, 0x22accbc6_faa9_4f14_b68c_f6cee670ae16); impl windows_core::RuntimeType for IInkStrokeContainer { @@ -1380,16 +1351,14 @@ impl InkDrawingAttributes { let this = self; unsafe { (windows_core::Interface::vtable(this).SetFitToCurve)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn PenTipTransform(&self) -> windows_core::Result { + pub fn PenTipTransform(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).PenTipTransform)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetPenTipTransform(&self, value: super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { + pub fn SetPenTipTransform(&self, value: windows_numerics::Matrix3x2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetPenTipTransform)(windows_core::Interface::as_raw(this), value).ok() } } @@ -2284,16 +2253,14 @@ impl InkPresenterProtractor { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetForegroundColor)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Transform(&self) -> windows_core::Result { + pub fn Transform(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Transform)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTransform(&self, value: super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { + pub fn SetTransform(&self, value: windows_numerics::Matrix3x2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetTransform)(windows_core::Interface::as_raw(this), value).ok() } } @@ -2413,16 +2380,14 @@ impl InkPresenterRuler { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetForegroundColor)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Transform(&self) -> windows_core::Result { + pub fn Transform(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Transform)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTransform(&self, value: super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { + pub fn SetTransform(&self, value: windows_numerics::Matrix3x2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetTransform)(windows_core::Interface::as_raw(this), value).ok() } } @@ -2638,16 +2603,14 @@ impl InkStroke { (windows_core::Interface::vtable(this).Clone)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn PointTransform(&self) -> windows_core::Result { + pub fn PointTransform(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).PointTransform)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetPointTransform(&self, value: super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { + pub fn SetPointTransform(&self, value: windows_numerics::Matrix3x2) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetPointTransform)(windows_core::Interface::as_raw(this), value).ok() } } @@ -2769,8 +2732,7 @@ impl InkStrokeBuilder { let this = self; unsafe { (windows_core::Interface::vtable(this).SetDefaultDrawingAttributes)(windows_core::Interface::as_raw(this), drawingattributes.param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn CreateStrokeFromInkPoints(&self, inkpoints: P0, transform: super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result + pub fn CreateStrokeFromInkPoints(&self, inkpoints: P0, transform: windows_numerics::Matrix3x2) -> windows_core::Result where P0: windows_core::Param>, { @@ -2780,8 +2742,7 @@ impl InkStrokeBuilder { (windows_core::Interface::vtable(this).CreateStrokeFromInkPoints)(windows_core::Interface::as_raw(this), inkpoints.param().abi(), transform, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn CreateStrokeFromInkPoints2(&self, inkpoints: P0, transform: super::super::super::Foundation::Numerics::Matrix3x2, strokestartedtime: P2, strokeduration: P3) -> windows_core::Result + pub fn CreateStrokeFromInkPoints2(&self, inkpoints: P0, transform: windows_numerics::Matrix3x2, strokestartedtime: P2, strokeduration: P3) -> windows_core::Result where P0: windows_core::Param>, P2: windows_core::Param>, diff --git a/crates/libs/windows/src/Windows/UI/Input/Spatial/mod.rs b/crates/libs/windows/src/Windows/UI/Input/Spatial/mod.rs index 50663c5cd0..cbcccd4a0c 100644 --- a/crates/libs/windows/src/Windows/UI/Input/Spatial/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Input/Spatial/mod.rs @@ -284,14 +284,8 @@ impl windows_core::RuntimeType for ISpatialInteractionSourceLocation { #[repr(C)] pub struct ISpatialInteractionSourceLocation_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Numerics")] pub Position: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - Position: usize, - #[cfg(feature = "Foundation_Numerics")] pub Velocity: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - Velocity: usize, } windows_core::imp::define_interface!(ISpatialInteractionSourceLocation2, ISpatialInteractionSourceLocation2_Vtbl, 0x4c671045_3917_40fc_a9ac_31c9cf5ff91b); impl windows_core::RuntimeType for ISpatialInteractionSourceLocation2 { @@ -313,10 +307,7 @@ impl windows_core::RuntimeType for ISpatialInteractionSourceLocation3 { pub struct ISpatialInteractionSourceLocation3_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub PositionAccuracy: unsafe extern "system" fn(*mut core::ffi::c_void, *mut SpatialInteractionSourcePositionAccuracy) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] pub AngularVelocity: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - AngularVelocity: usize, pub SourcePointerPose: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(ISpatialInteractionSourceProperties, ISpatialInteractionSourceProperties_Vtbl, 0x05604542_3ef7_3222_9f53_63c9cb7e3bc7); @@ -326,9 +317,9 @@ impl windows_core::RuntimeType for ISpatialInteractionSourceProperties { #[repr(C)] pub struct ISpatialInteractionSourceProperties_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] + #[cfg(feature = "Perception_Spatial")] pub TryGetSourceLossMitigationDirection: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Numerics", feature = "Perception_Spatial")))] + #[cfg(not(feature = "Perception_Spatial"))] TryGetSourceLossMitigationDirection: usize, pub SourceLossRisk: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, #[cfg(feature = "Perception_Spatial")] @@ -409,10 +400,7 @@ impl windows_core::RuntimeType for ISpatialManipulationDelta { #[repr(C)] pub struct ISpatialManipulationDelta_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Numerics")] - pub Translation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - Translation: usize, + pub Translation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, } windows_core::imp::define_interface!(ISpatialManipulationStartedEventArgs, ISpatialManipulationStartedEventArgs_Vtbl, 0xa1d6bbce_42a5_377b_ada6_d28e3d384737); impl windows_core::RuntimeType for ISpatialManipulationStartedEventArgs { @@ -457,10 +445,7 @@ impl windows_core::RuntimeType for ISpatialNavigationCompletedEventArgs { pub struct ISpatialNavigationCompletedEventArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub InteractionSourceKind: unsafe extern "system" fn(*mut core::ffi::c_void, *mut SpatialInteractionSourceKind) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub NormalizedOffset: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - NormalizedOffset: usize, + pub NormalizedOffset: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, } windows_core::imp::define_interface!(ISpatialNavigationStartedEventArgs, ISpatialNavigationStartedEventArgs_Vtbl, 0x754a348a_fb64_4656_8ebd_9deecaafe475); impl windows_core::RuntimeType for ISpatialNavigationStartedEventArgs { @@ -486,10 +471,7 @@ impl windows_core::RuntimeType for ISpatialNavigationUpdatedEventArgs { pub struct ISpatialNavigationUpdatedEventArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub InteractionSourceKind: unsafe extern "system" fn(*mut core::ffi::c_void, *mut SpatialInteractionSourceKind) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub NormalizedOffset: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - NormalizedOffset: usize, + pub NormalizedOffset: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, } windows_core::imp::define_interface!(ISpatialPointerInteractionSourcePose, ISpatialPointerInteractionSourcePose_Vtbl, 0xa7104307_2c2b_4d3a_92a7_80ced7c4a0d0); impl windows_core::RuntimeType for ISpatialPointerInteractionSourcePose { @@ -498,18 +480,9 @@ impl windows_core::RuntimeType for ISpatialPointerInteractionSourcePose { #[repr(C)] pub struct ISpatialPointerInteractionSourcePose_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Numerics")] - pub Position: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - Position: usize, - #[cfg(feature = "Foundation_Numerics")] - pub ForwardDirection: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - ForwardDirection: usize, - #[cfg(feature = "Foundation_Numerics")] - pub UpDirection: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - UpDirection: usize, + pub Position: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, + pub ForwardDirection: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, + pub UpDirection: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Vector3) -> windows_core::HRESULT, } windows_core::imp::define_interface!(ISpatialPointerInteractionSourcePose2, ISpatialPointerInteractionSourcePose2_Vtbl, 0xeccd86b8_52db_469f_9e3f_80c47f74bce9); impl windows_core::RuntimeType for ISpatialPointerInteractionSourcePose2 { @@ -1530,16 +1503,14 @@ impl windows_core::RuntimeType for SpatialInteractionSourceKind { pub struct SpatialInteractionSourceLocation(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(SpatialInteractionSourceLocation, windows_core::IUnknown, windows_core::IInspectable); impl SpatialInteractionSourceLocation { - #[cfg(feature = "Foundation_Numerics")] - pub fn Position(&self) -> windows_core::Result> { + pub fn Position(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Position)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Velocity(&self) -> windows_core::Result> { + pub fn Velocity(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1561,8 +1532,7 @@ impl SpatialInteractionSourceLocation { (windows_core::Interface::vtable(this).PositionAccuracy)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn AngularVelocity(&self) -> windows_core::Result> { + pub fn AngularVelocity(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -1607,8 +1577,8 @@ impl windows_core::RuntimeType for SpatialInteractionSourcePositionAccuracy { pub struct SpatialInteractionSourceProperties(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(SpatialInteractionSourceProperties, windows_core::IUnknown, windows_core::IInspectable); impl SpatialInteractionSourceProperties { - #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] - pub fn TryGetSourceLossMitigationDirection(&self, coordinatesystem: P0) -> windows_core::Result> + #[cfg(feature = "Perception_Spatial")] + pub fn TryGetSourceLossMitigationDirection(&self, coordinatesystem: P0) -> windows_core::Result> where P0: windows_core::Param, { @@ -1816,8 +1786,7 @@ unsafe impl Sync for SpatialManipulationCompletedEventArgs {} pub struct SpatialManipulationDelta(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(SpatialManipulationDelta, windows_core::IUnknown, windows_core::IInspectable); impl SpatialManipulationDelta { - #[cfg(feature = "Foundation_Numerics")] - pub fn Translation(&self) -> windows_core::Result { + pub fn Translation(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1946,8 +1915,7 @@ impl SpatialNavigationCompletedEventArgs { (windows_core::Interface::vtable(this).InteractionSourceKind)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn NormalizedOffset(&self) -> windows_core::Result { + pub fn NormalizedOffset(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2036,8 +2004,7 @@ impl SpatialNavigationUpdatedEventArgs { (windows_core::Interface::vtable(this).InteractionSourceKind)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn NormalizedOffset(&self) -> windows_core::Result { + pub fn NormalizedOffset(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2062,24 +2029,21 @@ unsafe impl Sync for SpatialNavigationUpdatedEventArgs {} pub struct SpatialPointerInteractionSourcePose(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(SpatialPointerInteractionSourcePose, windows_core::IUnknown, windows_core::IInspectable); impl SpatialPointerInteractionSourcePose { - #[cfg(feature = "Foundation_Numerics")] - pub fn Position(&self) -> windows_core::Result { + pub fn Position(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Position)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn ForwardDirection(&self) -> windows_core::Result { + pub fn ForwardDirection(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).ForwardDirection)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn UpDirection(&self) -> windows_core::Result { + pub fn UpDirection(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/UI/StartScreen/mod.rs b/crates/libs/windows/src/Windows/UI/StartScreen/mod.rs index c1907a2964..1fc3dd9545 100644 --- a/crates/libs/windows/src/Windows/UI/StartScreen/mod.rs +++ b/crates/libs/windows/src/Windows/UI/StartScreen/mod.rs @@ -329,13 +329,13 @@ pub struct ITileMixedRealityModel_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub SetUri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub Uri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] + #[cfg(feature = "Perception_Spatial")] pub SetBoundingBox: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Numerics", feature = "Perception_Spatial")))] + #[cfg(not(feature = "Perception_Spatial"))] SetBoundingBox: usize, - #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] + #[cfg(feature = "Perception_Spatial")] pub BoundingBox: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Numerics", feature = "Perception_Spatial")))] + #[cfg(not(feature = "Perception_Spatial"))] BoundingBox: usize, } windows_core::imp::define_interface!(ITileMixedRealityModel2, ITileMixedRealityModel2_Vtbl, 0x439470b2_d7c5_410b_8319_9486a27b6c67); @@ -1223,7 +1223,7 @@ impl TileMixedRealityModel { (windows_core::Interface::vtable(this).Uri)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] + #[cfg(feature = "Perception_Spatial")] pub fn SetBoundingBox(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param>, @@ -1231,7 +1231,7 @@ impl TileMixedRealityModel { let this = self; unsafe { (windows_core::Interface::vtable(this).SetBoundingBox)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] + #[cfg(feature = "Perception_Spatial")] pub fn BoundingBox(&self) -> windows_core::Result> { let this = self; unsafe { diff --git a/crates/libs/windows/src/Windows/Wdk/Graphics/Direct3D/mod.rs b/crates/libs/windows/src/Windows/Wdk/Graphics/Direct3D/mod.rs index df861391aa..70ef839797 100644 --- a/crates/libs/windows/src/Windows/Wdk/Graphics/Direct3D/mod.rs +++ b/crates/libs/windows/src/Windows/Wdk/Graphics/Direct3D/mod.rs @@ -3682,13 +3682,13 @@ impl Default for D3DHAL_DP2LINESTRIP { } } #[repr(C)] -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct3D9"))] +#[cfg(feature = "Win32_Graphics_Direct3D9")] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3DHAL_DP2MULTIPLYTRANSFORM { pub xfrmType: super::super::super::Win32::Graphics::Direct3D9::D3DTRANSFORMSTATETYPE, - pub matrix: super::super::super::Foundation::Numerics::Matrix4x4, + pub matrix: windows_numerics::Matrix4x4, } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct3D9"))] +#[cfg(feature = "Win32_Graphics_Direct3D9")] impl Default for D3DHAL_DP2MULTIPLYTRANSFORM { fn default() -> Self { unsafe { core::mem::zeroed() } @@ -3938,13 +3938,13 @@ impl Default for D3DHAL_DP2SETTEXLOD { } } #[repr(C)] -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct3D9"))] +#[cfg(feature = "Win32_Graphics_Direct3D9")] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3DHAL_DP2SETTRANSFORM { pub xfrmType: super::super::super::Win32::Graphics::Direct3D9::D3DTRANSFORMSTATETYPE, - pub matrix: super::super::super::Foundation::Numerics::Matrix4x4, + pub matrix: windows_numerics::Matrix4x4, } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct3D9"))] +#[cfg(feature = "Win32_Graphics_Direct3D9")] impl Default for D3DHAL_DP2SETTRANSFORM { fn default() -> Self { unsafe { core::mem::zeroed() } @@ -13356,13 +13356,13 @@ impl Default for D3DNTHAL_DP2LINESTRIP { } } #[repr(C)] -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct3D9"))] +#[cfg(feature = "Win32_Graphics_Direct3D9")] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3DNTHAL_DP2MULTIPLYTRANSFORM { pub xfrmType: super::super::super::Win32::Graphics::Direct3D9::D3DTRANSFORMSTATETYPE, - pub matrix: super::super::super::Foundation::Numerics::Matrix4x4, + pub matrix: windows_numerics::Matrix4x4, } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct3D9"))] +#[cfg(feature = "Win32_Graphics_Direct3D9")] impl Default for D3DNTHAL_DP2MULTIPLYTRANSFORM { fn default() -> Self { unsafe { core::mem::zeroed() } @@ -13623,13 +13623,13 @@ impl Default for D3DNTHAL_DP2SETTEXLOD { } } #[repr(C)] -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct3D9"))] +#[cfg(feature = "Win32_Graphics_Direct3D9")] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3DNTHAL_DP2SETTRANSFORM { pub xfrmType: super::super::super::Win32::Graphics::Direct3D9::D3DTRANSFORMSTATETYPE, - pub matrix: super::super::super::Foundation::Numerics::Matrix4x4, + pub matrix: windows_numerics::Matrix4x4, } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct3D9"))] +#[cfg(feature = "Win32_Graphics_Direct3D9")] impl Default for D3DNTHAL_DP2SETTRANSFORM { fn default() -> Self { unsafe { core::mem::zeroed() } diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Direct2D/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Direct2D/mod.rs index 5c5fcd1a4a..93c78b581e 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct2D/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct2D/mod.rs @@ -1,9 +1,8 @@ #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub mod Common; -#[cfg(feature = "Foundation_Numerics")] #[inline] -pub unsafe fn D2D1ComputeMaximumScaleFactor(matrix: *const super::super::super::Foundation::Numerics::Matrix3x2) -> f32 { - windows_link::link!("d2d1.dll" "system" fn D2D1ComputeMaximumScaleFactor(matrix : *const super::super::super::Foundation::Numerics:: Matrix3x2) -> f32); +pub unsafe fn D2D1ComputeMaximumScaleFactor(matrix: *const windows_numerics::Matrix3x2) -> f32 { + windows_link::link!("d2d1.dll" "system" fn D2D1ComputeMaximumScaleFactor(matrix : *const windows_numerics:: Matrix3x2) -> f32); unsafe { D2D1ComputeMaximumScaleFactor(matrix) } } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] @@ -51,28 +50,26 @@ pub unsafe fn D2D1GetGradientMeshInteriorPointsFromCoonsPatch(ppoint0: *const Co windows_link::link!("d2d1.dll" "system" fn D2D1GetGradientMeshInteriorPointsFromCoonsPatch(ppoint0 : *const Common:: D2D_POINT_2F, ppoint1 : *const Common:: D2D_POINT_2F, ppoint2 : *const Common:: D2D_POINT_2F, ppoint3 : *const Common:: D2D_POINT_2F, ppoint4 : *const Common:: D2D_POINT_2F, ppoint5 : *const Common:: D2D_POINT_2F, ppoint6 : *const Common:: D2D_POINT_2F, ppoint7 : *const Common:: D2D_POINT_2F, ppoint8 : *const Common:: D2D_POINT_2F, ppoint9 : *const Common:: D2D_POINT_2F, ppoint10 : *const Common:: D2D_POINT_2F, ppoint11 : *const Common:: D2D_POINT_2F, ptensorpoint11 : *mut Common:: D2D_POINT_2F, ptensorpoint12 : *mut Common:: D2D_POINT_2F, ptensorpoint21 : *mut Common:: D2D_POINT_2F, ptensorpoint22 : *mut Common:: D2D_POINT_2F)); unsafe { D2D1GetGradientMeshInteriorPointsFromCoonsPatch(ppoint0, ppoint1, ppoint2, ppoint3, ppoint4, ppoint5, ppoint6, ppoint7, ppoint8, ppoint9, ppoint10, ppoint11, ptensorpoint11 as _, ptensorpoint12 as _, ptensorpoint21 as _, ptensorpoint22 as _) } } -#[cfg(feature = "Foundation_Numerics")] #[inline] -pub unsafe fn D2D1InvertMatrix(matrix: *mut super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::BOOL { - windows_link::link!("d2d1.dll" "system" fn D2D1InvertMatrix(matrix : *mut super::super::super::Foundation::Numerics:: Matrix3x2) -> windows_core::BOOL); +pub unsafe fn D2D1InvertMatrix(matrix: *mut windows_numerics::Matrix3x2) -> windows_core::BOOL { + windows_link::link!("d2d1.dll" "system" fn D2D1InvertMatrix(matrix : *mut windows_numerics:: Matrix3x2) -> windows_core::BOOL); unsafe { D2D1InvertMatrix(matrix as _) } } -#[cfg(feature = "Foundation_Numerics")] #[inline] -pub unsafe fn D2D1IsMatrixInvertible(matrix: *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::BOOL { - windows_link::link!("d2d1.dll" "system" fn D2D1IsMatrixInvertible(matrix : *const super::super::super::Foundation::Numerics:: Matrix3x2) -> windows_core::BOOL); +pub unsafe fn D2D1IsMatrixInvertible(matrix: *const windows_numerics::Matrix3x2) -> windows_core::BOOL { + windows_link::link!("d2d1.dll" "system" fn D2D1IsMatrixInvertible(matrix : *const windows_numerics:: Matrix3x2) -> windows_core::BOOL); unsafe { D2D1IsMatrixInvertible(matrix) } } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] #[inline] -pub unsafe fn D2D1MakeRotateMatrix(angle: f32, center: Common::D2D_POINT_2F, matrix: *mut super::super::super::Foundation::Numerics::Matrix3x2) { - windows_link::link!("d2d1.dll" "system" fn D2D1MakeRotateMatrix(angle : f32, center : Common:: D2D_POINT_2F, matrix : *mut super::super::super::Foundation::Numerics:: Matrix3x2)); +pub unsafe fn D2D1MakeRotateMatrix(angle: f32, center: Common::D2D_POINT_2F, matrix: *mut windows_numerics::Matrix3x2) { + windows_link::link!("d2d1.dll" "system" fn D2D1MakeRotateMatrix(angle : f32, center : Common:: D2D_POINT_2F, matrix : *mut windows_numerics:: Matrix3x2)); unsafe { D2D1MakeRotateMatrix(angle, core::mem::transmute(center), matrix as _) } } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] #[inline] -pub unsafe fn D2D1MakeSkewMatrix(anglex: f32, angley: f32, center: Common::D2D_POINT_2F, matrix: *mut super::super::super::Foundation::Numerics::Matrix3x2) { - windows_link::link!("d2d1.dll" "system" fn D2D1MakeSkewMatrix(anglex : f32, angley : f32, center : Common:: D2D_POINT_2F, matrix : *mut super::super::super::Foundation::Numerics:: Matrix3x2)); +pub unsafe fn D2D1MakeSkewMatrix(anglex: f32, angley: f32, center: Common::D2D_POINT_2F, matrix: *mut windows_numerics::Matrix3x2) { + windows_link::link!("d2d1.dll" "system" fn D2D1MakeSkewMatrix(anglex : f32, angley : f32, center : Common:: D2D_POINT_2F, matrix : *mut windows_numerics:: Matrix3x2)); unsafe { D2D1MakeSkewMatrix(anglex, angley, core::mem::transmute(center), matrix as _) } } #[inline] @@ -426,13 +423,11 @@ pub struct D2D1_BRIGHTNESS_PROP(pub i32); pub const D2D1_BRIGHTNESS_PROP_BLACK_POINT: D2D1_BRIGHTNESS_PROP = D2D1_BRIGHTNESS_PROP(1i32); pub const D2D1_BRIGHTNESS_PROP_WHITE_POINT: D2D1_BRIGHTNESS_PROP = D2D1_BRIGHTNESS_PROP(0i32); #[repr(C)] -#[cfg(feature = "Foundation_Numerics")] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D2D1_BRUSH_PROPERTIES { pub opacity: f32, - pub transform: super::super::super::Foundation::Numerics::Matrix3x2, + pub transform: windows_numerics::Matrix3x2, } -#[cfg(feature = "Foundation_Numerics")] impl Default for D2D1_BRUSH_PROPERTIES { fn default() -> Self { unsafe { core::mem::zeroed() } @@ -829,34 +824,30 @@ pub const D2D1_DPICOMPENSATION_PROP_BORDER_MODE: D2D1_DPICOMPENSATION_PROP = D2D pub const D2D1_DPICOMPENSATION_PROP_INPUT_DPI: D2D1_DPICOMPENSATION_PROP = D2D1_DPICOMPENSATION_PROP(2i32); pub const D2D1_DPICOMPENSATION_PROP_INTERPOLATION_MODE: D2D1_DPICOMPENSATION_PROP = D2D1_DPICOMPENSATION_PROP(0i32); #[repr(C)] -#[cfg(feature = "Foundation_Numerics")] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D2D1_DRAWING_STATE_DESCRIPTION { pub antialiasMode: D2D1_ANTIALIAS_MODE, pub textAntialiasMode: D2D1_TEXT_ANTIALIAS_MODE, pub tag1: u64, pub tag2: u64, - pub transform: super::super::super::Foundation::Numerics::Matrix3x2, + pub transform: windows_numerics::Matrix3x2, } -#[cfg(feature = "Foundation_Numerics")] impl Default for D2D1_DRAWING_STATE_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[cfg(feature = "Foundation_Numerics")] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D2D1_DRAWING_STATE_DESCRIPTION1 { pub antialiasMode: D2D1_ANTIALIAS_MODE, pub textAntialiasMode: D2D1_TEXT_ANTIALIAS_MODE, pub tag1: u64, pub tag2: u64, - pub transform: super::super::super::Foundation::Numerics::Matrix3x2, + pub transform: windows_numerics::Matrix3x2, pub primitiveBlend: D2D1_PRIMITIVE_BLEND, pub unitMode: D2D1_UNIT_MODE, } -#[cfg(feature = "Foundation_Numerics")] impl Default for D2D1_DRAWING_STATE_DESCRIPTION1 { fn default() -> Self { unsafe { core::mem::zeroed() } @@ -1291,13 +1282,11 @@ impl Default for D2D1_INK_POINT { } } #[repr(C)] -#[cfg(feature = "Foundation_Numerics")] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D2D1_INK_STYLE_PROPERTIES { pub nibShape: D2D1_INK_NIB_SHAPE, - pub nibTransform: super::super::super::Foundation::Numerics::Matrix3x2, + pub nibTransform: windows_numerics::Matrix3x2, } -#[cfg(feature = "Foundation_Numerics")] impl Default for D2D1_INK_STYLE_PROPERTIES { fn default() -> Self { unsafe { core::mem::zeroed() } @@ -1428,36 +1417,36 @@ pub const D2D1_LAYER_OPTIONS1_NONE: D2D1_LAYER_OPTIONS1 = D2D1_LAYER_OPTIONS1(0i pub const D2D1_LAYER_OPTIONS_INITIALIZE_FOR_CLEARTYPE: D2D1_LAYER_OPTIONS = D2D1_LAYER_OPTIONS(1i32); pub const D2D1_LAYER_OPTIONS_NONE: D2D1_LAYER_OPTIONS = D2D1_LAYER_OPTIONS(0i32); #[repr(C)] -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] #[derive(Clone, Debug, PartialEq)] pub struct D2D1_LAYER_PARAMETERS { pub contentBounds: Common::D2D_RECT_F, pub geometricMask: core::mem::ManuallyDrop>, pub maskAntialiasMode: D2D1_ANTIALIAS_MODE, - pub maskTransform: super::super::super::Foundation::Numerics::Matrix3x2, + pub maskTransform: windows_numerics::Matrix3x2, pub opacity: f32, pub opacityBrush: core::mem::ManuallyDrop>, pub layerOptions: D2D1_LAYER_OPTIONS, } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl Default for D2D1_LAYER_PARAMETERS { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] #[derive(Clone, Debug, PartialEq)] pub struct D2D1_LAYER_PARAMETERS1 { pub contentBounds: Common::D2D_RECT_F, pub geometricMask: core::mem::ManuallyDrop>, pub maskAntialiasMode: D2D1_ANTIALIAS_MODE, - pub maskTransform: super::super::super::Foundation::Numerics::Matrix3x2, + pub maskTransform: windows_numerics::Matrix3x2, pub opacity: f32, pub opacityBrush: core::mem::ManuallyDrop>, pub layerOptions: D2D1_LAYER_OPTIONS1, } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl Default for D2D1_LAYER_PARAMETERS1 { fn default() -> Self { unsafe { core::mem::zeroed() } @@ -2930,7 +2919,6 @@ pub struct ID2D1BitmapBrush_Vtbl { } unsafe impl Send for ID2D1BitmapBrush {} unsafe impl Sync for ID2D1BitmapBrush {} -#[cfg(feature = "Foundation_Numerics")] pub trait ID2D1BitmapBrush_Impl: ID2D1Brush_Impl { fn SetExtendModeX(&self, extendmodex: D2D1_EXTEND_MODE); fn SetExtendModeY(&self, extendmodey: D2D1_EXTEND_MODE); @@ -2941,7 +2929,6 @@ pub trait ID2D1BitmapBrush_Impl: ID2D1Brush_Impl { fn GetInterpolationMode(&self) -> D2D1_BITMAP_INTERPOLATION_MODE; fn GetBitmap(&self, bitmap: windows_core::OutRef<'_, ID2D1Bitmap>); } -#[cfg(feature = "Foundation_Numerics")] impl ID2D1BitmapBrush_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn SetExtendModeX(this: *mut core::ffi::c_void, extendmodex: D2D1_EXTEND_MODE) { @@ -3008,7 +2995,6 @@ impl ID2D1BitmapBrush_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(feature = "Foundation_Numerics")] impl windows_core::RuntimeName for ID2D1BitmapBrush {} windows_core::imp::define_interface!(ID2D1BitmapBrush1, ID2D1BitmapBrush1_Vtbl, 0x41343a53_e41a_49a2_91cd_21793bbb62e5); impl core::ops::Deref for ID2D1BitmapBrush1 { @@ -3034,12 +3020,10 @@ pub struct ID2D1BitmapBrush1_Vtbl { } unsafe impl Send for ID2D1BitmapBrush1 {} unsafe impl Sync for ID2D1BitmapBrush1 {} -#[cfg(feature = "Foundation_Numerics")] pub trait ID2D1BitmapBrush1_Impl: ID2D1BitmapBrush_Impl { fn SetInterpolationMode1(&self, interpolationmode: D2D1_INTERPOLATION_MODE); fn GetInterpolationMode1(&self) -> D2D1_INTERPOLATION_MODE; } -#[cfg(feature = "Foundation_Numerics")] impl ID2D1BitmapBrush1_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn SetInterpolationMode1(this: *mut core::ffi::c_void, interpolationmode: D2D1_INTERPOLATION_MODE) { @@ -3064,7 +3048,6 @@ impl ID2D1BitmapBrush1_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(feature = "Foundation_Numerics")] impl windows_core::RuntimeName for ID2D1BitmapBrush1 {} windows_core::imp::define_interface!(ID2D1BitmapRenderTarget, ID2D1BitmapRenderTarget_Vtbl, 0x2cd90695_12e2_11dc_9fed_001143a055f9); impl core::ops::Deref for ID2D1BitmapRenderTarget { @@ -3089,11 +3072,11 @@ pub struct ID2D1BitmapRenderTarget_Vtbl { } unsafe impl Send for ID2D1BitmapRenderTarget {} unsafe impl Sync for ID2D1BitmapRenderTarget {} -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] pub trait ID2D1BitmapRenderTarget_Impl: ID2D1RenderTarget_Impl { fn GetBitmap(&self) -> windows_core::Result; } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] impl ID2D1BitmapRenderTarget_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn GetBitmap(this: *mut core::ffi::c_void, bitmap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -3114,7 +3097,7 @@ impl ID2D1BitmapRenderTarget_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] impl windows_core::RuntimeName for ID2D1BitmapRenderTarget {} windows_core::imp::define_interface!(ID2D1BlendTransform, ID2D1BlendTransform_Vtbl, 0x63ac0b32_ba44_450f_8806_7f4ca1ff2f1b); impl core::ops::Deref for ID2D1BlendTransform { @@ -3315,15 +3298,13 @@ impl ID2D1Brush { pub unsafe fn SetOpacity(&self, opacity: f32) { unsafe { (windows_core::Interface::vtable(self).SetOpacity)(windows_core::Interface::as_raw(self), opacity) } } - #[cfg(feature = "Foundation_Numerics")] - pub unsafe fn SetTransform(&self, transform: *const super::super::super::Foundation::Numerics::Matrix3x2) { + pub unsafe fn SetTransform(&self, transform: *const windows_numerics::Matrix3x2) { unsafe { (windows_core::Interface::vtable(self).SetTransform)(windows_core::Interface::as_raw(self), transform) } } pub unsafe fn GetOpacity(&self) -> f32 { unsafe { (windows_core::Interface::vtable(self).GetOpacity)(windows_core::Interface::as_raw(self)) } } - #[cfg(feature = "Foundation_Numerics")] - pub unsafe fn GetTransform(&self, transform: *mut super::super::super::Foundation::Numerics::Matrix3x2) { + pub unsafe fn GetTransform(&self, transform: *mut windows_numerics::Matrix3x2) { unsafe { (windows_core::Interface::vtable(self).GetTransform)(windows_core::Interface::as_raw(self), transform as _) } } } @@ -3331,26 +3312,18 @@ impl ID2D1Brush { pub struct ID2D1Brush_Vtbl { pub base__: ID2D1Resource_Vtbl, pub SetOpacity: unsafe extern "system" fn(*mut core::ffi::c_void, f32), - #[cfg(feature = "Foundation_Numerics")] - pub SetTransform: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::super::Foundation::Numerics::Matrix3x2), - #[cfg(not(feature = "Foundation_Numerics"))] - SetTransform: usize, + pub SetTransform: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_numerics::Matrix3x2), pub GetOpacity: unsafe extern "system" fn(*mut core::ffi::c_void) -> f32, - #[cfg(feature = "Foundation_Numerics")] - pub GetTransform: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::Numerics::Matrix3x2), - #[cfg(not(feature = "Foundation_Numerics"))] - GetTransform: usize, + pub GetTransform: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Matrix3x2), } unsafe impl Send for ID2D1Brush {} unsafe impl Sync for ID2D1Brush {} -#[cfg(feature = "Foundation_Numerics")] pub trait ID2D1Brush_Impl: ID2D1Resource_Impl { fn SetOpacity(&self, opacity: f32); - fn SetTransform(&self, transform: *const super::super::super::Foundation::Numerics::Matrix3x2); + fn SetTransform(&self, transform: *const windows_numerics::Matrix3x2); fn GetOpacity(&self) -> f32; - fn GetTransform(&self, transform: *mut super::super::super::Foundation::Numerics::Matrix3x2); + fn GetTransform(&self, transform: *mut windows_numerics::Matrix3x2); } -#[cfg(feature = "Foundation_Numerics")] impl ID2D1Brush_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn SetOpacity(this: *mut core::ffi::c_void, opacity: f32) { @@ -3359,7 +3332,7 @@ impl ID2D1Brush_Vtbl { ID2D1Brush_Impl::SetOpacity(this, core::mem::transmute_copy(&opacity)) } } - unsafe extern "system" fn SetTransform(this: *mut core::ffi::c_void, transform: *const super::super::super::Foundation::Numerics::Matrix3x2) { + unsafe extern "system" fn SetTransform(this: *mut core::ffi::c_void, transform: *const windows_numerics::Matrix3x2) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Brush_Impl::SetTransform(this, core::mem::transmute_copy(&transform)) @@ -3371,7 +3344,7 @@ impl ID2D1Brush_Vtbl { ID2D1Brush_Impl::GetOpacity(this) } } - unsafe extern "system" fn GetTransform(this: *mut core::ffi::c_void, transform: *mut super::super::super::Foundation::Numerics::Matrix3x2) { + unsafe extern "system" fn GetTransform(this: *mut core::ffi::c_void, transform: *mut windows_numerics::Matrix3x2) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Brush_Impl::GetTransform(this, core::mem::transmute_copy(&transform)) @@ -3389,7 +3362,6 @@ impl ID2D1Brush_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Foundation_Numerics")] impl windows_core::RuntimeName for ID2D1Brush {} windows_core::imp::define_interface!(ID2D1ColorContext, ID2D1ColorContext_Vtbl, 0x1c4820bb_5771_4518_a581_2fe4dd0ec657); impl core::ops::Deref for ID2D1ColorContext { @@ -3609,8 +3581,7 @@ impl ID2D1CommandSink { { unsafe { (windows_core::Interface::vtable(self).SetTextRenderingParams)(windows_core::Interface::as_raw(self), textrenderingparams.param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub unsafe fn SetTransform(&self, transform: *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { + pub unsafe fn SetTransform(&self, transform: *const windows_numerics::Matrix3x2) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetTransform)(windows_core::Interface::as_raw(self), transform).ok() } } pub unsafe fn SetPrimitiveBlend(&self, primitiveblend: D2D1_PRIMITIVE_BLEND) -> windows_core::Result<()> { @@ -3709,7 +3680,7 @@ impl ID2D1CommandSink { pub unsafe fn PushAxisAlignedClip(&self, cliprect: *const Common::D2D_RECT_F, antialiasmode: D2D1_ANTIALIAS_MODE) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).PushAxisAlignedClip)(windows_core::Interface::as_raw(self), cliprect, antialiasmode).ok() } } - #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] + #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn PushLayer(&self, layerparameters1: *const D2D1_LAYER_PARAMETERS1, layer: P1) -> windows_core::Result<()> where P1: windows_core::Param, @@ -3735,10 +3706,7 @@ pub struct ID2D1CommandSink_Vtbl { pub SetTextRenderingParams: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Graphics_DirectWrite"))] SetTextRenderingParams: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetTransform: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetTransform: usize, + pub SetTransform: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_numerics::Matrix3x2) -> windows_core::HRESULT, pub SetPrimitiveBlend: unsafe extern "system" fn(*mut core::ffi::c_void, D2D1_PRIMITIVE_BLEND) -> windows_core::HRESULT, pub SetUnitMode: unsafe extern "system" fn(*mut core::ffi::c_void, D2D1_UNIT_MODE) -> windows_core::HRESULT, #[cfg(feature = "Win32_Graphics_Direct2D_Common")] @@ -3784,16 +3752,16 @@ pub struct ID2D1CommandSink_Vtbl { pub PushAxisAlignedClip: unsafe extern "system" fn(*mut core::ffi::c_void, *const Common::D2D_RECT_F, D2D1_ANTIALIAS_MODE) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] PushAxisAlignedClip: usize, - #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] + #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub PushLayer: unsafe extern "system" fn(*mut core::ffi::c_void, *const D2D1_LAYER_PARAMETERS1, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common")))] + #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] PushLayer: usize, pub PopAxisAlignedClip: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub PopLayer: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } unsafe impl Send for ID2D1CommandSink {} unsafe impl Sync for ID2D1CommandSink {} -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] pub trait ID2D1CommandSink_Impl: windows_core::IUnknownImpl { fn BeginDraw(&self) -> windows_core::Result<()>; fn EndDraw(&self) -> windows_core::Result<()>; @@ -3801,7 +3769,7 @@ pub trait ID2D1CommandSink_Impl: windows_core::IUnknownImpl { fn SetTags(&self, tag1: u64, tag2: u64) -> windows_core::Result<()>; fn SetTextAntialiasMode(&self, textantialiasmode: D2D1_TEXT_ANTIALIAS_MODE) -> windows_core::Result<()>; fn SetTextRenderingParams(&self, textrenderingparams: windows_core::Ref<'_, super::DirectWrite::IDWriteRenderingParams>) -> windows_core::Result<()>; - fn SetTransform(&self, transform: *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()>; + fn SetTransform(&self, transform: *const windows_numerics::Matrix3x2) -> windows_core::Result<()>; fn SetPrimitiveBlend(&self, primitiveblend: D2D1_PRIMITIVE_BLEND) -> windows_core::Result<()>; fn SetUnitMode(&self, unitmode: D2D1_UNIT_MODE) -> windows_core::Result<()>; fn Clear(&self, color: *const Common::D2D1_COLOR_F) -> windows_core::Result<()>; @@ -3821,7 +3789,7 @@ pub trait ID2D1CommandSink_Impl: windows_core::IUnknownImpl { fn PopAxisAlignedClip(&self) -> windows_core::Result<()>; fn PopLayer(&self) -> windows_core::Result<()>; } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] impl ID2D1CommandSink_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn BeginDraw(this: *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -3860,7 +3828,7 @@ impl ID2D1CommandSink_Vtbl { ID2D1CommandSink_Impl::SetTextRenderingParams(this, core::mem::transmute_copy(&textrenderingparams)).into() } } - unsafe extern "system" fn SetTransform(this: *mut core::ffi::c_void, transform: *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::HRESULT { + unsafe extern "system" fn SetTransform(this: *mut core::ffi::c_void, transform: *const windows_numerics::Matrix3x2) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1CommandSink_Impl::SetTransform(this, core::mem::transmute_copy(&transform)).into() @@ -4007,7 +3975,7 @@ impl ID2D1CommandSink_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] impl windows_core::RuntimeName for ID2D1CommandSink {} windows_core::imp::define_interface!(ID2D1CommandSink1, ID2D1CommandSink1_Vtbl, 0x9eb767fd_4269_4467_b8c2_eb30cb305743); impl core::ops::Deref for ID2D1CommandSink1 { @@ -4029,11 +3997,11 @@ pub struct ID2D1CommandSink1_Vtbl { } unsafe impl Send for ID2D1CommandSink1 {} unsafe impl Sync for ID2D1CommandSink1 {} -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] pub trait ID2D1CommandSink1_Impl: ID2D1CommandSink_Impl { fn SetPrimitiveBlend1(&self, primitiveblend: D2D1_PRIMITIVE_BLEND) -> windows_core::Result<()>; } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] impl ID2D1CommandSink1_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn SetPrimitiveBlend1(this: *mut core::ffi::c_void, primitiveblend: D2D1_PRIMITIVE_BLEND) -> windows_core::HRESULT { @@ -4048,7 +4016,7 @@ impl ID2D1CommandSink1_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] impl windows_core::RuntimeName for ID2D1CommandSink1 {} windows_core::imp::define_interface!(ID2D1CommandSink2, ID2D1CommandSink2_Vtbl, 0x3bab440e_417e_47df_a2e2_bc0be6a00916); impl core::ops::Deref for ID2D1CommandSink2 { @@ -4093,13 +4061,13 @@ pub struct ID2D1CommandSink2_Vtbl { } unsafe impl Send for ID2D1CommandSink2 {} unsafe impl Sync for ID2D1CommandSink2 {} -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] pub trait ID2D1CommandSink2_Impl: ID2D1CommandSink1_Impl { fn DrawInk(&self, ink: windows_core::Ref<'_, ID2D1Ink>, brush: windows_core::Ref<'_, ID2D1Brush>, inkstyle: windows_core::Ref<'_, ID2D1InkStyle>) -> windows_core::Result<()>; fn DrawGradientMesh(&self, gradientmesh: windows_core::Ref<'_, ID2D1GradientMesh>) -> windows_core::Result<()>; fn DrawGdiMetafile(&self, gdimetafile: windows_core::Ref<'_, ID2D1GdiMetafile>, destinationrectangle: *const Common::D2D_RECT_F, sourcerectangle: *const Common::D2D_RECT_F) -> windows_core::Result<()>; } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] impl ID2D1CommandSink2_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn DrawInk(this: *mut core::ffi::c_void, ink: *mut core::ffi::c_void, brush: *mut core::ffi::c_void, inkstyle: *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -4131,7 +4099,7 @@ impl ID2D1CommandSink2_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] impl windows_core::RuntimeName for ID2D1CommandSink2 {} windows_core::imp::define_interface!(ID2D1CommandSink3, ID2D1CommandSink3_Vtbl, 0x18079135_4cf3_4868_bc8e_06067e6d242d); impl core::ops::Deref for ID2D1CommandSink3 { @@ -4157,11 +4125,11 @@ pub struct ID2D1CommandSink3_Vtbl { } unsafe impl Send for ID2D1CommandSink3 {} unsafe impl Sync for ID2D1CommandSink3 {} -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] pub trait ID2D1CommandSink3_Impl: ID2D1CommandSink2_Impl { fn DrawSpriteBatch(&self, spritebatch: windows_core::Ref<'_, ID2D1SpriteBatch>, startindex: u32, spritecount: u32, bitmap: windows_core::Ref<'_, ID2D1Bitmap>, interpolationmode: D2D1_BITMAP_INTERPOLATION_MODE, spriteoptions: D2D1_SPRITE_OPTIONS) -> windows_core::Result<()>; } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] impl ID2D1CommandSink3_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn DrawSpriteBatch(this: *mut core::ffi::c_void, spritebatch: *mut core::ffi::c_void, startindex: u32, spritecount: u32, bitmap: *mut core::ffi::c_void, interpolationmode: D2D1_BITMAP_INTERPOLATION_MODE, spriteoptions: D2D1_SPRITE_OPTIONS) -> windows_core::HRESULT { @@ -4176,7 +4144,7 @@ impl ID2D1CommandSink3_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] impl windows_core::RuntimeName for ID2D1CommandSink3 {} windows_core::imp::define_interface!(ID2D1CommandSink4, ID2D1CommandSink4_Vtbl, 0xc78a6519_40d6_4218_b2de_beeeb744bb3e); impl core::ops::Deref for ID2D1CommandSink4 { @@ -4198,11 +4166,11 @@ pub struct ID2D1CommandSink4_Vtbl { } unsafe impl Send for ID2D1CommandSink4 {} unsafe impl Sync for ID2D1CommandSink4 {} -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] pub trait ID2D1CommandSink4_Impl: ID2D1CommandSink3_Impl { fn SetPrimitiveBlend2(&self, primitiveblend: D2D1_PRIMITIVE_BLEND) -> windows_core::Result<()>; } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] impl ID2D1CommandSink4_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn SetPrimitiveBlend2(this: *mut core::ffi::c_void, primitiveblend: D2D1_PRIMITIVE_BLEND) -> windows_core::HRESULT { @@ -4217,7 +4185,7 @@ impl ID2D1CommandSink4_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] impl windows_core::RuntimeName for ID2D1CommandSink4 {} windows_core::imp::define_interface!(ID2D1CommandSink5, ID2D1CommandSink5_Vtbl, 0x7047dd26_b1e7_44a7_959a_8349e2144fa8); impl core::ops::Deref for ID2D1CommandSink5 { @@ -4246,11 +4214,11 @@ pub struct ID2D1CommandSink5_Vtbl { } unsafe impl Send for ID2D1CommandSink5 {} unsafe impl Sync for ID2D1CommandSink5 {} -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] pub trait ID2D1CommandSink5_Impl: ID2D1CommandSink4_Impl { fn BlendImage(&self, image: windows_core::Ref<'_, ID2D1Image>, blendmode: Common::D2D1_BLEND_MODE, targetoffset: *const Common::D2D_POINT_2F, imagerectangle: *const Common::D2D_RECT_F, interpolationmode: D2D1_INTERPOLATION_MODE) -> windows_core::Result<()>; } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] impl ID2D1CommandSink5_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn BlendImage(this: *mut core::ffi::c_void, image: *mut core::ffi::c_void, blendmode: Common::D2D1_BLEND_MODE, targetoffset: *const Common::D2D_POINT_2F, imagerectangle: *const Common::D2D_RECT_F, interpolationmode: D2D1_INTERPOLATION_MODE) -> windows_core::HRESULT { @@ -4265,7 +4233,7 @@ impl ID2D1CommandSink5_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] impl windows_core::RuntimeName for ID2D1CommandSink5 {} windows_core::imp::define_interface!(ID2D1ComputeInfo, ID2D1ComputeInfo_Vtbl, 0x5598b14b_9fd7_48b7_9bdb_8f0964eb38bc); impl core::ops::Deref for ID2D1ComputeInfo { @@ -4468,11 +4436,11 @@ pub struct ID2D1DCRenderTarget_Vtbl { } unsafe impl Send for ID2D1DCRenderTarget {} unsafe impl Sync for ID2D1DCRenderTarget {} -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Gdi", feature = "Win32_Graphics_Imaging"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Gdi", feature = "Win32_Graphics_Imaging"))] pub trait ID2D1DCRenderTarget_Impl: ID2D1RenderTarget_Impl { fn BindDC(&self, hdc: super::Gdi::HDC, psubrect: *const super::super::Foundation::RECT) -> windows_core::Result<()>; } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Gdi", feature = "Win32_Graphics_Imaging"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Gdi", feature = "Win32_Graphics_Imaging"))] impl ID2D1DCRenderTarget_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn BindDC(this: *mut core::ffi::c_void, hdc: super::Gdi::HDC, psubrect: *const super::super::Foundation::RECT) -> windows_core::HRESULT { @@ -4487,7 +4455,7 @@ impl ID2D1DCRenderTarget_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Gdi", feature = "Win32_Graphics_Imaging"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Gdi", feature = "Win32_Graphics_Imaging"))] impl windows_core::RuntimeName for ID2D1DCRenderTarget {} windows_core::imp::define_interface!(ID2D1Device, ID2D1Device_Vtbl, 0x47dd575d_ac05_4cdd_8049_9b02cd16f44c); impl core::ops::Deref for ID2D1Device { @@ -5128,7 +5096,7 @@ impl ID2D1DeviceContext { (windows_core::Interface::vtable(self).CreateGradientStopCollection)(windows_core::Interface::as_raw(self), core::mem::transmute(straightalphagradientstops.as_ptr()), straightalphagradientstops.len().try_into().unwrap(), preinterpolationspace, postinterpolationspace, bufferprecision, extendmode, colorinterpolationmode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] + #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn CreateImageBrush(&self, image: P0, imagebrushproperties: *const D2D1_IMAGE_BRUSH_PROPERTIES, brushproperties: Option<*const D2D1_BRUSH_PROPERTIES>) -> windows_core::Result where P0: windows_core::Param, @@ -5138,7 +5106,6 @@ impl ID2D1DeviceContext { (windows_core::Interface::vtable(self).CreateImageBrush)(windows_core::Interface::as_raw(self), image.param().abi(), imagebrushproperties, brushproperties.unwrap_or(core::mem::zeroed()) as _, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Numerics")] pub unsafe fn CreateBitmapBrush(&self, bitmap: P0, bitmapbrushproperties: Option<*const D2D1_BITMAP_BRUSH_PROPERTIES1>, brushproperties: Option<*const D2D1_BRUSH_PROPERTIES>) -> windows_core::Result where P0: windows_core::Param, @@ -5260,7 +5227,7 @@ impl ID2D1DeviceContext { { unsafe { (windows_core::Interface::vtable(self).DrawBitmap)(windows_core::Interface::as_raw(self), bitmap.param().abi(), destinationrectangle.unwrap_or(core::mem::zeroed()) as _, opacity, interpolationmode, sourcerectangle.unwrap_or(core::mem::zeroed()) as _, perspectivetransform.unwrap_or(core::mem::zeroed()) as _) } } - #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] + #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn PushLayer(&self, layerparameters: *const D2D1_LAYER_PARAMETERS1, layer: P1) where P1: windows_core::Param, @@ -5332,14 +5299,11 @@ pub struct ID2D1DeviceContext_Vtbl { pub CreateGradientStopCollection: unsafe extern "system" fn(*mut core::ffi::c_void, *const Common::D2D1_GRADIENT_STOP, u32, D2D1_COLOR_SPACE, D2D1_COLOR_SPACE, D2D1_BUFFER_PRECISION, D2D1_EXTEND_MODE, D2D1_COLOR_INTERPOLATION_MODE, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] CreateGradientStopCollection: usize, - #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] + #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub CreateImageBrush: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *const D2D1_IMAGE_BRUSH_PROPERTIES, *const D2D1_BRUSH_PROPERTIES, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common")))] + #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] CreateImageBrush: usize, - #[cfg(feature = "Foundation_Numerics")] pub CreateBitmapBrush: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *const D2D1_BITMAP_BRUSH_PROPERTIES1, *const D2D1_BRUSH_PROPERTIES, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - CreateBitmapBrush: usize, pub CreateCommandList: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub IsDxgiFormatSupported: unsafe extern "system" fn(*mut core::ffi::c_void, super::Dxgi::Common::DXGI_FORMAT) -> windows_core::BOOL, @@ -5389,9 +5353,9 @@ pub struct ID2D1DeviceContext_Vtbl { pub DrawBitmap: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *const Common::D2D_RECT_F, f32, D2D1_INTERPOLATION_MODE, *const Common::D2D_RECT_F, *const Common::D2D_MATRIX_4X4_F), #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] DrawBitmap: usize, - #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] + #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub PushLayer: unsafe extern "system" fn(*mut core::ffi::c_void, *const D2D1_LAYER_PARAMETERS1, *mut core::ffi::c_void), - #[cfg(not(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common")))] + #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] PushLayer: usize, #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub InvalidateEffectInputRectangle: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *const Common::D2D_RECT_F) -> windows_core::HRESULT, @@ -5413,7 +5377,7 @@ pub struct ID2D1DeviceContext_Vtbl { } unsafe impl Send for ID2D1DeviceContext {} unsafe impl Sync for ID2D1DeviceContext {} -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] pub trait ID2D1DeviceContext_Impl: ID2D1RenderTarget_Impl { fn CreateBitmap(&self, size: &Common::D2D_SIZE_U, sourcedata: *const core::ffi::c_void, pitch: u32, bitmapproperties: *const D2D1_BITMAP_PROPERTIES1) -> windows_core::Result; fn CreateBitmapFromWicBitmap(&self, wicbitmapsource: windows_core::Ref<'_, super::Imaging::IWICBitmapSource>, bitmapproperties: *const D2D1_BITMAP_PROPERTIES1) -> windows_core::Result; @@ -5451,7 +5415,7 @@ pub trait ID2D1DeviceContext_Impl: ID2D1RenderTarget_Impl { fn GetEffectRequiredInputRectangles(&self, rendereffect: windows_core::Ref<'_, ID2D1Effect>, renderimagerectangle: *const Common::D2D_RECT_F, inputdescriptions: *const D2D1_EFFECT_INPUT_DESCRIPTION, requiredinputrects: *mut Common::D2D_RECT_F, inputcount: u32) -> windows_core::Result<()>; fn FillOpacityMask(&self, opacitymask: windows_core::Ref<'_, ID2D1Bitmap>, brush: windows_core::Ref<'_, ID2D1Brush>, destinationrectangle: *const Common::D2D_RECT_F, sourcerectangle: *const Common::D2D_RECT_F); } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] impl ID2D1DeviceContext_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn CreateBitmap(this: *mut core::ffi::c_void, size: Common::D2D_SIZE_U, sourcedata: *const core::ffi::c_void, pitch: u32, bitmapproperties: *const D2D1_BITMAP_PROPERTIES1, bitmap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -5797,7 +5761,7 @@ impl ID2D1DeviceContext_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] impl windows_core::RuntimeName for ID2D1DeviceContext {} windows_core::imp::define_interface!(ID2D1DeviceContext1, ID2D1DeviceContext1_Vtbl, 0xd37f57e4_6908_459f_a199_e72f24f79987); impl core::ops::Deref for ID2D1DeviceContext1 { @@ -5844,13 +5808,13 @@ pub struct ID2D1DeviceContext1_Vtbl { } unsafe impl Send for ID2D1DeviceContext1 {} unsafe impl Sync for ID2D1DeviceContext1 {} -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] pub trait ID2D1DeviceContext1_Impl: ID2D1DeviceContext_Impl { fn CreateFilledGeometryRealization(&self, geometry: windows_core::Ref<'_, ID2D1Geometry>, flatteningtolerance: f32) -> windows_core::Result; fn CreateStrokedGeometryRealization(&self, geometry: windows_core::Ref<'_, ID2D1Geometry>, flatteningtolerance: f32, strokewidth: f32, strokestyle: windows_core::Ref<'_, ID2D1StrokeStyle>) -> windows_core::Result; fn DrawGeometryRealization(&self, geometryrealization: windows_core::Ref<'_, ID2D1GeometryRealization>, brush: windows_core::Ref<'_, ID2D1Brush>); } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] impl ID2D1DeviceContext1_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn CreateFilledGeometryRealization(this: *mut core::ffi::c_void, geometry: *mut core::ffi::c_void, flatteningtolerance: f32, geometryrealization: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -5894,7 +5858,7 @@ impl ID2D1DeviceContext1_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] impl windows_core::RuntimeName for ID2D1DeviceContext1 {} windows_core::imp::define_interface!(ID2D1DeviceContext2, ID2D1DeviceContext2_Vtbl, 0x394ea6a3_0c34_4321_950b_6ca20f0be6c7); impl core::ops::Deref for ID2D1DeviceContext2 { @@ -5911,7 +5875,6 @@ impl ID2D1DeviceContext2 { (windows_core::Interface::vtable(self).CreateInk)(windows_core::Interface::as_raw(self), startpoint, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Numerics")] pub unsafe fn CreateInkStyle(&self, inkstyleproperties: Option<*const D2D1_INK_STYLE_PROPERTIES>) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); @@ -5993,10 +5956,7 @@ impl ID2D1DeviceContext2 { pub struct ID2D1DeviceContext2_Vtbl { pub base__: ID2D1DeviceContext1_Vtbl, pub CreateInk: unsafe extern "system" fn(*mut core::ffi::c_void, *const D2D1_INK_POINT, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] pub CreateInkStyle: unsafe extern "system" fn(*mut core::ffi::c_void, *const D2D1_INK_STYLE_PROPERTIES, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - CreateInkStyle: usize, #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub CreateGradientMesh: unsafe extern "system" fn(*mut core::ffi::c_void, *const D2D1_GRADIENT_MESH_PATCH, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] @@ -6024,7 +5984,7 @@ pub struct ID2D1DeviceContext2_Vtbl { } unsafe impl Send for ID2D1DeviceContext2 {} unsafe impl Sync for ID2D1DeviceContext2 {} -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] pub trait ID2D1DeviceContext2_Impl: ID2D1DeviceContext1_Impl { fn CreateInk(&self, startpoint: *const D2D1_INK_POINT) -> windows_core::Result; fn CreateInkStyle(&self, inkstyleproperties: *const D2D1_INK_STYLE_PROPERTIES) -> windows_core::Result; @@ -6038,7 +5998,7 @@ pub trait ID2D1DeviceContext2_Impl: ID2D1DeviceContext1_Impl { fn DrawGdiMetafile(&self, gdimetafile: windows_core::Ref<'_, ID2D1GdiMetafile>, destinationrectangle: *const Common::D2D_RECT_F, sourcerectangle: *const Common::D2D_RECT_F); fn CreateTransformedImageSource(&self, imagesource: windows_core::Ref<'_, ID2D1ImageSource>, properties: *const D2D1_TRANSFORMED_IMAGE_SOURCE_PROPERTIES) -> windows_core::Result; } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] impl ID2D1DeviceContext2_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn CreateInk(this: *mut core::ffi::c_void, startpoint: *const D2D1_INK_POINT, ink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -6174,7 +6134,7 @@ impl ID2D1DeviceContext2_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] impl windows_core::RuntimeName for ID2D1DeviceContext2 {} windows_core::imp::define_interface!(ID2D1DeviceContext3, ID2D1DeviceContext3_Vtbl, 0x235a7496_8351_414c_bcd4_6672ab2d8e00); impl core::ops::Deref for ID2D1DeviceContext3 { @@ -6207,12 +6167,12 @@ pub struct ID2D1DeviceContext3_Vtbl { } unsafe impl Send for ID2D1DeviceContext3 {} unsafe impl Sync for ID2D1DeviceContext3 {} -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] pub trait ID2D1DeviceContext3_Impl: ID2D1DeviceContext2_Impl { fn CreateSpriteBatch(&self) -> windows_core::Result; fn DrawSpriteBatch(&self, spritebatch: windows_core::Ref<'_, ID2D1SpriteBatch>, startindex: u32, spritecount: u32, bitmap: windows_core::Ref<'_, ID2D1Bitmap>, interpolationmode: D2D1_BITMAP_INTERPOLATION_MODE, spriteoptions: D2D1_SPRITE_OPTIONS); } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] impl ID2D1DeviceContext3_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn CreateSpriteBatch(this: *mut core::ffi::c_void, spritebatch: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -6243,7 +6203,7 @@ impl ID2D1DeviceContext3_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] impl windows_core::RuntimeName for ID2D1DeviceContext3 {} windows_core::imp::define_interface!(ID2D1DeviceContext4, ID2D1DeviceContext4_Vtbl, 0x8c427831_3d90_4476_b647_c4fae349e4db); impl core::ops::Deref for ID2D1DeviceContext4 { @@ -6290,15 +6250,15 @@ impl ID2D1DeviceContext4 { { unsafe { (windows_core::Interface::vtable(self).DrawSvgGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), core::mem::transmute(glyphrun), defaultfillbrush.param().abi(), svgglyphstyle.param().abi(), colorpaletteindex, measuringmode) } } - #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] - pub unsafe fn GetColorBitmapGlyphImage(&self, glyphimageformat: super::DirectWrite::DWRITE_GLYPH_IMAGE_FORMATS, glyphorigin: Common::D2D_POINT_2F, fontface: P2, fontemsize: f32, glyphindex: u16, issideways: bool, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, dpix: f32, dpiy: f32, glyphtransform: *mut super::super::super::Foundation::Numerics::Matrix3x2, glyphimage: *mut Option) -> windows_core::Result<()> + #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] + pub unsafe fn GetColorBitmapGlyphImage(&self, glyphimageformat: super::DirectWrite::DWRITE_GLYPH_IMAGE_FORMATS, glyphorigin: Common::D2D_POINT_2F, fontface: P2, fontemsize: f32, glyphindex: u16, issideways: bool, worldtransform: Option<*const windows_numerics::Matrix3x2>, dpix: f32, dpiy: f32, glyphtransform: *mut windows_numerics::Matrix3x2, glyphimage: *mut Option) -> windows_core::Result<()> where P2: windows_core::Param, { unsafe { (windows_core::Interface::vtable(self).GetColorBitmapGlyphImage)(windows_core::Interface::as_raw(self), glyphimageformat, core::mem::transmute(glyphorigin), fontface.param().abi(), fontemsize, glyphindex, issideways.into(), worldtransform.unwrap_or(core::mem::zeroed()) as _, dpix, dpiy, glyphtransform as _, core::mem::transmute(glyphimage)).ok() } } - #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] - pub unsafe fn GetSvgGlyphImage(&self, glyphorigin: Common::D2D_POINT_2F, fontface: P1, fontemsize: f32, glyphindex: u16, issideways: bool, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, defaultfillbrush: P6, svgglyphstyle: P7, colorpaletteindex: u32, glyphtransform: *mut super::super::super::Foundation::Numerics::Matrix3x2, glyphimage: *mut Option) -> windows_core::Result<()> + #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] + pub unsafe fn GetSvgGlyphImage(&self, glyphorigin: Common::D2D_POINT_2F, fontface: P1, fontemsize: f32, glyphindex: u16, issideways: bool, worldtransform: Option<*const windows_numerics::Matrix3x2>, defaultfillbrush: P6, svgglyphstyle: P7, colorpaletteindex: u32, glyphtransform: *mut windows_numerics::Matrix3x2, glyphimage: *mut Option) -> windows_core::Result<()> where P1: windows_core::Param, P6: windows_core::Param, @@ -6327,28 +6287,28 @@ pub struct ID2D1DeviceContext4_Vtbl { pub DrawSvgGlyphRun: unsafe extern "system" fn(*mut core::ffi::c_void, Common::D2D_POINT_2F, *const super::DirectWrite::DWRITE_GLYPH_RUN, *mut core::ffi::c_void, *mut core::ffi::c_void, u32, super::DirectWrite::DWRITE_MEASURING_MODE), #[cfg(not(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite")))] DrawSvgGlyphRun: usize, - #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] - pub GetColorBitmapGlyphImage: unsafe extern "system" fn(*mut core::ffi::c_void, super::DirectWrite::DWRITE_GLYPH_IMAGE_FORMATS, Common::D2D_POINT_2F, *mut core::ffi::c_void, f32, u16, windows_core::BOOL, *const super::super::super::Foundation::Numerics::Matrix3x2, f32, f32, *mut super::super::super::Foundation::Numerics::Matrix3x2, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite")))] + #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] + pub GetColorBitmapGlyphImage: unsafe extern "system" fn(*mut core::ffi::c_void, super::DirectWrite::DWRITE_GLYPH_IMAGE_FORMATS, Common::D2D_POINT_2F, *mut core::ffi::c_void, f32, u16, windows_core::BOOL, *const windows_numerics::Matrix3x2, f32, f32, *mut windows_numerics::Matrix3x2, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + #[cfg(not(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite")))] GetColorBitmapGlyphImage: usize, - #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] - pub GetSvgGlyphImage: unsafe extern "system" fn(*mut core::ffi::c_void, Common::D2D_POINT_2F, *mut core::ffi::c_void, f32, u16, windows_core::BOOL, *const super::super::super::Foundation::Numerics::Matrix3x2, *mut core::ffi::c_void, *mut core::ffi::c_void, u32, *mut super::super::super::Foundation::Numerics::Matrix3x2, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite")))] + #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] + pub GetSvgGlyphImage: unsafe extern "system" fn(*mut core::ffi::c_void, Common::D2D_POINT_2F, *mut core::ffi::c_void, f32, u16, windows_core::BOOL, *const windows_numerics::Matrix3x2, *mut core::ffi::c_void, *mut core::ffi::c_void, u32, *mut windows_numerics::Matrix3x2, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + #[cfg(not(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite")))] GetSvgGlyphImage: usize, } unsafe impl Send for ID2D1DeviceContext4 {} unsafe impl Sync for ID2D1DeviceContext4 {} -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] pub trait ID2D1DeviceContext4_Impl: ID2D1DeviceContext3_Impl { fn CreateSvgGlyphStyle(&self) -> windows_core::Result; fn DrawText(&self, string: &windows_core::PCWSTR, stringlength: u32, textformat: windows_core::Ref<'_, super::DirectWrite::IDWriteTextFormat>, layoutrect: *const Common::D2D_RECT_F, defaultfillbrush: windows_core::Ref<'_, ID2D1Brush>, svgglyphstyle: windows_core::Ref<'_, ID2D1SvgGlyphStyle>, colorpaletteindex: u32, options: D2D1_DRAW_TEXT_OPTIONS, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE); fn DrawTextLayout(&self, origin: &Common::D2D_POINT_2F, textlayout: windows_core::Ref<'_, super::DirectWrite::IDWriteTextLayout>, defaultfillbrush: windows_core::Ref<'_, ID2D1Brush>, svgglyphstyle: windows_core::Ref<'_, ID2D1SvgGlyphStyle>, colorpaletteindex: u32, options: D2D1_DRAW_TEXT_OPTIONS); fn DrawColorBitmapGlyphRun(&self, glyphimageformat: super::DirectWrite::DWRITE_GLYPH_IMAGE_FORMATS, baselineorigin: &Common::D2D_POINT_2F, glyphrun: *const super::DirectWrite::DWRITE_GLYPH_RUN, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE, bitmapsnapoption: D2D1_COLOR_BITMAP_GLYPH_SNAP_OPTION); fn DrawSvgGlyphRun(&self, baselineorigin: &Common::D2D_POINT_2F, glyphrun: *const super::DirectWrite::DWRITE_GLYPH_RUN, defaultfillbrush: windows_core::Ref<'_, ID2D1Brush>, svgglyphstyle: windows_core::Ref<'_, ID2D1SvgGlyphStyle>, colorpaletteindex: u32, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE); - fn GetColorBitmapGlyphImage(&self, glyphimageformat: super::DirectWrite::DWRITE_GLYPH_IMAGE_FORMATS, glyphorigin: &Common::D2D_POINT_2F, fontface: windows_core::Ref<'_, super::DirectWrite::IDWriteFontFace>, fontemsize: f32, glyphindex: u16, issideways: windows_core::BOOL, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, dpix: f32, dpiy: f32, glyphtransform: *mut super::super::super::Foundation::Numerics::Matrix3x2, glyphimage: windows_core::OutRef<'_, ID2D1Image>) -> windows_core::Result<()>; - fn GetSvgGlyphImage(&self, glyphorigin: &Common::D2D_POINT_2F, fontface: windows_core::Ref<'_, super::DirectWrite::IDWriteFontFace>, fontemsize: f32, glyphindex: u16, issideways: windows_core::BOOL, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, defaultfillbrush: windows_core::Ref<'_, ID2D1Brush>, svgglyphstyle: windows_core::Ref<'_, ID2D1SvgGlyphStyle>, colorpaletteindex: u32, glyphtransform: *mut super::super::super::Foundation::Numerics::Matrix3x2, glyphimage: windows_core::OutRef<'_, ID2D1CommandList>) -> windows_core::Result<()>; + fn GetColorBitmapGlyphImage(&self, glyphimageformat: super::DirectWrite::DWRITE_GLYPH_IMAGE_FORMATS, glyphorigin: &Common::D2D_POINT_2F, fontface: windows_core::Ref<'_, super::DirectWrite::IDWriteFontFace>, fontemsize: f32, glyphindex: u16, issideways: windows_core::BOOL, worldtransform: *const windows_numerics::Matrix3x2, dpix: f32, dpiy: f32, glyphtransform: *mut windows_numerics::Matrix3x2, glyphimage: windows_core::OutRef<'_, ID2D1Image>) -> windows_core::Result<()>; + fn GetSvgGlyphImage(&self, glyphorigin: &Common::D2D_POINT_2F, fontface: windows_core::Ref<'_, super::DirectWrite::IDWriteFontFace>, fontemsize: f32, glyphindex: u16, issideways: windows_core::BOOL, worldtransform: *const windows_numerics::Matrix3x2, defaultfillbrush: windows_core::Ref<'_, ID2D1Brush>, svgglyphstyle: windows_core::Ref<'_, ID2D1SvgGlyphStyle>, colorpaletteindex: u32, glyphtransform: *mut windows_numerics::Matrix3x2, glyphimage: windows_core::OutRef<'_, ID2D1CommandList>) -> windows_core::Result<()>; } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] impl ID2D1DeviceContext4_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn CreateSvgGlyphStyle(this: *mut core::ffi::c_void, svgglyphstyle: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -6387,13 +6347,13 @@ impl ID2D1DeviceContext4_Vtbl { ID2D1DeviceContext4_Impl::DrawSvgGlyphRun(this, core::mem::transmute(&baselineorigin), core::mem::transmute_copy(&glyphrun), core::mem::transmute_copy(&defaultfillbrush), core::mem::transmute_copy(&svgglyphstyle), core::mem::transmute_copy(&colorpaletteindex), core::mem::transmute_copy(&measuringmode)) } } - unsafe extern "system" fn GetColorBitmapGlyphImage(this: *mut core::ffi::c_void, glyphimageformat: super::DirectWrite::DWRITE_GLYPH_IMAGE_FORMATS, glyphorigin: Common::D2D_POINT_2F, fontface: *mut core::ffi::c_void, fontemsize: f32, glyphindex: u16, issideways: windows_core::BOOL, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, dpix: f32, dpiy: f32, glyphtransform: *mut super::super::super::Foundation::Numerics::Matrix3x2, glyphimage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn GetColorBitmapGlyphImage(this: *mut core::ffi::c_void, glyphimageformat: super::DirectWrite::DWRITE_GLYPH_IMAGE_FORMATS, glyphorigin: Common::D2D_POINT_2F, fontface: *mut core::ffi::c_void, fontemsize: f32, glyphindex: u16, issideways: windows_core::BOOL, worldtransform: *const windows_numerics::Matrix3x2, dpix: f32, dpiy: f32, glyphtransform: *mut windows_numerics::Matrix3x2, glyphimage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DeviceContext4_Impl::GetColorBitmapGlyphImage(this, core::mem::transmute_copy(&glyphimageformat), core::mem::transmute(&glyphorigin), core::mem::transmute_copy(&fontface), core::mem::transmute_copy(&fontemsize), core::mem::transmute_copy(&glyphindex), core::mem::transmute_copy(&issideways), core::mem::transmute_copy(&worldtransform), core::mem::transmute_copy(&dpix), core::mem::transmute_copy(&dpiy), core::mem::transmute_copy(&glyphtransform), core::mem::transmute_copy(&glyphimage)).into() } } - unsafe extern "system" fn GetSvgGlyphImage(this: *mut core::ffi::c_void, glyphorigin: Common::D2D_POINT_2F, fontface: *mut core::ffi::c_void, fontemsize: f32, glyphindex: u16, issideways: windows_core::BOOL, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, defaultfillbrush: *mut core::ffi::c_void, svgglyphstyle: *mut core::ffi::c_void, colorpaletteindex: u32, glyphtransform: *mut super::super::super::Foundation::Numerics::Matrix3x2, glyphimage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn GetSvgGlyphImage(this: *mut core::ffi::c_void, glyphorigin: Common::D2D_POINT_2F, fontface: *mut core::ffi::c_void, fontemsize: f32, glyphindex: u16, issideways: windows_core::BOOL, worldtransform: *const windows_numerics::Matrix3x2, defaultfillbrush: *mut core::ffi::c_void, svgglyphstyle: *mut core::ffi::c_void, colorpaletteindex: u32, glyphtransform: *mut windows_numerics::Matrix3x2, glyphimage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DeviceContext4_Impl::GetSvgGlyphImage(this, core::mem::transmute(&glyphorigin), core::mem::transmute_copy(&fontface), core::mem::transmute_copy(&fontemsize), core::mem::transmute_copy(&glyphindex), core::mem::transmute_copy(&issideways), core::mem::transmute_copy(&worldtransform), core::mem::transmute_copy(&defaultfillbrush), core::mem::transmute_copy(&svgglyphstyle), core::mem::transmute_copy(&colorpaletteindex), core::mem::transmute_copy(&glyphtransform), core::mem::transmute_copy(&glyphimage)).into() @@ -6414,7 +6374,7 @@ impl ID2D1DeviceContext4_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] impl windows_core::RuntimeName for ID2D1DeviceContext4 {} windows_core::imp::define_interface!(ID2D1DeviceContext5, ID2D1DeviceContext5_Vtbl, 0x7836d248_68cc_4df6_b9e8_de991bf62eb7); impl core::ops::Deref for ID2D1DeviceContext5 { @@ -6475,14 +6435,14 @@ pub struct ID2D1DeviceContext5_Vtbl { } unsafe impl Send for ID2D1DeviceContext5 {} unsafe impl Sync for ID2D1DeviceContext5 {} -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] pub trait ID2D1DeviceContext5_Impl: ID2D1DeviceContext4_Impl { fn CreateSvgDocument(&self, inputxmlstream: windows_core::Ref<'_, super::super::System::Com::IStream>, viewportsize: &Common::D2D_SIZE_F) -> windows_core::Result; fn DrawSvgDocument(&self, svgdocument: windows_core::Ref<'_, ID2D1SvgDocument>); fn CreateColorContextFromDxgiColorSpace(&self, colorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE) -> windows_core::Result; fn CreateColorContextFromSimpleColorProfile(&self, simpleprofile: *const D2D1_SIMPLE_COLOR_PROFILE) -> windows_core::Result; } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] impl ID2D1DeviceContext5_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn CreateSvgDocument(this: *mut core::ffi::c_void, inputxmlstream: *mut core::ffi::c_void, viewportsize: Common::D2D_SIZE_F, svgdocument: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -6539,7 +6499,7 @@ impl ID2D1DeviceContext5_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] impl windows_core::RuntimeName for ID2D1DeviceContext5 {} windows_core::imp::define_interface!(ID2D1DeviceContext6, ID2D1DeviceContext6_Vtbl, 0x985f7e37_4ed0_4a19_98a3_15b0edfde306); impl core::ops::Deref for ID2D1DeviceContext6 { @@ -6568,11 +6528,11 @@ pub struct ID2D1DeviceContext6_Vtbl { } unsafe impl Send for ID2D1DeviceContext6 {} unsafe impl Sync for ID2D1DeviceContext6 {} -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] pub trait ID2D1DeviceContext6_Impl: ID2D1DeviceContext5_Impl { fn BlendImage(&self, image: windows_core::Ref<'_, ID2D1Image>, blendmode: Common::D2D1_BLEND_MODE, targetoffset: *const Common::D2D_POINT_2F, imagerectangle: *const Common::D2D_RECT_F, interpolationmode: D2D1_INTERPOLATION_MODE); } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] impl ID2D1DeviceContext6_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn BlendImage(this: *mut core::ffi::c_void, image: *mut core::ffi::c_void, blendmode: Common::D2D1_BLEND_MODE, targetoffset: *const Common::D2D_POINT_2F, imagerectangle: *const Common::D2D_RECT_F, interpolationmode: D2D1_INTERPOLATION_MODE) { @@ -6587,7 +6547,7 @@ impl ID2D1DeviceContext6_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] impl windows_core::RuntimeName for ID2D1DeviceContext6 {} windows_core::imp::define_interface!(ID2D1DeviceContext7, ID2D1DeviceContext7_Vtbl, 0xec891cf7_9b69_4851_9def_4e0915771e62); impl core::ops::Deref for ID2D1DeviceContext7 { @@ -6636,13 +6596,13 @@ pub struct ID2D1DeviceContext7_Vtbl { } unsafe impl Send for ID2D1DeviceContext7 {} unsafe impl Sync for ID2D1DeviceContext7 {} -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] pub trait ID2D1DeviceContext7_Impl: ID2D1DeviceContext6_Impl { fn GetPaintFeatureLevel(&self) -> super::DirectWrite::DWRITE_PAINT_FEATURE_LEVEL; fn DrawPaintGlyphRun(&self, baselineorigin: &Common::D2D_POINT_2F, glyphrun: *const super::DirectWrite::DWRITE_GLYPH_RUN, defaultfillbrush: windows_core::Ref<'_, ID2D1Brush>, colorpaletteindex: u32, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE); fn DrawGlyphRunWithColorSupport(&self, baselineorigin: &Common::D2D_POINT_2F, glyphrun: *const super::DirectWrite::DWRITE_GLYPH_RUN, glyphrundescription: *const super::DirectWrite::DWRITE_GLYPH_RUN_DESCRIPTION, foregroundbrush: windows_core::Ref<'_, ID2D1Brush>, svgglyphstyle: windows_core::Ref<'_, ID2D1SvgGlyphStyle>, colorpaletteindex: u32, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE, bitmapsnapoption: D2D1_COLOR_BITMAP_GLYPH_SNAP_OPTION); } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] impl ID2D1DeviceContext7_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn GetPaintFeatureLevel(this: *mut core::ffi::c_void) -> super::DirectWrite::DWRITE_PAINT_FEATURE_LEVEL { @@ -6674,7 +6634,7 @@ impl ID2D1DeviceContext7_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] impl windows_core::RuntimeName for ID2D1DeviceContext7 {} windows_core::imp::define_interface!(ID2D1DrawInfo, ID2D1DrawInfo_Vtbl, 0x693ce632_7f2f_45de_93fe_18d88b37aa21); impl core::ops::Deref for ID2D1DrawInfo { @@ -6821,11 +6781,9 @@ impl core::ops::Deref for ID2D1DrawingStateBlock { } windows_core::imp::interface_hierarchy!(ID2D1DrawingStateBlock, windows_core::IUnknown, ID2D1Resource); impl ID2D1DrawingStateBlock { - #[cfg(feature = "Foundation_Numerics")] pub unsafe fn GetDescription(&self, statedescription: *mut D2D1_DRAWING_STATE_DESCRIPTION) { unsafe { (windows_core::Interface::vtable(self).GetDescription)(windows_core::Interface::as_raw(self), statedescription as _) } } - #[cfg(feature = "Foundation_Numerics")] pub unsafe fn SetDescription(&self, statedescription: *const D2D1_DRAWING_STATE_DESCRIPTION) { unsafe { (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), statedescription) } } @@ -6848,14 +6806,8 @@ impl ID2D1DrawingStateBlock { #[repr(C)] pub struct ID2D1DrawingStateBlock_Vtbl { pub base__: ID2D1Resource_Vtbl, - #[cfg(feature = "Foundation_Numerics")] pub GetDescription: unsafe extern "system" fn(*mut core::ffi::c_void, *mut D2D1_DRAWING_STATE_DESCRIPTION), - #[cfg(not(feature = "Foundation_Numerics"))] - GetDescription: usize, - #[cfg(feature = "Foundation_Numerics")] pub SetDescription: unsafe extern "system" fn(*mut core::ffi::c_void, *const D2D1_DRAWING_STATE_DESCRIPTION), - #[cfg(not(feature = "Foundation_Numerics"))] - SetDescription: usize, #[cfg(feature = "Win32_Graphics_DirectWrite")] pub SetTextRenderingParams: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void), #[cfg(not(feature = "Win32_Graphics_DirectWrite"))] @@ -6867,14 +6819,14 @@ pub struct ID2D1DrawingStateBlock_Vtbl { } unsafe impl Send for ID2D1DrawingStateBlock {} unsafe impl Sync for ID2D1DrawingStateBlock {} -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_DirectWrite"))] +#[cfg(feature = "Win32_Graphics_DirectWrite")] pub trait ID2D1DrawingStateBlock_Impl: ID2D1Resource_Impl { fn GetDescription(&self, statedescription: *mut D2D1_DRAWING_STATE_DESCRIPTION); fn SetDescription(&self, statedescription: *const D2D1_DRAWING_STATE_DESCRIPTION); fn SetTextRenderingParams(&self, textrenderingparams: windows_core::Ref<'_, super::DirectWrite::IDWriteRenderingParams>); fn GetTextRenderingParams(&self, textrenderingparams: windows_core::OutRef<'_, super::DirectWrite::IDWriteRenderingParams>); } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_DirectWrite"))] +#[cfg(feature = "Win32_Graphics_DirectWrite")] impl ID2D1DrawingStateBlock_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, statedescription: *mut D2D1_DRAWING_STATE_DESCRIPTION) { @@ -6913,7 +6865,7 @@ impl ID2D1DrawingStateBlock_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_DirectWrite"))] +#[cfg(feature = "Win32_Graphics_DirectWrite")] impl windows_core::RuntimeName for ID2D1DrawingStateBlock {} windows_core::imp::define_interface!(ID2D1DrawingStateBlock1, ID2D1DrawingStateBlock1_Vtbl, 0x689f1f85_c72e_4e33_8f19_85754efd5ace); impl core::ops::Deref for ID2D1DrawingStateBlock1 { @@ -6924,11 +6876,9 @@ impl core::ops::Deref for ID2D1DrawingStateBlock1 { } windows_core::imp::interface_hierarchy!(ID2D1DrawingStateBlock1, windows_core::IUnknown, ID2D1Resource, ID2D1DrawingStateBlock); impl ID2D1DrawingStateBlock1 { - #[cfg(feature = "Foundation_Numerics")] pub unsafe fn GetDescription(&self, statedescription: *mut D2D1_DRAWING_STATE_DESCRIPTION1) { unsafe { (windows_core::Interface::vtable(self).GetDescription)(windows_core::Interface::as_raw(self), statedescription as _) } } - #[cfg(feature = "Foundation_Numerics")] pub unsafe fn SetDescription(&self, statedescription: *const D2D1_DRAWING_STATE_DESCRIPTION1) { unsafe { (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), statedescription) } } @@ -6936,23 +6886,17 @@ impl ID2D1DrawingStateBlock1 { #[repr(C)] pub struct ID2D1DrawingStateBlock1_Vtbl { pub base__: ID2D1DrawingStateBlock_Vtbl, - #[cfg(feature = "Foundation_Numerics")] pub GetDescription: unsafe extern "system" fn(*mut core::ffi::c_void, *mut D2D1_DRAWING_STATE_DESCRIPTION1), - #[cfg(not(feature = "Foundation_Numerics"))] - GetDescription: usize, - #[cfg(feature = "Foundation_Numerics")] pub SetDescription: unsafe extern "system" fn(*mut core::ffi::c_void, *const D2D1_DRAWING_STATE_DESCRIPTION1), - #[cfg(not(feature = "Foundation_Numerics"))] - SetDescription: usize, } unsafe impl Send for ID2D1DrawingStateBlock1 {} unsafe impl Sync for ID2D1DrawingStateBlock1 {} -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_DirectWrite"))] +#[cfg(feature = "Win32_Graphics_DirectWrite")] pub trait ID2D1DrawingStateBlock1_Impl: ID2D1DrawingStateBlock_Impl { fn GetDescription(&self, statedescription: *mut D2D1_DRAWING_STATE_DESCRIPTION1); fn SetDescription(&self, statedescription: *const D2D1_DRAWING_STATE_DESCRIPTION1); } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_DirectWrite"))] +#[cfg(feature = "Win32_Graphics_DirectWrite")] impl ID2D1DrawingStateBlock1_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, statedescription: *mut D2D1_DRAWING_STATE_DESCRIPTION1) { @@ -6977,7 +6921,7 @@ impl ID2D1DrawingStateBlock1_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_DirectWrite"))] +#[cfg(feature = "Win32_Graphics_DirectWrite")] impl windows_core::RuntimeName for ID2D1DrawingStateBlock1 {} windows_core::imp::define_interface!(ID2D1Effect, ID2D1Effect_Vtbl, 0x28211a43_7d89_476f_8181_2d6159b220ad); impl core::ops::Deref for ID2D1Effect { @@ -7730,11 +7674,11 @@ pub struct ID2D1EllipseGeometry_Vtbl { } unsafe impl Send for ID2D1EllipseGeometry {} unsafe impl Sync for ID2D1EllipseGeometry {} -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub trait ID2D1EllipseGeometry_Impl: ID2D1Geometry_Impl { fn GetEllipse(&self, ellipse: *mut D2D1_ELLIPSE); } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl ID2D1EllipseGeometry_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn GetEllipse(this: *mut core::ffi::c_void, ellipse: *mut D2D1_ELLIPSE) { @@ -7749,7 +7693,7 @@ impl ID2D1EllipseGeometry_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl windows_core::RuntimeName for ID2D1EllipseGeometry {} windows_core::imp::define_interface!(ID2D1Factory, ID2D1Factory_Vtbl, 0x06152247_6f50_465a_9245_118bfd3b6007); windows_core::imp::interface_hierarchy!(ID2D1Factory, windows_core::IUnknown); @@ -7788,8 +7732,7 @@ impl ID2D1Factory { (windows_core::Interface::vtable(self).CreateGeometryGroup)(windows_core::Interface::as_raw(self), fillmode, core::mem::transmute(geometries.as_ptr()), geometries.len().try_into().unwrap(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Numerics")] - pub unsafe fn CreateTransformedGeometry(&self, sourcegeometry: P0, transform: *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result + pub unsafe fn CreateTransformedGeometry(&self, sourcegeometry: P0, transform: *const windows_numerics::Matrix3x2) -> windows_core::Result where P0: windows_core::Param, { @@ -7810,7 +7753,7 @@ impl ID2D1Factory { (windows_core::Interface::vtable(self).CreateStrokeStyle)(windows_core::Interface::as_raw(self), strokestyleproperties, core::mem::transmute(dashes.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), dashes.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_DirectWrite"))] + #[cfg(feature = "Win32_Graphics_DirectWrite")] pub unsafe fn CreateDrawingStateBlock(&self, drawingstatedescription: Option<*const D2D1_DRAWING_STATE_DESCRIPTION>, textrenderingparams: P1) -> windows_core::Result where P1: windows_core::Param, @@ -7876,15 +7819,12 @@ pub struct ID2D1Factory_Vtbl { pub CreateGeometryGroup: unsafe extern "system" fn(*mut core::ffi::c_void, Common::D2D1_FILL_MODE, *const *mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] CreateGeometryGroup: usize, - #[cfg(feature = "Foundation_Numerics")] - pub CreateTransformedGeometry: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *const super::super::super::Foundation::Numerics::Matrix3x2, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - CreateTransformedGeometry: usize, + pub CreateTransformedGeometry: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *const windows_numerics::Matrix3x2, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreatePathGeometry: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateStrokeStyle: unsafe extern "system" fn(*mut core::ffi::c_void, *const D2D1_STROKE_STYLE_PROPERTIES, *const f32, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_DirectWrite"))] + #[cfg(feature = "Win32_Graphics_DirectWrite")] pub CreateDrawingStateBlock: unsafe extern "system" fn(*mut core::ffi::c_void, *const D2D1_DRAWING_STATE_DESCRIPTION, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_DirectWrite")))] + #[cfg(not(feature = "Win32_Graphics_DirectWrite"))] CreateDrawingStateBlock: usize, #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] pub CreateWicBitmapRenderTarget: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *const D2D1_RENDER_TARGET_PROPERTIES, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -7905,7 +7845,7 @@ pub struct ID2D1Factory_Vtbl { } unsafe impl Send for ID2D1Factory {} unsafe impl Sync for ID2D1Factory {} -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] pub trait ID2D1Factory_Impl: windows_core::IUnknownImpl { fn ReloadSystemMetrics(&self) -> windows_core::Result<()>; fn GetDesktopDpi(&self, dpix: *mut f32, dpiy: *mut f32); @@ -7913,7 +7853,7 @@ pub trait ID2D1Factory_Impl: windows_core::IUnknownImpl { fn CreateRoundedRectangleGeometry(&self, roundedrectangle: *const D2D1_ROUNDED_RECT) -> windows_core::Result; fn CreateEllipseGeometry(&self, ellipse: *const D2D1_ELLIPSE) -> windows_core::Result; fn CreateGeometryGroup(&self, fillmode: Common::D2D1_FILL_MODE, geometries: *const Option, geometriescount: u32) -> windows_core::Result; - fn CreateTransformedGeometry(&self, sourcegeometry: windows_core::Ref<'_, ID2D1Geometry>, transform: *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result; + fn CreateTransformedGeometry(&self, sourcegeometry: windows_core::Ref<'_, ID2D1Geometry>, transform: *const windows_numerics::Matrix3x2) -> windows_core::Result; fn CreatePathGeometry(&self) -> windows_core::Result; fn CreateStrokeStyle(&self, strokestyleproperties: *const D2D1_STROKE_STYLE_PROPERTIES, dashes: *const f32, dashescount: u32) -> windows_core::Result; fn CreateDrawingStateBlock(&self, drawingstatedescription: *const D2D1_DRAWING_STATE_DESCRIPTION, textrenderingparams: windows_core::Ref<'_, super::DirectWrite::IDWriteRenderingParams>) -> windows_core::Result; @@ -7922,7 +7862,7 @@ pub trait ID2D1Factory_Impl: windows_core::IUnknownImpl { fn CreateDxgiSurfaceRenderTarget(&self, dxgisurface: windows_core::Ref<'_, super::Dxgi::IDXGISurface>, rendertargetproperties: *const D2D1_RENDER_TARGET_PROPERTIES) -> windows_core::Result; fn CreateDCRenderTarget(&self, rendertargetproperties: *const D2D1_RENDER_TARGET_PROPERTIES) -> windows_core::Result; } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] impl ID2D1Factory_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn ReloadSystemMetrics(this: *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -7985,7 +7925,7 @@ impl ID2D1Factory_Vtbl { } } } - unsafe extern "system" fn CreateTransformedGeometry(this: *mut core::ffi::c_void, sourcegeometry: *mut core::ffi::c_void, transform: *const super::super::super::Foundation::Numerics::Matrix3x2, transformedgeometry: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn CreateTransformedGeometry(this: *mut core::ffi::c_void, sourcegeometry: *mut core::ffi::c_void, transform: *const windows_numerics::Matrix3x2, transformedgeometry: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Factory_Impl::CreateTransformedGeometry(this, core::mem::transmute_copy(&sourcegeometry), core::mem::transmute_copy(&transform)) { @@ -8103,7 +8043,7 @@ impl ID2D1Factory_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] impl windows_core::RuntimeName for ID2D1Factory {} windows_core::imp::define_interface!(ID2D1Factory1, ID2D1Factory1_Vtbl, 0xbb12d362_daee_4b9a_aa1d_14ba401cfa1f); impl core::ops::Deref for ID2D1Factory1 { @@ -8136,7 +8076,7 @@ impl ID2D1Factory1 { (windows_core::Interface::vtable(self).CreatePathGeometry)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_DirectWrite"))] + #[cfg(feature = "Win32_Graphics_DirectWrite")] pub unsafe fn CreateDrawingStateBlock(&self, drawingstatedescription: Option<*const D2D1_DRAWING_STATE_DESCRIPTION1>, textrenderingparams: P1) -> windows_core::Result where P1: windows_core::Param, @@ -8191,9 +8131,9 @@ pub struct ID2D1Factory1_Vtbl { CreateDevice: usize, pub CreateStrokeStyle: unsafe extern "system" fn(*mut core::ffi::c_void, *const D2D1_STROKE_STYLE_PROPERTIES1, *const f32, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreatePathGeometry: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_DirectWrite"))] + #[cfg(feature = "Win32_Graphics_DirectWrite")] pub CreateDrawingStateBlock: unsafe extern "system" fn(*mut core::ffi::c_void, *const D2D1_DRAWING_STATE_DESCRIPTION1, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_DirectWrite")))] + #[cfg(not(feature = "Win32_Graphics_DirectWrite"))] CreateDrawingStateBlock: usize, #[cfg(feature = "Win32_System_Com")] pub CreateGdiMetafile: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -8210,7 +8150,7 @@ pub struct ID2D1Factory1_Vtbl { } unsafe impl Send for ID2D1Factory1 {} unsafe impl Sync for ID2D1Factory1 {} -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] pub trait ID2D1Factory1_Impl: ID2D1Factory_Impl { fn CreateDevice(&self, dxgidevice: windows_core::Ref<'_, super::Dxgi::IDXGIDevice>) -> windows_core::Result; fn CreateStrokeStyle(&self, strokestyleproperties: *const D2D1_STROKE_STYLE_PROPERTIES1, dashes: *const f32, dashescount: u32) -> windows_core::Result; @@ -8223,7 +8163,7 @@ pub trait ID2D1Factory1_Impl: ID2D1Factory_Impl { fn GetRegisteredEffects(&self, effects: *mut windows_core::GUID, effectscount: u32, effectsreturned: *mut u32, effectsregistered: *mut u32) -> windows_core::Result<()>; fn GetEffectProperties(&self, effectid: *const windows_core::GUID) -> windows_core::Result; } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] impl ID2D1Factory1_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn CreateDevice(this: *mut core::ffi::c_void, dxgidevice: *mut core::ffi::c_void, d2ddevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -8340,7 +8280,7 @@ impl ID2D1Factory1_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] impl windows_core::RuntimeName for ID2D1Factory1 {} windows_core::imp::define_interface!(ID2D1Factory2, ID2D1Factory2_Vtbl, 0x94f81a73_9212_4376_9c58_b16a3a0d3992); impl core::ops::Deref for ID2D1Factory2 { @@ -8372,11 +8312,11 @@ pub struct ID2D1Factory2_Vtbl { } unsafe impl Send for ID2D1Factory2 {} unsafe impl Sync for ID2D1Factory2 {} -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] pub trait ID2D1Factory2_Impl: ID2D1Factory1_Impl { fn CreateDevice(&self, dxgidevice: windows_core::Ref<'_, super::Dxgi::IDXGIDevice>) -> windows_core::Result; } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] impl ID2D1Factory2_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn CreateDevice(this: *mut core::ffi::c_void, dxgidevice: *mut core::ffi::c_void, d2ddevice1: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -8397,7 +8337,7 @@ impl ID2D1Factory2_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] impl windows_core::RuntimeName for ID2D1Factory2 {} windows_core::imp::define_interface!(ID2D1Factory3, ID2D1Factory3_Vtbl, 0x0869759f_4f00_413f_b03e_2bda45404d0f); impl core::ops::Deref for ID2D1Factory3 { @@ -8429,11 +8369,11 @@ pub struct ID2D1Factory3_Vtbl { } unsafe impl Send for ID2D1Factory3 {} unsafe impl Sync for ID2D1Factory3 {} -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] pub trait ID2D1Factory3_Impl: ID2D1Factory2_Impl { fn CreateDevice(&self, dxgidevice: windows_core::Ref<'_, super::Dxgi::IDXGIDevice>) -> windows_core::Result; } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] impl ID2D1Factory3_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn CreateDevice(this: *mut core::ffi::c_void, dxgidevice: *mut core::ffi::c_void, d2ddevice2: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -8454,7 +8394,7 @@ impl ID2D1Factory3_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] impl windows_core::RuntimeName for ID2D1Factory3 {} windows_core::imp::define_interface!(ID2D1Factory4, ID2D1Factory4_Vtbl, 0xbd4ec2d2_0662_4bee_ba8e_6f29f032e096); impl core::ops::Deref for ID2D1Factory4 { @@ -8486,11 +8426,11 @@ pub struct ID2D1Factory4_Vtbl { } unsafe impl Send for ID2D1Factory4 {} unsafe impl Sync for ID2D1Factory4 {} -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] pub trait ID2D1Factory4_Impl: ID2D1Factory3_Impl { fn CreateDevice(&self, dxgidevice: windows_core::Ref<'_, super::Dxgi::IDXGIDevice>) -> windows_core::Result; } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] impl ID2D1Factory4_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn CreateDevice(this: *mut core::ffi::c_void, dxgidevice: *mut core::ffi::c_void, d2ddevice3: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -8511,7 +8451,7 @@ impl ID2D1Factory4_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] impl windows_core::RuntimeName for ID2D1Factory4 {} windows_core::imp::define_interface!(ID2D1Factory5, ID2D1Factory5_Vtbl, 0xc4349994_838e_4b0f_8cab_44997d9eeacc); impl core::ops::Deref for ID2D1Factory5 { @@ -8543,11 +8483,11 @@ pub struct ID2D1Factory5_Vtbl { } unsafe impl Send for ID2D1Factory5 {} unsafe impl Sync for ID2D1Factory5 {} -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] pub trait ID2D1Factory5_Impl: ID2D1Factory4_Impl { fn CreateDevice(&self, dxgidevice: windows_core::Ref<'_, super::Dxgi::IDXGIDevice>) -> windows_core::Result; } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] impl ID2D1Factory5_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn CreateDevice(this: *mut core::ffi::c_void, dxgidevice: *mut core::ffi::c_void, d2ddevice4: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -8568,7 +8508,7 @@ impl ID2D1Factory5_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] impl windows_core::RuntimeName for ID2D1Factory5 {} windows_core::imp::define_interface!(ID2D1Factory6, ID2D1Factory6_Vtbl, 0xf9976f46_f642_44c1_97ca_da32ea2a2635); impl core::ops::Deref for ID2D1Factory6 { @@ -8600,11 +8540,11 @@ pub struct ID2D1Factory6_Vtbl { } unsafe impl Send for ID2D1Factory6 {} unsafe impl Sync for ID2D1Factory6 {} -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] pub trait ID2D1Factory6_Impl: ID2D1Factory5_Impl { fn CreateDevice(&self, dxgidevice: windows_core::Ref<'_, super::Dxgi::IDXGIDevice>) -> windows_core::Result; } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] impl ID2D1Factory6_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn CreateDevice(this: *mut core::ffi::c_void, dxgidevice: *mut core::ffi::c_void, d2ddevice5: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -8625,7 +8565,7 @@ impl ID2D1Factory6_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] impl windows_core::RuntimeName for ID2D1Factory6 {} windows_core::imp::define_interface!(ID2D1Factory7, ID2D1Factory7_Vtbl, 0xbdc2bdd3_b96c_4de6_bdf7_99d4745454de); impl core::ops::Deref for ID2D1Factory7 { @@ -8657,11 +8597,11 @@ pub struct ID2D1Factory7_Vtbl { } unsafe impl Send for ID2D1Factory7 {} unsafe impl Sync for ID2D1Factory7 {} -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] pub trait ID2D1Factory7_Impl: ID2D1Factory6_Impl { fn CreateDevice(&self, dxgidevice: windows_core::Ref<'_, super::Dxgi::IDXGIDevice>) -> windows_core::Result; } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] impl ID2D1Factory7_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn CreateDevice(this: *mut core::ffi::c_void, dxgidevice: *mut core::ffi::c_void, d2ddevice6: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -8682,7 +8622,7 @@ impl ID2D1Factory7_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] impl windows_core::RuntimeName for ID2D1Factory7 {} windows_core::imp::define_interface!(ID2D1Factory8, ID2D1Factory8_Vtbl, 0x677c9311_f36d_4b1f_ae86_86d1223ffd3a); impl core::ops::Deref for ID2D1Factory8 { @@ -8714,11 +8654,11 @@ pub struct ID2D1Factory8_Vtbl { } unsafe impl Send for ID2D1Factory8 {} unsafe impl Sync for ID2D1Factory8 {} -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] pub trait ID2D1Factory8_Impl: ID2D1Factory7_Impl { fn CreateDevice(&self, dxgidevice: windows_core::Ref<'_, super::Dxgi::IDXGIDevice>) -> windows_core::Result; } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] impl ID2D1Factory8_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn CreateDevice(this: *mut core::ffi::c_void, dxgidevice: *mut core::ffi::c_void, d2ddevice6: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -8739,7 +8679,7 @@ impl ID2D1Factory8_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] impl windows_core::RuntimeName for ID2D1Factory8 {} windows_core::imp::define_interface!(ID2D1GdiInteropRenderTarget, ID2D1GdiInteropRenderTarget_Vtbl, 0xe0db51c3_6f77_4bae_b3d5_e47509b35838); windows_core::imp::interface_hierarchy!(ID2D1GdiInteropRenderTarget, windows_core::IUnknown); @@ -9016,15 +8956,15 @@ impl core::ops::Deref for ID2D1Geometry { } windows_core::imp::interface_hierarchy!(ID2D1Geometry, windows_core::IUnknown, ID2D1Resource); impl ID2D1Geometry { - #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] - pub unsafe fn GetBounds(&self, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>) -> windows_core::Result { + #[cfg(feature = "Win32_Graphics_Direct2D_Common")] + pub unsafe fn GetBounds(&self, worldtransform: Option<*const windows_numerics::Matrix3x2>) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetBounds)(windows_core::Interface::as_raw(self), worldtransform.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| result__) } } - #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] - pub unsafe fn GetWidenedBounds(&self, strokewidth: f32, strokestyle: P1, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32) -> windows_core::Result + #[cfg(feature = "Win32_Graphics_Direct2D_Common")] + pub unsafe fn GetWidenedBounds(&self, strokewidth: f32, strokestyle: P1, worldtransform: Option<*const windows_numerics::Matrix3x2>, flatteningtolerance: f32) -> windows_core::Result where P1: windows_core::Param, { @@ -9033,8 +8973,8 @@ impl ID2D1Geometry { (windows_core::Interface::vtable(self).GetWidenedBounds)(windows_core::Interface::as_raw(self), strokewidth, strokestyle.param().abi(), worldtransform.unwrap_or(core::mem::zeroed()) as _, flatteningtolerance, &mut result__).map(|| result__) } } - #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] - pub unsafe fn StrokeContainsPoint(&self, point: Common::D2D_POINT_2F, strokewidth: f32, strokestyle: P2, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32) -> windows_core::Result + #[cfg(feature = "Win32_Graphics_Direct2D_Common")] + pub unsafe fn StrokeContainsPoint(&self, point: Common::D2D_POINT_2F, strokewidth: f32, strokestyle: P2, worldtransform: Option<*const windows_numerics::Matrix3x2>, flatteningtolerance: f32) -> windows_core::Result where P2: windows_core::Param, { @@ -9043,15 +8983,14 @@ impl ID2D1Geometry { (windows_core::Interface::vtable(self).StrokeContainsPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(point), strokewidth, strokestyle.param().abi(), worldtransform.unwrap_or(core::mem::zeroed()) as _, flatteningtolerance, &mut result__).map(|| result__) } } - #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] - pub unsafe fn FillContainsPoint(&self, point: Common::D2D_POINT_2F, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32) -> windows_core::Result { + #[cfg(feature = "Win32_Graphics_Direct2D_Common")] + pub unsafe fn FillContainsPoint(&self, point: Common::D2D_POINT_2F, worldtransform: Option<*const windows_numerics::Matrix3x2>, flatteningtolerance: f32) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).FillContainsPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(point), worldtransform.unwrap_or(core::mem::zeroed()) as _, flatteningtolerance, &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub unsafe fn CompareWithGeometry(&self, inputgeometry: P0, inputgeometrytransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32) -> windows_core::Result + pub unsafe fn CompareWithGeometry(&self, inputgeometry: P0, inputgeometrytransform: Option<*const windows_numerics::Matrix3x2>, flatteningtolerance: f32) -> windows_core::Result where P0: windows_core::Param, { @@ -9060,55 +8999,52 @@ impl ID2D1Geometry { (windows_core::Interface::vtable(self).CompareWithGeometry)(windows_core::Interface::as_raw(self), inputgeometry.param().abi(), inputgeometrytransform.unwrap_or(core::mem::zeroed()) as _, flatteningtolerance, &mut result__).map(|| result__) } } - #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] - pub unsafe fn Simplify(&self, simplificationoption: D2D1_GEOMETRY_SIMPLIFICATION_OPTION, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32, geometrysink: P3) -> windows_core::Result<()> + #[cfg(feature = "Win32_Graphics_Direct2D_Common")] + pub unsafe fn Simplify(&self, simplificationoption: D2D1_GEOMETRY_SIMPLIFICATION_OPTION, worldtransform: Option<*const windows_numerics::Matrix3x2>, flatteningtolerance: f32, geometrysink: P3) -> windows_core::Result<()> where P3: windows_core::Param, { unsafe { (windows_core::Interface::vtable(self).Simplify)(windows_core::Interface::as_raw(self), simplificationoption, worldtransform.unwrap_or(core::mem::zeroed()) as _, flatteningtolerance, geometrysink.param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub unsafe fn Tessellate(&self, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32, tessellationsink: P2) -> windows_core::Result<()> + pub unsafe fn Tessellate(&self, worldtransform: Option<*const windows_numerics::Matrix3x2>, flatteningtolerance: f32, tessellationsink: P2) -> windows_core::Result<()> where P2: windows_core::Param, { unsafe { (windows_core::Interface::vtable(self).Tessellate)(windows_core::Interface::as_raw(self), worldtransform.unwrap_or(core::mem::zeroed()) as _, flatteningtolerance, tessellationsink.param().abi()).ok() } } - #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] - pub unsafe fn CombineWithGeometry(&self, inputgeometry: P0, combinemode: D2D1_COMBINE_MODE, inputgeometrytransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32, geometrysink: P4) -> windows_core::Result<()> + #[cfg(feature = "Win32_Graphics_Direct2D_Common")] + pub unsafe fn CombineWithGeometry(&self, inputgeometry: P0, combinemode: D2D1_COMBINE_MODE, inputgeometrytransform: Option<*const windows_numerics::Matrix3x2>, flatteningtolerance: f32, geometrysink: P4) -> windows_core::Result<()> where P0: windows_core::Param, P4: windows_core::Param, { unsafe { (windows_core::Interface::vtable(self).CombineWithGeometry)(windows_core::Interface::as_raw(self), inputgeometry.param().abi(), combinemode, inputgeometrytransform.unwrap_or(core::mem::zeroed()) as _, flatteningtolerance, geometrysink.param().abi()).ok() } } - #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] - pub unsafe fn Outline(&self, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32, geometrysink: P2) -> windows_core::Result<()> + #[cfg(feature = "Win32_Graphics_Direct2D_Common")] + pub unsafe fn Outline(&self, worldtransform: Option<*const windows_numerics::Matrix3x2>, flatteningtolerance: f32, geometrysink: P2) -> windows_core::Result<()> where P2: windows_core::Param, { unsafe { (windows_core::Interface::vtable(self).Outline)(windows_core::Interface::as_raw(self), worldtransform.unwrap_or(core::mem::zeroed()) as _, flatteningtolerance, geometrysink.param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub unsafe fn ComputeArea(&self, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32) -> windows_core::Result { + pub unsafe fn ComputeArea(&self, worldtransform: Option<*const windows_numerics::Matrix3x2>, flatteningtolerance: f32) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ComputeArea)(windows_core::Interface::as_raw(self), worldtransform.unwrap_or(core::mem::zeroed()) as _, flatteningtolerance, &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub unsafe fn ComputeLength(&self, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32) -> windows_core::Result { + pub unsafe fn ComputeLength(&self, worldtransform: Option<*const windows_numerics::Matrix3x2>, flatteningtolerance: f32) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ComputeLength)(windows_core::Interface::as_raw(self), worldtransform.unwrap_or(core::mem::zeroed()) as _, flatteningtolerance, &mut result__).map(|| result__) } } - #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] - pub unsafe fn ComputePointAtLength(&self, length: f32, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32, point: Option<*mut Common::D2D_POINT_2F>, unittangentvector: Option<*mut Common::D2D_POINT_2F>) -> windows_core::Result<()> { + #[cfg(feature = "Win32_Graphics_Direct2D_Common")] + pub unsafe fn ComputePointAtLength(&self, length: f32, worldtransform: Option<*const windows_numerics::Matrix3x2>, flatteningtolerance: f32, point: Option<*mut Common::D2D_POINT_2F>, unittangentvector: Option<*mut Common::D2D_POINT_2F>) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).ComputePointAtLength)(windows_core::Interface::as_raw(self), length, worldtransform.unwrap_or(core::mem::zeroed()) as _, flatteningtolerance, point.unwrap_or(core::mem::zeroed()) as _, unittangentvector.unwrap_or(core::mem::zeroed()) as _).ok() } } - #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] - pub unsafe fn Widen(&self, strokewidth: f32, strokestyle: P1, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32, geometrysink: P4) -> windows_core::Result<()> + #[cfg(feature = "Win32_Graphics_Direct2D_Common")] + pub unsafe fn Widen(&self, strokewidth: f32, strokestyle: P1, worldtransform: Option<*const windows_numerics::Matrix3x2>, flatteningtolerance: f32, geometrysink: P4) -> windows_core::Result<()> where P1: windows_core::Param, P4: windows_core::Param, @@ -9119,81 +9055,69 @@ impl ID2D1Geometry { #[repr(C)] pub struct ID2D1Geometry_Vtbl { pub base__: ID2D1Resource_Vtbl, - #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] - pub GetBounds: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::super::Foundation::Numerics::Matrix3x2, *mut Common::D2D_RECT_F) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common")))] + #[cfg(feature = "Win32_Graphics_Direct2D_Common")] + pub GetBounds: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_numerics::Matrix3x2, *mut Common::D2D_RECT_F) -> windows_core::HRESULT, + #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] GetBounds: usize, - #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] - pub GetWidenedBounds: unsafe extern "system" fn(*mut core::ffi::c_void, f32, *mut core::ffi::c_void, *const super::super::super::Foundation::Numerics::Matrix3x2, f32, *mut Common::D2D_RECT_F) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common")))] + #[cfg(feature = "Win32_Graphics_Direct2D_Common")] + pub GetWidenedBounds: unsafe extern "system" fn(*mut core::ffi::c_void, f32, *mut core::ffi::c_void, *const windows_numerics::Matrix3x2, f32, *mut Common::D2D_RECT_F) -> windows_core::HRESULT, + #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] GetWidenedBounds: usize, - #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] - pub StrokeContainsPoint: unsafe extern "system" fn(*mut core::ffi::c_void, Common::D2D_POINT_2F, f32, *mut core::ffi::c_void, *const super::super::super::Foundation::Numerics::Matrix3x2, f32, *mut windows_core::BOOL) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common")))] + #[cfg(feature = "Win32_Graphics_Direct2D_Common")] + pub StrokeContainsPoint: unsafe extern "system" fn(*mut core::ffi::c_void, Common::D2D_POINT_2F, f32, *mut core::ffi::c_void, *const windows_numerics::Matrix3x2, f32, *mut windows_core::BOOL) -> windows_core::HRESULT, + #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] StrokeContainsPoint: usize, - #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] - pub FillContainsPoint: unsafe extern "system" fn(*mut core::ffi::c_void, Common::D2D_POINT_2F, *const super::super::super::Foundation::Numerics::Matrix3x2, f32, *mut windows_core::BOOL) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common")))] + #[cfg(feature = "Win32_Graphics_Direct2D_Common")] + pub FillContainsPoint: unsafe extern "system" fn(*mut core::ffi::c_void, Common::D2D_POINT_2F, *const windows_numerics::Matrix3x2, f32, *mut windows_core::BOOL) -> windows_core::HRESULT, + #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] FillContainsPoint: usize, - #[cfg(feature = "Foundation_Numerics")] - pub CompareWithGeometry: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *const super::super::super::Foundation::Numerics::Matrix3x2, f32, *mut D2D1_GEOMETRY_RELATION) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - CompareWithGeometry: usize, - #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] - pub Simplify: unsafe extern "system" fn(*mut core::ffi::c_void, D2D1_GEOMETRY_SIMPLIFICATION_OPTION, *const super::super::super::Foundation::Numerics::Matrix3x2, f32, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common")))] + pub CompareWithGeometry: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *const windows_numerics::Matrix3x2, f32, *mut D2D1_GEOMETRY_RELATION) -> windows_core::HRESULT, + #[cfg(feature = "Win32_Graphics_Direct2D_Common")] + pub Simplify: unsafe extern "system" fn(*mut core::ffi::c_void, D2D1_GEOMETRY_SIMPLIFICATION_OPTION, *const windows_numerics::Matrix3x2, f32, *mut core::ffi::c_void) -> windows_core::HRESULT, + #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] Simplify: usize, - #[cfg(feature = "Foundation_Numerics")] - pub Tessellate: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::super::Foundation::Numerics::Matrix3x2, f32, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - Tessellate: usize, - #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] - pub CombineWithGeometry: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, D2D1_COMBINE_MODE, *const super::super::super::Foundation::Numerics::Matrix3x2, f32, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common")))] + pub Tessellate: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_numerics::Matrix3x2, f32, *mut core::ffi::c_void) -> windows_core::HRESULT, + #[cfg(feature = "Win32_Graphics_Direct2D_Common")] + pub CombineWithGeometry: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, D2D1_COMBINE_MODE, *const windows_numerics::Matrix3x2, f32, *mut core::ffi::c_void) -> windows_core::HRESULT, + #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] CombineWithGeometry: usize, - #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] - pub Outline: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::super::Foundation::Numerics::Matrix3x2, f32, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common")))] + #[cfg(feature = "Win32_Graphics_Direct2D_Common")] + pub Outline: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_numerics::Matrix3x2, f32, *mut core::ffi::c_void) -> windows_core::HRESULT, + #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] Outline: usize, - #[cfg(feature = "Foundation_Numerics")] - pub ComputeArea: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::super::Foundation::Numerics::Matrix3x2, f32, *mut f32) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - ComputeArea: usize, - #[cfg(feature = "Foundation_Numerics")] - pub ComputeLength: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::super::Foundation::Numerics::Matrix3x2, f32, *mut f32) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - ComputeLength: usize, - #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] - pub ComputePointAtLength: unsafe extern "system" fn(*mut core::ffi::c_void, f32, *const super::super::super::Foundation::Numerics::Matrix3x2, f32, *mut Common::D2D_POINT_2F, *mut Common::D2D_POINT_2F) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common")))] + pub ComputeArea: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_numerics::Matrix3x2, f32, *mut f32) -> windows_core::HRESULT, + pub ComputeLength: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_numerics::Matrix3x2, f32, *mut f32) -> windows_core::HRESULT, + #[cfg(feature = "Win32_Graphics_Direct2D_Common")] + pub ComputePointAtLength: unsafe extern "system" fn(*mut core::ffi::c_void, f32, *const windows_numerics::Matrix3x2, f32, *mut Common::D2D_POINT_2F, *mut Common::D2D_POINT_2F) -> windows_core::HRESULT, + #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] ComputePointAtLength: usize, - #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] - pub Widen: unsafe extern "system" fn(*mut core::ffi::c_void, f32, *mut core::ffi::c_void, *const super::super::super::Foundation::Numerics::Matrix3x2, f32, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common")))] + #[cfg(feature = "Win32_Graphics_Direct2D_Common")] + pub Widen: unsafe extern "system" fn(*mut core::ffi::c_void, f32, *mut core::ffi::c_void, *const windows_numerics::Matrix3x2, f32, *mut core::ffi::c_void) -> windows_core::HRESULT, + #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] Widen: usize, } unsafe impl Send for ID2D1Geometry {} unsafe impl Sync for ID2D1Geometry {} -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub trait ID2D1Geometry_Impl: ID2D1Resource_Impl { - fn GetBounds(&self, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result; - fn GetWidenedBounds(&self, strokewidth: f32, strokestyle: windows_core::Ref<'_, ID2D1StrokeStyle>, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32) -> windows_core::Result; - fn StrokeContainsPoint(&self, point: &Common::D2D_POINT_2F, strokewidth: f32, strokestyle: windows_core::Ref<'_, ID2D1StrokeStyle>, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32) -> windows_core::Result; - fn FillContainsPoint(&self, point: &Common::D2D_POINT_2F, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32) -> windows_core::Result; - fn CompareWithGeometry(&self, inputgeometry: windows_core::Ref<'_, ID2D1Geometry>, inputgeometrytransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32) -> windows_core::Result; - fn Simplify(&self, simplificationoption: D2D1_GEOMETRY_SIMPLIFICATION_OPTION, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, geometrysink: windows_core::Ref<'_, Common::ID2D1SimplifiedGeometrySink>) -> windows_core::Result<()>; - fn Tessellate(&self, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, tessellationsink: windows_core::Ref<'_, ID2D1TessellationSink>) -> windows_core::Result<()>; - fn CombineWithGeometry(&self, inputgeometry: windows_core::Ref<'_, ID2D1Geometry>, combinemode: D2D1_COMBINE_MODE, inputgeometrytransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, geometrysink: windows_core::Ref<'_, Common::ID2D1SimplifiedGeometrySink>) -> windows_core::Result<()>; - fn Outline(&self, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, geometrysink: windows_core::Ref<'_, Common::ID2D1SimplifiedGeometrySink>) -> windows_core::Result<()>; - fn ComputeArea(&self, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32) -> windows_core::Result; - fn ComputeLength(&self, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32) -> windows_core::Result; - fn ComputePointAtLength(&self, length: f32, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, point: *mut Common::D2D_POINT_2F, unittangentvector: *mut Common::D2D_POINT_2F) -> windows_core::Result<()>; - fn Widen(&self, strokewidth: f32, strokestyle: windows_core::Ref<'_, ID2D1StrokeStyle>, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, geometrysink: windows_core::Ref<'_, Common::ID2D1SimplifiedGeometrySink>) -> windows_core::Result<()>; -} -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] + fn GetBounds(&self, worldtransform: *const windows_numerics::Matrix3x2) -> windows_core::Result; + fn GetWidenedBounds(&self, strokewidth: f32, strokestyle: windows_core::Ref<'_, ID2D1StrokeStyle>, worldtransform: *const windows_numerics::Matrix3x2, flatteningtolerance: f32) -> windows_core::Result; + fn StrokeContainsPoint(&self, point: &Common::D2D_POINT_2F, strokewidth: f32, strokestyle: windows_core::Ref<'_, ID2D1StrokeStyle>, worldtransform: *const windows_numerics::Matrix3x2, flatteningtolerance: f32) -> windows_core::Result; + fn FillContainsPoint(&self, point: &Common::D2D_POINT_2F, worldtransform: *const windows_numerics::Matrix3x2, flatteningtolerance: f32) -> windows_core::Result; + fn CompareWithGeometry(&self, inputgeometry: windows_core::Ref<'_, ID2D1Geometry>, inputgeometrytransform: *const windows_numerics::Matrix3x2, flatteningtolerance: f32) -> windows_core::Result; + fn Simplify(&self, simplificationoption: D2D1_GEOMETRY_SIMPLIFICATION_OPTION, worldtransform: *const windows_numerics::Matrix3x2, flatteningtolerance: f32, geometrysink: windows_core::Ref<'_, Common::ID2D1SimplifiedGeometrySink>) -> windows_core::Result<()>; + fn Tessellate(&self, worldtransform: *const windows_numerics::Matrix3x2, flatteningtolerance: f32, tessellationsink: windows_core::Ref<'_, ID2D1TessellationSink>) -> windows_core::Result<()>; + fn CombineWithGeometry(&self, inputgeometry: windows_core::Ref<'_, ID2D1Geometry>, combinemode: D2D1_COMBINE_MODE, inputgeometrytransform: *const windows_numerics::Matrix3x2, flatteningtolerance: f32, geometrysink: windows_core::Ref<'_, Common::ID2D1SimplifiedGeometrySink>) -> windows_core::Result<()>; + fn Outline(&self, worldtransform: *const windows_numerics::Matrix3x2, flatteningtolerance: f32, geometrysink: windows_core::Ref<'_, Common::ID2D1SimplifiedGeometrySink>) -> windows_core::Result<()>; + fn ComputeArea(&self, worldtransform: *const windows_numerics::Matrix3x2, flatteningtolerance: f32) -> windows_core::Result; + fn ComputeLength(&self, worldtransform: *const windows_numerics::Matrix3x2, flatteningtolerance: f32) -> windows_core::Result; + fn ComputePointAtLength(&self, length: f32, worldtransform: *const windows_numerics::Matrix3x2, flatteningtolerance: f32, point: *mut Common::D2D_POINT_2F, unittangentvector: *mut Common::D2D_POINT_2F) -> windows_core::Result<()>; + fn Widen(&self, strokewidth: f32, strokestyle: windows_core::Ref<'_, ID2D1StrokeStyle>, worldtransform: *const windows_numerics::Matrix3x2, flatteningtolerance: f32, geometrysink: windows_core::Ref<'_, Common::ID2D1SimplifiedGeometrySink>) -> windows_core::Result<()>; +} +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl ID2D1Geometry_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn GetBounds(this: *mut core::ffi::c_void, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, bounds: *mut Common::D2D_RECT_F) -> windows_core::HRESULT { + unsafe extern "system" fn GetBounds(this: *mut core::ffi::c_void, worldtransform: *const windows_numerics::Matrix3x2, bounds: *mut Common::D2D_RECT_F) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Geometry_Impl::GetBounds(this, core::mem::transmute_copy(&worldtransform)) { @@ -9205,7 +9129,7 @@ impl ID2D1Geometry_Vtbl { } } } - unsafe extern "system" fn GetWidenedBounds(this: *mut core::ffi::c_void, strokewidth: f32, strokestyle: *mut core::ffi::c_void, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, bounds: *mut Common::D2D_RECT_F) -> windows_core::HRESULT { + unsafe extern "system" fn GetWidenedBounds(this: *mut core::ffi::c_void, strokewidth: f32, strokestyle: *mut core::ffi::c_void, worldtransform: *const windows_numerics::Matrix3x2, flatteningtolerance: f32, bounds: *mut Common::D2D_RECT_F) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Geometry_Impl::GetWidenedBounds(this, core::mem::transmute_copy(&strokewidth), core::mem::transmute_copy(&strokestyle), core::mem::transmute_copy(&worldtransform), core::mem::transmute_copy(&flatteningtolerance)) { @@ -9217,7 +9141,7 @@ impl ID2D1Geometry_Vtbl { } } } - unsafe extern "system" fn StrokeContainsPoint(this: *mut core::ffi::c_void, point: Common::D2D_POINT_2F, strokewidth: f32, strokestyle: *mut core::ffi::c_void, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, contains: *mut windows_core::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn StrokeContainsPoint(this: *mut core::ffi::c_void, point: Common::D2D_POINT_2F, strokewidth: f32, strokestyle: *mut core::ffi::c_void, worldtransform: *const windows_numerics::Matrix3x2, flatteningtolerance: f32, contains: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Geometry_Impl::StrokeContainsPoint(this, core::mem::transmute(&point), core::mem::transmute_copy(&strokewidth), core::mem::transmute_copy(&strokestyle), core::mem::transmute_copy(&worldtransform), core::mem::transmute_copy(&flatteningtolerance)) { @@ -9229,7 +9153,7 @@ impl ID2D1Geometry_Vtbl { } } } - unsafe extern "system" fn FillContainsPoint(this: *mut core::ffi::c_void, point: Common::D2D_POINT_2F, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, contains: *mut windows_core::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn FillContainsPoint(this: *mut core::ffi::c_void, point: Common::D2D_POINT_2F, worldtransform: *const windows_numerics::Matrix3x2, flatteningtolerance: f32, contains: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Geometry_Impl::FillContainsPoint(this, core::mem::transmute(&point), core::mem::transmute_copy(&worldtransform), core::mem::transmute_copy(&flatteningtolerance)) { @@ -9241,7 +9165,7 @@ impl ID2D1Geometry_Vtbl { } } } - unsafe extern "system" fn CompareWithGeometry(this: *mut core::ffi::c_void, inputgeometry: *mut core::ffi::c_void, inputgeometrytransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, relation: *mut D2D1_GEOMETRY_RELATION) -> windows_core::HRESULT { + unsafe extern "system" fn CompareWithGeometry(this: *mut core::ffi::c_void, inputgeometry: *mut core::ffi::c_void, inputgeometrytransform: *const windows_numerics::Matrix3x2, flatteningtolerance: f32, relation: *mut D2D1_GEOMETRY_RELATION) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Geometry_Impl::CompareWithGeometry(this, core::mem::transmute_copy(&inputgeometry), core::mem::transmute_copy(&inputgeometrytransform), core::mem::transmute_copy(&flatteningtolerance)) { @@ -9253,31 +9177,31 @@ impl ID2D1Geometry_Vtbl { } } } - unsafe extern "system" fn Simplify(this: *mut core::ffi::c_void, simplificationoption: D2D1_GEOMETRY_SIMPLIFICATION_OPTION, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, geometrysink: *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn Simplify(this: *mut core::ffi::c_void, simplificationoption: D2D1_GEOMETRY_SIMPLIFICATION_OPTION, worldtransform: *const windows_numerics::Matrix3x2, flatteningtolerance: f32, geometrysink: *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Geometry_Impl::Simplify(this, core::mem::transmute_copy(&simplificationoption), core::mem::transmute_copy(&worldtransform), core::mem::transmute_copy(&flatteningtolerance), core::mem::transmute_copy(&geometrysink)).into() } } - unsafe extern "system" fn Tessellate(this: *mut core::ffi::c_void, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, tessellationsink: *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn Tessellate(this: *mut core::ffi::c_void, worldtransform: *const windows_numerics::Matrix3x2, flatteningtolerance: f32, tessellationsink: *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Geometry_Impl::Tessellate(this, core::mem::transmute_copy(&worldtransform), core::mem::transmute_copy(&flatteningtolerance), core::mem::transmute_copy(&tessellationsink)).into() } } - unsafe extern "system" fn CombineWithGeometry(this: *mut core::ffi::c_void, inputgeometry: *mut core::ffi::c_void, combinemode: D2D1_COMBINE_MODE, inputgeometrytransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, geometrysink: *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn CombineWithGeometry(this: *mut core::ffi::c_void, inputgeometry: *mut core::ffi::c_void, combinemode: D2D1_COMBINE_MODE, inputgeometrytransform: *const windows_numerics::Matrix3x2, flatteningtolerance: f32, geometrysink: *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Geometry_Impl::CombineWithGeometry(this, core::mem::transmute_copy(&inputgeometry), core::mem::transmute_copy(&combinemode), core::mem::transmute_copy(&inputgeometrytransform), core::mem::transmute_copy(&flatteningtolerance), core::mem::transmute_copy(&geometrysink)).into() } } - unsafe extern "system" fn Outline(this: *mut core::ffi::c_void, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, geometrysink: *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn Outline(this: *mut core::ffi::c_void, worldtransform: *const windows_numerics::Matrix3x2, flatteningtolerance: f32, geometrysink: *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Geometry_Impl::Outline(this, core::mem::transmute_copy(&worldtransform), core::mem::transmute_copy(&flatteningtolerance), core::mem::transmute_copy(&geometrysink)).into() } } - unsafe extern "system" fn ComputeArea(this: *mut core::ffi::c_void, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, area: *mut f32) -> windows_core::HRESULT { + unsafe extern "system" fn ComputeArea(this: *mut core::ffi::c_void, worldtransform: *const windows_numerics::Matrix3x2, flatteningtolerance: f32, area: *mut f32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Geometry_Impl::ComputeArea(this, core::mem::transmute_copy(&worldtransform), core::mem::transmute_copy(&flatteningtolerance)) { @@ -9289,7 +9213,7 @@ impl ID2D1Geometry_Vtbl { } } } - unsafe extern "system" fn ComputeLength(this: *mut core::ffi::c_void, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, length: *mut f32) -> windows_core::HRESULT { + unsafe extern "system" fn ComputeLength(this: *mut core::ffi::c_void, worldtransform: *const windows_numerics::Matrix3x2, flatteningtolerance: f32, length: *mut f32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Geometry_Impl::ComputeLength(this, core::mem::transmute_copy(&worldtransform), core::mem::transmute_copy(&flatteningtolerance)) { @@ -9301,13 +9225,13 @@ impl ID2D1Geometry_Vtbl { } } } - unsafe extern "system" fn ComputePointAtLength(this: *mut core::ffi::c_void, length: f32, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, point: *mut Common::D2D_POINT_2F, unittangentvector: *mut Common::D2D_POINT_2F) -> windows_core::HRESULT { + unsafe extern "system" fn ComputePointAtLength(this: *mut core::ffi::c_void, length: f32, worldtransform: *const windows_numerics::Matrix3x2, flatteningtolerance: f32, point: *mut Common::D2D_POINT_2F, unittangentvector: *mut Common::D2D_POINT_2F) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Geometry_Impl::ComputePointAtLength(this, core::mem::transmute_copy(&length), core::mem::transmute_copy(&worldtransform), core::mem::transmute_copy(&flatteningtolerance), core::mem::transmute_copy(&point), core::mem::transmute_copy(&unittangentvector)).into() } } - unsafe extern "system" fn Widen(this: *mut core::ffi::c_void, strokewidth: f32, strokestyle: *mut core::ffi::c_void, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, geometrysink: *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn Widen(this: *mut core::ffi::c_void, strokewidth: f32, strokestyle: *mut core::ffi::c_void, worldtransform: *const windows_numerics::Matrix3x2, flatteningtolerance: f32, geometrysink: *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Geometry_Impl::Widen(this, core::mem::transmute_copy(&strokewidth), core::mem::transmute_copy(&strokestyle), core::mem::transmute_copy(&worldtransform), core::mem::transmute_copy(&flatteningtolerance), core::mem::transmute_copy(&geometrysink)).into() @@ -9334,7 +9258,7 @@ impl ID2D1Geometry_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl windows_core::RuntimeName for ID2D1Geometry {} windows_core::imp::define_interface!(ID2D1GeometryGroup, ID2D1GeometryGroup_Vtbl, 0x2cd906a6_12e2_11dc_9fed_001143a055f9); impl core::ops::Deref for ID2D1GeometryGroup { @@ -9368,13 +9292,13 @@ pub struct ID2D1GeometryGroup_Vtbl { } unsafe impl Send for ID2D1GeometryGroup {} unsafe impl Sync for ID2D1GeometryGroup {} -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub trait ID2D1GeometryGroup_Impl: ID2D1Geometry_Impl { fn GetFillMode(&self) -> Common::D2D1_FILL_MODE; fn GetSourceGeometryCount(&self) -> u32; fn GetSourceGeometries(&self, geometries: windows_core::OutRef<'_, ID2D1Geometry>, geometriescount: u32); } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl ID2D1GeometryGroup_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn GetFillMode(this: *mut core::ffi::c_void) -> Common::D2D1_FILL_MODE { @@ -9406,7 +9330,7 @@ impl ID2D1GeometryGroup_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl windows_core::RuntimeName for ID2D1GeometryGroup {} windows_core::imp::define_interface!(ID2D1GeometryRealization, ID2D1GeometryRealization_Vtbl, 0xa16907d7_bc02_4801_99e8_8cf7f485f774); impl core::ops::Deref for ID2D1GeometryRealization { @@ -9803,13 +9727,13 @@ pub struct ID2D1HwndRenderTarget_Vtbl { } unsafe impl Send for ID2D1HwndRenderTarget {} unsafe impl Sync for ID2D1HwndRenderTarget {} -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] pub trait ID2D1HwndRenderTarget_Impl: ID2D1RenderTarget_Impl { fn CheckWindowState(&self) -> D2D1_WINDOW_STATE; fn Resize(&self, pixelsize: *const Common::D2D_SIZE_U) -> windows_core::Result<()>; fn GetHwnd(&self) -> super::super::Foundation::HWND; } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] impl ID2D1HwndRenderTarget_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn CheckWindowState(this: *mut core::ffi::c_void) -> D2D1_WINDOW_STATE { @@ -9841,7 +9765,7 @@ impl ID2D1HwndRenderTarget_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] impl windows_core::RuntimeName for ID2D1HwndRenderTarget {} windows_core::imp::define_interface!(ID2D1Image, ID2D1Image_Vtbl, 0x65019f75_8da2_497c_b32c_dfa34e48ede6); impl core::ops::Deref for ID2D1Image { @@ -9942,7 +9866,7 @@ pub struct ID2D1ImageBrush_Vtbl { } unsafe impl Send for ID2D1ImageBrush {} unsafe impl Sync for ID2D1ImageBrush {} -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub trait ID2D1ImageBrush_Impl: ID2D1Brush_Impl { fn SetImage(&self, image: windows_core::Ref<'_, ID2D1Image>); fn SetExtendModeX(&self, extendmodex: D2D1_EXTEND_MODE); @@ -9955,7 +9879,7 @@ pub trait ID2D1ImageBrush_Impl: ID2D1Brush_Impl { fn GetInterpolationMode(&self) -> D2D1_INTERPOLATION_MODE; fn GetSourceRectangle(&self, sourcerectangle: *mut Common::D2D_RECT_F); } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl ID2D1ImageBrush_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn SetImage(this: *mut core::ffi::c_void, image: *mut core::ffi::c_void) { @@ -10036,7 +9960,7 @@ impl ID2D1ImageBrush_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl windows_core::RuntimeName for ID2D1ImageBrush {} windows_core::imp::define_interface!(ID2D1ImageSource, ID2D1ImageSource_Vtbl, 0xc9b664e5_74a1_4378_9ac2_eefc37a3f4d8); impl core::ops::Deref for ID2D1ImageSource { @@ -10221,16 +10145,16 @@ impl ID2D1Ink { pub unsafe fn GetSegments(&self, startsegment: u32, segments: &mut [D2D1_INK_BEZIER_SEGMENT]) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetSegments)(windows_core::Interface::as_raw(self), startsegment, core::mem::transmute(segments.as_ptr()), segments.len().try_into().unwrap()).ok() } } - #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] - pub unsafe fn StreamAsGeometry(&self, inkstyle: P0, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32, geometrysink: P3) -> windows_core::Result<()> + #[cfg(feature = "Win32_Graphics_Direct2D_Common")] + pub unsafe fn StreamAsGeometry(&self, inkstyle: P0, worldtransform: Option<*const windows_numerics::Matrix3x2>, flatteningtolerance: f32, geometrysink: P3) -> windows_core::Result<()> where P0: windows_core::Param, P3: windows_core::Param, { unsafe { (windows_core::Interface::vtable(self).StreamAsGeometry)(windows_core::Interface::as_raw(self), inkstyle.param().abi(), worldtransform.unwrap_or(core::mem::zeroed()) as _, flatteningtolerance, geometrysink.param().abi()).ok() } } - #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] - pub unsafe fn GetBounds(&self, inkstyle: P0, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>) -> windows_core::Result + #[cfg(feature = "Win32_Graphics_Direct2D_Common")] + pub unsafe fn GetBounds(&self, inkstyle: P0, worldtransform: Option<*const windows_numerics::Matrix3x2>) -> windows_core::Result where P0: windows_core::Param, { @@ -10251,18 +10175,18 @@ pub struct ID2D1Ink_Vtbl { pub SetSegmentAtEnd: unsafe extern "system" fn(*mut core::ffi::c_void, *const D2D1_INK_BEZIER_SEGMENT) -> windows_core::HRESULT, pub GetSegmentCount: unsafe extern "system" fn(*mut core::ffi::c_void) -> u32, pub GetSegments: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut D2D1_INK_BEZIER_SEGMENT, u32) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] - pub StreamAsGeometry: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *const super::super::super::Foundation::Numerics::Matrix3x2, f32, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common")))] + #[cfg(feature = "Win32_Graphics_Direct2D_Common")] + pub StreamAsGeometry: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *const windows_numerics::Matrix3x2, f32, *mut core::ffi::c_void) -> windows_core::HRESULT, + #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] StreamAsGeometry: usize, - #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] - pub GetBounds: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *const super::super::super::Foundation::Numerics::Matrix3x2, *mut Common::D2D_RECT_F) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common")))] + #[cfg(feature = "Win32_Graphics_Direct2D_Common")] + pub GetBounds: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *const windows_numerics::Matrix3x2, *mut Common::D2D_RECT_F) -> windows_core::HRESULT, + #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] GetBounds: usize, } unsafe impl Send for ID2D1Ink {} unsafe impl Sync for ID2D1Ink {} -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub trait ID2D1Ink_Impl: ID2D1Resource_Impl { fn SetStartPoint(&self, startpoint: *const D2D1_INK_POINT); fn GetStartPoint(&self) -> D2D1_INK_POINT; @@ -10272,10 +10196,10 @@ pub trait ID2D1Ink_Impl: ID2D1Resource_Impl { fn SetSegmentAtEnd(&self, segment: *const D2D1_INK_BEZIER_SEGMENT) -> windows_core::Result<()>; fn GetSegmentCount(&self) -> u32; fn GetSegments(&self, startsegment: u32, segments: *mut D2D1_INK_BEZIER_SEGMENT, segmentscount: u32) -> windows_core::Result<()>; - fn StreamAsGeometry(&self, inkstyle: windows_core::Ref<'_, ID2D1InkStyle>, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, geometrysink: windows_core::Ref<'_, Common::ID2D1SimplifiedGeometrySink>) -> windows_core::Result<()>; - fn GetBounds(&self, inkstyle: windows_core::Ref<'_, ID2D1InkStyle>, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result; + fn StreamAsGeometry(&self, inkstyle: windows_core::Ref<'_, ID2D1InkStyle>, worldtransform: *const windows_numerics::Matrix3x2, flatteningtolerance: f32, geometrysink: windows_core::Ref<'_, Common::ID2D1SimplifiedGeometrySink>) -> windows_core::Result<()>; + fn GetBounds(&self, inkstyle: windows_core::Ref<'_, ID2D1InkStyle>, worldtransform: *const windows_numerics::Matrix3x2) -> windows_core::Result; } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl ID2D1Ink_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn SetStartPoint(this: *mut core::ffi::c_void, startpoint: *const D2D1_INK_POINT) { @@ -10326,13 +10250,13 @@ impl ID2D1Ink_Vtbl { ID2D1Ink_Impl::GetSegments(this, core::mem::transmute_copy(&startsegment), core::mem::transmute_copy(&segments), core::mem::transmute_copy(&segmentscount)).into() } } - unsafe extern "system" fn StreamAsGeometry(this: *mut core::ffi::c_void, inkstyle: *mut core::ffi::c_void, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, geometrysink: *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn StreamAsGeometry(this: *mut core::ffi::c_void, inkstyle: *mut core::ffi::c_void, worldtransform: *const windows_numerics::Matrix3x2, flatteningtolerance: f32, geometrysink: *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Ink_Impl::StreamAsGeometry(this, core::mem::transmute_copy(&inkstyle), core::mem::transmute_copy(&worldtransform), core::mem::transmute_copy(&flatteningtolerance), core::mem::transmute_copy(&geometrysink)).into() } } - unsafe extern "system" fn GetBounds(this: *mut core::ffi::c_void, inkstyle: *mut core::ffi::c_void, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, bounds: *mut Common::D2D_RECT_F) -> windows_core::HRESULT { + unsafe extern "system" fn GetBounds(this: *mut core::ffi::c_void, inkstyle: *mut core::ffi::c_void, worldtransform: *const windows_numerics::Matrix3x2, bounds: *mut Common::D2D_RECT_F) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Ink_Impl::GetBounds(this, core::mem::transmute_copy(&inkstyle), core::mem::transmute_copy(&worldtransform)) { @@ -10362,7 +10286,7 @@ impl ID2D1Ink_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl windows_core::RuntimeName for ID2D1Ink {} windows_core::imp::define_interface!(ID2D1InkStyle, ID2D1InkStyle_Vtbl, 0xbae8b344_23fc_4071_8cb5_d05d6f073848); impl core::ops::Deref for ID2D1InkStyle { @@ -10373,12 +10297,10 @@ impl core::ops::Deref for ID2D1InkStyle { } windows_core::imp::interface_hierarchy!(ID2D1InkStyle, windows_core::IUnknown, ID2D1Resource); impl ID2D1InkStyle { - #[cfg(feature = "Foundation_Numerics")] - pub unsafe fn SetNibTransform(&self, transform: *const super::super::super::Foundation::Numerics::Matrix3x2) { + pub unsafe fn SetNibTransform(&self, transform: *const windows_numerics::Matrix3x2) { unsafe { (windows_core::Interface::vtable(self).SetNibTransform)(windows_core::Interface::as_raw(self), transform) } } - #[cfg(feature = "Foundation_Numerics")] - pub unsafe fn GetNibTransform(&self, transform: *mut super::super::super::Foundation::Numerics::Matrix3x2) { + pub unsafe fn GetNibTransform(&self, transform: *mut windows_numerics::Matrix3x2) { unsafe { (windows_core::Interface::vtable(self).GetNibTransform)(windows_core::Interface::as_raw(self), transform as _) } } pub unsafe fn SetNibShape(&self, nibshape: D2D1_INK_NIB_SHAPE) { @@ -10391,36 +10313,28 @@ impl ID2D1InkStyle { #[repr(C)] pub struct ID2D1InkStyle_Vtbl { pub base__: ID2D1Resource_Vtbl, - #[cfg(feature = "Foundation_Numerics")] - pub SetNibTransform: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::super::Foundation::Numerics::Matrix3x2), - #[cfg(not(feature = "Foundation_Numerics"))] - SetNibTransform: usize, - #[cfg(feature = "Foundation_Numerics")] - pub GetNibTransform: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::Numerics::Matrix3x2), - #[cfg(not(feature = "Foundation_Numerics"))] - GetNibTransform: usize, + pub SetNibTransform: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_numerics::Matrix3x2), + pub GetNibTransform: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Matrix3x2), pub SetNibShape: unsafe extern "system" fn(*mut core::ffi::c_void, D2D1_INK_NIB_SHAPE), pub GetNibShape: unsafe extern "system" fn(*mut core::ffi::c_void) -> D2D1_INK_NIB_SHAPE, } unsafe impl Send for ID2D1InkStyle {} unsafe impl Sync for ID2D1InkStyle {} -#[cfg(feature = "Foundation_Numerics")] pub trait ID2D1InkStyle_Impl: ID2D1Resource_Impl { - fn SetNibTransform(&self, transform: *const super::super::super::Foundation::Numerics::Matrix3x2); - fn GetNibTransform(&self, transform: *mut super::super::super::Foundation::Numerics::Matrix3x2); + fn SetNibTransform(&self, transform: *const windows_numerics::Matrix3x2); + fn GetNibTransform(&self, transform: *mut windows_numerics::Matrix3x2); fn SetNibShape(&self, nibshape: D2D1_INK_NIB_SHAPE); fn GetNibShape(&self) -> D2D1_INK_NIB_SHAPE; } -#[cfg(feature = "Foundation_Numerics")] impl ID2D1InkStyle_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn SetNibTransform(this: *mut core::ffi::c_void, transform: *const super::super::super::Foundation::Numerics::Matrix3x2) { + unsafe extern "system" fn SetNibTransform(this: *mut core::ffi::c_void, transform: *const windows_numerics::Matrix3x2) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1InkStyle_Impl::SetNibTransform(this, core::mem::transmute_copy(&transform)) } } - unsafe extern "system" fn GetNibTransform(this: *mut core::ffi::c_void, transform: *mut super::super::super::Foundation::Numerics::Matrix3x2) { + unsafe extern "system" fn GetNibTransform(this: *mut core::ffi::c_void, transform: *mut windows_numerics::Matrix3x2) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1InkStyle_Impl::GetNibTransform(this, core::mem::transmute_copy(&transform)) @@ -10450,7 +10364,6 @@ impl ID2D1InkStyle_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Foundation_Numerics")] impl windows_core::RuntimeName for ID2D1InkStyle {} windows_core::imp::define_interface!(ID2D1Layer, ID2D1Layer_Vtbl, 0x2cd9069b_12e2_11dc_9fed_001143a055f9); impl core::ops::Deref for ID2D1Layer { @@ -10565,7 +10478,7 @@ pub struct ID2D1LinearGradientBrush_Vtbl { } unsafe impl Send for ID2D1LinearGradientBrush {} unsafe impl Sync for ID2D1LinearGradientBrush {} -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub trait ID2D1LinearGradientBrush_Impl: ID2D1Brush_Impl { fn SetStartPoint(&self, startpoint: &Common::D2D_POINT_2F); fn SetEndPoint(&self, endpoint: &Common::D2D_POINT_2F); @@ -10573,7 +10486,7 @@ pub trait ID2D1LinearGradientBrush_Impl: ID2D1Brush_Impl { fn GetEndPoint(&self) -> Common::D2D_POINT_2F; fn GetGradientStopCollection(&self, gradientstopcollection: windows_core::OutRef<'_, ID2D1GradientStopCollection>); } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl ID2D1LinearGradientBrush_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn SetStartPoint(this: *mut core::ffi::c_void, startpoint: Common::D2D_POINT_2F) { @@ -10619,7 +10532,7 @@ impl ID2D1LinearGradientBrush_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl windows_core::RuntimeName for ID2D1LinearGradientBrush {} windows_core::imp::define_interface!(ID2D1LookupTable3D, ID2D1LookupTable3D_Vtbl, 0x53dd9855_a3b0_4d5b_82e1_26e25c5e5797); impl core::ops::Deref for ID2D1LookupTable3D { @@ -10856,14 +10769,14 @@ pub struct ID2D1PathGeometry_Vtbl { } unsafe impl Send for ID2D1PathGeometry {} unsafe impl Sync for ID2D1PathGeometry {} -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub trait ID2D1PathGeometry_Impl: ID2D1Geometry_Impl { fn Open(&self) -> windows_core::Result; fn Stream(&self, geometrysink: windows_core::Ref<'_, ID2D1GeometrySink>) -> windows_core::Result<()>; fn GetSegmentCount(&self) -> windows_core::Result; fn GetFigureCount(&self) -> windows_core::Result; } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl ID2D1PathGeometry_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn Open(this: *mut core::ffi::c_void, geometrysink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -10920,7 +10833,7 @@ impl ID2D1PathGeometry_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl windows_core::RuntimeName for ID2D1PathGeometry {} windows_core::imp::define_interface!(ID2D1PathGeometry1, ID2D1PathGeometry1_Vtbl, 0x62baa2d2_ab54_41b7_b872_787e0106a421); impl core::ops::Deref for ID2D1PathGeometry1 { @@ -10931,29 +10844,29 @@ impl core::ops::Deref for ID2D1PathGeometry1 { } windows_core::imp::interface_hierarchy!(ID2D1PathGeometry1, windows_core::IUnknown, ID2D1Resource, ID2D1Geometry, ID2D1PathGeometry); impl ID2D1PathGeometry1 { - #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] - pub unsafe fn ComputePointAndSegmentAtLength(&self, length: f32, startsegment: u32, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32, pointdescription: *mut D2D1_POINT_DESCRIPTION) -> windows_core::Result<()> { + #[cfg(feature = "Win32_Graphics_Direct2D_Common")] + pub unsafe fn ComputePointAndSegmentAtLength(&self, length: f32, startsegment: u32, worldtransform: Option<*const windows_numerics::Matrix3x2>, flatteningtolerance: f32, pointdescription: *mut D2D1_POINT_DESCRIPTION) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).ComputePointAndSegmentAtLength)(windows_core::Interface::as_raw(self), length, startsegment, worldtransform.unwrap_or(core::mem::zeroed()) as _, flatteningtolerance, pointdescription as _).ok() } } } #[repr(C)] pub struct ID2D1PathGeometry1_Vtbl { pub base__: ID2D1PathGeometry_Vtbl, - #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] - pub ComputePointAndSegmentAtLength: unsafe extern "system" fn(*mut core::ffi::c_void, f32, u32, *const super::super::super::Foundation::Numerics::Matrix3x2, f32, *mut D2D1_POINT_DESCRIPTION) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common")))] + #[cfg(feature = "Win32_Graphics_Direct2D_Common")] + pub ComputePointAndSegmentAtLength: unsafe extern "system" fn(*mut core::ffi::c_void, f32, u32, *const windows_numerics::Matrix3x2, f32, *mut D2D1_POINT_DESCRIPTION) -> windows_core::HRESULT, + #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] ComputePointAndSegmentAtLength: usize, } unsafe impl Send for ID2D1PathGeometry1 {} unsafe impl Sync for ID2D1PathGeometry1 {} -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub trait ID2D1PathGeometry1_Impl: ID2D1PathGeometry_Impl { - fn ComputePointAndSegmentAtLength(&self, length: f32, startsegment: u32, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, pointdescription: *mut D2D1_POINT_DESCRIPTION) -> windows_core::Result<()>; + fn ComputePointAndSegmentAtLength(&self, length: f32, startsegment: u32, worldtransform: *const windows_numerics::Matrix3x2, flatteningtolerance: f32, pointdescription: *mut D2D1_POINT_DESCRIPTION) -> windows_core::Result<()>; } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl ID2D1PathGeometry1_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn ComputePointAndSegmentAtLength(this: *mut core::ffi::c_void, length: f32, startsegment: u32, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, pointdescription: *mut D2D1_POINT_DESCRIPTION) -> windows_core::HRESULT { + unsafe extern "system" fn ComputePointAndSegmentAtLength(this: *mut core::ffi::c_void, length: f32, startsegment: u32, worldtransform: *const windows_numerics::Matrix3x2, flatteningtolerance: f32, pointdescription: *mut D2D1_POINT_DESCRIPTION) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1PathGeometry1_Impl::ComputePointAndSegmentAtLength(this, core::mem::transmute_copy(&length), core::mem::transmute_copy(&startsegment), core::mem::transmute_copy(&worldtransform), core::mem::transmute_copy(&flatteningtolerance), core::mem::transmute_copy(&pointdescription)).into() @@ -10965,7 +10878,7 @@ impl ID2D1PathGeometry1_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl windows_core::RuntimeName for ID2D1PathGeometry1 {} windows_core::imp::define_interface!(ID2D1PrintControl, ID2D1PrintControl_Vtbl, 0x2c1d867d_c290_41c8_ae7e_34a98702e9a5); windows_core::imp::interface_hierarchy!(ID2D1PrintControl, windows_core::IUnknown); @@ -11274,7 +11187,7 @@ pub struct ID2D1RadialGradientBrush_Vtbl { } unsafe impl Send for ID2D1RadialGradientBrush {} unsafe impl Sync for ID2D1RadialGradientBrush {} -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub trait ID2D1RadialGradientBrush_Impl: ID2D1Brush_Impl { fn SetCenter(&self, center: &Common::D2D_POINT_2F); fn SetGradientOriginOffset(&self, gradientoriginoffset: &Common::D2D_POINT_2F); @@ -11286,7 +11199,7 @@ pub trait ID2D1RadialGradientBrush_Impl: ID2D1Brush_Impl { fn GetRadiusY(&self) -> f32; fn GetGradientStopCollection(&self, gradientstopcollection: windows_core::OutRef<'_, ID2D1GradientStopCollection>); } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl ID2D1RadialGradientBrush_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn SetCenter(this: *mut core::ffi::c_void, center: Common::D2D_POINT_2F) { @@ -11360,7 +11273,7 @@ impl ID2D1RadialGradientBrush_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl windows_core::RuntimeName for ID2D1RadialGradientBrush {} windows_core::imp::define_interface!(ID2D1RectangleGeometry, ID2D1RectangleGeometry_Vtbl, 0x2cd906a2_12e2_11dc_9fed_001143a055f9); impl core::ops::Deref for ID2D1RectangleGeometry { @@ -11390,11 +11303,11 @@ pub struct ID2D1RectangleGeometry_Vtbl { } unsafe impl Send for ID2D1RectangleGeometry {} unsafe impl Sync for ID2D1RectangleGeometry {} -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub trait ID2D1RectangleGeometry_Impl: ID2D1Geometry_Impl { fn GetRect(&self, rect: *mut Common::D2D_RECT_F); } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl ID2D1RectangleGeometry_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn GetRect(this: *mut core::ffi::c_void, rect: *mut Common::D2D_RECT_F) { @@ -11409,7 +11322,7 @@ impl ID2D1RectangleGeometry_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl windows_core::RuntimeName for ID2D1RectangleGeometry {} windows_core::imp::define_interface!(ID2D1RenderInfo, ID2D1RenderInfo_Vtbl, 0x519ae1bd_d19a_420d_b849_364f594776b7); windows_core::imp::interface_hierarchy!(ID2D1RenderInfo, windows_core::IUnknown); @@ -11512,7 +11425,6 @@ impl ID2D1RenderTarget { pub unsafe fn CreateSharedBitmap(&self, riid: *const windows_core::GUID, data: *mut core::ffi::c_void, bitmapproperties: Option<*const D2D1_BITMAP_PROPERTIES>, bitmap: *mut Option) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).CreateSharedBitmap)(windows_core::Interface::as_raw(self), riid, data as _, bitmapproperties.unwrap_or(core::mem::zeroed()) as _, core::mem::transmute(bitmap)).ok() } } - #[cfg(feature = "Foundation_Numerics")] pub unsafe fn CreateBitmapBrush(&self, bitmap: P0, bitmapbrushproperties: Option<*const D2D1_BITMAP_BRUSH_PROPERTIES>, brushproperties: Option<*const D2D1_BRUSH_PROPERTIES>) -> windows_core::Result where P0: windows_core::Param, @@ -11522,7 +11434,7 @@ impl ID2D1RenderTarget { (windows_core::Interface::vtable(self).CreateBitmapBrush)(windows_core::Interface::as_raw(self), bitmap.param().abi(), bitmapbrushproperties.unwrap_or(core::mem::zeroed()) as _, brushproperties.unwrap_or(core::mem::zeroed()) as _, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] + #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn CreateSolidColorBrush(&self, color: *const Common::D2D1_COLOR_F, brushproperties: Option<*const D2D1_BRUSH_PROPERTIES>) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); @@ -11536,7 +11448,7 @@ impl ID2D1RenderTarget { (windows_core::Interface::vtable(self).CreateGradientStopCollection)(windows_core::Interface::as_raw(self), core::mem::transmute(gradientstops.as_ptr()), gradientstops.len().try_into().unwrap(), colorinterpolationgamma, extendmode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] + #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn CreateLinearGradientBrush(&self, lineargradientbrushproperties: *const D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES, brushproperties: Option<*const D2D1_BRUSH_PROPERTIES>, gradientstopcollection: P2) -> windows_core::Result where P2: windows_core::Param, @@ -11546,7 +11458,7 @@ impl ID2D1RenderTarget { (windows_core::Interface::vtable(self).CreateLinearGradientBrush)(windows_core::Interface::as_raw(self), lineargradientbrushproperties, brushproperties.unwrap_or(core::mem::zeroed()) as _, gradientstopcollection.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] + #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn CreateRadialGradientBrush(&self, radialgradientbrushproperties: *const D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES, brushproperties: Option<*const D2D1_BRUSH_PROPERTIES>, gradientstopcollection: P2) -> windows_core::Result where P2: windows_core::Param, @@ -11690,12 +11602,10 @@ impl ID2D1RenderTarget { { unsafe { (windows_core::Interface::vtable(self).DrawGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), core::mem::transmute(glyphrun), foregroundbrush.param().abi(), measuringmode) } } - #[cfg(feature = "Foundation_Numerics")] - pub unsafe fn SetTransform(&self, transform: *const super::super::super::Foundation::Numerics::Matrix3x2) { + pub unsafe fn SetTransform(&self, transform: *const windows_numerics::Matrix3x2) { unsafe { (windows_core::Interface::vtable(self).SetTransform)(windows_core::Interface::as_raw(self), transform) } } - #[cfg(feature = "Foundation_Numerics")] - pub unsafe fn GetTransform(&self, transform: *mut super::super::super::Foundation::Numerics::Matrix3x2) { + pub unsafe fn GetTransform(&self, transform: *mut windows_numerics::Matrix3x2) { unsafe { (windows_core::Interface::vtable(self).GetTransform)(windows_core::Interface::as_raw(self), transform as _) } } pub unsafe fn SetAntialiasMode(&self, antialiasmode: D2D1_ANTIALIAS_MODE) { @@ -11731,7 +11641,7 @@ impl ID2D1RenderTarget { pub unsafe fn GetTags(&self, tag1: Option<*mut u64>, tag2: Option<*mut u64>) { unsafe { (windows_core::Interface::vtable(self).GetTags)(windows_core::Interface::as_raw(self), tag1.unwrap_or(core::mem::zeroed()) as _, tag2.unwrap_or(core::mem::zeroed()) as _) } } - #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] + #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn PushLayer(&self, layerparameters: *const D2D1_LAYER_PARAMETERS, layer: P1) where P1: windows_core::Param, @@ -11826,25 +11736,22 @@ pub struct ID2D1RenderTarget_Vtbl { pub CreateSharedBitmap: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *mut core::ffi::c_void, *const D2D1_BITMAP_PROPERTIES, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Dxgi_Common")))] CreateSharedBitmap: usize, - #[cfg(feature = "Foundation_Numerics")] pub CreateBitmapBrush: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *const D2D1_BITMAP_BRUSH_PROPERTIES, *const D2D1_BRUSH_PROPERTIES, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - CreateBitmapBrush: usize, - #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] + #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub CreateSolidColorBrush: unsafe extern "system" fn(*mut core::ffi::c_void, *const Common::D2D1_COLOR_F, *const D2D1_BRUSH_PROPERTIES, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common")))] + #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] CreateSolidColorBrush: usize, #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub CreateGradientStopCollection: unsafe extern "system" fn(*mut core::ffi::c_void, *const Common::D2D1_GRADIENT_STOP, u32, D2D1_GAMMA, D2D1_EXTEND_MODE, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] CreateGradientStopCollection: usize, - #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] + #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub CreateLinearGradientBrush: unsafe extern "system" fn(*mut core::ffi::c_void, *const D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES, *const D2D1_BRUSH_PROPERTIES, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common")))] + #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] CreateLinearGradientBrush: usize, - #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] + #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub CreateRadialGradientBrush: unsafe extern "system" fn(*mut core::ffi::c_void, *const D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES, *const D2D1_BRUSH_PROPERTIES, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common")))] + #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] CreateRadialGradientBrush: usize, #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Dxgi_Common"))] pub CreateCompatibleRenderTarget: unsafe extern "system" fn(*mut core::ffi::c_void, *const Common::D2D_SIZE_F, *const Common::D2D_SIZE_U, *const Common::D2D1_PIXEL_FORMAT, D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -11906,14 +11813,8 @@ pub struct ID2D1RenderTarget_Vtbl { pub DrawGlyphRun: unsafe extern "system" fn(*mut core::ffi::c_void, Common::D2D_POINT_2F, *const super::DirectWrite::DWRITE_GLYPH_RUN, *mut core::ffi::c_void, super::DirectWrite::DWRITE_MEASURING_MODE), #[cfg(not(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite")))] DrawGlyphRun: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetTransform: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::super::Foundation::Numerics::Matrix3x2), - #[cfg(not(feature = "Foundation_Numerics"))] - SetTransform: usize, - #[cfg(feature = "Foundation_Numerics")] - pub GetTransform: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::Numerics::Matrix3x2), - #[cfg(not(feature = "Foundation_Numerics"))] - GetTransform: usize, + pub SetTransform: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_numerics::Matrix3x2), + pub GetTransform: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Matrix3x2), pub SetAntialiasMode: unsafe extern "system" fn(*mut core::ffi::c_void, D2D1_ANTIALIAS_MODE), pub GetAntialiasMode: unsafe extern "system" fn(*mut core::ffi::c_void) -> D2D1_ANTIALIAS_MODE, pub SetTextAntialiasMode: unsafe extern "system" fn(*mut core::ffi::c_void, D2D1_TEXT_ANTIALIAS_MODE), @@ -11928,9 +11829,9 @@ pub struct ID2D1RenderTarget_Vtbl { GetTextRenderingParams: usize, pub SetTags: unsafe extern "system" fn(*mut core::ffi::c_void, u64, u64), pub GetTags: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u64, *mut u64), - #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] + #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub PushLayer: unsafe extern "system" fn(*mut core::ffi::c_void, *const D2D1_LAYER_PARAMETERS, *mut core::ffi::c_void), - #[cfg(not(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common")))] + #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] PushLayer: usize, pub PopLayer: unsafe extern "system" fn(*mut core::ffi::c_void), pub Flush: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u64, *mut u64) -> windows_core::HRESULT, @@ -11969,7 +11870,7 @@ pub struct ID2D1RenderTarget_Vtbl { } unsafe impl Send for ID2D1RenderTarget {} unsafe impl Sync for ID2D1RenderTarget {} -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] pub trait ID2D1RenderTarget_Impl: ID2D1Resource_Impl { fn CreateBitmap(&self, size: &Common::D2D_SIZE_U, srcdata: *const core::ffi::c_void, pitch: u32, bitmapproperties: *const D2D1_BITMAP_PROPERTIES) -> windows_core::Result; fn CreateBitmapFromWicBitmap(&self, wicbitmapsource: windows_core::Ref<'_, super::Imaging::IWICBitmapSource>, bitmapproperties: *const D2D1_BITMAP_PROPERTIES) -> windows_core::Result; @@ -11997,8 +11898,8 @@ pub trait ID2D1RenderTarget_Impl: ID2D1Resource_Impl { fn DrawText(&self, string: &windows_core::PCWSTR, stringlength: u32, textformat: windows_core::Ref<'_, super::DirectWrite::IDWriteTextFormat>, layoutrect: *const Common::D2D_RECT_F, defaultfillbrush: windows_core::Ref<'_, ID2D1Brush>, options: D2D1_DRAW_TEXT_OPTIONS, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE); fn DrawTextLayout(&self, origin: &Common::D2D_POINT_2F, textlayout: windows_core::Ref<'_, super::DirectWrite::IDWriteTextLayout>, defaultfillbrush: windows_core::Ref<'_, ID2D1Brush>, options: D2D1_DRAW_TEXT_OPTIONS); fn DrawGlyphRun(&self, baselineorigin: &Common::D2D_POINT_2F, glyphrun: *const super::DirectWrite::DWRITE_GLYPH_RUN, foregroundbrush: windows_core::Ref<'_, ID2D1Brush>, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE); - fn SetTransform(&self, transform: *const super::super::super::Foundation::Numerics::Matrix3x2); - fn GetTransform(&self, transform: *mut super::super::super::Foundation::Numerics::Matrix3x2); + fn SetTransform(&self, transform: *const windows_numerics::Matrix3x2); + fn GetTransform(&self, transform: *mut windows_numerics::Matrix3x2); fn SetAntialiasMode(&self, antialiasmode: D2D1_ANTIALIAS_MODE); fn GetAntialiasMode(&self) -> D2D1_ANTIALIAS_MODE; fn SetTextAntialiasMode(&self, textantialiasmode: D2D1_TEXT_ANTIALIAS_MODE); @@ -12025,7 +11926,7 @@ pub trait ID2D1RenderTarget_Impl: ID2D1Resource_Impl { fn GetMaximumBitmapSize(&self) -> u32; fn IsSupported(&self, rendertargetproperties: *const D2D1_RENDER_TARGET_PROPERTIES) -> windows_core::BOOL; } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] impl ID2D1RenderTarget_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn CreateBitmap(this: *mut core::ffi::c_void, size: Common::D2D_SIZE_U, srcdata: *const core::ffi::c_void, pitch: u32, bitmapproperties: *const D2D1_BITMAP_PROPERTIES, bitmap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -12244,13 +12145,13 @@ impl ID2D1RenderTarget_Vtbl { ID2D1RenderTarget_Impl::DrawGlyphRun(this, core::mem::transmute(&baselineorigin), core::mem::transmute_copy(&glyphrun), core::mem::transmute_copy(&foregroundbrush), core::mem::transmute_copy(&measuringmode)) } } - unsafe extern "system" fn SetTransform(this: *mut core::ffi::c_void, transform: *const super::super::super::Foundation::Numerics::Matrix3x2) { + unsafe extern "system" fn SetTransform(this: *mut core::ffi::c_void, transform: *const windows_numerics::Matrix3x2) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RenderTarget_Impl::SetTransform(this, core::mem::transmute_copy(&transform)) } } - unsafe extern "system" fn GetTransform(this: *mut core::ffi::c_void, transform: *mut super::super::super::Foundation::Numerics::Matrix3x2) { + unsafe extern "system" fn GetTransform(this: *mut core::ffi::c_void, transform: *mut windows_numerics::Matrix3x2) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RenderTarget_Impl::GetTransform(this, core::mem::transmute_copy(&transform)) @@ -12467,7 +12368,7 @@ impl ID2D1RenderTarget_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] +#[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] impl windows_core::RuntimeName for ID2D1RenderTarget {} windows_core::imp::define_interface!(ID2D1Resource, ID2D1Resource_Vtbl, 0x2cd90691_12e2_11dc_9fed_001143a055f9); windows_core::imp::interface_hierarchy!(ID2D1Resource, windows_core::IUnknown); @@ -12561,11 +12462,11 @@ pub struct ID2D1RoundedRectangleGeometry_Vtbl { } unsafe impl Send for ID2D1RoundedRectangleGeometry {} unsafe impl Sync for ID2D1RoundedRectangleGeometry {} -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub trait ID2D1RoundedRectangleGeometry_Impl: ID2D1Geometry_Impl { fn GetRoundedRect(&self, roundedrect: *mut D2D1_ROUNDED_RECT); } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl ID2D1RoundedRectangleGeometry_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn GetRoundedRect(this: *mut core::ffi::c_void, roundedrect: *mut D2D1_ROUNDED_RECT) { @@ -12580,7 +12481,7 @@ impl ID2D1RoundedRectangleGeometry_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl windows_core::RuntimeName for ID2D1RoundedRectangleGeometry {} windows_core::imp::define_interface!(ID2D1SolidColorBrush, ID2D1SolidColorBrush_Vtbl, 0x2cd906a9_12e2_11dc_9fed_001143a055f9); impl core::ops::Deref for ID2D1SolidColorBrush { @@ -12618,12 +12519,12 @@ pub struct ID2D1SolidColorBrush_Vtbl { } unsafe impl Send for ID2D1SolidColorBrush {} unsafe impl Sync for ID2D1SolidColorBrush {} -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub trait ID2D1SolidColorBrush_Impl: ID2D1Brush_Impl { fn SetColor(&self, color: *const Common::D2D1_COLOR_F); fn GetColor(&self) -> Common::D2D1_COLOR_F; } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl ID2D1SolidColorBrush_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn SetColor(this: *mut core::ffi::c_void, color: *const Common::D2D1_COLOR_F) { @@ -12644,7 +12545,7 @@ impl ID2D1SolidColorBrush_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl windows_core::RuntimeName for ID2D1SolidColorBrush {} windows_core::imp::define_interface!(ID2D1SourceTransform, ID2D1SourceTransform_Vtbl, 0xdb1800dd_0c34_4cf9_be90_31cc0a5653e1); impl core::ops::Deref for ID2D1SourceTransform { @@ -12717,16 +12618,16 @@ impl core::ops::Deref for ID2D1SpriteBatch { } windows_core::imp::interface_hierarchy!(ID2D1SpriteBatch, windows_core::IUnknown, ID2D1Resource); impl ID2D1SpriteBatch { - #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] - pub unsafe fn AddSprites(&self, spritecount: u32, destinationrectangles: *const Common::D2D_RECT_F, sourcerectangles: Option<*const Common::D2D_RECT_U>, colors: Option<*const Common::D2D1_COLOR_F>, transforms: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, destinationrectanglesstride: u32, sourcerectanglesstride: u32, colorsstride: u32, transformsstride: u32) -> windows_core::Result<()> { + #[cfg(feature = "Win32_Graphics_Direct2D_Common")] + pub unsafe fn AddSprites(&self, spritecount: u32, destinationrectangles: *const Common::D2D_RECT_F, sourcerectangles: Option<*const Common::D2D_RECT_U>, colors: Option<*const Common::D2D1_COLOR_F>, transforms: Option<*const windows_numerics::Matrix3x2>, destinationrectanglesstride: u32, sourcerectanglesstride: u32, colorsstride: u32, transformsstride: u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).AddSprites)(windows_core::Interface::as_raw(self), spritecount, destinationrectangles, sourcerectangles.unwrap_or(core::mem::zeroed()) as _, colors.unwrap_or(core::mem::zeroed()) as _, transforms.unwrap_or(core::mem::zeroed()) as _, destinationrectanglesstride, sourcerectanglesstride, colorsstride, transformsstride).ok() } } - #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] - pub unsafe fn SetSprites(&self, startindex: u32, spritecount: u32, destinationrectangles: Option<*const Common::D2D_RECT_F>, sourcerectangles: Option<*const Common::D2D_RECT_U>, colors: Option<*const Common::D2D1_COLOR_F>, transforms: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, destinationrectanglesstride: u32, sourcerectanglesstride: u32, colorsstride: u32, transformsstride: u32) -> windows_core::Result<()> { + #[cfg(feature = "Win32_Graphics_Direct2D_Common")] + pub unsafe fn SetSprites(&self, startindex: u32, spritecount: u32, destinationrectangles: Option<*const Common::D2D_RECT_F>, sourcerectangles: Option<*const Common::D2D_RECT_U>, colors: Option<*const Common::D2D1_COLOR_F>, transforms: Option<*const windows_numerics::Matrix3x2>, destinationrectanglesstride: u32, sourcerectanglesstride: u32, colorsstride: u32, transformsstride: u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetSprites)(windows_core::Interface::as_raw(self), startindex, spritecount, destinationrectangles.unwrap_or(core::mem::zeroed()) as _, sourcerectangles.unwrap_or(core::mem::zeroed()) as _, colors.unwrap_or(core::mem::zeroed()) as _, transforms.unwrap_or(core::mem::zeroed()) as _, destinationrectanglesstride, sourcerectanglesstride, colorsstride, transformsstride).ok() } } - #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] - pub unsafe fn GetSprites(&self, startindex: u32, spritecount: u32, destinationrectangles: Option<*mut Common::D2D_RECT_F>, sourcerectangles: Option<*mut Common::D2D_RECT_U>, colors: Option<*mut Common::D2D1_COLOR_F>, transforms: Option<*mut super::super::super::Foundation::Numerics::Matrix3x2>) -> windows_core::Result<()> { + #[cfg(feature = "Win32_Graphics_Direct2D_Common")] + pub unsafe fn GetSprites(&self, startindex: u32, spritecount: u32, destinationrectangles: Option<*mut Common::D2D_RECT_F>, sourcerectangles: Option<*mut Common::D2D_RECT_U>, colors: Option<*mut Common::D2D1_COLOR_F>, transforms: Option<*mut windows_numerics::Matrix3x2>) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetSprites)(windows_core::Interface::as_raw(self), startindex, spritecount, destinationrectangles.unwrap_or(core::mem::zeroed()) as _, sourcerectangles.unwrap_or(core::mem::zeroed()) as _, colors.unwrap_or(core::mem::zeroed()) as _, transforms.unwrap_or(core::mem::zeroed()) as _).ok() } } pub unsafe fn GetSpriteCount(&self) -> u32 { @@ -12739,47 +12640,47 @@ impl ID2D1SpriteBatch { #[repr(C)] pub struct ID2D1SpriteBatch_Vtbl { pub base__: ID2D1Resource_Vtbl, - #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] - pub AddSprites: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const Common::D2D_RECT_F, *const Common::D2D_RECT_U, *const Common::D2D1_COLOR_F, *const super::super::super::Foundation::Numerics::Matrix3x2, u32, u32, u32, u32) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common")))] + #[cfg(feature = "Win32_Graphics_Direct2D_Common")] + pub AddSprites: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const Common::D2D_RECT_F, *const Common::D2D_RECT_U, *const Common::D2D1_COLOR_F, *const windows_numerics::Matrix3x2, u32, u32, u32, u32) -> windows_core::HRESULT, + #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] AddSprites: usize, - #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] - pub SetSprites: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *const Common::D2D_RECT_F, *const Common::D2D_RECT_U, *const Common::D2D1_COLOR_F, *const super::super::super::Foundation::Numerics::Matrix3x2, u32, u32, u32, u32) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common")))] + #[cfg(feature = "Win32_Graphics_Direct2D_Common")] + pub SetSprites: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *const Common::D2D_RECT_F, *const Common::D2D_RECT_U, *const Common::D2D1_COLOR_F, *const windows_numerics::Matrix3x2, u32, u32, u32, u32) -> windows_core::HRESULT, + #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] SetSprites: usize, - #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] - pub GetSprites: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *mut Common::D2D_RECT_F, *mut Common::D2D_RECT_U, *mut Common::D2D1_COLOR_F, *mut super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common")))] + #[cfg(feature = "Win32_Graphics_Direct2D_Common")] + pub GetSprites: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *mut Common::D2D_RECT_F, *mut Common::D2D_RECT_U, *mut Common::D2D1_COLOR_F, *mut windows_numerics::Matrix3x2) -> windows_core::HRESULT, + #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] GetSprites: usize, pub GetSpriteCount: unsafe extern "system" fn(*mut core::ffi::c_void) -> u32, pub Clear: unsafe extern "system" fn(*mut core::ffi::c_void), } unsafe impl Send for ID2D1SpriteBatch {} unsafe impl Sync for ID2D1SpriteBatch {} -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub trait ID2D1SpriteBatch_Impl: ID2D1Resource_Impl { - fn AddSprites(&self, spritecount: u32, destinationrectangles: *const Common::D2D_RECT_F, sourcerectangles: *const Common::D2D_RECT_U, colors: *const Common::D2D1_COLOR_F, transforms: *const super::super::super::Foundation::Numerics::Matrix3x2, destinationrectanglesstride: u32, sourcerectanglesstride: u32, colorsstride: u32, transformsstride: u32) -> windows_core::Result<()>; - fn SetSprites(&self, startindex: u32, spritecount: u32, destinationrectangles: *const Common::D2D_RECT_F, sourcerectangles: *const Common::D2D_RECT_U, colors: *const Common::D2D1_COLOR_F, transforms: *const super::super::super::Foundation::Numerics::Matrix3x2, destinationrectanglesstride: u32, sourcerectanglesstride: u32, colorsstride: u32, transformsstride: u32) -> windows_core::Result<()>; - fn GetSprites(&self, startindex: u32, spritecount: u32, destinationrectangles: *mut Common::D2D_RECT_F, sourcerectangles: *mut Common::D2D_RECT_U, colors: *mut Common::D2D1_COLOR_F, transforms: *mut super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()>; + fn AddSprites(&self, spritecount: u32, destinationrectangles: *const Common::D2D_RECT_F, sourcerectangles: *const Common::D2D_RECT_U, colors: *const Common::D2D1_COLOR_F, transforms: *const windows_numerics::Matrix3x2, destinationrectanglesstride: u32, sourcerectanglesstride: u32, colorsstride: u32, transformsstride: u32) -> windows_core::Result<()>; + fn SetSprites(&self, startindex: u32, spritecount: u32, destinationrectangles: *const Common::D2D_RECT_F, sourcerectangles: *const Common::D2D_RECT_U, colors: *const Common::D2D1_COLOR_F, transforms: *const windows_numerics::Matrix3x2, destinationrectanglesstride: u32, sourcerectanglesstride: u32, colorsstride: u32, transformsstride: u32) -> windows_core::Result<()>; + fn GetSprites(&self, startindex: u32, spritecount: u32, destinationrectangles: *mut Common::D2D_RECT_F, sourcerectangles: *mut Common::D2D_RECT_U, colors: *mut Common::D2D1_COLOR_F, transforms: *mut windows_numerics::Matrix3x2) -> windows_core::Result<()>; fn GetSpriteCount(&self) -> u32; fn Clear(&self); } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl ID2D1SpriteBatch_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn AddSprites(this: *mut core::ffi::c_void, spritecount: u32, destinationrectangles: *const Common::D2D_RECT_F, sourcerectangles: *const Common::D2D_RECT_U, colors: *const Common::D2D1_COLOR_F, transforms: *const super::super::super::Foundation::Numerics::Matrix3x2, destinationrectanglesstride: u32, sourcerectanglesstride: u32, colorsstride: u32, transformsstride: u32) -> windows_core::HRESULT { + unsafe extern "system" fn AddSprites(this: *mut core::ffi::c_void, spritecount: u32, destinationrectangles: *const Common::D2D_RECT_F, sourcerectangles: *const Common::D2D_RECT_U, colors: *const Common::D2D1_COLOR_F, transforms: *const windows_numerics::Matrix3x2, destinationrectanglesstride: u32, sourcerectanglesstride: u32, colorsstride: u32, transformsstride: u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SpriteBatch_Impl::AddSprites(this, core::mem::transmute_copy(&spritecount), core::mem::transmute_copy(&destinationrectangles), core::mem::transmute_copy(&sourcerectangles), core::mem::transmute_copy(&colors), core::mem::transmute_copy(&transforms), core::mem::transmute_copy(&destinationrectanglesstride), core::mem::transmute_copy(&sourcerectanglesstride), core::mem::transmute_copy(&colorsstride), core::mem::transmute_copy(&transformsstride)).into() } } - unsafe extern "system" fn SetSprites(this: *mut core::ffi::c_void, startindex: u32, spritecount: u32, destinationrectangles: *const Common::D2D_RECT_F, sourcerectangles: *const Common::D2D_RECT_U, colors: *const Common::D2D1_COLOR_F, transforms: *const super::super::super::Foundation::Numerics::Matrix3x2, destinationrectanglesstride: u32, sourcerectanglesstride: u32, colorsstride: u32, transformsstride: u32) -> windows_core::HRESULT { + unsafe extern "system" fn SetSprites(this: *mut core::ffi::c_void, startindex: u32, spritecount: u32, destinationrectangles: *const Common::D2D_RECT_F, sourcerectangles: *const Common::D2D_RECT_U, colors: *const Common::D2D1_COLOR_F, transforms: *const windows_numerics::Matrix3x2, destinationrectanglesstride: u32, sourcerectanglesstride: u32, colorsstride: u32, transformsstride: u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SpriteBatch_Impl::SetSprites(this, core::mem::transmute_copy(&startindex), core::mem::transmute_copy(&spritecount), core::mem::transmute_copy(&destinationrectangles), core::mem::transmute_copy(&sourcerectangles), core::mem::transmute_copy(&colors), core::mem::transmute_copy(&transforms), core::mem::transmute_copy(&destinationrectanglesstride), core::mem::transmute_copy(&sourcerectanglesstride), core::mem::transmute_copy(&colorsstride), core::mem::transmute_copy(&transformsstride)).into() } } - unsafe extern "system" fn GetSprites(this: *mut core::ffi::c_void, startindex: u32, spritecount: u32, destinationrectangles: *mut Common::D2D_RECT_F, sourcerectangles: *mut Common::D2D_RECT_U, colors: *mut Common::D2D1_COLOR_F, transforms: *mut super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::HRESULT { + unsafe extern "system" fn GetSprites(this: *mut core::ffi::c_void, startindex: u32, spritecount: u32, destinationrectangles: *mut Common::D2D_RECT_F, sourcerectangles: *mut Common::D2D_RECT_U, colors: *mut Common::D2D1_COLOR_F, transforms: *mut windows_numerics::Matrix3x2) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SpriteBatch_Impl::GetSprites(this, core::mem::transmute_copy(&startindex), core::mem::transmute_copy(&spritecount), core::mem::transmute_copy(&destinationrectangles), core::mem::transmute_copy(&sourcerectangles), core::mem::transmute_copy(&colors), core::mem::transmute_copy(&transforms)).into() @@ -12810,7 +12711,7 @@ impl ID2D1SpriteBatch_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl windows_core::RuntimeName for ID2D1SpriteBatch {} windows_core::imp::define_interface!(ID2D1StrokeStyle, ID2D1StrokeStyle_Vtbl, 0x2cd9069d_12e2_11dc_9fed_001143a055f9); impl core::ops::Deref for ID2D1StrokeStyle { @@ -14704,8 +14605,7 @@ impl ID2D1TransformedGeometry { windows_core::Type::from_abi(result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub unsafe fn GetTransform(&self, transform: *mut super::super::super::Foundation::Numerics::Matrix3x2) { + pub unsafe fn GetTransform(&self, transform: *mut windows_numerics::Matrix3x2) { unsafe { (windows_core::Interface::vtable(self).GetTransform)(windows_core::Interface::as_raw(self), transform as _) } } } @@ -14713,19 +14613,16 @@ impl ID2D1TransformedGeometry { pub struct ID2D1TransformedGeometry_Vtbl { pub base__: ID2D1Geometry_Vtbl, pub GetSourceGeometry: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void), - #[cfg(feature = "Foundation_Numerics")] - pub GetTransform: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::Numerics::Matrix3x2), - #[cfg(not(feature = "Foundation_Numerics"))] - GetTransform: usize, + pub GetTransform: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_numerics::Matrix3x2), } unsafe impl Send for ID2D1TransformedGeometry {} unsafe impl Sync for ID2D1TransformedGeometry {} -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub trait ID2D1TransformedGeometry_Impl: ID2D1Geometry_Impl { fn GetSourceGeometry(&self, sourcegeometry: windows_core::OutRef<'_, ID2D1Geometry>); - fn GetTransform(&self, transform: *mut super::super::super::Foundation::Numerics::Matrix3x2); + fn GetTransform(&self, transform: *mut windows_numerics::Matrix3x2); } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl ID2D1TransformedGeometry_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn GetSourceGeometry(this: *mut core::ffi::c_void, sourcegeometry: *mut *mut core::ffi::c_void) { @@ -14734,7 +14631,7 @@ impl ID2D1TransformedGeometry_Vtbl { ID2D1TransformedGeometry_Impl::GetSourceGeometry(this, core::mem::transmute_copy(&sourcegeometry)) } } - unsafe extern "system" fn GetTransform(this: *mut core::ffi::c_void, transform: *mut super::super::super::Foundation::Numerics::Matrix3x2) { + unsafe extern "system" fn GetTransform(this: *mut core::ffi::c_void, transform: *mut windows_numerics::Matrix3x2) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1TransformedGeometry_Impl::GetTransform(this, core::mem::transmute_copy(&transform)) @@ -14750,7 +14647,7 @@ impl ID2D1TransformedGeometry_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl windows_core::RuntimeName for ID2D1TransformedGeometry {} windows_core::imp::define_interface!(ID2D1TransformedImageSource, ID2D1TransformedImageSource_Vtbl, 0x7f1f79e5_2796_416c_8f55_700f911445e5); impl core::ops::Deref for ID2D1TransformedImageSource { diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D9/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D9/mod.rs index 98ab0ef959..b3b7f510ef 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D9/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D9/mod.rs @@ -4524,16 +4524,13 @@ impl IDirect3DDevice9 { pub unsafe fn Clear(&self, count: u32, prects: *const D3DRECT, flags: u32, color: u32, z: f32, stencil: u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self), count, prects, flags, color, z, stencil).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub unsafe fn SetTransform(&self, state: D3DTRANSFORMSTATETYPE, pmatrix: *const super::super::super::Foundation::Numerics::Matrix4x4) -> windows_core::Result<()> { + pub unsafe fn SetTransform(&self, state: D3DTRANSFORMSTATETYPE, pmatrix: *const windows_numerics::Matrix4x4) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetTransform)(windows_core::Interface::as_raw(self), state, pmatrix).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub unsafe fn GetTransform(&self, state: D3DTRANSFORMSTATETYPE, pmatrix: *mut super::super::super::Foundation::Numerics::Matrix4x4) -> windows_core::Result<()> { + pub unsafe fn GetTransform(&self, state: D3DTRANSFORMSTATETYPE, pmatrix: *mut windows_numerics::Matrix4x4) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetTransform)(windows_core::Interface::as_raw(self), state, pmatrix as _).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub unsafe fn MultiplyTransform(&self, param0: D3DTRANSFORMSTATETYPE, param1: *const super::super::super::Foundation::Numerics::Matrix4x4) -> windows_core::Result<()> { + pub unsafe fn MultiplyTransform(&self, param0: D3DTRANSFORMSTATETYPE, param1: *const windows_numerics::Matrix4x4) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).MultiplyTransform)(windows_core::Interface::as_raw(self), param0, param1).ok() } } pub unsafe fn SetViewport(&self, pviewport: *const D3DVIEWPORT9) -> windows_core::Result<()> { @@ -4859,18 +4856,9 @@ pub struct IDirect3DDevice9_Vtbl { pub BeginScene: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub EndScene: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub Clear: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const D3DRECT, u32, u32, f32, u32) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub SetTransform: unsafe extern "system" fn(*mut core::ffi::c_void, D3DTRANSFORMSTATETYPE, *const super::super::super::Foundation::Numerics::Matrix4x4) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetTransform: usize, - #[cfg(feature = "Foundation_Numerics")] - pub GetTransform: unsafe extern "system" fn(*mut core::ffi::c_void, D3DTRANSFORMSTATETYPE, *mut super::super::super::Foundation::Numerics::Matrix4x4) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - GetTransform: usize, - #[cfg(feature = "Foundation_Numerics")] - pub MultiplyTransform: unsafe extern "system" fn(*mut core::ffi::c_void, D3DTRANSFORMSTATETYPE, *const super::super::super::Foundation::Numerics::Matrix4x4) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - MultiplyTransform: usize, + pub SetTransform: unsafe extern "system" fn(*mut core::ffi::c_void, D3DTRANSFORMSTATETYPE, *const windows_numerics::Matrix4x4) -> windows_core::HRESULT, + pub GetTransform: unsafe extern "system" fn(*mut core::ffi::c_void, D3DTRANSFORMSTATETYPE, *mut windows_numerics::Matrix4x4) -> windows_core::HRESULT, + pub MultiplyTransform: unsafe extern "system" fn(*mut core::ffi::c_void, D3DTRANSFORMSTATETYPE, *const windows_numerics::Matrix4x4) -> windows_core::HRESULT, pub SetViewport: unsafe extern "system" fn(*mut core::ffi::c_void, *const D3DVIEWPORT9) -> windows_core::HRESULT, pub GetViewport: unsafe extern "system" fn(*mut core::ffi::c_void, *mut D3DVIEWPORT9) -> windows_core::HRESULT, pub SetMaterial: unsafe extern "system" fn(*mut core::ffi::c_void, *const D3DMATERIAL9) -> windows_core::HRESULT, @@ -4956,7 +4944,7 @@ pub struct IDirect3DDevice9_Vtbl { pub DeletePatch: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub CreateQuery: unsafe extern "system" fn(*mut core::ffi::c_void, D3DQUERYTYPE, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Gdi"))] +#[cfg(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Gdi"))] pub trait IDirect3DDevice9_Impl: windows_core::IUnknownImpl { fn TestCooperativeLevel(&self) -> windows_core::Result<()>; fn GetAvailableTextureMem(&self) -> u32; @@ -4999,9 +4987,9 @@ pub trait IDirect3DDevice9_Impl: windows_core::IUnknownImpl { fn BeginScene(&self) -> windows_core::Result<()>; fn EndScene(&self) -> windows_core::Result<()>; fn Clear(&self, count: u32, prects: *const D3DRECT, flags: u32, color: u32, z: f32, stencil: u32) -> windows_core::Result<()>; - fn SetTransform(&self, state: D3DTRANSFORMSTATETYPE, pmatrix: *const super::super::super::Foundation::Numerics::Matrix4x4) -> windows_core::Result<()>; - fn GetTransform(&self, state: D3DTRANSFORMSTATETYPE, pmatrix: *mut super::super::super::Foundation::Numerics::Matrix4x4) -> windows_core::Result<()>; - fn MultiplyTransform(&self, param0: D3DTRANSFORMSTATETYPE, param1: *const super::super::super::Foundation::Numerics::Matrix4x4) -> windows_core::Result<()>; + fn SetTransform(&self, state: D3DTRANSFORMSTATETYPE, pmatrix: *const windows_numerics::Matrix4x4) -> windows_core::Result<()>; + fn GetTransform(&self, state: D3DTRANSFORMSTATETYPE, pmatrix: *mut windows_numerics::Matrix4x4) -> windows_core::Result<()>; + fn MultiplyTransform(&self, param0: D3DTRANSFORMSTATETYPE, param1: *const windows_numerics::Matrix4x4) -> windows_core::Result<()>; fn SetViewport(&self, pviewport: *const D3DVIEWPORT9) -> windows_core::Result<()>; fn GetViewport(&self, pviewport: *mut D3DVIEWPORT9) -> windows_core::Result<()>; fn SetMaterial(&self, pmaterial: *const D3DMATERIAL9) -> windows_core::Result<()>; @@ -5075,7 +5063,7 @@ pub trait IDirect3DDevice9_Impl: windows_core::IUnknownImpl { fn DeletePatch(&self, handle: u32) -> windows_core::Result<()>; fn CreateQuery(&self, r#type: D3DQUERYTYPE) -> windows_core::Result; } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Gdi"))] +#[cfg(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Gdi"))] impl IDirect3DDevice9_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn TestCooperativeLevel(this: *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -5354,19 +5342,19 @@ impl IDirect3DDevice9_Vtbl { IDirect3DDevice9_Impl::Clear(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&prects), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&color), core::mem::transmute_copy(&z), core::mem::transmute_copy(&stencil)).into() } } - unsafe extern "system" fn SetTransform(this: *mut core::ffi::c_void, state: D3DTRANSFORMSTATETYPE, pmatrix: *const super::super::super::Foundation::Numerics::Matrix4x4) -> windows_core::HRESULT { + unsafe extern "system" fn SetTransform(this: *mut core::ffi::c_void, state: D3DTRANSFORMSTATETYPE, pmatrix: *const windows_numerics::Matrix4x4) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::SetTransform(this, core::mem::transmute_copy(&state), core::mem::transmute_copy(&pmatrix)).into() } } - unsafe extern "system" fn GetTransform(this: *mut core::ffi::c_void, state: D3DTRANSFORMSTATETYPE, pmatrix: *mut super::super::super::Foundation::Numerics::Matrix4x4) -> windows_core::HRESULT { + unsafe extern "system" fn GetTransform(this: *mut core::ffi::c_void, state: D3DTRANSFORMSTATETYPE, pmatrix: *mut windows_numerics::Matrix4x4) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::GetTransform(this, core::mem::transmute_copy(&state), core::mem::transmute_copy(&pmatrix)).into() } } - unsafe extern "system" fn MultiplyTransform(this: *mut core::ffi::c_void, param0: D3DTRANSFORMSTATETYPE, param1: *const super::super::super::Foundation::Numerics::Matrix4x4) -> windows_core::HRESULT { + unsafe extern "system" fn MultiplyTransform(this: *mut core::ffi::c_void, param0: D3DTRANSFORMSTATETYPE, param1: *const windows_numerics::Matrix4x4) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::MultiplyTransform(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() @@ -5994,7 +5982,7 @@ impl IDirect3DDevice9_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Gdi"))] +#[cfg(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Gdi"))] impl windows_core::RuntimeName for IDirect3DDevice9 {} windows_core::imp::define_interface!(IDirect3DDevice9Ex, IDirect3DDevice9Ex_Vtbl, 0xb18b10ce_2649_405a_870f_95f777d4313a); impl core::ops::Deref for IDirect3DDevice9Ex { @@ -6080,7 +6068,7 @@ pub struct IDirect3DDevice9Ex_Vtbl { pub ResetEx: unsafe extern "system" fn(*mut core::ffi::c_void, *mut D3DPRESENT_PARAMETERS, *mut D3DDISPLAYMODEEX) -> windows_core::HRESULT, pub GetDisplayModeEx: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut D3DDISPLAYMODEEX, *mut D3DDISPLAYROTATION) -> windows_core::HRESULT, } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Gdi"))] +#[cfg(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Gdi"))] pub trait IDirect3DDevice9Ex_Impl: IDirect3DDevice9_Impl { fn SetConvolutionMonoKernel(&self, width: u32, height: u32, rows: *mut f32, columns: *mut f32) -> windows_core::Result<()>; fn ComposeRects(&self, psrc: windows_core::Ref<'_, IDirect3DSurface9>, pdst: windows_core::Ref<'_, IDirect3DSurface9>, psrcrectdescs: windows_core::Ref<'_, IDirect3DVertexBuffer9>, numrects: u32, pdstrectdescs: windows_core::Ref<'_, IDirect3DVertexBuffer9>, operation: D3DCOMPOSERECTSOP, xoffset: i32, yoffset: i32) -> windows_core::Result<()>; @@ -6098,7 +6086,7 @@ pub trait IDirect3DDevice9Ex_Impl: IDirect3DDevice9_Impl { fn ResetEx(&self, ppresentationparameters: *mut D3DPRESENT_PARAMETERS, pfullscreendisplaymode: *mut D3DDISPLAYMODEEX) -> windows_core::Result<()>; fn GetDisplayModeEx(&self, iswapchain: u32, pmode: *mut D3DDISPLAYMODEEX, protation: *mut D3DDISPLAYROTATION) -> windows_core::Result<()>; } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Gdi"))] +#[cfg(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Gdi"))] impl IDirect3DDevice9Ex_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn SetConvolutionMonoKernel(this: *mut core::ffi::c_void, width: u32, height: u32, rows: *mut f32, columns: *mut f32) -> windows_core::HRESULT { @@ -6214,7 +6202,7 @@ impl IDirect3DDevice9Ex_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Gdi"))] +#[cfg(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Gdi"))] impl windows_core::RuntimeName for IDirect3DDevice9Ex {} windows_core::imp::define_interface!(IDirect3DIndexBuffer9, IDirect3DIndexBuffer9_Vtbl, 0x7c9dd65e_d3f7_4529_acee_785830acde35); impl core::ops::Deref for IDirect3DIndexBuffer9 { diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/DirectComposition/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/DirectComposition/mod.rs index 3da490853d..ed91b26e19 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/DirectComposition/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/DirectComposition/mod.rs @@ -231,8 +231,7 @@ impl IDCompositionAffineTransform2DEffect { pub unsafe fn SetBorderMode(&self, bordermode: super::Direct2D::Common::D2D1_BORDER_MODE) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetBorderMode)(windows_core::Interface::as_raw(self), bordermode).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub unsafe fn SetTransformMatrix(&self, transformmatrix: *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { + pub unsafe fn SetTransformMatrix(&self, transformmatrix: *const windows_numerics::Matrix3x2) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetTransformMatrix)(windows_core::Interface::as_raw(self), transformmatrix).ok() } } pub unsafe fn SetTransformMatrixElement(&self, row: i32, column: i32, animation: P2) -> windows_core::Result<()> @@ -265,26 +264,23 @@ pub struct IDCompositionAffineTransform2DEffect_Vtbl { pub SetBorderMode: unsafe extern "system" fn(*mut core::ffi::c_void, super::Direct2D::Common::D2D1_BORDER_MODE) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] SetBorderMode: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetTransformMatrix: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetTransformMatrix: usize, + pub SetTransformMatrix: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_numerics::Matrix3x2) -> windows_core::HRESULT, pub SetTransformMatrixElement: unsafe extern "system" fn(*mut core::ffi::c_void, i32, i32, *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetTransformMatrixElement2: unsafe extern "system" fn(*mut core::ffi::c_void, i32, i32, f32) -> windows_core::HRESULT, pub SetSharpness: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetSharpness2: unsafe extern "system" fn(*mut core::ffi::c_void, f32) -> windows_core::HRESULT, } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub trait IDCompositionAffineTransform2DEffect_Impl: IDCompositionFilterEffect_Impl { fn SetInterpolationMode(&self, interpolationmode: super::Direct2D::Common::D2D1_2DAFFINETRANSFORM_INTERPOLATION_MODE) -> windows_core::Result<()>; fn SetBorderMode(&self, bordermode: super::Direct2D::Common::D2D1_BORDER_MODE) -> windows_core::Result<()>; - fn SetTransformMatrix(&self, transformmatrix: *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()>; + fn SetTransformMatrix(&self, transformmatrix: *const windows_numerics::Matrix3x2) -> windows_core::Result<()>; fn SetTransformMatrixElement(&self, row: i32, column: i32, animation: windows_core::Ref<'_, IDCompositionAnimation>) -> windows_core::Result<()>; fn SetTransformMatrixElement2(&self, row: i32, column: i32, value: f32) -> windows_core::Result<()>; fn SetSharpness(&self, animation: windows_core::Ref<'_, IDCompositionAnimation>) -> windows_core::Result<()>; fn SetSharpness2(&self, sharpness: f32) -> windows_core::Result<()>; } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl IDCompositionAffineTransform2DEffect_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn SetInterpolationMode(this: *mut core::ffi::c_void, interpolationmode: super::Direct2D::Common::D2D1_2DAFFINETRANSFORM_INTERPOLATION_MODE) -> windows_core::HRESULT { @@ -299,7 +295,7 @@ impl IDCompositionAffineTransform2DEffect_Vtbl { IDCompositionAffineTransform2DEffect_Impl::SetBorderMode(this, core::mem::transmute_copy(&bordermode)).into() } } - unsafe extern "system" fn SetTransformMatrix(this: *mut core::ffi::c_void, transformmatrix: *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::HRESULT { + unsafe extern "system" fn SetTransformMatrix(this: *mut core::ffi::c_void, transformmatrix: *const windows_numerics::Matrix3x2) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionAffineTransform2DEffect_Impl::SetTransformMatrix(this, core::mem::transmute_copy(&transformmatrix)).into() @@ -344,7 +340,7 @@ impl IDCompositionAffineTransform2DEffect_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl windows_core::RuntimeName for IDCompositionAffineTransform2DEffect {} windows_core::imp::define_interface!(IDCompositionAnimation, IDCompositionAnimation_Vtbl, 0xcbfd91d9_51b2_45e4_b3de_d19ccfb863c5); windows_core::imp::interface_hierarchy!(IDCompositionAnimation, windows_core::IUnknown); @@ -3204,8 +3200,7 @@ impl core::ops::Deref for IDCompositionMatrixTransform { } windows_core::imp::interface_hierarchy!(IDCompositionMatrixTransform, windows_core::IUnknown, IDCompositionEffect, IDCompositionTransform3D, IDCompositionTransform); impl IDCompositionMatrixTransform { - #[cfg(feature = "Foundation_Numerics")] - pub unsafe fn SetMatrix(&self, matrix: *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { + pub unsafe fn SetMatrix(&self, matrix: *const windows_numerics::Matrix3x2) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetMatrix)(windows_core::Interface::as_raw(self), matrix).ok() } } pub unsafe fn SetMatrixElement(&self, row: i32, column: i32, animation: P2) -> windows_core::Result<()> @@ -3221,23 +3216,18 @@ impl IDCompositionMatrixTransform { #[repr(C)] pub struct IDCompositionMatrixTransform_Vtbl { pub base__: IDCompositionTransform_Vtbl, - #[cfg(feature = "Foundation_Numerics")] - pub SetMatrix: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetMatrix: usize, + pub SetMatrix: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_numerics::Matrix3x2) -> windows_core::HRESULT, pub SetMatrixElement: unsafe extern "system" fn(*mut core::ffi::c_void, i32, i32, *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetMatrixElement2: unsafe extern "system" fn(*mut core::ffi::c_void, i32, i32, f32) -> windows_core::HRESULT, } -#[cfg(feature = "Foundation_Numerics")] pub trait IDCompositionMatrixTransform_Impl: IDCompositionTransform_Impl { - fn SetMatrix(&self, matrix: *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()>; + fn SetMatrix(&self, matrix: *const windows_numerics::Matrix3x2) -> windows_core::Result<()>; fn SetMatrixElement(&self, row: i32, column: i32, animation: windows_core::Ref<'_, IDCompositionAnimation>) -> windows_core::Result<()>; fn SetMatrixElement2(&self, row: i32, column: i32, value: f32) -> windows_core::Result<()>; } -#[cfg(feature = "Foundation_Numerics")] impl IDCompositionMatrixTransform_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn SetMatrix(this: *mut core::ffi::c_void, matrix: *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::HRESULT { + unsafe extern "system" fn SetMatrix(this: *mut core::ffi::c_void, matrix: *const windows_numerics::Matrix3x2) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionMatrixTransform_Impl::SetMatrix(this, core::mem::transmute_copy(&matrix)).into() @@ -3266,7 +3256,6 @@ impl IDCompositionMatrixTransform_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(feature = "Foundation_Numerics")] impl windows_core::RuntimeName for IDCompositionMatrixTransform {} windows_core::imp::define_interface!(IDCompositionMatrixTransform3D, IDCompositionMatrixTransform3D_Vtbl, 0x4b3363f0_643b_41b7_b6e0_ccf22d34467c); impl core::ops::Deref for IDCompositionMatrixTransform3D { @@ -3277,8 +3266,7 @@ impl core::ops::Deref for IDCompositionMatrixTransform3D { } windows_core::imp::interface_hierarchy!(IDCompositionMatrixTransform3D, windows_core::IUnknown, IDCompositionEffect, IDCompositionTransform3D); impl IDCompositionMatrixTransform3D { - #[cfg(feature = "Foundation_Numerics")] - pub unsafe fn SetMatrix(&self, matrix: *const super::super::super::Foundation::Numerics::Matrix4x4) -> windows_core::Result<()> { + pub unsafe fn SetMatrix(&self, matrix: *const windows_numerics::Matrix4x4) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetMatrix)(windows_core::Interface::as_raw(self), matrix).ok() } } pub unsafe fn SetMatrixElement(&self, row: i32, column: i32, animation: P2) -> windows_core::Result<()> @@ -3294,23 +3282,18 @@ impl IDCompositionMatrixTransform3D { #[repr(C)] pub struct IDCompositionMatrixTransform3D_Vtbl { pub base__: IDCompositionTransform3D_Vtbl, - #[cfg(feature = "Foundation_Numerics")] - pub SetMatrix: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::super::Foundation::Numerics::Matrix4x4) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetMatrix: usize, + pub SetMatrix: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_numerics::Matrix4x4) -> windows_core::HRESULT, pub SetMatrixElement: unsafe extern "system" fn(*mut core::ffi::c_void, i32, i32, *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetMatrixElement2: unsafe extern "system" fn(*mut core::ffi::c_void, i32, i32, f32) -> windows_core::HRESULT, } -#[cfg(feature = "Foundation_Numerics")] pub trait IDCompositionMatrixTransform3D_Impl: IDCompositionTransform3D_Impl { - fn SetMatrix(&self, matrix: *const super::super::super::Foundation::Numerics::Matrix4x4) -> windows_core::Result<()>; + fn SetMatrix(&self, matrix: *const windows_numerics::Matrix4x4) -> windows_core::Result<()>; fn SetMatrixElement(&self, row: i32, column: i32, animation: windows_core::Ref<'_, IDCompositionAnimation>) -> windows_core::Result<()>; fn SetMatrixElement2(&self, row: i32, column: i32, value: f32) -> windows_core::Result<()>; } -#[cfg(feature = "Foundation_Numerics")] impl IDCompositionMatrixTransform3D_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn SetMatrix(this: *mut core::ffi::c_void, matrix: *const super::super::super::Foundation::Numerics::Matrix4x4) -> windows_core::HRESULT { + unsafe extern "system" fn SetMatrix(this: *mut core::ffi::c_void, matrix: *const windows_numerics::Matrix4x4) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionMatrixTransform3D_Impl::SetMatrix(this, core::mem::transmute_copy(&matrix)).into() @@ -3339,7 +3322,6 @@ impl IDCompositionMatrixTransform3D_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(feature = "Foundation_Numerics")] impl windows_core::RuntimeName for IDCompositionMatrixTransform3D {} windows_core::imp::define_interface!(IDCompositionRectangleClip, IDCompositionRectangleClip_Vtbl, 0x9842ad7d_d9cf_4908_aed7_48b51da5e7c2); impl core::ops::Deref for IDCompositionRectangleClip { @@ -5670,8 +5652,7 @@ impl IDCompositionVisual { { unsafe { (windows_core::Interface::vtable(self).SetTransform)(windows_core::Interface::as_raw(self), transform.param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub unsafe fn SetTransform2(&self, matrix: *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { + pub unsafe fn SetTransform2(&self, matrix: *const windows_numerics::Matrix3x2) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetTransform2)(windows_core::Interface::as_raw(self), matrix).ok() } } pub unsafe fn SetTransformParent(&self, visual: P0) -> windows_core::Result<()> @@ -5736,10 +5717,7 @@ pub struct IDCompositionVisual_Vtbl { pub SetOffsetY: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetOffsetY2: unsafe extern "system" fn(*mut core::ffi::c_void, f32) -> windows_core::HRESULT, pub SetTransform: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub SetTransform2: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetTransform2: usize, + pub SetTransform2: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_numerics::Matrix3x2) -> windows_core::HRESULT, pub SetTransformParent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetEffect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetBitmapInterpolationMode: unsafe extern "system" fn(*mut core::ffi::c_void, DCOMPOSITION_BITMAP_INTERPOLATION_MODE) -> windows_core::HRESULT, @@ -5755,14 +5733,14 @@ pub struct IDCompositionVisual_Vtbl { pub RemoveAllVisuals: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub SetCompositeMode: unsafe extern "system" fn(*mut core::ffi::c_void, DCOMPOSITION_COMPOSITE_MODE) -> windows_core::HRESULT, } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub trait IDCompositionVisual_Impl: windows_core::IUnknownImpl { fn SetOffsetX(&self, animation: windows_core::Ref<'_, IDCompositionAnimation>) -> windows_core::Result<()>; fn SetOffsetX2(&self, offsetx: f32) -> windows_core::Result<()>; fn SetOffsetY(&self, animation: windows_core::Ref<'_, IDCompositionAnimation>) -> windows_core::Result<()>; fn SetOffsetY2(&self, offsety: f32) -> windows_core::Result<()>; fn SetTransform(&self, transform: windows_core::Ref<'_, IDCompositionTransform>) -> windows_core::Result<()>; - fn SetTransform2(&self, matrix: *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()>; + fn SetTransform2(&self, matrix: *const windows_numerics::Matrix3x2) -> windows_core::Result<()>; fn SetTransformParent(&self, visual: windows_core::Ref<'_, IDCompositionVisual>) -> windows_core::Result<()>; fn SetEffect(&self, effect: windows_core::Ref<'_, IDCompositionEffect>) -> windows_core::Result<()>; fn SetBitmapInterpolationMode(&self, interpolationmode: DCOMPOSITION_BITMAP_INTERPOLATION_MODE) -> windows_core::Result<()>; @@ -5775,7 +5753,7 @@ pub trait IDCompositionVisual_Impl: windows_core::IUnknownImpl { fn RemoveAllVisuals(&self) -> windows_core::Result<()>; fn SetCompositeMode(&self, compositemode: DCOMPOSITION_COMPOSITE_MODE) -> windows_core::Result<()>; } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl IDCompositionVisual_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn SetOffsetX(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -5808,7 +5786,7 @@ impl IDCompositionVisual_Vtbl { IDCompositionVisual_Impl::SetTransform(this, core::mem::transmute_copy(&transform)).into() } } - unsafe extern "system" fn SetTransform2(this: *mut core::ffi::c_void, matrix: *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::HRESULT { + unsafe extern "system" fn SetTransform2(this: *mut core::ffi::c_void, matrix: *const windows_numerics::Matrix3x2) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionVisual_Impl::SetTransform2(this, core::mem::transmute_copy(&matrix)).into() @@ -5905,7 +5883,7 @@ impl IDCompositionVisual_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl windows_core::RuntimeName for IDCompositionVisual {} windows_core::imp::define_interface!(IDCompositionVisual2, IDCompositionVisual2_Vtbl, 0xe8de1639_4331_4b26_bc5f_6a321d347a85); impl core::ops::Deref for IDCompositionVisual2 { @@ -5929,12 +5907,12 @@ pub struct IDCompositionVisual2_Vtbl { pub SetOpacityMode: unsafe extern "system" fn(*mut core::ffi::c_void, DCOMPOSITION_OPACITY_MODE) -> windows_core::HRESULT, pub SetBackFaceVisibility: unsafe extern "system" fn(*mut core::ffi::c_void, DCOMPOSITION_BACKFACE_VISIBILITY) -> windows_core::HRESULT, } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub trait IDCompositionVisual2_Impl: IDCompositionVisual_Impl { fn SetOpacityMode(&self, mode: DCOMPOSITION_OPACITY_MODE) -> windows_core::Result<()>; fn SetBackFaceVisibility(&self, visibility: DCOMPOSITION_BACKFACE_VISIBILITY) -> windows_core::Result<()>; } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl IDCompositionVisual2_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn SetOpacityMode(this: *mut core::ffi::c_void, mode: DCOMPOSITION_OPACITY_MODE) -> windows_core::HRESULT { @@ -5959,7 +5937,7 @@ impl IDCompositionVisual2_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl windows_core::RuntimeName for IDCompositionVisual2 {} windows_core::imp::define_interface!(IDCompositionVisual3, IDCompositionVisual3_Vtbl, 0x2775f462_b6c1_4015_b0be_b3e7d6a4976d); impl core::ops::Deref for IDCompositionVisual3 { @@ -6020,7 +5998,7 @@ pub struct IDCompositionVisual3_Vtbl { SetTransform2: usize, pub SetVisible: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub trait IDCompositionVisual3_Impl: IDCompositionVisualDebug_Impl { fn SetDepthMode(&self, mode: DCOMPOSITION_DEPTH_MODE) -> windows_core::Result<()>; fn SetOffsetZ(&self, animation: windows_core::Ref<'_, IDCompositionAnimation>) -> windows_core::Result<()>; @@ -6031,7 +6009,7 @@ pub trait IDCompositionVisual3_Impl: IDCompositionVisualDebug_Impl { fn SetTransform2(&self, matrix: *const super::Direct2D::Common::D2D_MATRIX_4X4_F) -> windows_core::Result<()>; fn SetVisible(&self, visible: windows_core::BOOL) -> windows_core::Result<()>; } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl IDCompositionVisual3_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn SetDepthMode(this: *mut core::ffi::c_void, mode: DCOMPOSITION_DEPTH_MODE) -> windows_core::HRESULT { @@ -6098,7 +6076,7 @@ impl IDCompositionVisual3_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl windows_core::RuntimeName for IDCompositionVisual3 {} windows_core::imp::define_interface!(IDCompositionVisualDebug, IDCompositionVisualDebug_Vtbl, 0xfed2b808_5eb4_43a0_aea3_35f65280f91b); impl core::ops::Deref for IDCompositionVisualDebug { @@ -6134,14 +6112,14 @@ pub struct IDCompositionVisualDebug_Vtbl { pub EnableRedrawRegions: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub DisableRedrawRegions: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub trait IDCompositionVisualDebug_Impl: IDCompositionVisual2_Impl { fn EnableHeatMap(&self, color: *const super::Direct2D::Common::D2D1_COLOR_F) -> windows_core::Result<()>; fn DisableHeatMap(&self) -> windows_core::Result<()>; fn EnableRedrawRegions(&self) -> windows_core::Result<()>; fn DisableRedrawRegions(&self) -> windows_core::Result<()>; } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl IDCompositionVisualDebug_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn EnableHeatMap(this: *mut core::ffi::c_void, color: *const super::Direct2D::Common::D2D1_COLOR_F) -> windows_core::HRESULT { @@ -6180,5 +6158,5 @@ impl IDCompositionVisualDebug_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl windows_core::RuntimeName for IDCompositionVisualDebug {} diff --git a/crates/libs/windows/src/extensions/Foundation.rs b/crates/libs/windows/src/extensions/Foundation.rs index 9bbaf392de..5b5d65f9dc 100644 --- a/crates/libs/windows/src/extensions/Foundation.rs +++ b/crates/libs/windows/src/extensions/Foundation.rs @@ -4,6 +4,4 @@ pub mod Async; pub mod AsyncReady; #[cfg(feature = "std")] pub mod AsyncSpawn; -#[cfg(feature = "Foundation_Numerics")] -pub mod Numerics; pub mod TimeSpan; diff --git a/crates/libs/windows/src/extensions/Foundation/Numerics.rs b/crates/libs/windows/src/extensions/Foundation/Numerics.rs deleted file mode 100644 index 0f5dc4ba0b..0000000000 --- a/crates/libs/windows/src/extensions/Foundation/Numerics.rs +++ /dev/null @@ -1,5 +0,0 @@ -mod Matrix3x2; -mod Matrix4x4; -mod Vector2; -mod Vector3; -mod Vector4; diff --git a/crates/samples/windows/dcomp/Cargo.toml b/crates/samples/windows/dcomp/Cargo.toml index a6435813a8..6aecbd18e4 100644 --- a/crates/samples/windows/dcomp/Cargo.toml +++ b/crates/samples/windows/dcomp/Cargo.toml @@ -10,7 +10,6 @@ rand = "0.8.5" [dependencies.windows] workspace = true features = [ - "Foundation_Numerics", "Win32_Graphics_Direct2D_Common", "Win32_Graphics_Direct3D", "Win32_Graphics_Direct3D11", @@ -29,3 +28,6 @@ features = [ "Win32_UI_WindowsAndMessaging", "Win32_UI_Shell", ] + +[dependencies.windows-numerics] +workspace = true diff --git a/crates/samples/windows/dcomp/src/main.rs b/crates/samples/windows/dcomp/src/main.rs index a7a39dcdaa..692d05b9eb 100644 --- a/crates/samples/windows/dcomp/src/main.rs +++ b/crates/samples/windows/dcomp/src/main.rs @@ -1,6 +1,5 @@ use windows::{ core::*, - Foundation::Numerics::*, Win32::{ Foundation::*, Graphics::Direct2D::Common::*, Graphics::Direct2D::*, Graphics::Direct3D::*, Graphics::Direct3D11::*, Graphics::DirectComposition::*, Graphics::DirectWrite::*, @@ -10,6 +9,8 @@ use windows::{ }, }; +use windows_numerics::*; + const CARD_ROWS: usize = 3; const CARD_COLUMNS: usize = 6; const CARD_MARGIN: f32 = 15.0; diff --git a/crates/samples/windows/direct2d/Cargo.toml b/crates/samples/windows/direct2d/Cargo.toml index 077c3f673f..39083136c2 100644 --- a/crates/samples/windows/direct2d/Cargo.toml +++ b/crates/samples/windows/direct2d/Cargo.toml @@ -7,7 +7,6 @@ publish = false [dependencies.windows] workspace = true features = [ - "Foundation_Numerics", "Win32_System_Com", "Win32_Graphics_Direct2D_Common", "Win32_Graphics_Direct3D", @@ -20,3 +19,6 @@ features = [ "Win32_UI_Animation", "Win32_UI_WindowsAndMessaging", ] + +[dependencies.windows-numerics] +workspace = true diff --git a/crates/samples/windows/direct2d/src/main.rs b/crates/samples/windows/direct2d/src/main.rs index 50aff2caf6..c04016b662 100644 --- a/crates/samples/windows/direct2d/src/main.rs +++ b/crates/samples/windows/direct2d/src/main.rs @@ -1,5 +1,5 @@ use windows::{ - core::*, Foundation::Numerics::*, Win32::Foundation::*, Win32::Graphics::Direct2D::Common::*, + core::*, Win32::Foundation::*, Win32::Graphics::Direct2D::Common::*, Win32::Graphics::Direct2D::*, Win32::Graphics::Direct3D::*, Win32::Graphics::Direct3D11::*, Win32::Graphics::Dxgi::Common::*, Win32::Graphics::Dxgi::*, Win32::Graphics::Gdi::*, Win32::System::Com::*, Win32::System::LibraryLoader::*, Win32::System::Performance::*, @@ -7,6 +7,8 @@ use windows::{ Win32::UI::WindowsAndMessaging::*, }; +use windows_numerics::*; + fn main() -> Result<()> { unsafe { CoInitializeEx(None, COINIT_MULTITHREADED).ok()?; diff --git a/crates/tests/misc/matrix3x2/Cargo.toml b/crates/tests/misc/matrix3x2/Cargo.toml index 547039e49c..e6cd34f739 100644 --- a/crates/tests/misc/matrix3x2/Cargo.toml +++ b/crates/tests/misc/matrix3x2/Cargo.toml @@ -8,8 +8,5 @@ publish = false doc = false doctest = false -[dependencies.windows] +[dependencies.windows-numerics] workspace = true -features = [ - "Foundation_Numerics", -] diff --git a/crates/tests/misc/matrix3x2/tests/matrix3x2.rs b/crates/tests/misc/matrix3x2/tests/matrix3x2.rs index de0c73a5d2..59a2f239da 100644 --- a/crates/tests/misc/matrix3x2/tests/matrix3x2.rs +++ b/crates/tests/misc/matrix3x2/tests/matrix3x2.rs @@ -1,4 +1,4 @@ -use windows::Foundation::Numerics::Matrix3x2; +use windows_numerics::Matrix3x2; #[test] fn test() { diff --git a/crates/tests/misc/no_std/Cargo.toml b/crates/tests/misc/no_std/Cargo.toml index 2b26095222..237fc3c565 100644 --- a/crates/tests/misc/no_std/Cargo.toml +++ b/crates/tests/misc/no_std/Cargo.toml @@ -37,6 +37,10 @@ workspace = true path = "../../../libs/collections" default-features = false +[dependencies.windows-numerics] +path = "../../../libs/numerics" +default-features = false + [dependencies.windows-version] path = "../../../libs/version" default-features = false @@ -46,7 +50,6 @@ path = "../../../libs/windows" default-features = false features = [ "Foundation_Collections", - "Foundation_Numerics", "Win32_Graphics_Direct3D", "Win32_Networking_WinSock", "Win32_System_Com_StructuredStorage", diff --git a/crates/tests/misc/no_std/src/lib.rs b/crates/tests/misc/no_std/src/lib.rs index b28576bcc1..dab6810ca3 100644 --- a/crates/tests/misc/no_std/src/lib.rs +++ b/crates/tests/misc/no_std/src/lib.rs @@ -24,6 +24,7 @@ fn _test() { let _ = windows_strings::s!("hello"); let _ = windows_strings::w!("hello"); let _: Option> = None; + let _ = windows_numerics::Vector2::new(0.0, 0.0); } // This panic handler will cause a build error if an indirect `std` dependency exists as `std` diff --git a/crates/tests/winrt/old/Cargo.toml b/crates/tests/winrt/old/Cargo.toml index a5db22040c..f7b9d9f794 100644 --- a/crates/tests/winrt/old/Cargo.toml +++ b/crates/tests/winrt/old/Cargo.toml @@ -11,6 +11,9 @@ doctest = false [dependencies.windows-collections] workspace = true +[dependencies.windows-numerics] +workspace = true + [dependencies.windows] workspace = true features = [ @@ -22,7 +25,6 @@ features = [ "Devices_Enumeration", "Devices_WiFiDirect", "Foundation_Collections", - "Foundation_Numerics", "Storage_Streams", "System", "UI_Composition", diff --git a/crates/tests/winrt/old/tests/composition.rs b/crates/tests/winrt/old/tests/composition.rs index 83a4f97a01..3fac1e9252 100644 --- a/crates/tests/winrt/old/tests/composition.rs +++ b/crates/tests/winrt/old/tests/composition.rs @@ -63,9 +63,9 @@ fn class_hierarchy_conversion() -> windows::core::Result<()> { #[test] fn composition() -> windows::core::Result<()> { use windows::core::Interface; - use windows::Foundation::Numerics::Vector3; use windows::UI::Composition::{CompositionColorBrush, Compositor}; use windows::UI::{Color, Colors}; + use windows_numerics::Vector3; let _dispatcher = create_dispatcher(); let compositor = Compositor::new()?; diff --git a/crates/tests/winrt/old/tests/numerics.rs b/crates/tests/winrt/old/tests/numerics.rs index ca6d9b65c0..ba1b1f4152 100644 --- a/crates/tests/winrt/old/tests/numerics.rs +++ b/crates/tests/winrt/old/tests/numerics.rs @@ -1,4 +1,4 @@ -use windows::Foundation::Numerics::*; +use windows_numerics::*; macro_rules! test_with_same_type { ($value1:ident, $value2:ident, $op:tt, $expected:ident) => { diff --git a/crates/tools/bindings/src/main.rs b/crates/tools/bindings/src/main.rs index 190e99fca0..d55bc78e4a 100644 --- a/crates/tools/bindings/src/main.rs +++ b/crates/tools/bindings/src/main.rs @@ -7,6 +7,7 @@ fn main() { bindgen(["--etc", "crates/tools/bindings/src/core_com.txt"]); bindgen(["--etc", "crates/tools/bindings/src/core.txt"]); bindgen(["--etc", "crates/tools/bindings/src/metadata.txt"]); + bindgen(["--etc", "crates/tools/bindings/src/numerics.txt"]); bindgen(["--etc", "crates/tools/bindings/src/registry.txt"]); bindgen(["--etc", "crates/tools/bindings/src/result.txt"]); bindgen(["--etc", "crates/tools/bindings/src/strings.txt"]); diff --git a/crates/tools/bindings/src/numerics.txt b/crates/tools/bindings/src/numerics.txt new file mode 100644 index 0000000000..bd5f3f1a62 --- /dev/null +++ b/crates/tools/bindings/src/numerics.txt @@ -0,0 +1,11 @@ +--out crates/libs/numerics/src/bindings.rs +--flat +--no-comment +--no-allow + +--filter + Matrix3x2 + Matrix4x4 + Vector2 + Vector3 + Vector4 diff --git a/crates/tools/bindings/src/windows.txt b/crates/tools/bindings/src/windows.txt index 69fbc95095..e71434122d 100644 --- a/crates/tools/bindings/src/windows.txt +++ b/crates/tools/bindings/src/windows.txt @@ -5,10 +5,12 @@ --reference windows_collections,flat,Windows.Foundation.Collections + windows_numerics,flat,Windows.Foundation.Numerics --filter Windows +// Collections !IIterable !IIterator !IKeyValuePair @@ -17,6 +19,13 @@ !IVector !IVectorView +// Numerics + !Matrix3x2 + !Matrix4x4 + !Vector2 + !Vector3 + !Vector4 + !Windows.AI.MachineLearning.Preview !Windows.ApplicationModel.SocialInfo !Windows.ApplicationModel.Store