diff --git a/.gitignore b/.gitignore index 330d167..77e58c0 100644 --- a/.gitignore +++ b/.gitignore @@ -88,3 +88,7 @@ fastlane/test_output # https://github.com/johnno1962/injectionforxcode iOSInjectionProject/ + +.packages +.generated +swift-winrt.rsp \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..67f5885 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,11 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "type": "shell", + "label": "Generate swift-windowsappsdk bindings", + "command": "${workspaceFolder:swift-windowsappsdk}/generate-bindings.ps1", + "problemMatcher": [] + } + ] +} diff --git a/LICENSE b/LICENSE index dcd9d8c..88a95f5 100644 --- a/LICENSE +++ b/LICENSE @@ -1,21 +1,29 @@ -MIT License +BSD 3-Clause License -Copyright (c) 2024 The Browser Company +Copyright (c) 2024, The Browser Company +All rights reserved. -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: +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. -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. +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..58b0eab --- /dev/null +++ b/Package.swift @@ -0,0 +1,28 @@ +// swift-tools-version: 5.10 + +import PackageDescription + +let package = Package( + name: "swift-windowsappsdk", + products: [ + .library(name: "WinAppSDK", type: .dynamic, targets: ["WinAppSDK"]), + ], + dependencies: [ + .package(url: "https://github.com/thebrowsercompany/swift-cwinrt", branch: "main"), + .package(url: "https://github.com/thebrowsercompany/swift-uwp", branch: "main"), + .package(url: "https://github.com/thebrowsercompany/swift-windowsfoundation", branch: "main"), + ], + targets: [ + .target( + name: "WinAppSDK", + dependencies: [ + .product(name: "CWinRT", package: "swift-cwinrt"), + .product(name: "UWP", package: "swift-uwp"), + .product(name: "WindowsFoundation", package: "swift-windowsfoundation"), + ], + resources: [ + .copy("NativeBinaries") + ] + ), + ] +) diff --git a/README.md b/README.md new file mode 100644 index 0000000..9534a92 --- /dev/null +++ b/README.md @@ -0,0 +1,28 @@ +# swift-windowsappsdk +Swift Language Bindings for the Windows App SDK APIs + +These APIs are intendened to be used in conjuction with the following projects: +- [swift-winui](https://github.com/thebrowsercompany/swift-winui) +- [swift-win2d](https://github.com/thebrowsercompany/swift-win2d) + +## APIs +These projections contains a subset of APIs for the Windows App SDK, minus those of WinUI (`Microsoft.UI.Xaml`). See official documentation for more information on these components: + +- [API Docs](https://learn.microsoft.com/en-us/windows/windows-app-sdk/api/winrt/) +- [Official GitHub repo](https://github.com/microsoft/WindowsAppSDK) + +### SDK Versions + +1. Windows SDK: `10.0.18362.0` +2. Windows App SDK: `1.5-preview1` + +## Project Configuration +The bindings are generated from WinMD files, found in NuGet packages on Nuget.org. There are three key files which drive this: +1. packages.config - this specifies the packages and their versions +2. projections.json - this specifies the project/package and which apis to include in the projection +3. generate-bindings.ps1 - this file reads both `packages.config` and `projections.json` and generates the appropriate bindings. + +## Known Issues and Limitations +- The developer experience for consuming WinRT APIs from Swift is a work in progress. Due to current limitations, not all APIs can be generated as this causes export limit issues. + +- The APIs listed in projections.json are required for the other `swift-*` projects to build. Modify a projections.json in any one of those projects could require an update here. diff --git a/Sources/WinAppSDK/Microsoft.Graphics.DirectX+ABI.swift b/Sources/WinAppSDK/Microsoft.Graphics.DirectX+ABI.swift new file mode 100644 index 0000000..d165a0e --- /dev/null +++ b/Sources/WinAppSDK/Microsoft.Graphics.DirectX+ABI.swift @@ -0,0 +1,8 @@ +// WARNING: Please don't edit this file. It was generated by Swift/WinRT v0.0.1 +// swiftlint:disable all +import Foundation +@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation +import CWinRT + +public enum __ABI_Microsoft_Graphics_DirectX { +} diff --git a/Sources/WinAppSDK/Microsoft.Graphics.DirectX+Impl.swift b/Sources/WinAppSDK/Microsoft.Graphics.DirectX+Impl.swift new file mode 100644 index 0000000..cbd2d98 --- /dev/null +++ b/Sources/WinAppSDK/Microsoft.Graphics.DirectX+Impl.swift @@ -0,0 +1,8 @@ +// WARNING: Please don't edit this file. It was generated by Swift/WinRT v0.0.1 +// swiftlint:disable all +import Foundation +@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation +import CWinRT + +public enum __IMPL_Microsoft_Graphics_DirectX { +} diff --git a/Sources/WinAppSDK/Microsoft.Graphics.DirectX.swift b/Sources/WinAppSDK/Microsoft.Graphics.DirectX.swift new file mode 100644 index 0000000..4ed842c --- /dev/null +++ b/Sources/WinAppSDK/Microsoft.Graphics.DirectX.swift @@ -0,0 +1,396 @@ +// WARNING: Please don't edit this file. It was generated by Swift/WinRT v0.0.1 +// swiftlint:disable all +import Foundation +@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation +import CWinRT + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.graphics.directx.directxalphamode) +public typealias DirectXAlphaMode = __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXAlphaMode +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.graphics.directx.directxpixelformat) +public typealias DirectXPixelFormat = __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat +extension WinAppSDK.DirectXAlphaMode { + public static var unspecified : WinAppSDK.DirectXAlphaMode { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXAlphaMode_Unspecified + } + public static var premultiplied : WinAppSDK.DirectXAlphaMode { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXAlphaMode_Premultiplied + } + public static var straight : WinAppSDK.DirectXAlphaMode { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXAlphaMode_Straight + } + public static var ignore : WinAppSDK.DirectXAlphaMode { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXAlphaMode_Ignore + } +} +extension WinAppSDK.DirectXAlphaMode: @retroactive Hashable, @retroactive Codable {} + +extension WinAppSDK.DirectXPixelFormat { + public static var unknown : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_Unknown + } + public static var r32g32b32a32Typeless : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R32G32B32A32Typeless + } + public static var r32g32b32a32Float : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R32G32B32A32Float + } + public static var r32g32b32a32uInt : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R32G32B32A32UInt + } + public static var r32g32b32a32Int : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R32G32B32A32Int + } + public static var r32g32b32Typeless : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R32G32B32Typeless + } + public static var r32g32b32Float : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R32G32B32Float + } + public static var r32g32b32uInt : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R32G32B32UInt + } + public static var r32g32b32Int : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R32G32B32Int + } + public static var r16g16b16a16Typeless : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R16G16B16A16Typeless + } + public static var r16g16b16a16Float : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R16G16B16A16Float + } + public static var r16g16b16a16uIntNormalized : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R16G16B16A16UIntNormalized + } + public static var r16g16b16a16uInt : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R16G16B16A16UInt + } + public static var r16g16b16a16IntNormalized : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R16G16B16A16IntNormalized + } + public static var r16g16b16a16Int : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R16G16B16A16Int + } + public static var r32g32Typeless : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R32G32Typeless + } + public static var r32g32Float : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R32G32Float + } + public static var r32g32uInt : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R32G32UInt + } + public static var r32g32Int : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R32G32Int + } + public static var r32g8x24Typeless : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R32G8X24Typeless + } + public static var d32FloatS8X24UInt : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_D32FloatS8X24UInt + } + public static var r32FloatX8X24Typeless : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R32FloatX8X24Typeless + } + public static var x32TypelessG8X24UInt : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_X32TypelessG8X24UInt + } + public static var r10g10b10a2Typeless : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R10G10B10A2Typeless + } + public static var r10g10b10a2uIntNormalized : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R10G10B10A2UIntNormalized + } + public static var r10g10b10a2uInt : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R10G10B10A2UInt + } + public static var r11g11b10Float : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R11G11B10Float + } + public static var r8g8b8a8Typeless : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R8G8B8A8Typeless + } + public static var r8g8b8a8uIntNormalized : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R8G8B8A8UIntNormalized + } + public static var r8g8b8a8uIntNormalizedSrgb : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R8G8B8A8UIntNormalizedSrgb + } + public static var r8g8b8a8uInt : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R8G8B8A8UInt + } + public static var r8g8b8a8IntNormalized : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R8G8B8A8IntNormalized + } + public static var r8g8b8a8Int : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R8G8B8A8Int + } + public static var r16g16Typeless : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R16G16Typeless + } + public static var r16g16Float : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R16G16Float + } + public static var r16g16uIntNormalized : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R16G16UIntNormalized + } + public static var r16g16uInt : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R16G16UInt + } + public static var r16g16IntNormalized : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R16G16IntNormalized + } + public static var r16g16Int : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R16G16Int + } + public static var r32Typeless : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R32Typeless + } + public static var d32Float : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_D32Float + } + public static var r32Float : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R32Float + } + public static var r32uInt : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R32UInt + } + public static var r32Int : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R32Int + } + public static var r24g8Typeless : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R24G8Typeless + } + public static var d24uIntNormalizedS8UInt : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_D24UIntNormalizedS8UInt + } + public static var r24uIntNormalizedX8Typeless : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R24UIntNormalizedX8Typeless + } + public static var x24TypelessG8UInt : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_X24TypelessG8UInt + } + public static var r8g8Typeless : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R8G8Typeless + } + public static var r8g8uIntNormalized : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R8G8UIntNormalized + } + public static var r8g8uInt : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R8G8UInt + } + public static var r8g8IntNormalized : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R8G8IntNormalized + } + public static var r8g8Int : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R8G8Int + } + public static var r16Typeless : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R16Typeless + } + public static var r16Float : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R16Float + } + public static var d16uIntNormalized : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_D16UIntNormalized + } + public static var r16uIntNormalized : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R16UIntNormalized + } + public static var r16uInt : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R16UInt + } + public static var r16IntNormalized : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R16IntNormalized + } + public static var r16Int : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R16Int + } + public static var r8Typeless : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R8Typeless + } + public static var r8uIntNormalized : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R8UIntNormalized + } + public static var r8uInt : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R8UInt + } + public static var r8IntNormalized : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R8IntNormalized + } + public static var r8Int : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R8Int + } + public static var a8uIntNormalized : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_A8UIntNormalized + } + public static var r1uIntNormalized : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R1UIntNormalized + } + public static var r9g9b9e5SharedExponent : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R9G9B9E5SharedExponent + } + public static var r8g8b8g8uIntNormalized : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R8G8B8G8UIntNormalized + } + public static var g8r8g8b8uIntNormalized : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_G8R8G8B8UIntNormalized + } + public static var bc1Typeless : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_BC1Typeless + } + public static var bc1uIntNormalized : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_BC1UIntNormalized + } + public static var bc1uIntNormalizedSrgb : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_BC1UIntNormalizedSrgb + } + public static var bc2Typeless : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_BC2Typeless + } + public static var bc2uIntNormalized : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_BC2UIntNormalized + } + public static var bc2uIntNormalizedSrgb : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_BC2UIntNormalizedSrgb + } + public static var bc3Typeless : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_BC3Typeless + } + public static var bc3uIntNormalized : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_BC3UIntNormalized + } + public static var bc3uIntNormalizedSrgb : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_BC3UIntNormalizedSrgb + } + public static var bc4Typeless : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_BC4Typeless + } + public static var bc4uIntNormalized : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_BC4UIntNormalized + } + public static var bc4IntNormalized : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_BC4IntNormalized + } + public static var bc5Typeless : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_BC5Typeless + } + public static var bc5uIntNormalized : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_BC5UIntNormalized + } + public static var bc5IntNormalized : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_BC5IntNormalized + } + public static var b5g6r5uIntNormalized : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_B5G6R5UIntNormalized + } + public static var b5g5r5a1uIntNormalized : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_B5G5R5A1UIntNormalized + } + public static var b8g8r8a8uIntNormalized : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_B8G8R8A8UIntNormalized + } + public static var b8g8r8x8uIntNormalized : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_B8G8R8X8UIntNormalized + } + public static var r10g10b10xrBiasA2UIntNormalized : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_R10G10B10XRBiasA2UIntNormalized + } + public static var b8g8r8a8Typeless : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_B8G8R8A8Typeless + } + public static var b8g8r8a8uIntNormalizedSrgb : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_B8G8R8A8UIntNormalizedSrgb + } + public static var b8g8r8x8Typeless : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_B8G8R8X8Typeless + } + public static var b8g8r8x8uIntNormalizedSrgb : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_B8G8R8X8UIntNormalizedSrgb + } + public static var bc6hTypeless : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_BC6HTypeless + } + public static var bc6h16UnsignedFloat : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_BC6H16UnsignedFloat + } + public static var bc6h16Float : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_BC6H16Float + } + public static var bc7Typeless : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_BC7Typeless + } + public static var bc7uIntNormalized : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_BC7UIntNormalized + } + public static var bc7uIntNormalizedSrgb : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_BC7UIntNormalizedSrgb + } + public static var ayuv : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_Ayuv + } + public static var y410 : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_Y410 + } + public static var y416 : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_Y416 + } + public static var nv12 : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_NV12 + } + public static var p010 : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_P010 + } + public static var p016 : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_P016 + } + public static var opaque420 : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_Opaque420 + } + public static var yuy2 : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_Yuy2 + } + public static var y210 : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_Y210 + } + public static var y216 : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_Y216 + } + public static var nv11 : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_NV11 + } + public static var ai44 : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_AI44 + } + public static var ia44 : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_IA44 + } + public static var p8 : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_P8 + } + public static var a8p8 : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_A8P8 + } + public static var b4g4r4a4uIntNormalized : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_B4G4R4A4UIntNormalized + } + public static var p208 : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_P208 + } + public static var v208 : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_V208 + } + public static var v408 : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_V408 + } + public static var samplerFeedbackMinMipOpaque : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_SamplerFeedbackMinMipOpaque + } + public static var samplerFeedbackMipRegionUsedOpaque : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_SamplerFeedbackMipRegionUsedOpaque + } + public static var a4b4g4r4 : WinAppSDK.DirectXPixelFormat { + __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat_A4B4G4R4 + } +} +extension WinAppSDK.DirectXPixelFormat: @retroactive Hashable, @retroactive Codable {} + diff --git a/Sources/WinAppSDK/Microsoft.UI+ABI.swift b/Sources/WinAppSDK/Microsoft.UI+ABI.swift new file mode 100644 index 0000000..a0738a3 --- /dev/null +++ b/Sources/WinAppSDK/Microsoft.UI+ABI.swift @@ -0,0 +1,176 @@ +// WARNING: Please don't edit this file. It was generated by Swift/WinRT v0.0.1 +// swiftlint:disable all +import Foundation +@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation +import CWinRT + +private var IID___x_ABI_CMicrosoft_CUI_CIClosableNotifier: WindowsFoundation.IID { + .init(Data1: 0x2989E93B, Data2: 0xED0F, Data3: 0x5E79, Data4: ( 0x90,0xF2,0xEA,0xC5,0x92,0xFC,0x6E,0x6A ))// 2989E93B-ED0F-5E79-90F2-EAC592FC6E6A +} + +private var IID___x_ABI_CMicrosoft_CUI_CIClosableNotifierHandler: WindowsFoundation.IID { + .init(Data1: 0x478CEC68, Data2: 0xEA8E, Data3: 0x52FC, Data4: ( 0x87,0xE2,0xC8,0x19,0xDE,0x00,0x0F,0x92 ))// 478CEC68-EA8E-52FC-87E2-C819DE000F92 +} + +public enum __ABI_Microsoft_UI { + public class IClosableNotifier: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CIClosableNotifier } + + open func get_IsClosedImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CIClosableNotifier.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsClosed(pThis, &value)) + } + return .init(from: value) + } + + open func add_ClosedImpl(_ handler: WinAppSDK.ClosableNotifierHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI.ClosableNotifierHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CIClosableNotifier.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Closed(pThis, _handler, &token)) + } + return token + } + + open func remove_ClosedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CIClosableNotifier.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Closed(pThis, token)) + } + } + + open func add_FrameworkClosedImpl(_ handler: WinAppSDK.ClosableNotifierHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI.ClosableNotifierHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CIClosableNotifier.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_FrameworkClosed(pThis, _handler, &token)) + } + return token + } + + open func remove_FrameworkClosedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CIClosableNotifier.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_FrameworkClosed(pThis, token)) + } + } + + } + + internal static var IClosableNotifierVTable: __x_ABI_CMicrosoft_CUI_CIClosableNotifierVtbl = .init( + QueryInterface: { IClosableNotifierWrapper.queryInterface($0, $1, $2) }, + AddRef: { IClosableNotifierWrapper.addRef($0) }, + Release: { IClosableNotifierWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = __ABI_Microsoft_UI.IClosableNotifierWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Microsoft.UI.IClosableNotifier").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + get_IsClosed: { + guard let __unwrapped__instance = IClosableNotifierWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value = __unwrapped__instance.isClosed + $1?.initialize(to: .init(from: value)) + return S_OK + }, + + add_Closed: { + guard let __unwrapped__instance = IClosableNotifierWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + guard let handler = __ABI_Microsoft_UI.ClosableNotifierHandlerWrapper.unwrapFrom(abi: ComPtr($1)) else { return E_INVALIDARG } + let token = __unwrapped__instance.closed.addHandler(handler) + $2?.initialize(to: .from(swift: token)) + return S_OK + }, + + remove_Closed: { + guard let __unwrapped__instance = IClosableNotifierWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let token: EventRegistrationToken = $1 + __unwrapped__instance.closed.removeHandler(token) + return S_OK + }, + + add_FrameworkClosed: { + guard let __unwrapped__instance = IClosableNotifierWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + guard let handler = __ABI_Microsoft_UI.ClosableNotifierHandlerWrapper.unwrapFrom(abi: ComPtr($1)) else { return E_INVALIDARG } + let token = __unwrapped__instance.frameworkClosed.addHandler(handler) + $2?.initialize(to: .from(swift: token)) + return S_OK + }, + + remove_FrameworkClosed: { + guard let __unwrapped__instance = IClosableNotifierWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let token: EventRegistrationToken = $1 + __unwrapped__instance.frameworkClosed.removeHandler(token) + return S_OK + } + ) + + public typealias IClosableNotifierWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI.IClosableNotifierBridge> +} +extension __x_ABI_CMicrosoft_CUI_CDisplayId { + public static func from(swift: WinAppSDK.DisplayId) -> __x_ABI_CMicrosoft_CUI_CDisplayId { + .init(Value: swift.value) + } + } + extension __x_ABI_CMicrosoft_CUI_CIconId { + public static func from(swift: WinAppSDK.IconId) -> __x_ABI_CMicrosoft_CUI_CIconId { + .init(Value: swift.value) + } + } + extension __x_ABI_CMicrosoft_CUI_CWindowId { + public static func from(swift: WinAppSDK.WindowId) -> __x_ABI_CMicrosoft_CUI_CWindowId { + .init(Value: swift.value) + } + } + // MARK - ClosableNotifierHandler +extension __ABI_Microsoft_UI { + public class ClosableNotifierHandler: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CIClosableNotifierHandler } + + open func InvokeImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CIClosableNotifierHandler.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis)) + } + } + + } + + + typealias ClosableNotifierHandlerWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI.ClosableNotifierHandlerBridge> + internal static var ClosableNotifierHandlerVTable: __x_ABI_CMicrosoft_CUI_CIClosableNotifierHandlerVtbl = .init( + QueryInterface: { ClosableNotifierHandlerWrapper.queryInterface($0, $1, $2) }, + AddRef: { ClosableNotifierHandlerWrapper.addRef($0) }, + Release: { ClosableNotifierHandlerWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = ClosableNotifierHandlerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + __unwrapped__instance() + return S_OK + } + ) +} +public extension WinRTDelegateBridge where CABI == __x_ABI_CMicrosoft_CUI_CIClosableNotifierHandler { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI.ClosableNotifierHandlerVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + diff --git a/Sources/WinAppSDK/Microsoft.UI+Impl.swift b/Sources/WinAppSDK/Microsoft.UI+Impl.swift new file mode 100644 index 0000000..c515ed4 --- /dev/null +++ b/Sources/WinAppSDK/Microsoft.UI+Impl.swift @@ -0,0 +1,78 @@ +// WARNING: Please don't edit this file. It was generated by Swift/WinRT v0.0.1 +// swiftlint:disable all +import Foundation +@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation +import CWinRT + +public enum __IMPL_Microsoft_UI { + public enum IClosableNotifierBridge : AbiInterfaceBridge { + public typealias CABI = __x_ABI_CMicrosoft_CUI_CIClosableNotifier + public typealias SwiftABI = __ABI_Microsoft_UI.IClosableNotifier + public typealias SwiftProjection = AnyIClosableNotifier + public static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return IClosableNotifierImpl(abi) + } + + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI.IClosableNotifierVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } + } + + fileprivate class IClosableNotifierImpl: IClosableNotifier, WinRTAbiImpl { + fileprivate typealias Bridge = IClosableNotifierBridge + fileprivate let _default: Bridge.SwiftABI + fileprivate var thisPtr: WindowsFoundation.IInspectable { _default } + fileprivate init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.iclosablenotifier.isclosed) + fileprivate var isClosed : Bool { + get { try! _default.get_IsClosedImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.iclosablenotifier.closed) + fileprivate lazy var closed : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ClosedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ClosedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.iclosablenotifier.frameworkclosed) + fileprivate lazy var frameworkClosed : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_FrameworkClosedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_FrameworkClosedImpl($0) + } + ) + }() + + } + + public class ClosableNotifierHandlerBridge : WinRTDelegateBridge { + public typealias Handler = ClosableNotifierHandler + public typealias CABI = __x_ABI_CMicrosoft_CUI_CIClosableNotifierHandler + public typealias SwiftABI = __ABI_Microsoft_UI.ClosableNotifierHandler + + public static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { () in + try! _default.InvokeImpl() + } + return handler + } + } +} diff --git a/Sources/WinAppSDK/Microsoft.UI.Composition+ABI.swift b/Sources/WinAppSDK/Microsoft.UI.Composition+ABI.swift new file mode 100644 index 0000000..4465ea8 --- /dev/null +++ b/Sources/WinAppSDK/Microsoft.UI.Composition+ABI.swift @@ -0,0 +1,7121 @@ +// WARNING: Please don't edit this file. It was generated by Swift/WinRT v0.0.1 +// swiftlint:disable all +import Foundation +@_spi(WinRTInternal) @_spi(WinRTImplements) import UWP +@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation +import CWinRT + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIAmbientLight: WindowsFoundation.IID { + .init(Data1: 0x4540525E, Data2: 0xB70D, Data3: 0x5A14, Data4: ( 0xBB,0xFA,0x63,0xBE,0xF4,0x23,0x13,0xC7 ))// 4540525E-B70D-5A14-BBFA-63BEF42313C7 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIAmbientLight2: WindowsFoundation.IID { + .init(Data1: 0x3356F963, Data2: 0x040C, Data3: 0x54D4, Data4: ( 0x9D,0xFC,0xB6,0x1C,0x51,0xAA,0xAD,0xD1 ))// 3356F963-040C-54D4-9DFC-B61C51AAADD1 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIAnimationController: WindowsFoundation.IID { + .init(Data1: 0xBD0F88A8, Data2: 0xA415, Data3: 0x5322, Data4: ( 0x8C,0x3D,0x1A,0x6D,0x91,0x92,0x75,0x4F ))// BD0F88A8-A415-5322-8C3D-1A6D9192754F +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIAnimationControllerStatics: WindowsFoundation.IID { + .init(Data1: 0xB63B0FB6, Data2: 0x286B, Data3: 0x57AF, Data4: ( 0xB0,0x96,0x16,0x06,0x6D,0x43,0xDC,0x00 ))// B63B0FB6-286B-57AF-B096-16066D43DC00 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIAnimationObject: WindowsFoundation.IID { + .init(Data1: 0x8F56119D, Data2: 0xB96D, Data3: 0x58D0, Data4: ( 0x99,0x16,0xD1,0xC5,0xE3,0x90,0xF8,0x90 ))// 8F56119D-B96D-58D0-9916-D1C5E390F890 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIAnimationPropertyInfo: WindowsFoundation.IID { + .init(Data1: 0x3D721A2B, Data2: 0x9CCD, Data3: 0x57BD, Data4: ( 0xB6,0xC2,0xCE,0x9E,0x04,0xAE,0x36,0x06 ))// 3D721A2B-9CCD-57BD-B6C2-CE9E04AE3606 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIAnimationPropertyInfo2: WindowsFoundation.IID { + .init(Data1: 0xED14FB09, Data2: 0xDE28, Data3: 0x540D, Data4: ( 0x93,0x11,0x80,0xCF,0xDC,0xC9,0x73,0x38 ))// ED14FB09-DE28-540D-9311-80CFDCC97338 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIBackEasingFunction: WindowsFoundation.IID { + .init(Data1: 0x27C75BAB, Data2: 0x317A, Data3: 0x5362, Data4: ( 0xBF,0x25,0xFF,0xFB,0xB9,0x8A,0x51,0xB9 ))// 27C75BAB-317A-5362-BF25-FFFBB98A51B9 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIBooleanKeyFrameAnimation: WindowsFoundation.IID { + .init(Data1: 0x7FE485E9, Data2: 0xE874, Data3: 0x5FF3, Data4: ( 0x8D,0xDC,0x82,0x6C,0x38,0x18,0xBF,0xC3 ))// 7FE485E9-E874-5FF3-8DDC-826C3818BFC3 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIBounceEasingFunction: WindowsFoundation.IID { + .init(Data1: 0xFA11F3C0, Data2: 0x697B, Data3: 0x562F, Data4: ( 0xAF,0x46,0xC6,0xAF,0x66,0x6B,0x6E,0xC4 ))// FA11F3C0-697B-562F-AF46-C6AF666B6EC4 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIBounceScalarNaturalMotionAnimation: WindowsFoundation.IID { + .init(Data1: 0x1C0C4B76, Data2: 0xC4D6, Data3: 0x5DD9, Data4: ( 0x8D,0xD6,0xDB,0xE3,0x5C,0x7B,0x7E,0x55 ))// 1C0C4B76-C4D6-5DD9-8DD6-DBE35C7B7E55 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIBounceVector2NaturalMotionAnimation: WindowsFoundation.IID { + .init(Data1: 0xEC528D1F, Data2: 0x22E2, Data3: 0x573E, Data4: ( 0xAB,0x87,0x75,0x70,0x71,0xE5,0x00,0x12 ))// EC528D1F-22E2-573E-AB87-757071E50012 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIBounceVector3NaturalMotionAnimation: WindowsFoundation.IID { + .init(Data1: 0xE3E2EE98, Data2: 0x1211, Data3: 0x586D, Data4: ( 0x8A,0x6D,0xFE,0xA5,0xEF,0xC3,0x95,0x7F ))// E3E2EE98-1211-586D-8A6D-FEA5EFC3957F +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICircleEasingFunction: WindowsFoundation.IID { + .init(Data1: 0x414B172C, Data2: 0xBF27, Data3: 0x5EAD, Data4: ( 0x93,0xE0,0x35,0x91,0x53,0x22,0xDB,0x2C ))// 414B172C-BF27-5EAD-93E0-35915322DB2C +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIColorKeyFrameAnimation: WindowsFoundation.IID { + .init(Data1: 0xF0237928, Data2: 0x353C, Data3: 0x5867, Data4: ( 0xBE,0x93,0x71,0x54,0x7E,0x98,0x9F,0x44 ))// F0237928-353C-5867-BE93-71547E989F44 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionAnimation: WindowsFoundation.IID { + .init(Data1: 0xA829CCC8, Data2: 0x6FDE, Data3: 0x5B90, Data4: ( 0xAD,0x37,0xEF,0xD3,0x07,0xE1,0xB6,0x31 ))// A829CCC8-6FDE-5B90-AD37-EFD307E1B631 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionAnimation2: WindowsFoundation.IID { + .init(Data1: 0x0926EB58, Data2: 0x8965, Data3: 0x5C74, Data4: ( 0xBD,0xAC,0x85,0x2E,0xBB,0x5E,0x85,0x42 ))// 0926EB58-8965-5C74-BDAC-852EBB5E8542 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionAnimation3: WindowsFoundation.IID { + .init(Data1: 0x60063F53, Data2: 0x4167, Data3: 0x5914, Data4: ( 0xA2,0xF1,0x9E,0xFC,0xC2,0xF8,0x6C,0x76 ))// 60063F53-4167-5914-A2F1-9EFCC2F86C76 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionAnimation4: WindowsFoundation.IID { + .init(Data1: 0xC4101447, Data2: 0xDFE4, Data3: 0x597F, Data4: ( 0xB5,0xBC,0x96,0x44,0x3F,0x5D,0x18,0xA1 ))// C4101447-DFE4-597F-B5BC-96443F5D18A1 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionAnimationBase: WindowsFoundation.IID { + .init(Data1: 0xA77C0E5A, Data2: 0xF059, Data3: 0x4E85, Data4: ( 0xBC,0xEF,0xC0,0x68,0x69,0x4C,0xEC,0x78 ))// A77C0E5A-F059-4E85-BCEF-C068694CEC78 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionAnimationFactory: WindowsFoundation.IID { + .init(Data1: 0x2ED278CA, Data2: 0x4CCA, Data3: 0x5F7F, Data4: ( 0x8D,0x47,0xF9,0x30,0x55,0x2A,0x77,0x69 ))// 2ED278CA-4CCA-5F7F-8D47-F930552A7769 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionAnimationGroup: WindowsFoundation.IID { + .init(Data1: 0xA51CDCAC, Data2: 0xB972, Data3: 0x5AE7, Data4: ( 0x81,0xD0,0x9D,0x91,0xC7,0x1E,0xCB,0x7A ))// A51CDCAC-B972-5AE7-81D0-9D91C71ECB7A +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionApiInformationStatics: WindowsFoundation.IID { + .init(Data1: 0x85260ED3, Data2: 0x365B, Data3: 0x5E70, Data4: ( 0xB7,0x9A,0xF9,0xF1,0xD1,0x0F,0xA4,0xB5 ))// 85260ED3-365B-5E70-B79A-F9F1D10FA4B5 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionBackdropBrush: WindowsFoundation.IID { + .init(Data1: 0x6C866BB3, Data2: 0x172A, Data3: 0x570C, Data4: ( 0x82,0xAC,0xBF,0x98,0x48,0xD9,0x9A,0x59 ))// 6C866BB3-172A-570C-82AC-BF9848D99A59 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionBatchCompletedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xAC400334, Data2: 0x4358, Data3: 0x5FB0, Data4: ( 0xBF,0xC3,0x11,0x7F,0xE5,0x81,0x99,0x8F ))// AC400334-4358-5FB0-BFC3-117FE581998F +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionBrush: WindowsFoundation.IID { + .init(Data1: 0x483924E7, Data2: 0x99A5, Data3: 0x5377, Data4: ( 0x96,0x8B,0xDE,0xC6,0xD4,0x0B,0xBC,0xCD ))// 483924E7-99A5-5377-968B-DEC6D40BBCCD +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionBrushFactory: WindowsFoundation.IID { + .init(Data1: 0xABF2B354, Data2: 0x7130, Data3: 0x53D9, Data4: ( 0x83,0x24,0x36,0x5D,0x7E,0x02,0xED,0xE7 ))// ABF2B354-7130-53D9-8324-365D7E02EDE7 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionCapabilities: WindowsFoundation.IID { + .init(Data1: 0x7689BF12, Data2: 0x75C0, Data3: 0x52EA, Data4: ( 0x81,0xCB,0x46,0x3E,0xD1,0xC1,0x6C,0x45 ))// 7689BF12-75C0-52EA-81CB-463ED1C16C45 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionClip: WindowsFoundation.IID { + .init(Data1: 0xB66B55CB, Data2: 0xB5A5, Data3: 0x5BEE, Data4: ( 0x89,0x72,0xAE,0x78,0x23,0x3C,0xB3,0x4C ))// B66B55CB-B5A5-5BEE-8972-AE78233CB34C +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionClip2: WindowsFoundation.IID { + .init(Data1: 0xCDF6BF80, Data2: 0xAFD7, Data3: 0x57DC, Data4: ( 0x81,0x48,0x6C,0xCB,0xBB,0x5D,0x78,0xBB ))// CDF6BF80-AFD7-57DC-8148-6CCBBB5D78BB +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionClipFactory: WindowsFoundation.IID { + .init(Data1: 0x611DEC65, Data2: 0xD302, Data3: 0x52BC, Data4: ( 0x92,0xAB,0xA2,0x95,0xBD,0x14,0x1A,0xE4 ))// 611DEC65-D302-52BC-92AB-A295BD141AE4 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionColorBrush: WindowsFoundation.IID { + .init(Data1: 0x3F8FFB69, Data2: 0x3E71, Data3: 0x55A7, Data4: ( 0x8E,0x79,0xF2,0x7A,0x21,0x4C,0x56,0xAE ))// 3F8FFB69-3E71-55A7-8E79-F27A214C56AE +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionColorGradientStop: WindowsFoundation.IID { + .init(Data1: 0x868030D8, Data2: 0xC5C0, Data3: 0x5DD8, Data4: ( 0xA7,0x65,0xE3,0x2C,0xD3,0x49,0x7A,0xA9 ))// 868030D8-C5C0-5DD8-A765-E32CD3497AA9 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionColorGradientStopCollection: WindowsFoundation.IID { + .init(Data1: 0x4794CB29, Data2: 0xCE9D, Data3: 0x5837, Data4: ( 0x9F,0xC9,0x84,0x7D,0xF3,0xE1,0x97,0xDE ))// 4794CB29-CE9D-5837-9FC9-847DF3E197DE +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionCommitBatch: WindowsFoundation.IID { + .init(Data1: 0xC4550FA8, Data2: 0xA7F2, Data3: 0x5259, Data4: ( 0xBF,0x74,0x33,0xB2,0xF5,0x24,0x0A,0x28 ))// C4550FA8-A7F2-5259-BF74-33B2F5240A28 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionContainerShape: WindowsFoundation.IID { + .init(Data1: 0x064AABD5, Data2: 0x2DAB, Data3: 0x52D3, Data4: ( 0x82,0x4B,0xC7,0x24,0x56,0x54,0x0F,0x29 ))// 064AABD5-2DAB-52D3-824B-C72456540F29 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionDrawingSurface: WindowsFoundation.IID { + .init(Data1: 0x216CAB97, Data2: 0xA2EE, Data3: 0x5A29, Data4: ( 0xAD,0x6B,0x0B,0xC2,0xDF,0x4A,0x15,0x04 ))// 216CAB97-A2EE-5A29-AD6B-0BC2DF4A1504 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionDrawingSurface2: WindowsFoundation.IID { + .init(Data1: 0x6BE6F652, Data2: 0xBEC8, Data3: 0x5ADF, Data4: ( 0xA6,0xAF,0x5A,0xCF,0xC0,0x0A,0x96,0x8E ))// 6BE6F652-BEC8-5ADF-A6AF-5ACFC00A968E +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionDrawingSurfaceFactory: WindowsFoundation.IID { + .init(Data1: 0x4791E19A, Data2: 0xC83B, Data3: 0x58B0, Data4: ( 0xAC,0x86,0xDF,0xC5,0x84,0x94,0xF5,0xF9 ))// 4791E19A-C83B-58B0-AC86-DFC58494F5F9 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionEasingFunction: WindowsFoundation.IID { + .init(Data1: 0x8E1ECD0D, Data2: 0x57D8, Data3: 0x5BC9, Data4: ( 0x9B,0xCD,0xE4,0x3D,0x0D,0xD7,0x33,0xC4 ))// 8E1ECD0D-57D8-5BC9-9BCD-E43D0DD733C4 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionEasingFunctionFactory: WindowsFoundation.IID { + .init(Data1: 0x7D7D32C3, Data2: 0x574B, Data3: 0x5620, Data4: ( 0x99,0x02,0xDB,0x42,0x68,0x51,0x80,0x2F ))// 7D7D32C3-574B-5620-9902-DB426851802F +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionEasingFunctionStatics: WindowsFoundation.IID { + .init(Data1: 0x9D4B87FF, Data2: 0x6DCA, Data3: 0x5CE2, Data4: ( 0xB6,0x9C,0xE5,0x27,0x05,0xB0,0xFE,0xF4 ))// 9D4B87FF-6DCA-5CE2-B69C-E52705B0FEF4 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionEffectBrush: WindowsFoundation.IID { + .init(Data1: 0x62E0BBAB, Data2: 0x1F45, Data3: 0x5A44, Data4: ( 0x9D,0xDF,0xF0,0xC3,0x8A,0x02,0xED,0x85 ))// 62E0BBAB-1F45-5A44-9DDF-F0C38A02ED85 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionEffectFactory: WindowsFoundation.IID { + .init(Data1: 0xC50F407A, Data2: 0x0231, Data3: 0x5ED2, Data4: ( 0xB7,0xA7,0xCA,0x66,0xD3,0xE1,0x4B,0x3B ))// C50F407A-0231-5ED2-B7A7-CA66D3E14B3B +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionEffectSourceParameter: WindowsFoundation.IID { + .init(Data1: 0xBECE3367, Data2: 0x5704, Data3: 0x59F7, Data4: ( 0xBE,0x8C,0xD6,0x29,0x3A,0xF9,0xC9,0x5F ))// BECE3367-5704-59F7-BE8C-D6293AF9C95F +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionEffectSourceParameterFactory: WindowsFoundation.IID { + .init(Data1: 0x26185954, Data2: 0x4489, Data3: 0x5D0E, Data4: ( 0xAE,0x4D,0x7B,0xC4,0xBB,0xBC,0x61,0x61 ))// 26185954-4489-5D0E-AE4D-7BC4BBBC6161 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionEllipseGeometry: WindowsFoundation.IID { + .init(Data1: 0xF2A21042, Data2: 0x7A57, Data3: 0x58C1, Data4: ( 0x8B,0x47,0x8B,0xC8,0xB2,0x1D,0x3A,0xA0 ))// F2A21042-7A57-58C1-8B47-8BC8B21D3AA0 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionGeometricClip: WindowsFoundation.IID { + .init(Data1: 0xE3C0A8C5, Data2: 0x5297, Data3: 0x5D69, Data4: ( 0x8B,0x91,0xF5,0x33,0x0B,0xB1,0xCB,0x27 ))// E3C0A8C5-5297-5D69-8B91-F5330BB1CB27 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionGeometry: WindowsFoundation.IID { + .init(Data1: 0x4E40BDB2, Data2: 0x450B, Data3: 0x5A81, Data4: ( 0x9E,0x9B,0x14,0x94,0x17,0x98,0x0C,0xC4 ))// 4E40BDB2-450B-5A81-9E9B-149417980CC4 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionGeometryFactory: WindowsFoundation.IID { + .init(Data1: 0xB2FB802B, Data2: 0xC691, Data3: 0x5554, Data4: ( 0x83,0x12,0x9C,0x6D,0x35,0x8D,0x6B,0x9E ))// B2FB802B-C691-5554-8312-9C6D358D6B9E +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionGradientBrush: WindowsFoundation.IID { + .init(Data1: 0x9165D1FB, Data2: 0xC738, Data3: 0x5F44, Data4: ( 0xAD,0xDC,0x30,0x9E,0xE0,0x71,0xD5,0x88 ))// 9165D1FB-C738-5F44-ADDC-309EE071D588 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionGradientBrush2: WindowsFoundation.IID { + .init(Data1: 0x03E9EDF3, Data2: 0xEE3D, Data3: 0x58FC, Data4: ( 0x8C,0x0B,0x95,0xE4,0xB6,0x06,0x0A,0x94 ))// 03E9EDF3-EE3D-58FC-8C0B-95E4B6060A94 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionGradientBrushFactory: WindowsFoundation.IID { + .init(Data1: 0xB043B155, Data2: 0x4B40, Data3: 0x590D, Data4: ( 0xA0,0xD9,0xF8,0xC1,0xA7,0xE0,0xC8,0x8F ))// B043B155-4B40-590D-A0D9-F8C1A7E0C88F +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionGraphicsDevice: WindowsFoundation.IID { + .init(Data1: 0x3D47E3F5, Data2: 0xF76C, Data3: 0x5F1F, Data4: ( 0x88,0xC0,0x54,0xA5,0xF2,0xA0,0x90,0xD6 ))// 3D47E3F5-F76C-5F1F-88C0-54A5F2A090D6 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionGraphicsDevice2: WindowsFoundation.IID { + .init(Data1: 0xFFD56707, Data2: 0x1C7A, Data3: 0x5DA0, Data4: ( 0xAA,0x1A,0x49,0xCB,0x93,0x5B,0x5D,0xCA ))// FFD56707-1C7A-5DA0-AA1A-49CB935B5DCA +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionGraphicsDevice3: WindowsFoundation.IID { + .init(Data1: 0xFBBEF487, Data2: 0xD5A4, Data3: 0x5DB2, Data4: ( 0xBF,0x3E,0x9F,0x48,0x8E,0x65,0x9D,0x11 ))// FBBEF487-D5A4-5DB2-BF3E-9F488E659D11 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionGraphicsDevice4: WindowsFoundation.IID { + .init(Data1: 0x2B295C04, Data2: 0x7B2E, Data3: 0x5B0E, Data4: ( 0x97,0x62,0x29,0x92,0x31,0x3B,0x70,0x0C ))// 2B295C04-7B2E-5B0E-9762-2992313B700C +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionLight: WindowsFoundation.IID { + .init(Data1: 0x6D633E77, Data2: 0xA6B8, Data3: 0x5A2D, Data4: ( 0x82,0x35,0xE0,0xC3,0x80,0xC3,0xB4,0x7B ))// 6D633E77-A6B8-5A2D-8235-E0C380C3B47B +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionLight2: WindowsFoundation.IID { + .init(Data1: 0x0BB940A4, Data2: 0x05EF, Data3: 0x5920, Data4: ( 0xBA,0xE1,0x91,0x8B,0x36,0xD4,0x43,0x80 ))// 0BB940A4-05EF-5920-BAE1-918B36D44380 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionLight3: WindowsFoundation.IID { + .init(Data1: 0x95CE4859, Data2: 0xDD55, Data3: 0x5C38, Data4: ( 0xA3,0xEB,0x13,0xD0,0x53,0xCE,0xBB,0x1E ))// 95CE4859-DD55-5C38-A3EB-13D053CEBB1E +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionLightFactory: WindowsFoundation.IID { + .init(Data1: 0xCB29CAED, Data2: 0x9245, Data3: 0x51A6, Data4: ( 0xBA,0x56,0xAD,0xDB,0xAE,0xFA,0x54,0xCC ))// CB29CAED-9245-51A6-BA56-ADDBAEFA54CC +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionLineGeometry: WindowsFoundation.IID { + .init(Data1: 0x489F9382, Data2: 0xC186, Data3: 0x5936, Data4: ( 0x89,0x46,0xC4,0xF9,0x27,0xE8,0x44,0xAA ))// 489F9382-C186-5936-8946-C4F927E844AA +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionLinearGradientBrush: WindowsFoundation.IID { + .init(Data1: 0xF726FB52, Data2: 0x270C, Data3: 0x58B1, Data4: ( 0xA9,0x02,0x89,0x57,0x67,0x72,0xDE,0xDC ))// F726FB52-270C-58B1-A902-89576772DEDC +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionMaskBrush: WindowsFoundation.IID { + .init(Data1: 0xC9502786, Data2: 0x65AA, Data3: 0x5BE5, Data4: ( 0xA6,0x79,0xC3,0xB5,0xDB,0xFB,0x0D,0xC6 ))// C9502786-65AA-5BE5-A679-C3B5DBFB0DC6 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionMipmapSurface: WindowsFoundation.IID { + .init(Data1: 0x681F1E47, Data2: 0x6E43, Data3: 0x5B55, Data4: ( 0xBE,0x3A,0xE5,0xC8,0x58,0xA2,0xD5,0xFA ))// 681F1E47-6E43-5B55-BE3A-E5C858A2D5FA +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionNineGridBrush: WindowsFoundation.IID { + .init(Data1: 0xC77A3D21, Data2: 0xC7EE, Data3: 0x517A, Data4: ( 0x98,0xF4,0xAD,0x9A,0x72,0x02,0xBC,0x86 ))// C77A3D21-C7EE-517A-98F4-AD9A7202BC86 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionObject: WindowsFoundation.IID { + .init(Data1: 0x0E583D49, Data2: 0xFB5E, Data3: 0x5481, Data4: ( 0xA4,0x26,0xD3,0xC4,0x1E,0x05,0x9A,0x5A ))// 0E583D49-FB5E-5481-A426-D3C41E059A5A +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionObject2: WindowsFoundation.IID { + .init(Data1: 0xBCBBFEBF, Data2: 0x799C, Data3: 0x51CE, Data4: ( 0x9C,0x82,0xB6,0xE4,0x9E,0x7E,0x62,0xE1 ))// BCBBFEBF-799C-51CE-9C82-B6E49E7E62E1 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionObject3: WindowsFoundation.IID { + .init(Data1: 0xD43C5CF1, Data2: 0x47DF, Data3: 0x52B8, Data4: ( 0xB4,0x09,0xD5,0x83,0x15,0x03,0x90,0x5E ))// D43C5CF1-47DF-52B8-B409-D5831503905E +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionObject4: WindowsFoundation.IID { + .init(Data1: 0x029AD57C, Data2: 0x5497, Data3: 0x51F3, Data4: ( 0x8B,0x40,0xE4,0xE2,0x35,0x99,0x2C,0x6F ))// 029AD57C-5497-51F3-8B40-E4E235992C6F +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionObject5: WindowsFoundation.IID { + .init(Data1: 0x85FD26D1, Data2: 0xBB99, Data3: 0x5392, Data4: ( 0x9D,0xCE,0xA0,0x5C,0xB8,0x14,0x58,0xA5 ))// 85FD26D1-BB99-5392-9DCE-A05CB81458A5 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionObjectFactory: WindowsFoundation.IID { + .init(Data1: 0x6133C5F9, Data2: 0xCD3B, Data3: 0x56B2, Data4: ( 0x87,0x6F,0xEB,0x84,0x9D,0xB1,0x49,0x11 ))// 6133C5F9-CD3B-56B2-876F-EB849DB14911 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionObjectStatics: WindowsFoundation.IID { + .init(Data1: 0xA091356C, Data2: 0x38AE, Data3: 0x514C, Data4: ( 0x9B,0x58,0xAD,0x5C,0x8C,0x79,0x36,0xAD ))// A091356C-38AE-514C-9B58-AD5C8C7936AD +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionPath: WindowsFoundation.IID { + .init(Data1: 0x17C518C0, Data2: 0xD7A2, Data3: 0x54BE, Data4: ( 0xAC,0x7F,0xC4,0x08,0x56,0x2A,0x6A,0x20 ))// 17C518C0-D7A2-54BE-AC7F-C408562A6A20 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionPathFactory: WindowsFoundation.IID { + .init(Data1: 0x87143312, Data2: 0xD280, Data3: 0x51D2, Data4: ( 0xB7,0x5B,0x5D,0x76,0xEA,0x86,0xC2,0x85 ))// 87143312-D280-51D2-B75B-5D76EA86C285 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionPathGeometry: WindowsFoundation.IID { + .init(Data1: 0x0F6E6B82, Data2: 0x060B, Data3: 0x571E, Data4: ( 0xB8,0x49,0xAB,0x8E,0x0D,0x72,0x39,0x62 ))// 0F6E6B82-060B-571E-B849-AB8E0D723962 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionProjectedShadow: WindowsFoundation.IID { + .init(Data1: 0xD400AB10, Data2: 0x8B92, Data3: 0x5ABB, Data4: ( 0x9E,0x23,0x80,0x79,0x74,0xFC,0x69,0x61 ))// D400AB10-8B92-5ABB-9E23-807974FC6961 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionProjectedShadowCaster: WindowsFoundation.IID { + .init(Data1: 0x15A9F2D0, Data2: 0x6BAE, Data3: 0x521B, Data4: ( 0x90,0xC7,0xC7,0x50,0x0F,0x2B,0xF5,0x62 ))// 15A9F2D0-6BAE-521B-90C7-C7500F2BF562 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionProjectedShadowCasterCollection: WindowsFoundation.IID { + .init(Data1: 0xB120BFDC, Data2: 0x533C, Data3: 0x57A9, Data4: ( 0xAE,0x16,0xD4,0x3B,0xA5,0x24,0x72,0xC4 ))// B120BFDC-533C-57A9-AE16-D43BA52472C4 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionProjectedShadowCasterCollectionStatics: WindowsFoundation.IID { + .init(Data1: 0x43A98014, Data2: 0xB88B, Data3: 0x5B2A, Data4: ( 0xB1,0xE2,0x5E,0x77,0x6A,0xB7,0x75,0x38 ))// 43A98014-B88B-5B2A-B1E2-5E776AB77538 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionProjectedShadowReceiver: WindowsFoundation.IID { + .init(Data1: 0x29FE12B0, Data2: 0xF1A0, Data3: 0x50E1, Data4: ( 0xAF,0x28,0x2E,0x94,0x3B,0xC8,0x19,0xD6 ))// 29FE12B0-F1A0-50E1-AF28-2E943BC819D6 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionProjectedShadowReceiverUnorderedCollection: WindowsFoundation.IID { + .init(Data1: 0x2D35F751, Data2: 0xA1FA, Data3: 0x5FFF, Data4: ( 0xB1,0x56,0x6D,0x8F,0xCD,0x83,0x62,0xED ))// 2D35F751-A1FA-5FFF-B156-6D8FCD8362ED +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionPropertySet: WindowsFoundation.IID { + .init(Data1: 0x97F7A17B, Data2: 0x97BE, Data3: 0x5545, Data4: ( 0x9F,0x1C,0x0B,0x9D,0x44,0x57,0x7F,0x57 ))// 97F7A17B-97BE-5545-9F1C-0B9D44577F57 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionPropertySet2: WindowsFoundation.IID { + .init(Data1: 0x3DB6D621, Data2: 0x3497, Data3: 0x55E4, Data4: ( 0x95,0xBF,0x8A,0xE5,0xE7,0xC3,0x4C,0x33 ))// 3DB6D621-3497-55E4-95BF-8AE5E7C34C33 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionRadialGradientBrush: WindowsFoundation.IID { + .init(Data1: 0x17662F3F, Data2: 0xD351, Data3: 0x5435, Data4: ( 0xB3,0xB4,0xEC,0x26,0xCE,0xFE,0xCC,0xC5 ))// 17662F3F-D351-5435-B3B4-EC26CEFECCC5 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionRectangleGeometry: WindowsFoundation.IID { + .init(Data1: 0xBD551FCF, Data2: 0x2C7F, Data3: 0x5125, Data4: ( 0xAC,0x44,0x50,0xA4,0xF1,0xD8,0xFA,0x76 ))// BD551FCF-2C7F-5125-AC44-50A4F1D8FA76 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionRoundedRectangleGeometry: WindowsFoundation.IID { + .init(Data1: 0x02EAFC87, Data2: 0x8D1F, Data3: 0x5445, Data4: ( 0xA4,0x16,0xD8,0x1B,0xAE,0xE8,0xA7,0x50 ))// 02EAFC87-8D1F-5445-A416-D81BAEE8A750 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionScopedBatch: WindowsFoundation.IID { + .init(Data1: 0xD31CA572, Data2: 0x99CE, Data3: 0x5969, Data4: ( 0xB0,0x42,0x6C,0x2D,0x33,0x0A,0x38,0x59 ))// D31CA572-99CE-5969-B042-6C2D330A3859 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionShadow: WindowsFoundation.IID { + .init(Data1: 0x176B8BB5, Data2: 0x4DAE, Data3: 0x59B2, Data4: ( 0xB9,0xA0,0x24,0x99,0xB2,0x43,0x26,0x7C ))// 176B8BB5-4DAE-59B2-B9A0-2499B243267C +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionShadowFactory: WindowsFoundation.IID { + .init(Data1: 0xFF27546D, Data2: 0x9750, Data3: 0x54AE, Data4: ( 0xAB,0x8C,0x12,0x6C,0xBE,0x91,0x58,0xC3 ))// FF27546D-9750-54AE-AB8C-126CBE9158C3 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionShape: WindowsFoundation.IID { + .init(Data1: 0xED75D4D8, Data2: 0x437F, Data3: 0x5640, Data4: ( 0x97,0x20,0xFA,0xAE,0x35,0xCE,0x58,0x95 ))// ED75D4D8-437F-5640-9720-FAAE35CE5895 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionShapeFactory: WindowsFoundation.IID { + .init(Data1: 0x7AA2B987, Data2: 0x9CDD, Data3: 0x5B6E, Data4: ( 0x8A,0xC1,0xE9,0x89,0xD7,0x8B,0x48,0x11 ))// 7AA2B987-9CDD-5B6E-8AC1-E989D78B4811 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionSpriteShape: WindowsFoundation.IID { + .init(Data1: 0x982138F2, Data2: 0x5781, Data3: 0x509A, Data4: ( 0xBA,0x5D,0x11,0x2B,0xCB,0x0B,0x98,0xEF ))// 982138F2-5781-509A-BA5D-112BCB0B98EF +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionSupportsSystemBackdrop: WindowsFoundation.IID { + .init(Data1: 0x397DAFE4, Data2: 0xB6C2, Data3: 0x5BB9, Data4: ( 0x95,0x1D,0xF5,0x70,0x7D,0xE8,0xB7,0xBC ))// 397DAFE4-B6C2-5BB9-951D-F5707DE8B7BC +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionSurface: WindowsFoundation.IID { + .init(Data1: 0x9EC612C3, Data2: 0xA5D2, Data3: 0x4F97, Data4: ( 0x9D,0xF3,0x6B,0x49,0xCE,0x73,0x62,0x15 ))// 9EC612C3-A5D2-4F97-9DF3-6B49CE736215 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionSurfaceBrush: WindowsFoundation.IID { + .init(Data1: 0x616BB5A5, Data2: 0x0A33, Data3: 0x512D, Data4: ( 0xB4,0xB1,0x3D,0x37,0x34,0xF0,0x4A,0xCA ))// 616BB5A5-0A33-512D-B4B1-3D3734F04ACA +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionSurfaceBrush2: WindowsFoundation.IID { + .init(Data1: 0x9904B7E3, Data2: 0x084B, Data3: 0x58B5, Data4: ( 0x9A,0xE1,0x3A,0x20,0x40,0xDD,0x7A,0x22 ))// 9904B7E3-084B-58B5-9AE1-3A2040DD7A22 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionSurfaceBrush3: WindowsFoundation.IID { + .init(Data1: 0x8AA74C78, Data2: 0x680C, Data3: 0x5791, Data4: ( 0xAB,0x07,0x92,0xDB,0x0F,0x37,0xE3,0x52 ))// 8AA74C78-680C-5791-AB07-92DB0F37E352 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionSurfaceFacade: WindowsFoundation.IID { + .init(Data1: 0x88AC5DF6, Data2: 0x377F, Data3: 0x5CF7, Data4: ( 0xA0,0x2E,0xED,0x50,0x74,0xD3,0x04,0x52 ))// 88AC5DF6-377F-5CF7-A02E-ED5074D30452 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionTransform: WindowsFoundation.IID { + .init(Data1: 0x670E1826, Data2: 0x1932, Data3: 0x51D0, Data4: ( 0xBB,0xB3,0x06,0x3B,0x4C,0xA9,0x4B,0x56 ))// 670E1826-1932-51D0-BBB3-063B4CA94B56 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionTransformFactory: WindowsFoundation.IID { + .init(Data1: 0x78CC7BF2, Data2: 0xCDC0, Data3: 0x59D2, Data4: ( 0x9C,0x04,0x8D,0x20,0x8D,0xE7,0xEF,0x5E ))// 78CC7BF2-CDC0-59D2-9C04-8D208DE7EF5E +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionViewBox: WindowsFoundation.IID { + .init(Data1: 0x667E4071, Data2: 0xADDD, Data3: 0x5DED, Data4: ( 0xB6,0xC0,0x09,0xE0,0x3A,0x14,0xBE,0x7E ))// 667E4071-ADDD-5DED-B6C0-09E03A14BE7E +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionVirtualDrawingSurface: WindowsFoundation.IID { + .init(Data1: 0xD741B99D, Data2: 0xE248, Data3: 0x5BA7, Data4: ( 0xB7,0x28,0x8B,0xEE,0xA5,0x3F,0xE2,0x8E ))// D741B99D-E248-5BA7-B728-8BEEA53FE28E +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionVirtualDrawingSurfaceFactory: WindowsFoundation.IID { + .init(Data1: 0x85895891, Data2: 0x3F06, Data3: 0x52E2, Data4: ( 0xB5,0xEA,0xD1,0xFB,0x59,0x5F,0x65,0x74 ))// 85895891-3F06-52E2-B5EA-D1FB595F6574 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionVisualSurface: WindowsFoundation.IID { + .init(Data1: 0x49E3624B, Data2: 0x4D2E, Data3: 0x53E7, Data4: ( 0x9E,0x02,0xF6,0x48,0x31,0x68,0x11,0x34 ))// 49E3624B-4D2E-53E7-9E02-F64831681134 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositor: WindowsFoundation.IID { + .init(Data1: 0x95213C13, Data2: 0xC4CB, Data3: 0x57DE, Data4: ( 0xB2,0x67,0xD2,0x1A,0xB9,0x01,0xAE,0x38 ))// 95213C13-C4CB-57DE-B267-D21AB901AE38 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositor2: WindowsFoundation.IID { + .init(Data1: 0xA9FFEDAD, Data2: 0x3982, Data3: 0x576D, Data4: ( 0xA3,0x8A,0xC8,0x88,0xFF,0x60,0x58,0x19 ))// A9FFEDAD-3982-576D-A38A-C888FF605819 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositor4: WindowsFoundation.IID { + .init(Data1: 0xEE444BCA, Data2: 0x735C, Data3: 0x5CF2, Data4: ( 0xB7,0x9D,0xA6,0xDD,0x46,0xC1,0x61,0x60 ))// EE444BCA-735C-5CF2-B79D-A6DD46C16160 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositor5: WindowsFoundation.IID { + .init(Data1: 0xBB52D644, Data2: 0xA030, Data3: 0x5C19, Data4: ( 0xB8,0x83,0x57,0x7D,0xED,0x73,0x9A,0xE7 ))// BB52D644-A030-5C19-B883-577DED739AE7 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositor6: WindowsFoundation.IID { + .init(Data1: 0x5FD20200, Data2: 0xC188, Data3: 0x5737, Data4: ( 0xB5,0x67,0x5E,0x61,0x74,0x1A,0xF1,0x9C ))// 5FD20200-C188-5737-B567-5E61741AF19C +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositor7: WindowsFoundation.IID { + .init(Data1: 0x5358B81B, Data2: 0x4799, Data3: 0x5E7C, Data4: ( 0x90,0x6C,0xE3,0xDF,0x3B,0x2E,0x95,0xEB ))// 5358B81B-4799-5E7C-906C-E3DF3B2E95EB +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositor8: WindowsFoundation.IID { + .init(Data1: 0x02F5C9EE, Data2: 0xA3C0, Data3: 0x577A, Data4: ( 0x9D,0x23,0x44,0x02,0x4C,0x8E,0xAC,0xDA ))// 02F5C9EE-A3C0-577A-9D23-44024C8EACDA +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositorStatics: WindowsFoundation.IID { + .init(Data1: 0x6BAA947A, Data2: 0xF103, Data3: 0x55C6, Data4: ( 0x91,0xAD,0x3D,0x27,0x5B,0xEA,0x65,0xC4 ))// 6BAA947A-F103-55C6-91AD-3D275BEA65C4 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositorWithProjectedShadow: WindowsFoundation.IID { + .init(Data1: 0x60AB2BF2, Data2: 0xB95C, Data3: 0x5944, Data4: ( 0x8B,0x36,0xC9,0x77,0x3B,0x9F,0x52,0x56 ))// 60AB2BF2-B95C-5944-8B36-C9773B9F5256 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositorWithRadialGradient: WindowsFoundation.IID { + .init(Data1: 0xFA4F8F7D, Data2: 0x5CC7, Data3: 0x5C9C, Data4: ( 0x88,0x3B,0xFE,0x87,0x8A,0x2F,0x3E,0x30 ))// FA4F8F7D-5CC7-5C9C-883B-FE878A2F3E30 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositorWithVisualSurface: WindowsFoundation.IID { + .init(Data1: 0x5FCFE24A, Data2: 0x690A, Data3: 0x5378, Data4: ( 0xAC,0xEE,0x56,0x1E,0x84,0xBF,0xB9,0x82 ))// 5FCFE24A-690A-5378-ACEE-561E84BFB982 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIContainerVisual: WindowsFoundation.IID { + .init(Data1: 0xC70DBCE1, Data2: 0x2C2F, Data3: 0x5D8E, Data4: ( 0x91,0xA4,0xAA,0xE1,0x12,0x1E,0x61,0x86 ))// C70DBCE1-2C2F-5D8E-91A4-AAE1121E6186 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIContainerVisualFactory: WindowsFoundation.IID { + .init(Data1: 0x3FA45EEB, Data2: 0xC6DD, Data3: 0x5AFD, Data4: ( 0x97,0x1D,0xEA,0xAF,0x62,0x45,0xE7,0x16 ))// 3FA45EEB-C6DD-5AFD-971D-EAAF6245E716 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CICubicBezierEasingFunction: WindowsFoundation.IID { + .init(Data1: 0x35E7FCDE, Data2: 0xF9CE, Data3: 0x590A, Data4: ( 0x8B,0x88,0x64,0xA8,0x2A,0x6B,0x4B,0x48 ))// 35E7FCDE-F9CE-590A-8B88-64A82A6B4B48 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIDistantLight: WindowsFoundation.IID { + .init(Data1: 0x125EF556, Data2: 0x56EE, Data3: 0x5C60, Data4: ( 0xB9,0x44,0x57,0x19,0x28,0xCA,0x03,0xF5 ))// 125EF556-56EE-5C60-B944-571928CA03F5 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIDistantLight2: WindowsFoundation.IID { + .init(Data1: 0x9F97BFEC, Data2: 0xB6B9, Data3: 0x51EE, Data4: ( 0x84,0x80,0xB5,0x46,0x46,0x8C,0x74,0x8F ))// 9F97BFEC-B6B9-51EE-8480-B546468C748F +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIDropShadow: WindowsFoundation.IID { + .init(Data1: 0x977095D2, Data2: 0x265F, Data3: 0x5F58, Data4: ( 0x97,0x89,0xCB,0x7F,0x85,0xE9,0x8C,0x9E ))// 977095D2-265F-5F58-9789-CB7F85E98C9E +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIDropShadow2: WindowsFoundation.IID { + .init(Data1: 0xCBC7C266, Data2: 0x2D33, Data3: 0x5711, Data4: ( 0xB3,0xB4,0x56,0x99,0x41,0x0B,0xEF,0x56 ))// CBC7C266-2D33-5711-B3B4-5699410BEF56 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIElasticEasingFunction: WindowsFoundation.IID { + .init(Data1: 0xB952E12F, Data2: 0x4A50, Data3: 0x51A9, Data4: ( 0xA1,0x1A,0x23,0x85,0x5F,0x4A,0xAE,0x07 ))// B952E12F-4A50-51A9-A11A-23855F4AAE07 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIExponentialEasingFunction: WindowsFoundation.IID { + .init(Data1: 0xDF29ECC1, Data2: 0x3FFC, Data3: 0x565F, Data4: ( 0x9D,0x6C,0x53,0x35,0x86,0x90,0x81,0x06 ))// DF29ECC1-3FFC-565F-9D6C-533586908106 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIExpressionAnimation: WindowsFoundation.IID { + .init(Data1: 0x7FFF5826, Data2: 0x1992, Data3: 0x56C0, Data4: ( 0x90,0x60,0x5A,0xDE,0x56,0x1A,0x4F,0x2D ))// 7FFF5826-1992-56C0-9060-5ADE561A4F2D +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIImplicitAnimationCollection: WindowsFoundation.IID { + .init(Data1: 0xC5C0689E, Data2: 0xF5AE, Data3: 0x5BED, Data4: ( 0x82,0x9B,0xC5,0x22,0xCD,0xA3,0x97,0x17 ))// C5C0689E-F5AE-5BED-829B-C522CDA39717 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIInsetClip: WindowsFoundation.IID { + .init(Data1: 0xF9D99475, Data2: 0x7B59, Data3: 0x5B28, Data4: ( 0xA1,0xD2,0xB8,0x32,0xDA,0x69,0x88,0xC9 ))// F9D99475-7B59-5B28-A1D2-B832DA6988C9 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIKeyFrameAnimation: WindowsFoundation.IID { + .init(Data1: 0x5A8F57F0, Data2: 0xF059, Data3: 0x5B47, Data4: ( 0xB3,0x08,0xC4,0xC8,0x0F,0xC7,0x12,0x48 ))// 5A8F57F0-F059-5B47-B308-C4C80FC71248 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIKeyFrameAnimation2: WindowsFoundation.IID { + .init(Data1: 0x414692E5, Data2: 0x8A7E, Data3: 0x58EA, Data4: ( 0x83,0xE1,0x25,0xCE,0x47,0x5D,0x93,0x00 ))// 414692E5-8A7E-58EA-83E1-25CE475D9300 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIKeyFrameAnimation3: WindowsFoundation.IID { + .init(Data1: 0x4F97E180, Data2: 0x9BCB, Data3: 0x5FC4, Data4: ( 0xAB,0xBE,0x43,0xAA,0x3B,0xE3,0x27,0xE7 ))// 4F97E180-9BCB-5FC4-ABBE-43AA3BE327E7 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIKeyFrameAnimationFactory: WindowsFoundation.IID { + .init(Data1: 0x7CCCFC87, Data2: 0x3BAF, Data3: 0x5100, Data4: ( 0xB5,0xF8,0x2F,0x77,0x9F,0x95,0x4F,0x19 ))// 7CCCFC87-3BAF-5100-B5F8-2F779F954F19 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CILayerVisual: WindowsFoundation.IID { + .init(Data1: 0x64D05CA1, Data2: 0x3BF6, Data3: 0x5D4F, Data4: ( 0x98,0xA1,0x75,0x00,0xF2,0xF2,0x3E,0xBE ))// 64D05CA1-3BF6-5D4F-98A1-7500F2F23EBE +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CILayerVisual2: WindowsFoundation.IID { + .init(Data1: 0x9AB2E401, Data2: 0xAF45, Data3: 0x54DA, Data4: ( 0x99,0x91,0xDD,0x31,0x27,0x31,0x55,0xD2 ))// 9AB2E401-AF45-54DA-9991-DD31273155D2 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CILinearEasingFunction: WindowsFoundation.IID { + .init(Data1: 0x79BFEEF6, Data2: 0x70C7, Data3: 0x50A6, Data4: ( 0xBB,0x3A,0x0E,0x96,0x36,0x14,0x86,0x95 ))// 79BFEEF6-70C7-50A6-BB3A-0E9636148695 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CINaturalMotionAnimation: WindowsFoundation.IID { + .init(Data1: 0x2FF54EBB, Data2: 0xA035, Data3: 0x50BE, Data4: ( 0xA7,0x3C,0x20,0x01,0x49,0x75,0xEE,0x31 ))// 2FF54EBB-A035-50BE-A73C-20014975EE31 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CINaturalMotionAnimationFactory: WindowsFoundation.IID { + .init(Data1: 0x0411A259, Data2: 0x2622, Data3: 0x59E2, Data4: ( 0xA5,0x9E,0x1E,0x23,0xD8,0xF8,0x3A,0x9F ))// 0411A259-2622-59E2-A59E-1E23D8F83A9F +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIPathKeyFrameAnimation: WindowsFoundation.IID { + .init(Data1: 0x2B692808, Data2: 0x43DA, Data3: 0x5118, Data4: ( 0xB6,0x6D,0x90,0x4A,0x3E,0xC7,0x4F,0xD9 ))// 2B692808-43DA-5118-B66D-904A3EC74FD9 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIPointLight: WindowsFoundation.IID { + .init(Data1: 0xED5CC102, Data2: 0xF0AC, Data3: 0x59A8, Data4: ( 0x86,0x78,0xCE,0x54,0x14,0x6E,0x7B,0xE8 ))// ED5CC102-F0AC-59A8-8678-CE54146E7BE8 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIPointLight2: WindowsFoundation.IID { + .init(Data1: 0xDE466104, Data2: 0x59D9, Data3: 0x57D2, Data4: ( 0x92,0xB5,0x55,0x4D,0x6D,0x82,0xED,0xF2 ))// DE466104-59D9-57D2-92B5-554D6D82EDF2 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIPointLight3: WindowsFoundation.IID { + .init(Data1: 0xBE30E87A, Data2: 0x8CBB, Data3: 0x5A56, Data4: ( 0x8D,0x24,0x2C,0xD8,0x65,0xF3,0x83,0xB3 ))// BE30E87A-8CBB-5A56-8D24-2CD865F383B3 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIPowerEasingFunction: WindowsFoundation.IID { + .init(Data1: 0x0268A272, Data2: 0xEA06, Data3: 0x5FB0, Data4: ( 0x8D,0xEF,0x49,0x72,0x6B,0xCE,0xE3,0x9B ))// 0268A272-EA06-5FB0-8DEF-49726BCEE39B +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIQuaternionKeyFrameAnimation: WindowsFoundation.IID { + .init(Data1: 0xE72D1026, Data2: 0xDA3B, Data3: 0x5D56, Data4: ( 0x85,0x8B,0x3A,0x9A,0xA3,0xC5,0x7D,0x70 ))// E72D1026-DA3B-5D56-858B-3A9AA3C57D70 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIRectangleClip: WindowsFoundation.IID { + .init(Data1: 0xBC261502, Data2: 0x2259, Data3: 0x5C01, Data4: ( 0x86,0x16,0x55,0x61,0x10,0xA0,0x96,0x57 ))// BC261502-2259-5C01-8616-556110A09657 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIRedirectVisual: WindowsFoundation.IID { + .init(Data1: 0x6C10081A, Data2: 0xCDE1, Data3: 0x50D9, Data4: ( 0xAC,0x05,0x78,0xD6,0x84,0x5B,0x65,0x6F ))// 6C10081A-CDE1-50D9-AC05-78D6845B656F +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIRenderingDeviceReplacedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xFE5B97C7, Data2: 0xF656, Data3: 0x56D6, Data4: ( 0xA0,0xCD,0x3E,0x12,0x27,0xE4,0xDD,0x44 ))// FE5B97C7-F656-56D6-A0CD-3E1227E4DD44 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIScalarKeyFrameAnimation: WindowsFoundation.IID { + .init(Data1: 0x5A5F8ABE, Data2: 0xD129, Data3: 0x5B25, Data4: ( 0x8A,0xFF,0x81,0x80,0xFD,0x9B,0xFB,0x22 ))// 5A5F8ABE-D129-5B25-8AFF-8180FD9BFB22 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIScalarNaturalMotionAnimation: WindowsFoundation.IID { + .init(Data1: 0x903224B0, Data2: 0x2DBE, Data3: 0x56EB, Data4: ( 0xB9,0xEA,0x33,0xD2,0xE3,0x11,0x31,0x81 ))// 903224B0-2DBE-56EB-B9EA-33D2E3113181 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIScalarNaturalMotionAnimationFactory: WindowsFoundation.IID { + .init(Data1: 0x14F8A9AB, Data2: 0x976C, Data3: 0x5E6F, Data4: ( 0x89,0x0B,0x9A,0x74,0xD0,0x7F,0xA3,0x9F ))// 14F8A9AB-976C-5E6F-890B-9A74D07FA39F +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIShapeVisual: WindowsFoundation.IID { + .init(Data1: 0xA911C80B, Data2: 0xA5A5, Data3: 0x5ACA, Data4: ( 0xB8,0xFF,0xC4,0x3F,0x08,0xF0,0x61,0x43 ))// A911C80B-A5A5-5ACA-B8FF-C43F08F06143 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CISineEasingFunction: WindowsFoundation.IID { + .init(Data1: 0x7FCCB5F8, Data2: 0xCB0E, Data3: 0x5A01, Data4: ( 0xA2,0x6B,0x98,0x88,0x0F,0xF4,0x9D,0xC6 ))// 7FCCB5F8-CB0E-5A01-A26B-98880FF49DC6 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CISpotLight: WindowsFoundation.IID { + .init(Data1: 0x5935496A, Data2: 0x0586, Data3: 0x5F77, Data4: ( 0xBD,0x03,0xD5,0xA6,0xBB,0x9E,0x8F,0xA0 ))// 5935496A-0586-5F77-BD03-D5A6BB9E8FA0 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CISpotLight2: WindowsFoundation.IID { + .init(Data1: 0x49DD3B50, Data2: 0xEC5C, Data3: 0x5B6C, Data4: ( 0xBA,0xA1,0x85,0x04,0xB1,0x3E,0x3A,0x67 ))// 49DD3B50-EC5C-5B6C-BAA1-8504B13E3A67 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CISpotLight3: WindowsFoundation.IID { + .init(Data1: 0xC6919941, Data2: 0x0D9F, Data3: 0x58C8, Data4: ( 0x91,0xE2,0xAD,0xEF,0x6E,0x5E,0x70,0xA4 ))// C6919941-0D9F-58C8-91E2-ADEF6E5E70A4 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CISpringScalarNaturalMotionAnimation: WindowsFoundation.IID { + .init(Data1: 0x6F720AFD, Data2: 0xD3D0, Data3: 0x5E78, Data4: ( 0x9C,0x2E,0x83,0x09,0x2F,0x6E,0xA4,0x5E ))// 6F720AFD-D3D0-5E78-9C2E-83092F6EA45E +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CISpringVector2NaturalMotionAnimation: WindowsFoundation.IID { + .init(Data1: 0x5B4580A4, Data2: 0x2594, Data3: 0x521E, Data4: ( 0xB2,0x88,0xEA,0xF2,0xC2,0xA1,0x6A,0x66 ))// 5B4580A4-2594-521E-B288-EAF2C2A16A66 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CISpringVector3NaturalMotionAnimation: WindowsFoundation.IID { + .init(Data1: 0x02D9E1C6, Data2: 0x7434, Data3: 0x5464, Data4: ( 0xA1,0xF6,0xD6,0x44,0xCE,0x1F,0xC9,0xA6 ))// 02D9E1C6-7434-5464-A1F6-D644CE1FC9A6 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CISpriteVisual: WindowsFoundation.IID { + .init(Data1: 0x7E964632, Data2: 0x45E4, Data3: 0x5761, Data4: ( 0x80,0x6D,0x5B,0x40,0x22,0xC1,0x4F,0x26 ))// 7E964632-45E4-5761-806D-5B4022C14F26 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CISpriteVisual2: WindowsFoundation.IID { + .init(Data1: 0x3CB43662, Data2: 0x9ECF, Data3: 0x5128, Data4: ( 0x85,0x0D,0x9E,0xB8,0x43,0x77,0x74,0xF0 ))// 3CB43662-9ECF-5128-850D-9EB8437774F0 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIStepEasingFunction: WindowsFoundation.IID { + .init(Data1: 0xC7B1D4CF, Data2: 0xC562, Data3: 0x56B3, Data4: ( 0xB4,0xE6,0xB2,0x13,0x26,0x16,0x5F,0x71 ))// C7B1D4CF-C562-56B3-B4E6-B21326165F71 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIVector2KeyFrameAnimation: WindowsFoundation.IID { + .init(Data1: 0xE9C5E3FD, Data2: 0x43B7, Data3: 0x526E, Data4: ( 0x9D,0xA0,0x4C,0x3E,0xA9,0x6D,0xB2,0x7D ))// E9C5E3FD-43B7-526E-9DA0-4C3EA96DB27D +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIVector2NaturalMotionAnimation: WindowsFoundation.IID { + .init(Data1: 0xE00E60CE, Data2: 0xD1BE, Data3: 0x5C24, Data4: ( 0x88,0x5D,0xC1,0xD0,0xA7,0x49,0xD1,0x09 ))// E00E60CE-D1BE-5C24-885D-C1D0A749D109 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIVector2NaturalMotionAnimationFactory: WindowsFoundation.IID { + .init(Data1: 0xE39AEAD8, Data2: 0x80F9, Data3: 0x5F64, Data4: ( 0x86,0x44,0xE9,0xE5,0x64,0x6B,0x79,0x6F ))// E39AEAD8-80F9-5F64-8644-E9E5646B796F +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIVector3KeyFrameAnimation: WindowsFoundation.IID { + .init(Data1: 0xD7DA980E, Data2: 0x2DDE, Data3: 0x5DD1, Data4: ( 0xA4,0x0C,0xD6,0x86,0x8D,0xD2,0x44,0x9E ))// D7DA980E-2DDE-5DD1-A40C-D6868DD2449E +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIVector3NaturalMotionAnimation: WindowsFoundation.IID { + .init(Data1: 0x13FEEEF2, Data2: 0xD2C0, Data3: 0x5B72, Data4: ( 0xAD,0x67,0x98,0x3A,0x19,0xB9,0xB7,0x83 ))// 13FEEEF2-D2C0-5B72-AD67-983A19B9B783 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIVector3NaturalMotionAnimationFactory: WindowsFoundation.IID { + .init(Data1: 0x428241CB, Data2: 0xBE9C, Data3: 0x5C2A, Data4: ( 0x93,0x9C,0xEC,0x78,0xAA,0x60,0xBB,0x8A ))// 428241CB-BE9C-5C2A-939C-EC78AA60BB8A +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIVector4KeyFrameAnimation: WindowsFoundation.IID { + .init(Data1: 0x16CEA3B9, Data2: 0xC5E3, Data3: 0x5F6F, Data4: ( 0xB5,0xC7,0xDA,0x29,0xA3,0x1C,0xCF,0xC7 ))// 16CEA3B9-C5E3-5F6F-B5C7-DA29A31CCFC7 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIVisual: WindowsFoundation.IID { + .init(Data1: 0xC0EEAB6C, Data2: 0xC897, Data3: 0x5AC6, Data4: ( 0xA1,0xC9,0x63,0xAB,0xD5,0x05,0x5B,0x9B ))// C0EEAB6C-C897-5AC6-A1C9-63ABD5055B9B +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIVisual2: WindowsFoundation.IID { + .init(Data1: 0x492A7995, Data2: 0x0C5C, Data3: 0x5993, Data4: ( 0xA2,0x83,0x52,0xE4,0xDA,0x30,0x50,0xEE ))// 492A7995-0C5C-5993-A283-52E4DA3050EE +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIVisual3: WindowsFoundation.IID { + .init(Data1: 0x972B70B0, Data2: 0x950D, Data3: 0x5656, Data4: ( 0xA3,0x80,0xBD,0x4A,0x70,0x77,0x58,0x68 ))// 972B70B0-950D-5656-A380-BD4A70775868 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIVisual4: WindowsFoundation.IID { + .init(Data1: 0x27CB223F, Data2: 0xC431, Data3: 0x57AC, Data4: ( 0xB6,0x1E,0xD6,0xB7,0x51,0x5D,0x57,0x9F ))// 27CB223F-C431-57AC-B61E-D6B7515D579F +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIVisualCollection: WindowsFoundation.IID { + .init(Data1: 0xD002896D, Data2: 0x67D8, Data3: 0x5F69, Data4: ( 0xAB,0x70,0x58,0x1F,0xA3,0xBF,0x37,0x0F ))// D002896D-67D8-5F69-AB70-581FA3BF370F +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIVisualElement: WindowsFoundation.IID { + .init(Data1: 0x2180F1F5, Data2: 0xB5D8, Data3: 0x4BF6, Data4: ( 0x92,0x0A,0x12,0x00,0x6E,0x63,0xEF,0xEF ))// 2180F1F5-B5D8-4BF6-920A-12006E63EFEF +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIVisualElement2: WindowsFoundation.IID { + .init(Data1: 0xBC950C8D, Data2: 0x1DB0, Data3: 0x53AA, Data4: ( 0x9D,0xEE,0x34,0x27,0x1C,0xD1,0x8C,0xE6 ))// BC950C8D-1DB0-53AA-9DEE-34271CD18CE6 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIVisualFactory: WindowsFoundation.IID { + .init(Data1: 0x77BB4668, Data2: 0x83FA, Data3: 0x5BB5, Data4: ( 0xB7,0x8B,0x5E,0x6F,0xDC,0x3D,0x40,0x38 ))// 77BB4668-83FA-5BB5-B78B-5E6FDC3D4038 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CIVisualUnorderedCollection: WindowsFoundation.IID { + .init(Data1: 0x4A97216E, Data2: 0x793E, Data3: 0x54E3, Data4: ( 0x96,0xE8,0xF9,0xDB,0x79,0x01,0x19,0xCD ))// 4A97216E-793E-54E3-96E8-F9DB790119CD +} + +public enum __ABI_Microsoft_UI_Composition { + public class IAmbientLight: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIAmbientLight } + + internal func get_ColorImpl() throws -> UWP.Color { + var value: __x_ABI_CWindows_CUI_CColor = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIAmbientLight.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Color(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_ColorImpl(_ value: UWP.Color) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIAmbientLight.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Color(pThis, .from(swift: value))) + } + } + + } + + public class IAmbientLight2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIAmbientLight2 } + + internal func get_IntensityImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIAmbientLight2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Intensity(pThis, &value)) + } + return value + } + + internal func put_IntensityImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIAmbientLight2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Intensity(pThis, value)) + } + } + + } + + public class IAnimationController: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIAnimationController } + + internal func get_PlaybackRateImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIAnimationController.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PlaybackRate(pThis, &value)) + } + return value + } + + internal func put_PlaybackRateImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIAnimationController.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_PlaybackRate(pThis, value)) + } + } + + internal func get_ProgressImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIAnimationController.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Progress(pThis, &value)) + } + return value + } + + internal func put_ProgressImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIAnimationController.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Progress(pThis, value)) + } + } + + internal func get_ProgressBehaviorImpl() throws -> WinAppSDK.AnimationControllerProgressBehavior { + var value: __x_ABI_CMicrosoft_CUI_CComposition_CAnimationControllerProgressBehavior = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIAnimationController.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ProgressBehavior(pThis, &value)) + } + return value + } + + internal func put_ProgressBehaviorImpl(_ value: WinAppSDK.AnimationControllerProgressBehavior) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIAnimationController.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ProgressBehavior(pThis, value)) + } + } + + internal func PauseImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIAnimationController.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Pause(pThis)) + } + } + + internal func ResumeImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIAnimationController.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Resume(pThis)) + } + } + + } + + public class IAnimationControllerStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIAnimationControllerStatics } + + internal func get_MaxPlaybackRateImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIAnimationControllerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MaxPlaybackRate(pThis, &value)) + } + return value + } + + internal func get_MinPlaybackRateImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIAnimationControllerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MinPlaybackRate(pThis, &value)) + } + return value + } + + } + + public class IAnimationObject: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIAnimationObject } + + open func PopulatePropertyInfoImpl(_ propertyName: String, _ propertyInfo: WinAppSDK.AnimationPropertyInfo?) throws { + let _propertyName = try! HString(propertyName) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIAnimationObject.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.PopulatePropertyInfo(pThis, _propertyName.get(), RawPointer(propertyInfo))) + } + } + + } + + internal static var IAnimationObjectVTable: __x_ABI_CMicrosoft_CUI_CComposition_CIAnimationObjectVtbl = .init( + QueryInterface: { IAnimationObjectWrapper.queryInterface($0, $1, $2) }, + AddRef: { IAnimationObjectWrapper.addRef($0) }, + Release: { IAnimationObjectWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = __ABI_Microsoft_UI_Composition.IAnimationObjectWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Microsoft.UI.Composition.IAnimationObject").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + PopulatePropertyInfo: { + do { + guard let __unwrapped__instance = IAnimationObjectWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let propertyName: String = .init(from: $1) + let propertyInfo: WinAppSDK.AnimationPropertyInfo? = .from(abi: ComPtr($2)) + try __unwrapped__instance.populatePropertyInfo(propertyName, propertyInfo) + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) + + public typealias IAnimationObjectWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Composition.IAnimationObjectBridge> + public class IAnimationPropertyInfo: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIAnimationPropertyInfo } + + internal func get_AccessModeImpl() throws -> WinAppSDK.AnimationPropertyAccessMode { + var value: __x_ABI_CMicrosoft_CUI_CComposition_CAnimationPropertyAccessMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIAnimationPropertyInfo.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AccessMode(pThis, &value)) + } + return value + } + + internal func put_AccessModeImpl(_ value: WinAppSDK.AnimationPropertyAccessMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIAnimationPropertyInfo.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_AccessMode(pThis, value)) + } + } + + } + + public class IAnimationPropertyInfo2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIAnimationPropertyInfo2 } + + internal func GetResolvedCompositionObjectImpl() throws -> WinAppSDK.CompositionObject? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIAnimationPropertyInfo2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetResolvedCompositionObject(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func GetResolvedCompositionObjectPropertyImpl() throws -> String { + var result: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIAnimationPropertyInfo2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetResolvedCompositionObjectProperty(pThis, &result)) + } + return .init(from: result) + } + + } + + public class IBackEasingFunction: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIBackEasingFunction } + + internal func get_ModeImpl() throws -> WinAppSDK.CompositionEasingFunctionMode { + var value: __x_ABI_CMicrosoft_CUI_CComposition_CCompositionEasingFunctionMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIBackEasingFunction.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Mode(pThis, &value)) + } + return value + } + + internal func get_AmplitudeImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIBackEasingFunction.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Amplitude(pThis, &value)) + } + return value + } + + } + + public class IBooleanKeyFrameAnimation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIBooleanKeyFrameAnimation } + + internal func InsertKeyFrameImpl(_ normalizedProgressKey: Float, _ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIBooleanKeyFrameAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InsertKeyFrame(pThis, normalizedProgressKey, .init(from: value))) + } + } + + } + + public class IBounceEasingFunction: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIBounceEasingFunction } + + internal func get_ModeImpl() throws -> WinAppSDK.CompositionEasingFunctionMode { + var value: __x_ABI_CMicrosoft_CUI_CComposition_CCompositionEasingFunctionMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIBounceEasingFunction.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Mode(pThis, &value)) + } + return value + } + + internal func get_BouncesImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIBounceEasingFunction.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Bounces(pThis, &value)) + } + return value + } + + internal func get_BouncinessImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIBounceEasingFunction.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Bounciness(pThis, &value)) + } + return value + } + + } + + public class IBounceScalarNaturalMotionAnimation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIBounceScalarNaturalMotionAnimation } + + internal func get_AccelerationImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIBounceScalarNaturalMotionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Acceleration(pThis, &value)) + } + return value + } + + internal func put_AccelerationImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIBounceScalarNaturalMotionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Acceleration(pThis, value)) + } + } + + internal func get_RestitutionImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIBounceScalarNaturalMotionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Restitution(pThis, &value)) + } + return value + } + + internal func put_RestitutionImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIBounceScalarNaturalMotionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Restitution(pThis, value)) + } + } + + } + + public class IBounceVector2NaturalMotionAnimation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIBounceVector2NaturalMotionAnimation } + + internal func get_AccelerationImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIBounceVector2NaturalMotionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Acceleration(pThis, &value)) + } + return value + } + + internal func put_AccelerationImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIBounceVector2NaturalMotionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Acceleration(pThis, value)) + } + } + + internal func get_RestitutionImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIBounceVector2NaturalMotionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Restitution(pThis, &value)) + } + return value + } + + internal func put_RestitutionImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIBounceVector2NaturalMotionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Restitution(pThis, value)) + } + } + + } + + public class IBounceVector3NaturalMotionAnimation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIBounceVector3NaturalMotionAnimation } + + internal func get_AccelerationImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIBounceVector3NaturalMotionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Acceleration(pThis, &value)) + } + return value + } + + internal func put_AccelerationImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIBounceVector3NaturalMotionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Acceleration(pThis, value)) + } + } + + internal func get_RestitutionImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIBounceVector3NaturalMotionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Restitution(pThis, &value)) + } + return value + } + + internal func put_RestitutionImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIBounceVector3NaturalMotionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Restitution(pThis, value)) + } + } + + } + + public class ICircleEasingFunction: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICircleEasingFunction } + + internal func get_ModeImpl() throws -> WinAppSDK.CompositionEasingFunctionMode { + var value: __x_ABI_CMicrosoft_CUI_CComposition_CCompositionEasingFunctionMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICircleEasingFunction.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Mode(pThis, &value)) + } + return value + } + + } + + public class IColorKeyFrameAnimation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIColorKeyFrameAnimation } + + internal func get_InterpolationColorSpaceImpl() throws -> WinAppSDK.CompositionColorSpace { + var value: __x_ABI_CMicrosoft_CUI_CComposition_CCompositionColorSpace = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIColorKeyFrameAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_InterpolationColorSpace(pThis, &value)) + } + return value + } + + internal func put_InterpolationColorSpaceImpl(_ value: WinAppSDK.CompositionColorSpace) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIColorKeyFrameAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_InterpolationColorSpace(pThis, value)) + } + } + + internal func InsertKeyFrameImpl(_ normalizedProgressKey: Float, _ value: UWP.Color) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIColorKeyFrameAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InsertKeyFrame(pThis, normalizedProgressKey, .from(swift: value))) + } + } + + internal func InsertKeyFrameWithEasingFunctionImpl(_ normalizedProgressKey: Float, _ value: UWP.Color, _ easingFunction: WinAppSDK.CompositionEasingFunction?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIColorKeyFrameAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InsertKeyFrameWithEasingFunction(pThis, normalizedProgressKey, .from(swift: value), RawPointer(easingFunction))) + } + } + + } + + public class ICompositionAnimation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionAnimation } + + internal func ClearAllParametersImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ClearAllParameters(pThis)) + } + } + + internal func ClearParameterImpl(_ key: String) throws { + let _key = try! HString(key) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ClearParameter(pThis, _key.get())) + } + } + + internal func SetColorParameterImpl(_ key: String, _ value: UWP.Color) throws { + let _key = try! HString(key) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetColorParameter(pThis, _key.get(), .from(swift: value))) + } + } + + internal func SetMatrix3x2ParameterImpl(_ key: String, _ value: WindowsFoundation.Matrix3x2) throws { + let _key = try! HString(key) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetMatrix3x2Parameter(pThis, _key.get(), .from(swift: value))) + } + } + + internal func SetMatrix4x4ParameterImpl(_ key: String, _ value: WindowsFoundation.Matrix4x4) throws { + let _key = try! HString(key) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetMatrix4x4Parameter(pThis, _key.get(), .from(swift: value))) + } + } + + internal func SetQuaternionParameterImpl(_ key: String, _ value: WindowsFoundation.Quaternion) throws { + let _key = try! HString(key) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetQuaternionParameter(pThis, _key.get(), .from(swift: value))) + } + } + + internal func SetReferenceParameterImpl(_ key: String, _ compositionObject: WinAppSDK.CompositionObject?) throws { + let _key = try! HString(key) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetReferenceParameter(pThis, _key.get(), RawPointer(compositionObject))) + } + } + + internal func SetScalarParameterImpl(_ key: String, _ value: Float) throws { + let _key = try! HString(key) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetScalarParameter(pThis, _key.get(), value)) + } + } + + internal func SetVector2ParameterImpl(_ key: String, _ value: WindowsFoundation.Vector2) throws { + let _key = try! HString(key) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetVector2Parameter(pThis, _key.get(), .from(swift: value))) + } + } + + internal func SetVector3ParameterImpl(_ key: String, _ value: WindowsFoundation.Vector3) throws { + let _key = try! HString(key) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetVector3Parameter(pThis, _key.get(), .from(swift: value))) + } + } + + internal func SetVector4ParameterImpl(_ key: String, _ value: WindowsFoundation.Vector4) throws { + let _key = try! HString(key) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetVector4Parameter(pThis, _key.get(), .from(swift: value))) + } + } + + } + + public class ICompositionAnimation2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionAnimation2 } + + internal func SetBooleanParameterImpl(_ key: String, _ value: Bool) throws { + let _key = try! HString(key) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionAnimation2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetBooleanParameter(pThis, _key.get(), .init(from: value))) + } + } + + internal func get_TargetImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionAnimation2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Target(pThis, &value)) + } + return .init(from: value) + } + + internal func put_TargetImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionAnimation2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Target(pThis, _value.get())) + } + } + + } + + public class ICompositionAnimation3: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionAnimation3 } + + internal func get_InitialValueExpressionsImpl() throws -> WinAppSDK.InitialValueExpressionCollection? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionAnimation3.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_InitialValueExpressions(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class ICompositionAnimation4: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionAnimation4 } + + internal func SetExpressionReferenceParameterImpl(_ parameterName: String, _ source: WinAppSDK.AnyIAnimationObject?) throws { + let _parameterName = try! HString(parameterName) + let sourceWrapper = __ABI_Microsoft_UI_Composition.IAnimationObjectWrapper(source) + let _source = try! sourceWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionAnimation4.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetExpressionReferenceParameter(pThis, _parameterName.get(), _source)) + } + } + + } + + public class ICompositionAnimationBase: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionAnimationBase } + + } + + internal static var ICompositionAnimationBaseVTable: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionAnimationBaseVtbl = .init( + QueryInterface: { ICompositionAnimationBaseWrapper.queryInterface($0, $1, $2) }, + AddRef: { ICompositionAnimationBaseWrapper.addRef($0) }, + Release: { ICompositionAnimationBaseWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = __ABI_Microsoft_UI_Composition.ICompositionAnimationBaseWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Microsoft.UI.Composition.ICompositionAnimationBase").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + } + ) + + public typealias ICompositionAnimationBaseWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Composition.ICompositionAnimationBaseBridge> + public class ICompositionAnimationFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionAnimationFactory } + + } + + public class ICompositionAnimationGroup: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionAnimationGroup } + + internal func get_CountImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionAnimationGroup.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Count(pThis, &value)) + } + return value + } + + internal func AddImpl(_ value: WinAppSDK.CompositionAnimation?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionAnimationGroup.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Add(pThis, RawPointer(value))) + } + } + + internal func RemoveImpl(_ value: WinAppSDK.CompositionAnimation?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionAnimationGroup.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Remove(pThis, RawPointer(value))) + } + } + + internal func RemoveAllImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionAnimationGroup.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAll(pThis)) + } + } + + } + + public class ICompositionApiInformationStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionApiInformationStatics } + + internal func get_ApiVersionImpl() throws -> UInt64 { + var value: UINT64 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionApiInformationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ApiVersion(pThis, &value)) + } + return value + } + + } + + public class ICompositionBackdropBrush: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionBackdropBrush } + + } + + public class ICompositionBatchCompletedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionBatchCompletedEventArgs } + + } + + public class ICompositionBrush: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionBrush } + + } + + public class ICompositionBrushFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionBrushFactory } + + } + + public class ICompositionCapabilities: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionCapabilities } + + internal func AreEffectsSupportedImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionCapabilities.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.AreEffectsSupported(pThis, &result)) + } + return .init(from: result) + } + + internal func AreEffectsFastImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionCapabilities.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.AreEffectsFast(pThis, &result)) + } + return .init(from: result) + } + + internal func add_ChangedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionCapabilities_IInspectableWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionCapabilities.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Changed(pThis, _handler, &token)) + } + return token + } + + internal func remove_ChangedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionCapabilities.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Changed(pThis, token)) + } + } + + } + + public class ICompositionClip: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionClip } + + } + + public class ICompositionClip2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionClip2 } + + internal func get_AnchorPointImpl() throws -> WindowsFoundation.Vector2 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionClip2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AnchorPoint(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_AnchorPointImpl(_ value: WindowsFoundation.Vector2) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionClip2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_AnchorPoint(pThis, .from(swift: value))) + } + } + + internal func get_CenterPointImpl() throws -> WindowsFoundation.Vector2 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionClip2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CenterPoint(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_CenterPointImpl(_ value: WindowsFoundation.Vector2) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionClip2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CenterPoint(pThis, .from(swift: value))) + } + } + + internal func get_OffsetImpl() throws -> WindowsFoundation.Vector2 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionClip2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Offset(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_OffsetImpl(_ value: WindowsFoundation.Vector2) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionClip2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Offset(pThis, .from(swift: value))) + } + } + + internal func get_RotationAngleImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionClip2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RotationAngle(pThis, &value)) + } + return value + } + + internal func put_RotationAngleImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionClip2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_RotationAngle(pThis, value)) + } + } + + internal func get_RotationAngleInDegreesImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionClip2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RotationAngleInDegrees(pThis, &value)) + } + return value + } + + internal func put_RotationAngleInDegreesImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionClip2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_RotationAngleInDegrees(pThis, value)) + } + } + + internal func get_ScaleImpl() throws -> WindowsFoundation.Vector2 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionClip2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Scale(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_ScaleImpl(_ value: WindowsFoundation.Vector2) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionClip2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Scale(pThis, .from(swift: value))) + } + } + + internal func get_TransformMatrixImpl() throws -> WindowsFoundation.Matrix3x2 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CMatrix3x2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionClip2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TransformMatrix(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_TransformMatrixImpl(_ value: WindowsFoundation.Matrix3x2) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionClip2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TransformMatrix(pThis, .from(swift: value))) + } + } + + } + + public class ICompositionClipFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionClipFactory } + + } + + public class ICompositionColorBrush: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionColorBrush } + + internal func get_ColorImpl() throws -> UWP.Color { + var value: __x_ABI_CWindows_CUI_CColor = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionColorBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Color(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_ColorImpl(_ value: UWP.Color) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionColorBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Color(pThis, .from(swift: value))) + } + } + + } + + public class ICompositionColorGradientStop: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionColorGradientStop } + + internal func get_ColorImpl() throws -> UWP.Color { + var value: __x_ABI_CWindows_CUI_CColor = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionColorGradientStop.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Color(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_ColorImpl(_ value: UWP.Color) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionColorGradientStop.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Color(pThis, .from(swift: value))) + } + } + + internal func get_OffsetImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionColorGradientStop.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Offset(pThis, &value)) + } + return value + } + + internal func put_OffsetImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionColorGradientStop.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Offset(pThis, value)) + } + } + + } + + public class ICompositionColorGradientStopCollection: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionColorGradientStopCollection } + + } + + public class ICompositionCommitBatch: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionCommitBatch } + + internal func get_IsActiveImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionCommitBatch.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsActive(pThis, &value)) + } + return .init(from: value) + } + + internal func get_IsEndedImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionCommitBatch.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsEnded(pThis, &value)) + } + return .init(from: value) + } + + internal func add_CompletedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CComposition__CCompositionBatchCompletedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionCommitBatch.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Completed(pThis, _handler, &token)) + } + return token + } + + internal func remove_CompletedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionCommitBatch.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Completed(pThis, token)) + } + } + + } + + public class ICompositionContainerShape: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionContainerShape } + + internal func get_ShapesImpl() throws -> WinAppSDK.CompositionShapeCollection? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionContainerShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Shapes(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class ICompositionDrawingSurface: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionDrawingSurface } + + internal func get_AlphaModeImpl() throws -> WinAppSDK.DirectXAlphaMode { + var value: __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXAlphaMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionDrawingSurface.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AlphaMode(pThis, &value)) + } + return value + } + + internal func get_PixelFormatImpl() throws -> WinAppSDK.DirectXPixelFormat { + var value: __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionDrawingSurface.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PixelFormat(pThis, &value)) + } + return value + } + + internal func get_SizeImpl() throws -> WindowsFoundation.Size { + var value: __x_ABI_CWindows_CFoundation_CSize = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionDrawingSurface.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &value)) + } + return .from(abi: value) + } + + } + + public class ICompositionDrawingSurface2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionDrawingSurface2 } + + internal func get_SizeInt32Impl() throws -> UWP.SizeInt32 { + var value: __x_ABI_CWindows_CGraphics_CSizeInt32 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionDrawingSurface2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SizeInt32(pThis, &value)) + } + return .from(abi: value) + } + + internal func ResizeImpl(_ sizePixels: UWP.SizeInt32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionDrawingSurface2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Resize(pThis, .from(swift: sizePixels))) + } + } + + internal func ScrollImpl(_ offset: UWP.PointInt32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionDrawingSurface2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Scroll(pThis, .from(swift: offset))) + } + } + + internal func ScrollRectImpl(_ offset: UWP.PointInt32, _ scrollRect: UWP.RectInt32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionDrawingSurface2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ScrollRect(pThis, .from(swift: offset), .from(swift: scrollRect))) + } + } + + internal func ScrollWithClipImpl(_ offset: UWP.PointInt32, _ clipRect: UWP.RectInt32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionDrawingSurface2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ScrollWithClip(pThis, .from(swift: offset), .from(swift: clipRect))) + } + } + + internal func ScrollRectWithClipImpl(_ offset: UWP.PointInt32, _ clipRect: UWP.RectInt32, _ scrollRect: UWP.RectInt32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionDrawingSurface2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ScrollRectWithClip(pThis, .from(swift: offset), .from(swift: clipRect), .from(swift: scrollRect))) + } + } + + } + + public class ICompositionDrawingSurfaceFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionDrawingSurfaceFactory } + + } + + public class ICompositionEasingFunction: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionEasingFunction } + + } + + public class ICompositionEasingFunctionFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionEasingFunctionFactory } + + } + + public class ICompositionEasingFunctionStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionEasingFunctionStatics } + + internal func CreateCubicBezierEasingFunctionImpl(_ owner: WinAppSDK.Compositor?, _ controlPoint1: WindowsFoundation.Vector2, _ controlPoint2: WindowsFoundation.Vector2) throws -> WinAppSDK.CubicBezierEasingFunction? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionEasingFunctionStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateCubicBezierEasingFunction(pThis, RawPointer(owner), .from(swift: controlPoint1), .from(swift: controlPoint2), &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateLinearEasingFunctionImpl(_ owner: WinAppSDK.Compositor?) throws -> WinAppSDK.LinearEasingFunction? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionEasingFunctionStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateLinearEasingFunction(pThis, RawPointer(owner), &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateStepEasingFunctionImpl(_ owner: WinAppSDK.Compositor?) throws -> WinAppSDK.StepEasingFunction? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionEasingFunctionStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateStepEasingFunction(pThis, RawPointer(owner), &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateStepEasingFunctionWithStepCountImpl(_ owner: WinAppSDK.Compositor?, _ stepCount: Int32) throws -> WinAppSDK.StepEasingFunction? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionEasingFunctionStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateStepEasingFunctionWithStepCount(pThis, RawPointer(owner), stepCount, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateBackEasingFunctionImpl(_ owner: WinAppSDK.Compositor?, _ mode: WinAppSDK.CompositionEasingFunctionMode, _ amplitude: Float) throws -> WinAppSDK.BackEasingFunction? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionEasingFunctionStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateBackEasingFunction(pThis, RawPointer(owner), mode, amplitude, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateBounceEasingFunctionImpl(_ owner: WinAppSDK.Compositor?, _ mode: WinAppSDK.CompositionEasingFunctionMode, _ bounces: Int32, _ bounciness: Float) throws -> WinAppSDK.BounceEasingFunction? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionEasingFunctionStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateBounceEasingFunction(pThis, RawPointer(owner), mode, bounces, bounciness, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateCircleEasingFunctionImpl(_ owner: WinAppSDK.Compositor?, _ mode: WinAppSDK.CompositionEasingFunctionMode) throws -> WinAppSDK.CircleEasingFunction? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionEasingFunctionStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateCircleEasingFunction(pThis, RawPointer(owner), mode, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateElasticEasingFunctionImpl(_ owner: WinAppSDK.Compositor?, _ mode: WinAppSDK.CompositionEasingFunctionMode, _ oscillations: Int32, _ springiness: Float) throws -> WinAppSDK.ElasticEasingFunction? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionEasingFunctionStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateElasticEasingFunction(pThis, RawPointer(owner), mode, oscillations, springiness, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateExponentialEasingFunctionImpl(_ owner: WinAppSDK.Compositor?, _ mode: WinAppSDK.CompositionEasingFunctionMode, _ exponent: Float) throws -> WinAppSDK.ExponentialEasingFunction? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionEasingFunctionStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateExponentialEasingFunction(pThis, RawPointer(owner), mode, exponent, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreatePowerEasingFunctionImpl(_ owner: WinAppSDK.Compositor?, _ mode: WinAppSDK.CompositionEasingFunctionMode, _ power: Float) throws -> WinAppSDK.PowerEasingFunction? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionEasingFunctionStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreatePowerEasingFunction(pThis, RawPointer(owner), mode, power, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateSineEasingFunctionImpl(_ owner: WinAppSDK.Compositor?, _ mode: WinAppSDK.CompositionEasingFunctionMode) throws -> WinAppSDK.SineEasingFunction? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionEasingFunctionStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateSineEasingFunction(pThis, RawPointer(owner), mode, &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class ICompositionEffectBrush: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionEffectBrush } + + internal func GetSourceParameterImpl(_ name: String) throws -> WinAppSDK.CompositionBrush? { + let (result) = try ComPtrs.initialize { resultAbi in + let _name = try! HString(name) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionEffectBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetSourceParameter(pThis, _name.get(), &resultAbi)) + } + } + return .from(abi: result) + } + + internal func SetSourceParameterImpl(_ name: String, _ source: WinAppSDK.CompositionBrush?) throws { + let _name = try! HString(name) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionEffectBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetSourceParameter(pThis, _name.get(), RawPointer(source))) + } + } + + } + + public class ICompositionEffectFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionEffectFactory } + + internal func CreateBrushImpl() throws -> WinAppSDK.CompositionEffectBrush? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionEffectFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateBrush(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func get_ExtendedErrorImpl() throws -> HRESULT { + var value: HRESULT = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionEffectFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ExtendedError(pThis, &value)) + } + return value + } + + internal func get_LoadStatusImpl() throws -> WinAppSDK.CompositionEffectFactoryLoadStatus { + var value: __x_ABI_CMicrosoft_CUI_CComposition_CCompositionEffectFactoryLoadStatus = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionEffectFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LoadStatus(pThis, &value)) + } + return value + } + + } + + public class ICompositionEffectSourceParameter: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionEffectSourceParameter } + + internal func get_NameImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionEffectSourceParameter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Name(pThis, &value)) + } + return .init(from: value) + } + + } + + public class ICompositionEffectSourceParameterFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionEffectSourceParameterFactory } + + internal func CreateImpl(_ name: String) throws -> ICompositionEffectSourceParameter { + let (value) = try ComPtrs.initialize { valueAbi in + let _name = try! HString(name) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionEffectSourceParameterFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Create(pThis, _name.get(), &valueAbi)) + } + } + return ICompositionEffectSourceParameter(value!) + } + + } + + public class ICompositionEllipseGeometry: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionEllipseGeometry } + + internal func get_CenterImpl() throws -> WindowsFoundation.Vector2 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionEllipseGeometry.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Center(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_CenterImpl(_ value: WindowsFoundation.Vector2) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionEllipseGeometry.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Center(pThis, .from(swift: value))) + } + } + + internal func get_RadiusImpl() throws -> WindowsFoundation.Vector2 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionEllipseGeometry.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Radius(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_RadiusImpl(_ value: WindowsFoundation.Vector2) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionEllipseGeometry.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Radius(pThis, .from(swift: value))) + } + } + + } + + public class ICompositionGeometricClip: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionGeometricClip } + + internal func get_GeometryImpl() throws -> WinAppSDK.CompositionGeometry? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionGeometricClip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Geometry(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_GeometryImpl(_ value: WinAppSDK.CompositionGeometry?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionGeometricClip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Geometry(pThis, RawPointer(value))) + } + } + + internal func get_ViewBoxImpl() throws -> WinAppSDK.CompositionViewBox? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionGeometricClip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ViewBox(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ViewBoxImpl(_ value: WinAppSDK.CompositionViewBox?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionGeometricClip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ViewBox(pThis, RawPointer(value))) + } + } + + } + + public class ICompositionGeometry: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionGeometry } + + internal func get_TrimEndImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionGeometry.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TrimEnd(pThis, &value)) + } + return value + } + + internal func put_TrimEndImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionGeometry.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TrimEnd(pThis, value)) + } + } + + internal func get_TrimOffsetImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionGeometry.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TrimOffset(pThis, &value)) + } + return value + } + + internal func put_TrimOffsetImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionGeometry.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TrimOffset(pThis, value)) + } + } + + internal func get_TrimStartImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionGeometry.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TrimStart(pThis, &value)) + } + return value + } + + internal func put_TrimStartImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionGeometry.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TrimStart(pThis, value)) + } + } + + } + + public class ICompositionGeometryFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionGeometryFactory } + + } + + public class ICompositionGradientBrush: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionGradientBrush } + + internal func get_AnchorPointImpl() throws -> WindowsFoundation.Vector2 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionGradientBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AnchorPoint(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_AnchorPointImpl(_ value: WindowsFoundation.Vector2) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionGradientBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_AnchorPoint(pThis, .from(swift: value))) + } + } + + internal func get_CenterPointImpl() throws -> WindowsFoundation.Vector2 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionGradientBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CenterPoint(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_CenterPointImpl(_ value: WindowsFoundation.Vector2) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionGradientBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CenterPoint(pThis, .from(swift: value))) + } + } + + internal func get_ColorStopsImpl() throws -> WinAppSDK.CompositionColorGradientStopCollection? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionGradientBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ColorStops(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ExtendModeImpl() throws -> WinAppSDK.CompositionGradientExtendMode { + var value: __x_ABI_CMicrosoft_CUI_CComposition_CCompositionGradientExtendMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionGradientBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ExtendMode(pThis, &value)) + } + return value + } + + internal func put_ExtendModeImpl(_ value: WinAppSDK.CompositionGradientExtendMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionGradientBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ExtendMode(pThis, value)) + } + } + + internal func get_InterpolationSpaceImpl() throws -> WinAppSDK.CompositionColorSpace { + var value: __x_ABI_CMicrosoft_CUI_CComposition_CCompositionColorSpace = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionGradientBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_InterpolationSpace(pThis, &value)) + } + return value + } + + internal func put_InterpolationSpaceImpl(_ value: WinAppSDK.CompositionColorSpace) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionGradientBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_InterpolationSpace(pThis, value)) + } + } + + internal func get_OffsetImpl() throws -> WindowsFoundation.Vector2 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionGradientBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Offset(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_OffsetImpl(_ value: WindowsFoundation.Vector2) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionGradientBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Offset(pThis, .from(swift: value))) + } + } + + internal func get_RotationAngleImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionGradientBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RotationAngle(pThis, &value)) + } + return value + } + + internal func put_RotationAngleImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionGradientBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_RotationAngle(pThis, value)) + } + } + + internal func get_RotationAngleInDegreesImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionGradientBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RotationAngleInDegrees(pThis, &value)) + } + return value + } + + internal func put_RotationAngleInDegreesImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionGradientBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_RotationAngleInDegrees(pThis, value)) + } + } + + internal func get_ScaleImpl() throws -> WindowsFoundation.Vector2 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionGradientBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Scale(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_ScaleImpl(_ value: WindowsFoundation.Vector2) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionGradientBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Scale(pThis, .from(swift: value))) + } + } + + internal func get_TransformMatrixImpl() throws -> WindowsFoundation.Matrix3x2 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CMatrix3x2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionGradientBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TransformMatrix(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_TransformMatrixImpl(_ value: WindowsFoundation.Matrix3x2) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionGradientBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TransformMatrix(pThis, .from(swift: value))) + } + } + + } + + public class ICompositionGradientBrush2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionGradientBrush2 } + + internal func get_MappingModeImpl() throws -> WinAppSDK.CompositionMappingMode { + var value: __x_ABI_CMicrosoft_CUI_CComposition_CCompositionMappingMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionGradientBrush2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MappingMode(pThis, &value)) + } + return value + } + + internal func put_MappingModeImpl(_ value: WinAppSDK.CompositionMappingMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionGradientBrush2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_MappingMode(pThis, value)) + } + } + + } + + public class ICompositionGradientBrushFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionGradientBrushFactory } + + } + + public class ICompositionGraphicsDevice: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionGraphicsDevice } + + internal func CreateDrawingSurfaceImpl(_ sizePixels: WindowsFoundation.Size, _ pixelFormat: WinAppSDK.DirectXPixelFormat, _ alphaMode: WinAppSDK.DirectXAlphaMode) throws -> WinAppSDK.CompositionDrawingSurface? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionGraphicsDevice.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateDrawingSurface(pThis, .from(swift: sizePixels), pixelFormat, alphaMode, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func add_RenderingDeviceReplacedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionGraphicsDevice___x_ABI_CMicrosoft__CUI__CComposition__CRenderingDeviceReplacedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionGraphicsDevice.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_RenderingDeviceReplaced(pThis, _handler, &token)) + } + return token + } + + internal func remove_RenderingDeviceReplacedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionGraphicsDevice.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_RenderingDeviceReplaced(pThis, token)) + } + } + + } + + public class ICompositionGraphicsDevice2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionGraphicsDevice2 } + + internal func CreateDrawingSurface2Impl(_ sizePixels: UWP.SizeInt32, _ pixelFormat: WinAppSDK.DirectXPixelFormat, _ alphaMode: WinAppSDK.DirectXAlphaMode) throws -> WinAppSDK.CompositionDrawingSurface? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionGraphicsDevice2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateDrawingSurface2(pThis, .from(swift: sizePixels), pixelFormat, alphaMode, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateVirtualDrawingSurfaceImpl(_ sizePixels: UWP.SizeInt32, _ pixelFormat: WinAppSDK.DirectXPixelFormat, _ alphaMode: WinAppSDK.DirectXAlphaMode) throws -> WinAppSDK.CompositionVirtualDrawingSurface? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionGraphicsDevice2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateVirtualDrawingSurface(pThis, .from(swift: sizePixels), pixelFormat, alphaMode, &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class ICompositionGraphicsDevice3: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionGraphicsDevice3 } + + internal func CreateMipmapSurfaceImpl(_ sizePixels: UWP.SizeInt32, _ pixelFormat: WinAppSDK.DirectXPixelFormat, _ alphaMode: WinAppSDK.DirectXAlphaMode) throws -> WinAppSDK.CompositionMipmapSurface? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionGraphicsDevice3.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateMipmapSurface(pThis, .from(swift: sizePixels), pixelFormat, alphaMode, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func TrimImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionGraphicsDevice3.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Trim(pThis)) + } + } + + } + + public class ICompositionGraphicsDevice4: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionGraphicsDevice4 } + + internal func CaptureAsyncImpl(_ captureVisual: WinAppSDK.Visual?, _ size: UWP.SizeInt32, _ pixelFormat: WinAppSDK.DirectXPixelFormat, _ alphaMode: WinAppSDK.DirectXAlphaMode, _ sdrBoost: Float) throws -> WindowsFoundation.AnyIAsyncOperation? { + let (operation) = try ComPtrs.initialize { operationAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionGraphicsDevice4.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CaptureAsync(pThis, RawPointer(captureVisual), .from(swift: size), pixelFormat, alphaMode, sdrBoost, &operationAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceWrapper.unwrapFrom(abi: operation) + } + + } + + public class ICompositionLight: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionLight } + + internal func get_TargetsImpl() throws -> WinAppSDK.VisualUnorderedCollection? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionLight.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Targets(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class ICompositionLight2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionLight2 } + + internal func get_ExclusionsFromTargetsImpl() throws -> WinAppSDK.VisualUnorderedCollection? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionLight2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ExclusionsFromTargets(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class ICompositionLight3: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionLight3 } + + internal func get_IsEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionLight3.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionLight3.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsEnabled(pThis, .init(from: value))) + } + } + + } + + public class ICompositionLightFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionLightFactory } + + } + + public class ICompositionLineGeometry: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionLineGeometry } + + internal func get_StartImpl() throws -> WindowsFoundation.Vector2 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionLineGeometry.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Start(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_StartImpl(_ value: WindowsFoundation.Vector2) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionLineGeometry.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Start(pThis, .from(swift: value))) + } + } + + internal func get_EndImpl() throws -> WindowsFoundation.Vector2 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionLineGeometry.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_End(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_EndImpl(_ value: WindowsFoundation.Vector2) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionLineGeometry.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_End(pThis, .from(swift: value))) + } + } + + } + + public class ICompositionLinearGradientBrush: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionLinearGradientBrush } + + internal func get_EndPointImpl() throws -> WindowsFoundation.Vector2 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionLinearGradientBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EndPoint(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_EndPointImpl(_ value: WindowsFoundation.Vector2) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionLinearGradientBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_EndPoint(pThis, .from(swift: value))) + } + } + + internal func get_StartPointImpl() throws -> WindowsFoundation.Vector2 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionLinearGradientBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_StartPoint(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_StartPointImpl(_ value: WindowsFoundation.Vector2) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionLinearGradientBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_StartPoint(pThis, .from(swift: value))) + } + } + + } + + public class ICompositionMaskBrush: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionMaskBrush } + + internal func get_MaskImpl() throws -> WinAppSDK.CompositionBrush? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionMaskBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Mask(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_MaskImpl(_ value: WinAppSDK.CompositionBrush?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionMaskBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Mask(pThis, RawPointer(value))) + } + } + + internal func get_SourceImpl() throws -> WinAppSDK.CompositionBrush? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionMaskBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Source(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_SourceImpl(_ value: WinAppSDK.CompositionBrush?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionMaskBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Source(pThis, RawPointer(value))) + } + } + + } + + public class ICompositionMipmapSurface: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionMipmapSurface } + + internal func get_LevelCountImpl() throws -> UInt32 { + var value: UINT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionMipmapSurface.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LevelCount(pThis, &value)) + } + return value + } + + internal func get_AlphaModeImpl() throws -> WinAppSDK.DirectXAlphaMode { + var value: __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXAlphaMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionMipmapSurface.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AlphaMode(pThis, &value)) + } + return value + } + + internal func get_PixelFormatImpl() throws -> WinAppSDK.DirectXPixelFormat { + var value: __x_ABI_CMicrosoft_CGraphics_CDirectX_CDirectXPixelFormat = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionMipmapSurface.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PixelFormat(pThis, &value)) + } + return value + } + + internal func get_SizeInt32Impl() throws -> UWP.SizeInt32 { + var value: __x_ABI_CWindows_CGraphics_CSizeInt32 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionMipmapSurface.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SizeInt32(pThis, &value)) + } + return .from(abi: value) + } + + internal func GetDrawingSurfaceForLevelImpl(_ level: UInt32) throws -> WinAppSDK.CompositionDrawingSurface? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionMipmapSurface.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetDrawingSurfaceForLevel(pThis, level, &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class ICompositionNineGridBrush: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionNineGridBrush } + + internal func get_BottomInsetImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionNineGridBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BottomInset(pThis, &value)) + } + return value + } + + internal func put_BottomInsetImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionNineGridBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_BottomInset(pThis, value)) + } + } + + internal func get_BottomInsetScaleImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionNineGridBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BottomInsetScale(pThis, &value)) + } + return value + } + + internal func put_BottomInsetScaleImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionNineGridBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_BottomInsetScale(pThis, value)) + } + } + + internal func get_IsCenterHollowImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionNineGridBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsCenterHollow(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsCenterHollowImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionNineGridBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsCenterHollow(pThis, .init(from: value))) + } + } + + internal func get_LeftInsetImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionNineGridBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LeftInset(pThis, &value)) + } + return value + } + + internal func put_LeftInsetImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionNineGridBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_LeftInset(pThis, value)) + } + } + + internal func get_LeftInsetScaleImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionNineGridBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LeftInsetScale(pThis, &value)) + } + return value + } + + internal func put_LeftInsetScaleImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionNineGridBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_LeftInsetScale(pThis, value)) + } + } + + internal func get_RightInsetImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionNineGridBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RightInset(pThis, &value)) + } + return value + } + + internal func put_RightInsetImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionNineGridBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_RightInset(pThis, value)) + } + } + + internal func get_RightInsetScaleImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionNineGridBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RightInsetScale(pThis, &value)) + } + return value + } + + internal func put_RightInsetScaleImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionNineGridBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_RightInsetScale(pThis, value)) + } + } + + internal func get_SourceImpl() throws -> WinAppSDK.CompositionBrush? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionNineGridBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Source(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_SourceImpl(_ value: WinAppSDK.CompositionBrush?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionNineGridBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Source(pThis, RawPointer(value))) + } + } + + internal func get_TopInsetImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionNineGridBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TopInset(pThis, &value)) + } + return value + } + + internal func put_TopInsetImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionNineGridBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TopInset(pThis, value)) + } + } + + internal func get_TopInsetScaleImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionNineGridBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TopInsetScale(pThis, &value)) + } + return value + } + + internal func put_TopInsetScaleImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionNineGridBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TopInsetScale(pThis, value)) + } + } + + internal func SetInsetsImpl(_ inset: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionNineGridBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetInsets(pThis, inset)) + } + } + + internal func SetInsetsWithValuesImpl(_ left: Float, _ top: Float, _ right: Float, _ bottom: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionNineGridBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetInsetsWithValues(pThis, left, top, right, bottom)) + } + } + + internal func SetInsetScalesImpl(_ scale: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionNineGridBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetInsetScales(pThis, scale)) + } + } + + internal func SetInsetScalesWithValuesImpl(_ left: Float, _ top: Float, _ right: Float, _ bottom: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionNineGridBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetInsetScalesWithValues(pThis, left, top, right, bottom)) + } + } + + } + + public class ICompositionObject: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionObject } + + internal func get_CompositorImpl() throws -> WinAppSDK.Compositor? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionObject.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Compositor(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_PropertiesImpl() throws -> WinAppSDK.CompositionPropertySet? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionObject.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Properties(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func StartAnimationImpl(_ propertyName: String, _ animation: WinAppSDK.CompositionAnimation?) throws { + let _propertyName = try! HString(propertyName) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionObject.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.StartAnimation(pThis, _propertyName.get(), RawPointer(animation))) + } + } + + internal func StopAnimationImpl(_ propertyName: String) throws { + let _propertyName = try! HString(propertyName) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionObject.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.StopAnimation(pThis, _propertyName.get())) + } + } + + } + + public class ICompositionObject2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionObject2 } + + internal func get_CommentImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionObject2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Comment(pThis, &value)) + } + return .init(from: value) + } + + internal func put_CommentImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionObject2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Comment(pThis, _value.get())) + } + } + + internal func get_ImplicitAnimationsImpl() throws -> WinAppSDK.ImplicitAnimationCollection? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionObject2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ImplicitAnimations(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ImplicitAnimationsImpl(_ value: WinAppSDK.ImplicitAnimationCollection?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionObject2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ImplicitAnimations(pThis, RawPointer(value))) + } + } + + internal func StartAnimationGroupImpl(_ value: WinAppSDK.AnyICompositionAnimationBase?) throws { + let valueWrapper = __ABI_Microsoft_UI_Composition.ICompositionAnimationBaseWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionObject2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.StartAnimationGroup(pThis, _value)) + } + } + + internal func StopAnimationGroupImpl(_ value: WinAppSDK.AnyICompositionAnimationBase?) throws { + let valueWrapper = __ABI_Microsoft_UI_Composition.ICompositionAnimationBaseWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionObject2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.StopAnimationGroup(pThis, _value)) + } + } + + } + + public class ICompositionObject3: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionObject3 } + + internal func get_DispatcherQueueImpl() throws -> WinAppSDK.DispatcherQueue? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionObject3.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DispatcherQueue(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class ICompositionObject4: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionObject4 } + + internal func TryGetAnimationControllerImpl(_ propertyName: String) throws -> WinAppSDK.AnimationController? { + let (result) = try ComPtrs.initialize { resultAbi in + let _propertyName = try! HString(propertyName) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionObject4.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.TryGetAnimationController(pThis, _propertyName.get(), &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class ICompositionObject5: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionObject5 } + + internal func StartAnimationWithControllerImpl(_ propertyName: String, _ animation: WinAppSDK.CompositionAnimation?, _ animationController: WinAppSDK.AnimationController?) throws { + let _propertyName = try! HString(propertyName) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionObject5.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.StartAnimationWithController(pThis, _propertyName.get(), RawPointer(animation), RawPointer(animationController))) + } + } + + } + + public class ICompositionObjectFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionObjectFactory } + + } + + public class ICompositionObjectStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionObjectStatics } + + internal func StartAnimationWithIAnimationObjectImpl(_ target: WinAppSDK.AnyIAnimationObject?, _ propertyName: String, _ animation: WinAppSDK.CompositionAnimation?) throws { + let targetWrapper = __ABI_Microsoft_UI_Composition.IAnimationObjectWrapper(target) + let _target = try! targetWrapper?.toABI { $0 } + let _propertyName = try! HString(propertyName) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionObjectStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.StartAnimationWithIAnimationObject(pThis, _target, _propertyName.get(), RawPointer(animation))) + } + } + + internal func StartAnimationGroupWithIAnimationObjectImpl(_ target: WinAppSDK.AnyIAnimationObject?, _ animation: WinAppSDK.AnyICompositionAnimationBase?) throws { + let targetWrapper = __ABI_Microsoft_UI_Composition.IAnimationObjectWrapper(target) + let _target = try! targetWrapper?.toABI { $0 } + let animationWrapper = __ABI_Microsoft_UI_Composition.ICompositionAnimationBaseWrapper(animation) + let _animation = try! animationWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionObjectStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.StartAnimationGroupWithIAnimationObject(pThis, _target, _animation)) + } + } + + } + + public class ICompositionPath: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionPath } + + } + + public class ICompositionPathFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionPathFactory } + + internal func CreateImpl(_ source: UWP.AnyIGeometrySource2D?) throws -> ICompositionPath { + let (value) = try ComPtrs.initialize { valueAbi in + let sourceWrapper = __ABI_Windows_Graphics.IGeometrySource2DWrapper(source) + let _source = try! sourceWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionPathFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Create(pThis, _source, &valueAbi)) + } + } + return ICompositionPath(value!) + } + + } + + public class ICompositionPathGeometry: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionPathGeometry } + + internal func get_PathImpl() throws -> WinAppSDK.CompositionPath? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionPathGeometry.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Path(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_PathImpl(_ value: WinAppSDK.CompositionPath?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionPathGeometry.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Path(pThis, RawPointer(value))) + } + } + + } + + public class ICompositionProjectedShadow: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionProjectedShadow } + + internal func get_BlurRadiusMultiplierImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionProjectedShadow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BlurRadiusMultiplier(pThis, &value)) + } + return value + } + + internal func put_BlurRadiusMultiplierImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionProjectedShadow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_BlurRadiusMultiplier(pThis, value)) + } + } + + internal func get_CastersImpl() throws -> WinAppSDK.CompositionProjectedShadowCasterCollection? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionProjectedShadow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Casters(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_LightSourceImpl() throws -> WinAppSDK.CompositionLight? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionProjectedShadow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LightSource(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_LightSourceImpl(_ value: WinAppSDK.CompositionLight?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionProjectedShadow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_LightSource(pThis, RawPointer(value))) + } + } + + internal func get_MaxBlurRadiusImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionProjectedShadow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MaxBlurRadius(pThis, &value)) + } + return value + } + + internal func put_MaxBlurRadiusImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionProjectedShadow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_MaxBlurRadius(pThis, value)) + } + } + + internal func get_MinBlurRadiusImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionProjectedShadow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MinBlurRadius(pThis, &value)) + } + return value + } + + internal func put_MinBlurRadiusImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionProjectedShadow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_MinBlurRadius(pThis, value)) + } + } + + internal func get_ReceiversImpl() throws -> WinAppSDK.CompositionProjectedShadowReceiverUnorderedCollection? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionProjectedShadow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Receivers(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class ICompositionProjectedShadowCaster: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionProjectedShadowCaster } + + internal func get_BrushImpl() throws -> WinAppSDK.CompositionBrush? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionProjectedShadowCaster.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Brush(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_BrushImpl(_ value: WinAppSDK.CompositionBrush?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionProjectedShadowCaster.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Brush(pThis, RawPointer(value))) + } + } + + internal func get_CastingVisualImpl() throws -> WinAppSDK.Visual? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionProjectedShadowCaster.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CastingVisual(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_CastingVisualImpl(_ value: WinAppSDK.Visual?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionProjectedShadowCaster.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CastingVisual(pThis, RawPointer(value))) + } + } + + } + + public class ICompositionProjectedShadowCasterCollection: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionProjectedShadowCasterCollection } + + internal func get_CountImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionProjectedShadowCasterCollection.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Count(pThis, &value)) + } + return value + } + + internal func InsertAboveImpl(_ newCaster: WinAppSDK.CompositionProjectedShadowCaster?, _ reference: WinAppSDK.CompositionProjectedShadowCaster?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionProjectedShadowCasterCollection.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InsertAbove(pThis, RawPointer(newCaster), RawPointer(reference))) + } + } + + internal func InsertAtBottomImpl(_ newCaster: WinAppSDK.CompositionProjectedShadowCaster?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionProjectedShadowCasterCollection.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InsertAtBottom(pThis, RawPointer(newCaster))) + } + } + + internal func InsertAtTopImpl(_ newCaster: WinAppSDK.CompositionProjectedShadowCaster?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionProjectedShadowCasterCollection.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InsertAtTop(pThis, RawPointer(newCaster))) + } + } + + internal func InsertBelowImpl(_ newCaster: WinAppSDK.CompositionProjectedShadowCaster?, _ reference: WinAppSDK.CompositionProjectedShadowCaster?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionProjectedShadowCasterCollection.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InsertBelow(pThis, RawPointer(newCaster), RawPointer(reference))) + } + } + + internal func RemoveImpl(_ caster: WinAppSDK.CompositionProjectedShadowCaster?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionProjectedShadowCasterCollection.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Remove(pThis, RawPointer(caster))) + } + } + + internal func RemoveAllImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionProjectedShadowCasterCollection.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAll(pThis)) + } + } + + } + + public class ICompositionProjectedShadowCasterCollectionStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionProjectedShadowCasterCollectionStatics } + + internal func get_MaxRespectedCastersImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionProjectedShadowCasterCollectionStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MaxRespectedCasters(pThis, &value)) + } + return value + } + + } + + public class ICompositionProjectedShadowReceiver: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionProjectedShadowReceiver } + + internal func get_ReceivingVisualImpl() throws -> WinAppSDK.Visual? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionProjectedShadowReceiver.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ReceivingVisual(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ReceivingVisualImpl(_ value: WinAppSDK.Visual?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionProjectedShadowReceiver.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ReceivingVisual(pThis, RawPointer(value))) + } + } + + } + + public class ICompositionProjectedShadowReceiverUnorderedCollection: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionProjectedShadowReceiverUnorderedCollection } + + internal func AddImpl(_ value: WinAppSDK.CompositionProjectedShadowReceiver?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionProjectedShadowReceiverUnorderedCollection.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Add(pThis, RawPointer(value))) + } + } + + internal func get_CountImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionProjectedShadowReceiverUnorderedCollection.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Count(pThis, &value)) + } + return value + } + + internal func RemoveImpl(_ value: WinAppSDK.CompositionProjectedShadowReceiver?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionProjectedShadowReceiverUnorderedCollection.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Remove(pThis, RawPointer(value))) + } + } + + internal func RemoveAllImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionProjectedShadowReceiverUnorderedCollection.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAll(pThis)) + } + } + + } + + public class ICompositionPropertySet: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionPropertySet } + + internal func InsertColorImpl(_ propertyName: String, _ value: UWP.Color) throws { + let _propertyName = try! HString(propertyName) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionPropertySet.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InsertColor(pThis, _propertyName.get(), .from(swift: value))) + } + } + + internal func InsertMatrix3x2Impl(_ propertyName: String, _ value: WindowsFoundation.Matrix3x2) throws { + let _propertyName = try! HString(propertyName) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionPropertySet.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InsertMatrix3x2(pThis, _propertyName.get(), .from(swift: value))) + } + } + + internal func InsertMatrix4x4Impl(_ propertyName: String, _ value: WindowsFoundation.Matrix4x4) throws { + let _propertyName = try! HString(propertyName) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionPropertySet.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InsertMatrix4x4(pThis, _propertyName.get(), .from(swift: value))) + } + } + + internal func InsertQuaternionImpl(_ propertyName: String, _ value: WindowsFoundation.Quaternion) throws { + let _propertyName = try! HString(propertyName) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionPropertySet.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InsertQuaternion(pThis, _propertyName.get(), .from(swift: value))) + } + } + + internal func InsertScalarImpl(_ propertyName: String, _ value: Float) throws { + let _propertyName = try! HString(propertyName) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionPropertySet.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InsertScalar(pThis, _propertyName.get(), value)) + } + } + + internal func InsertVector2Impl(_ propertyName: String, _ value: WindowsFoundation.Vector2) throws { + let _propertyName = try! HString(propertyName) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionPropertySet.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InsertVector2(pThis, _propertyName.get(), .from(swift: value))) + } + } + + internal func InsertVector3Impl(_ propertyName: String, _ value: WindowsFoundation.Vector3) throws { + let _propertyName = try! HString(propertyName) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionPropertySet.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InsertVector3(pThis, _propertyName.get(), .from(swift: value))) + } + } + + internal func InsertVector4Impl(_ propertyName: String, _ value: WindowsFoundation.Vector4) throws { + let _propertyName = try! HString(propertyName) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionPropertySet.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InsertVector4(pThis, _propertyName.get(), .from(swift: value))) + } + } + + internal func TryGetColorImpl(_ propertyName: String, _ value: inout UWP.Color) throws -> WinAppSDK.CompositionGetValueStatus { + var result: __x_ABI_CMicrosoft_CUI_CComposition_CCompositionGetValueStatus = .init(0) + let _propertyName = try! HString(propertyName) + var _value: __x_ABI_CWindows_CUI_CColor = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionPropertySet.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.TryGetColor(pThis, _propertyName.get(), &_value, &result)) + } + value = .from(abi: _value) + return result + } + + internal func TryGetMatrix3x2Impl(_ propertyName: String, _ value: inout WindowsFoundation.Matrix3x2) throws -> WinAppSDK.CompositionGetValueStatus { + var result: __x_ABI_CMicrosoft_CUI_CComposition_CCompositionGetValueStatus = .init(0) + let _propertyName = try! HString(propertyName) + var _value: __x_ABI_CWindows_CFoundation_CNumerics_CMatrix3x2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionPropertySet.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.TryGetMatrix3x2(pThis, _propertyName.get(), &_value, &result)) + } + value = .from(abi: _value) + return result + } + + internal func TryGetMatrix4x4Impl(_ propertyName: String, _ value: inout WindowsFoundation.Matrix4x4) throws -> WinAppSDK.CompositionGetValueStatus { + var result: __x_ABI_CMicrosoft_CUI_CComposition_CCompositionGetValueStatus = .init(0) + let _propertyName = try! HString(propertyName) + var _value: __x_ABI_CWindows_CFoundation_CNumerics_CMatrix4x4 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionPropertySet.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.TryGetMatrix4x4(pThis, _propertyName.get(), &_value, &result)) + } + value = .from(abi: _value) + return result + } + + internal func TryGetQuaternionImpl(_ propertyName: String, _ value: inout WindowsFoundation.Quaternion) throws -> WinAppSDK.CompositionGetValueStatus { + var result: __x_ABI_CMicrosoft_CUI_CComposition_CCompositionGetValueStatus = .init(0) + let _propertyName = try! HString(propertyName) + var _value: __x_ABI_CWindows_CFoundation_CNumerics_CQuaternion = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionPropertySet.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.TryGetQuaternion(pThis, _propertyName.get(), &_value, &result)) + } + value = .from(abi: _value) + return result + } + + internal func TryGetScalarImpl(_ propertyName: String, _ value: inout Float) throws -> WinAppSDK.CompositionGetValueStatus { + var result: __x_ABI_CMicrosoft_CUI_CComposition_CCompositionGetValueStatus = .init(0) + let _propertyName = try! HString(propertyName) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionPropertySet.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.TryGetScalar(pThis, _propertyName.get(), &value, &result)) + } + return result + } + + internal func TryGetVector2Impl(_ propertyName: String, _ value: inout WindowsFoundation.Vector2) throws -> WinAppSDK.CompositionGetValueStatus { + var result: __x_ABI_CMicrosoft_CUI_CComposition_CCompositionGetValueStatus = .init(0) + let _propertyName = try! HString(propertyName) + var _value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionPropertySet.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.TryGetVector2(pThis, _propertyName.get(), &_value, &result)) + } + value = .from(abi: _value) + return result + } + + internal func TryGetVector3Impl(_ propertyName: String, _ value: inout WindowsFoundation.Vector3) throws -> WinAppSDK.CompositionGetValueStatus { + var result: __x_ABI_CMicrosoft_CUI_CComposition_CCompositionGetValueStatus = .init(0) + let _propertyName = try! HString(propertyName) + var _value: __x_ABI_CWindows_CFoundation_CNumerics_CVector3 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionPropertySet.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.TryGetVector3(pThis, _propertyName.get(), &_value, &result)) + } + value = .from(abi: _value) + return result + } + + internal func TryGetVector4Impl(_ propertyName: String, _ value: inout WindowsFoundation.Vector4) throws -> WinAppSDK.CompositionGetValueStatus { + var result: __x_ABI_CMicrosoft_CUI_CComposition_CCompositionGetValueStatus = .init(0) + let _propertyName = try! HString(propertyName) + var _value: __x_ABI_CWindows_CFoundation_CNumerics_CVector4 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionPropertySet.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.TryGetVector4(pThis, _propertyName.get(), &_value, &result)) + } + value = .from(abi: _value) + return result + } + + } + + public class ICompositionPropertySet2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionPropertySet2 } + + internal func InsertBooleanImpl(_ propertyName: String, _ value: Bool) throws { + let _propertyName = try! HString(propertyName) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionPropertySet2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InsertBoolean(pThis, _propertyName.get(), .init(from: value))) + } + } + + internal func TryGetBooleanImpl(_ propertyName: String, _ value: inout Bool) throws -> WinAppSDK.CompositionGetValueStatus { + var result: __x_ABI_CMicrosoft_CUI_CComposition_CCompositionGetValueStatus = .init(0) + let _propertyName = try! HString(propertyName) + var _value: boolean = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionPropertySet2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.TryGetBoolean(pThis, _propertyName.get(), &_value, &result)) + } + value = .init(from: _value) + return result + } + + } + + public class ICompositionRadialGradientBrush: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionRadialGradientBrush } + + internal func get_EllipseCenterImpl() throws -> WindowsFoundation.Vector2 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionRadialGradientBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EllipseCenter(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_EllipseCenterImpl(_ value: WindowsFoundation.Vector2) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionRadialGradientBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_EllipseCenter(pThis, .from(swift: value))) + } + } + + internal func get_EllipseRadiusImpl() throws -> WindowsFoundation.Vector2 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionRadialGradientBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EllipseRadius(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_EllipseRadiusImpl(_ value: WindowsFoundation.Vector2) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionRadialGradientBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_EllipseRadius(pThis, .from(swift: value))) + } + } + + internal func get_GradientOriginOffsetImpl() throws -> WindowsFoundation.Vector2 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionRadialGradientBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_GradientOriginOffset(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_GradientOriginOffsetImpl(_ value: WindowsFoundation.Vector2) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionRadialGradientBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_GradientOriginOffset(pThis, .from(swift: value))) + } + } + + } + + public class ICompositionRectangleGeometry: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionRectangleGeometry } + + internal func get_OffsetImpl() throws -> WindowsFoundation.Vector2 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionRectangleGeometry.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Offset(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_OffsetImpl(_ value: WindowsFoundation.Vector2) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionRectangleGeometry.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Offset(pThis, .from(swift: value))) + } + } + + internal func get_SizeImpl() throws -> WindowsFoundation.Vector2 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionRectangleGeometry.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_SizeImpl(_ value: WindowsFoundation.Vector2) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionRectangleGeometry.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Size(pThis, .from(swift: value))) + } + } + + } + + public class ICompositionRoundedRectangleGeometry: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionRoundedRectangleGeometry } + + internal func get_CornerRadiusImpl() throws -> WindowsFoundation.Vector2 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionRoundedRectangleGeometry.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CornerRadius(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_CornerRadiusImpl(_ value: WindowsFoundation.Vector2) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionRoundedRectangleGeometry.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CornerRadius(pThis, .from(swift: value))) + } + } + + internal func get_OffsetImpl() throws -> WindowsFoundation.Vector2 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionRoundedRectangleGeometry.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Offset(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_OffsetImpl(_ value: WindowsFoundation.Vector2) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionRoundedRectangleGeometry.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Offset(pThis, .from(swift: value))) + } + } + + internal func get_SizeImpl() throws -> WindowsFoundation.Vector2 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionRoundedRectangleGeometry.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_SizeImpl(_ value: WindowsFoundation.Vector2) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionRoundedRectangleGeometry.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Size(pThis, .from(swift: value))) + } + } + + } + + public class ICompositionScopedBatch: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionScopedBatch } + + internal func get_IsActiveImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionScopedBatch.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsActive(pThis, &value)) + } + return .init(from: value) + } + + internal func get_IsEndedImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionScopedBatch.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsEnded(pThis, &value)) + } + return .init(from: value) + } + + internal func EndImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionScopedBatch.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.End(pThis)) + } + } + + internal func ResumeImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionScopedBatch.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Resume(pThis)) + } + } + + internal func SuspendImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionScopedBatch.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Suspend(pThis)) + } + } + + internal func add_CompletedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CComposition__CCompositionBatchCompletedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionScopedBatch.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Completed(pThis, _handler, &token)) + } + return token + } + + internal func remove_CompletedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionScopedBatch.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Completed(pThis, token)) + } + } + + } + + public class ICompositionShadow: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionShadow } + + } + + public class ICompositionShadowFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionShadowFactory } + + } + + public class ICompositionShape: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionShape } + + internal func get_CenterPointImpl() throws -> WindowsFoundation.Vector2 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CenterPoint(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_CenterPointImpl(_ value: WindowsFoundation.Vector2) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CenterPoint(pThis, .from(swift: value))) + } + } + + internal func get_OffsetImpl() throws -> WindowsFoundation.Vector2 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Offset(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_OffsetImpl(_ value: WindowsFoundation.Vector2) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Offset(pThis, .from(swift: value))) + } + } + + internal func get_RotationAngleImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RotationAngle(pThis, &value)) + } + return value + } + + internal func put_RotationAngleImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_RotationAngle(pThis, value)) + } + } + + internal func get_RotationAngleInDegreesImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RotationAngleInDegrees(pThis, &value)) + } + return value + } + + internal func put_RotationAngleInDegreesImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_RotationAngleInDegrees(pThis, value)) + } + } + + internal func get_ScaleImpl() throws -> WindowsFoundation.Vector2 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Scale(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_ScaleImpl(_ value: WindowsFoundation.Vector2) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Scale(pThis, .from(swift: value))) + } + } + + internal func get_TransformMatrixImpl() throws -> WindowsFoundation.Matrix3x2 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CMatrix3x2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TransformMatrix(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_TransformMatrixImpl(_ value: WindowsFoundation.Matrix3x2) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TransformMatrix(pThis, .from(swift: value))) + } + } + + } + + public class ICompositionShapeFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionShapeFactory } + + } + + public class ICompositionSpriteShape: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionSpriteShape } + + internal func get_FillBrushImpl() throws -> WinAppSDK.CompositionBrush? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSpriteShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FillBrush(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_FillBrushImpl(_ value: WinAppSDK.CompositionBrush?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSpriteShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FillBrush(pThis, RawPointer(value))) + } + } + + internal func get_GeometryImpl() throws -> WinAppSDK.CompositionGeometry? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSpriteShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Geometry(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_GeometryImpl(_ value: WinAppSDK.CompositionGeometry?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSpriteShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Geometry(pThis, RawPointer(value))) + } + } + + internal func get_IsStrokeNonScalingImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSpriteShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsStrokeNonScaling(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsStrokeNonScalingImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSpriteShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsStrokeNonScaling(pThis, .init(from: value))) + } + } + + internal func get_StrokeBrushImpl() throws -> WinAppSDK.CompositionBrush? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSpriteShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_StrokeBrush(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_StrokeBrushImpl(_ value: WinAppSDK.CompositionBrush?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSpriteShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_StrokeBrush(pThis, RawPointer(value))) + } + } + + internal func get_StrokeDashArrayImpl() throws -> WinAppSDK.CompositionStrokeDashArray? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSpriteShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_StrokeDashArray(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_StrokeDashCapImpl() throws -> WinAppSDK.CompositionStrokeCap { + var value: __x_ABI_CMicrosoft_CUI_CComposition_CCompositionStrokeCap = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSpriteShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_StrokeDashCap(pThis, &value)) + } + return value + } + + internal func put_StrokeDashCapImpl(_ value: WinAppSDK.CompositionStrokeCap) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSpriteShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_StrokeDashCap(pThis, value)) + } + } + + internal func get_StrokeDashOffsetImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSpriteShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_StrokeDashOffset(pThis, &value)) + } + return value + } + + internal func put_StrokeDashOffsetImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSpriteShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_StrokeDashOffset(pThis, value)) + } + } + + internal func get_StrokeEndCapImpl() throws -> WinAppSDK.CompositionStrokeCap { + var value: __x_ABI_CMicrosoft_CUI_CComposition_CCompositionStrokeCap = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSpriteShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_StrokeEndCap(pThis, &value)) + } + return value + } + + internal func put_StrokeEndCapImpl(_ value: WinAppSDK.CompositionStrokeCap) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSpriteShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_StrokeEndCap(pThis, value)) + } + } + + internal func get_StrokeLineJoinImpl() throws -> WinAppSDK.CompositionStrokeLineJoin { + var value: __x_ABI_CMicrosoft_CUI_CComposition_CCompositionStrokeLineJoin = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSpriteShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_StrokeLineJoin(pThis, &value)) + } + return value + } + + internal func put_StrokeLineJoinImpl(_ value: WinAppSDK.CompositionStrokeLineJoin) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSpriteShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_StrokeLineJoin(pThis, value)) + } + } + + internal func get_StrokeMiterLimitImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSpriteShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_StrokeMiterLimit(pThis, &value)) + } + return value + } + + internal func put_StrokeMiterLimitImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSpriteShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_StrokeMiterLimit(pThis, value)) + } + } + + internal func get_StrokeStartCapImpl() throws -> WinAppSDK.CompositionStrokeCap { + var value: __x_ABI_CMicrosoft_CUI_CComposition_CCompositionStrokeCap = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSpriteShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_StrokeStartCap(pThis, &value)) + } + return value + } + + internal func put_StrokeStartCapImpl(_ value: WinAppSDK.CompositionStrokeCap) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSpriteShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_StrokeStartCap(pThis, value)) + } + } + + internal func get_StrokeThicknessImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSpriteShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_StrokeThickness(pThis, &value)) + } + return value + } + + internal func put_StrokeThicknessImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSpriteShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_StrokeThickness(pThis, value)) + } + } + + } + + public class ICompositionSupportsSystemBackdrop: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionSupportsSystemBackdrop } + + open func get_SystemBackdropImpl() throws -> UWP.CompositionBrush? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSupportsSystemBackdrop.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SystemBackdrop(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + open func put_SystemBackdropImpl(_ value: UWP.CompositionBrush?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSupportsSystemBackdrop.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_SystemBackdrop(pThis, RawPointer(value))) + } + } + + } + + internal static var ICompositionSupportsSystemBackdropVTable: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSupportsSystemBackdropVtbl = .init( + QueryInterface: { ICompositionSupportsSystemBackdropWrapper.queryInterface($0, $1, $2) }, + AddRef: { ICompositionSupportsSystemBackdropWrapper.addRef($0) }, + Release: { ICompositionSupportsSystemBackdropWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = __ABI_Microsoft_UI_Composition.ICompositionSupportsSystemBackdropWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Microsoft.UI.Composition.ICompositionSupportsSystemBackdrop").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + get_SystemBackdrop: { + guard let __unwrapped__instance = ICompositionSupportsSystemBackdropWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value = __unwrapped__instance.systemBackdrop + value?.copyTo($1) + return S_OK + }, + + put_SystemBackdrop: { + guard let __unwrapped__instance = ICompositionSupportsSystemBackdropWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: UWP.CompositionBrush? = .from(abi: ComPtr($1)) + __unwrapped__instance.systemBackdrop = value + return S_OK + } + ) + + public typealias ICompositionSupportsSystemBackdropWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Composition.ICompositionSupportsSystemBackdropBridge> + public class ICompositionSurface: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionSurface } + + } + + internal static var ICompositionSurfaceVTable: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSurfaceVtbl = .init( + QueryInterface: { ICompositionSurfaceWrapper.queryInterface($0, $1, $2) }, + AddRef: { ICompositionSurfaceWrapper.addRef($0) }, + Release: { ICompositionSurfaceWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = __ABI_Microsoft_UI_Composition.ICompositionSurfaceWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Microsoft.UI.Composition.ICompositionSurface").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + } + ) + + public typealias ICompositionSurfaceWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Composition.ICompositionSurfaceBridge> + public class ICompositionSurfaceBrush: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionSurfaceBrush } + + internal func get_BitmapInterpolationModeImpl() throws -> WinAppSDK.CompositionBitmapInterpolationMode { + var value: __x_ABI_CMicrosoft_CUI_CComposition_CCompositionBitmapInterpolationMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSurfaceBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BitmapInterpolationMode(pThis, &value)) + } + return value + } + + internal func put_BitmapInterpolationModeImpl(_ value: WinAppSDK.CompositionBitmapInterpolationMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSurfaceBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_BitmapInterpolationMode(pThis, value)) + } + } + + internal func get_HorizontalAlignmentRatioImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSurfaceBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalAlignmentRatio(pThis, &value)) + } + return value + } + + internal func put_HorizontalAlignmentRatioImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSurfaceBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_HorizontalAlignmentRatio(pThis, value)) + } + } + + internal func get_StretchImpl() throws -> WinAppSDK.CompositionStretch { + var value: __x_ABI_CMicrosoft_CUI_CComposition_CCompositionStretch = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSurfaceBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Stretch(pThis, &value)) + } + return value + } + + internal func put_StretchImpl(_ value: WinAppSDK.CompositionStretch) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSurfaceBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Stretch(pThis, value)) + } + } + + internal func get_SurfaceImpl() throws -> WinAppSDK.AnyICompositionSurface? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSurfaceBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Surface(pThis, &valueAbi)) + } + } + return __ABI_Microsoft_UI_Composition.ICompositionSurfaceWrapper.unwrapFrom(abi: value) + } + + internal func put_SurfaceImpl(_ value: WinAppSDK.AnyICompositionSurface?) throws { + let valueWrapper = __ABI_Microsoft_UI_Composition.ICompositionSurfaceWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSurfaceBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Surface(pThis, _value)) + } + } + + internal func get_VerticalAlignmentRatioImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSurfaceBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalAlignmentRatio(pThis, &value)) + } + return value + } + + internal func put_VerticalAlignmentRatioImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSurfaceBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_VerticalAlignmentRatio(pThis, value)) + } + } + + } + + public class ICompositionSurfaceBrush2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionSurfaceBrush2 } + + internal func get_AnchorPointImpl() throws -> WindowsFoundation.Vector2 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSurfaceBrush2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AnchorPoint(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_AnchorPointImpl(_ value: WindowsFoundation.Vector2) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSurfaceBrush2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_AnchorPoint(pThis, .from(swift: value))) + } + } + + internal func get_CenterPointImpl() throws -> WindowsFoundation.Vector2 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSurfaceBrush2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CenterPoint(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_CenterPointImpl(_ value: WindowsFoundation.Vector2) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSurfaceBrush2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CenterPoint(pThis, .from(swift: value))) + } + } + + internal func get_OffsetImpl() throws -> WindowsFoundation.Vector2 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSurfaceBrush2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Offset(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_OffsetImpl(_ value: WindowsFoundation.Vector2) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSurfaceBrush2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Offset(pThis, .from(swift: value))) + } + } + + internal func get_RotationAngleImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSurfaceBrush2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RotationAngle(pThis, &value)) + } + return value + } + + internal func put_RotationAngleImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSurfaceBrush2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_RotationAngle(pThis, value)) + } + } + + internal func get_RotationAngleInDegreesImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSurfaceBrush2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RotationAngleInDegrees(pThis, &value)) + } + return value + } + + internal func put_RotationAngleInDegreesImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSurfaceBrush2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_RotationAngleInDegrees(pThis, value)) + } + } + + internal func get_ScaleImpl() throws -> WindowsFoundation.Vector2 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSurfaceBrush2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Scale(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_ScaleImpl(_ value: WindowsFoundation.Vector2) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSurfaceBrush2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Scale(pThis, .from(swift: value))) + } + } + + internal func get_TransformMatrixImpl() throws -> WindowsFoundation.Matrix3x2 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CMatrix3x2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSurfaceBrush2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TransformMatrix(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_TransformMatrixImpl(_ value: WindowsFoundation.Matrix3x2) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSurfaceBrush2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TransformMatrix(pThis, .from(swift: value))) + } + } + + } + + public class ICompositionSurfaceBrush3: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionSurfaceBrush3 } + + internal func get_SnapToPixelsImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSurfaceBrush3.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SnapToPixels(pThis, &value)) + } + return .init(from: value) + } + + internal func put_SnapToPixelsImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSurfaceBrush3.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_SnapToPixels(pThis, .init(from: value))) + } + } + + } + + public class ICompositionSurfaceFacade: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionSurfaceFacade } + + open func GetRealSurfaceImpl() throws -> WinAppSDK.AnyICompositionSurface? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSurfaceFacade.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetRealSurface(pThis, &resultAbi)) + } + } + return __ABI_Microsoft_UI_Composition.ICompositionSurfaceWrapper.unwrapFrom(abi: result) + } + + } + + internal static var ICompositionSurfaceFacadeVTable: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSurfaceFacadeVtbl = .init( + QueryInterface: { ICompositionSurfaceFacadeWrapper.queryInterface($0, $1, $2) }, + AddRef: { ICompositionSurfaceFacadeWrapper.addRef($0) }, + Release: { ICompositionSurfaceFacadeWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = __ABI_Microsoft_UI_Composition.ICompositionSurfaceFacadeWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Microsoft.UI.Composition.ICompositionSurfaceFacade").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + GetRealSurface: { + do { + guard let __unwrapped__instance = ICompositionSurfaceFacadeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.getRealSurface() + let resultWrapper = __ABI_Microsoft_UI_Composition.ICompositionSurfaceWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) + + public typealias ICompositionSurfaceFacadeWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Composition.ICompositionSurfaceFacadeBridge> + public class ICompositionTransform: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionTransform } + + } + + public class ICompositionTransformFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionTransformFactory } + + } + + public class ICompositionViewBox: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionViewBox } + + internal func get_HorizontalAlignmentRatioImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionViewBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalAlignmentRatio(pThis, &value)) + } + return value + } + + internal func put_HorizontalAlignmentRatioImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionViewBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_HorizontalAlignmentRatio(pThis, value)) + } + } + + internal func get_OffsetImpl() throws -> WindowsFoundation.Vector2 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionViewBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Offset(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_OffsetImpl(_ value: WindowsFoundation.Vector2) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionViewBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Offset(pThis, .from(swift: value))) + } + } + + internal func get_SizeImpl() throws -> WindowsFoundation.Vector2 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionViewBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_SizeImpl(_ value: WindowsFoundation.Vector2) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionViewBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Size(pThis, .from(swift: value))) + } + } + + internal func get_StretchImpl() throws -> WinAppSDK.CompositionStretch { + var value: __x_ABI_CMicrosoft_CUI_CComposition_CCompositionStretch = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionViewBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Stretch(pThis, &value)) + } + return value + } + + internal func put_StretchImpl(_ value: WinAppSDK.CompositionStretch) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionViewBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Stretch(pThis, value)) + } + } + + internal func get_VerticalAlignmentRatioImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionViewBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalAlignmentRatio(pThis, &value)) + } + return value + } + + internal func put_VerticalAlignmentRatioImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionViewBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_VerticalAlignmentRatio(pThis, value)) + } + } + + } + + public class ICompositionVirtualDrawingSurface: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionVirtualDrawingSurface } + + } + + public class ICompositionVirtualDrawingSurfaceFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionVirtualDrawingSurfaceFactory } + + } + + public class ICompositionVisualSurface: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositionVisualSurface } + + internal func get_SourceVisualImpl() throws -> WinAppSDK.Visual? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionVisualSurface.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SourceVisual(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_SourceVisualImpl(_ value: WinAppSDK.Visual?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionVisualSurface.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_SourceVisual(pThis, RawPointer(value))) + } + } + + internal func get_SourceOffsetImpl() throws -> WindowsFoundation.Vector2 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionVisualSurface.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SourceOffset(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_SourceOffsetImpl(_ value: WindowsFoundation.Vector2) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionVisualSurface.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_SourceOffset(pThis, .from(swift: value))) + } + } + + internal func get_SourceSizeImpl() throws -> WindowsFoundation.Vector2 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionVisualSurface.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SourceSize(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_SourceSizeImpl(_ value: WindowsFoundation.Vector2) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositionVisualSurface.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_SourceSize(pThis, .from(swift: value))) + } + } + + } + + public class ICompositor: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositor } + + internal func CreateColorKeyFrameAnimationImpl() throws -> WinAppSDK.ColorKeyFrameAnimation? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateColorKeyFrameAnimation(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateColorBrushImpl() throws -> WinAppSDK.CompositionColorBrush? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateColorBrush(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateColorBrushWithColorImpl(_ color: UWP.Color) throws -> WinAppSDK.CompositionColorBrush? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateColorBrushWithColor(pThis, .from(swift: color), &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateContainerVisualImpl() throws -> WinAppSDK.ContainerVisual? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateContainerVisual(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateCubicBezierEasingFunctionImpl(_ controlPoint1: WindowsFoundation.Vector2, _ controlPoint2: WindowsFoundation.Vector2) throws -> WinAppSDK.CubicBezierEasingFunction? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateCubicBezierEasingFunction(pThis, .from(swift: controlPoint1), .from(swift: controlPoint2), &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateEffectFactoryImpl(_ graphicsEffect: UWP.AnyIGraphicsEffect?) throws -> WinAppSDK.CompositionEffectFactory? { + let (result) = try ComPtrs.initialize { resultAbi in + let graphicsEffectWrapper = __ABI_Windows_Graphics_Effects.IGraphicsEffectWrapper(graphicsEffect) + let _graphicsEffect = try! graphicsEffectWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateEffectFactory(pThis, _graphicsEffect, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateEffectFactoryWithPropertiesImpl(_ graphicsEffect: UWP.AnyIGraphicsEffect?, _ animatableProperties: WindowsFoundation.AnyIIterable?) throws -> WinAppSDK.CompositionEffectFactory? { + let (result) = try ComPtrs.initialize { resultAbi in + let graphicsEffectWrapper = __ABI_Windows_Graphics_Effects.IGraphicsEffectWrapper(graphicsEffect) + let _graphicsEffect = try! graphicsEffectWrapper?.toABI { $0 } + let animatablePropertiesWrapper = WinAppSDK.__x_ABI_C__FIIterable_1_HSTRINGWrapper(animatableProperties) + let _animatableProperties = try! animatablePropertiesWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateEffectFactoryWithProperties(pThis, _graphicsEffect, _animatableProperties, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateExpressionAnimationImpl() throws -> WinAppSDK.ExpressionAnimation? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateExpressionAnimation(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateExpressionAnimationWithExpressionImpl(_ expression: String) throws -> WinAppSDK.ExpressionAnimation? { + let (result) = try ComPtrs.initialize { resultAbi in + let _expression = try! HString(expression) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateExpressionAnimationWithExpression(pThis, _expression.get(), &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateInsetClipImpl() throws -> WinAppSDK.InsetClip? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInsetClip(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateInsetClipWithInsetsImpl(_ leftInset: Float, _ topInset: Float, _ rightInset: Float, _ bottomInset: Float) throws -> WinAppSDK.InsetClip? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInsetClipWithInsets(pThis, leftInset, topInset, rightInset, bottomInset, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateLinearEasingFunctionImpl() throws -> WinAppSDK.LinearEasingFunction? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateLinearEasingFunction(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreatePropertySetImpl() throws -> WinAppSDK.CompositionPropertySet? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreatePropertySet(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateQuaternionKeyFrameAnimationImpl() throws -> WinAppSDK.QuaternionKeyFrameAnimation? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateQuaternionKeyFrameAnimation(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateScalarKeyFrameAnimationImpl() throws -> WinAppSDK.ScalarKeyFrameAnimation? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateScalarKeyFrameAnimation(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateScopedBatchImpl(_ batchType: WinAppSDK.CompositionBatchTypes) throws -> WinAppSDK.CompositionScopedBatch? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateScopedBatch(pThis, batchType, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateSpriteVisualImpl() throws -> WinAppSDK.SpriteVisual? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateSpriteVisual(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateSurfaceBrushImpl() throws -> WinAppSDK.CompositionSurfaceBrush? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateSurfaceBrush(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateSurfaceBrushWithSurfaceImpl(_ surface: WinAppSDK.AnyICompositionSurface?) throws -> WinAppSDK.CompositionSurfaceBrush? { + let (result) = try ComPtrs.initialize { resultAbi in + let surfaceWrapper = __ABI_Microsoft_UI_Composition.ICompositionSurfaceWrapper(surface) + let _surface = try! surfaceWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateSurfaceBrushWithSurface(pThis, _surface, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateVector2KeyFrameAnimationImpl() throws -> WinAppSDK.Vector2KeyFrameAnimation? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateVector2KeyFrameAnimation(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateVector3KeyFrameAnimationImpl() throws -> WinAppSDK.Vector3KeyFrameAnimation? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateVector3KeyFrameAnimation(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateVector4KeyFrameAnimationImpl() throws -> WinAppSDK.Vector4KeyFrameAnimation? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateVector4KeyFrameAnimation(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func GetCommitBatchImpl(_ batchType: WinAppSDK.CompositionBatchTypes) throws -> WinAppSDK.CompositionCommitBatch? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetCommitBatch(pThis, batchType, &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class ICompositor2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositor2 } + + internal func CreateAmbientLightImpl() throws -> WinAppSDK.AmbientLight? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateAmbientLight(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateAnimationGroupImpl() throws -> WinAppSDK.CompositionAnimationGroup? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateAnimationGroup(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateBackdropBrushImpl() throws -> WinAppSDK.CompositionBackdropBrush? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateBackdropBrush(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateDistantLightImpl() throws -> WinAppSDK.DistantLight? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateDistantLight(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateDropShadowImpl() throws -> WinAppSDK.DropShadow? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateDropShadow(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateImplicitAnimationCollectionImpl() throws -> WinAppSDK.ImplicitAnimationCollection? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateImplicitAnimationCollection(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateLayerVisualImpl() throws -> WinAppSDK.LayerVisual? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateLayerVisual(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateMaskBrushImpl() throws -> WinAppSDK.CompositionMaskBrush? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateMaskBrush(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateNineGridBrushImpl() throws -> WinAppSDK.CompositionNineGridBrush? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateNineGridBrush(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreatePointLightImpl() throws -> WinAppSDK.PointLight? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreatePointLight(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateSpotLightImpl() throws -> WinAppSDK.SpotLight? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateSpotLight(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateStepEasingFunctionImpl() throws -> WinAppSDK.StepEasingFunction? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateStepEasingFunction(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateStepEasingFunctionWithStepCountImpl(_ stepCount: Int32) throws -> WinAppSDK.StepEasingFunction? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateStepEasingFunctionWithStepCount(pThis, stepCount, &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class ICompositor4: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositor4 } + + internal func CreateColorGradientStopImpl() throws -> WinAppSDK.CompositionColorGradientStop? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor4.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateColorGradientStop(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateColorGradientStopWithOffsetAndColorImpl(_ offset: Float, _ color: UWP.Color) throws -> WinAppSDK.CompositionColorGradientStop? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor4.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateColorGradientStopWithOffsetAndColor(pThis, offset, .from(swift: color), &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateLinearGradientBrushImpl() throws -> WinAppSDK.CompositionLinearGradientBrush? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor4.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateLinearGradientBrush(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateSpringScalarAnimationImpl() throws -> WinAppSDK.SpringScalarNaturalMotionAnimation? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor4.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateSpringScalarAnimation(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateSpringVector2AnimationImpl() throws -> WinAppSDK.SpringVector2NaturalMotionAnimation? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor4.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateSpringVector2Animation(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateSpringVector3AnimationImpl() throws -> WinAppSDK.SpringVector3NaturalMotionAnimation? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor4.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateSpringVector3Animation(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class ICompositor5: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositor5 } + + internal func get_CommentImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor5.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Comment(pThis, &value)) + } + return .init(from: value) + } + + internal func put_CommentImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor5.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Comment(pThis, _value.get())) + } + } + + internal func get_GlobalPlaybackRateImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor5.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_GlobalPlaybackRate(pThis, &value)) + } + return value + } + + internal func put_GlobalPlaybackRateImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor5.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_GlobalPlaybackRate(pThis, value)) + } + } + + internal func CreateBounceScalarAnimationImpl() throws -> WinAppSDK.BounceScalarNaturalMotionAnimation? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor5.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateBounceScalarAnimation(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateBounceVector2AnimationImpl() throws -> WinAppSDK.BounceVector2NaturalMotionAnimation? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor5.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateBounceVector2Animation(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateBounceVector3AnimationImpl() throws -> WinAppSDK.BounceVector3NaturalMotionAnimation? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor5.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateBounceVector3Animation(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateContainerShapeImpl() throws -> WinAppSDK.CompositionContainerShape? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor5.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateContainerShape(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateEllipseGeometryImpl() throws -> WinAppSDK.CompositionEllipseGeometry? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor5.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateEllipseGeometry(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateLineGeometryImpl() throws -> WinAppSDK.CompositionLineGeometry? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor5.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateLineGeometry(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreatePathGeometryImpl() throws -> WinAppSDK.CompositionPathGeometry? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor5.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreatePathGeometry(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreatePathGeometryWithPathImpl(_ path: WinAppSDK.CompositionPath?) throws -> WinAppSDK.CompositionPathGeometry? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor5.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreatePathGeometryWithPath(pThis, RawPointer(path), &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreatePathKeyFrameAnimationImpl() throws -> WinAppSDK.PathKeyFrameAnimation? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor5.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreatePathKeyFrameAnimation(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateRectangleGeometryImpl() throws -> WinAppSDK.CompositionRectangleGeometry? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor5.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateRectangleGeometry(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateRoundedRectangleGeometryImpl() throws -> WinAppSDK.CompositionRoundedRectangleGeometry? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor5.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateRoundedRectangleGeometry(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateShapeVisualImpl() throws -> WinAppSDK.ShapeVisual? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor5.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateShapeVisual(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateSpriteShapeImpl() throws -> WinAppSDK.CompositionSpriteShape? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor5.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateSpriteShape(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateSpriteShapeWithGeometryImpl(_ geometry: WinAppSDK.CompositionGeometry?) throws -> WinAppSDK.CompositionSpriteShape? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor5.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateSpriteShapeWithGeometry(pThis, RawPointer(geometry), &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateViewBoxImpl() throws -> WinAppSDK.CompositionViewBox? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor5.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateViewBox(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func RequestCommitAsyncImpl() throws -> WindowsFoundation.AnyIAsyncAction? { + let (operation) = try ComPtrs.initialize { operationAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor5.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RequestCommitAsync(pThis, &operationAbi)) + } + } + return __ABI_Windows_Foundation.IAsyncActionWrapper.unwrapFrom(abi: operation) + } + + } + + public class ICompositor6: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositor6 } + + internal func CreateGeometricClipImpl() throws -> WinAppSDK.CompositionGeometricClip? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor6.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateGeometricClip(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateGeometricClipWithGeometryImpl(_ geometry: WinAppSDK.CompositionGeometry?) throws -> WinAppSDK.CompositionGeometricClip? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor6.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateGeometricClipWithGeometry(pThis, RawPointer(geometry), &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateRedirectVisualImpl() throws -> WinAppSDK.RedirectVisual? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor6.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateRedirectVisual(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateRedirectVisualWithSourceVisualImpl(_ source: WinAppSDK.Visual?) throws -> WinAppSDK.RedirectVisual? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor6.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateRedirectVisualWithSourceVisual(pThis, RawPointer(source), &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateBooleanKeyFrameAnimationImpl() throws -> WinAppSDK.BooleanKeyFrameAnimation? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor6.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateBooleanKeyFrameAnimation(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class ICompositor7: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositor7 } + + internal func get_DispatcherQueueImpl() throws -> WinAppSDK.DispatcherQueue? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor7.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DispatcherQueue(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func CreateAnimationPropertyInfoImpl() throws -> WinAppSDK.AnimationPropertyInfo? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor7.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateAnimationPropertyInfo(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateRectangleClipImpl() throws -> WinAppSDK.RectangleClip? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor7.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateRectangleClip(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateRectangleClipWithSidesImpl(_ left: Float, _ top: Float, _ right: Float, _ bottom: Float) throws -> WinAppSDK.RectangleClip? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor7.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateRectangleClipWithSides(pThis, left, top, right, bottom, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateRectangleClipWithSidesAndRadiusImpl(_ left: Float, _ top: Float, _ right: Float, _ bottom: Float, _ topLeftRadius: WindowsFoundation.Vector2, _ topRightRadius: WindowsFoundation.Vector2, _ bottomRightRadius: WindowsFoundation.Vector2, _ bottomLeftRadius: WindowsFoundation.Vector2) throws -> WinAppSDK.RectangleClip? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor7.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateRectangleClipWithSidesAndRadius(pThis, left, top, right, bottom, .from(swift: topLeftRadius), .from(swift: topRightRadius), .from(swift: bottomRightRadius), .from(swift: bottomLeftRadius), &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class ICompositor8: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositor8 } + + internal func CreateAnimationControllerImpl() throws -> WinAppSDK.AnimationController? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositor8.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateAnimationController(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class ICompositorStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositorStatics } + + internal func get_MaxGlobalPlaybackRateImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositorStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MaxGlobalPlaybackRate(pThis, &value)) + } + return value + } + + internal func get_MinGlobalPlaybackRateImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositorStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MinGlobalPlaybackRate(pThis, &value)) + } + return value + } + + } + + public class ICompositorWithProjectedShadow: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositorWithProjectedShadow } + + internal func CreateProjectedShadowCasterImpl() throws -> WinAppSDK.CompositionProjectedShadowCaster? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositorWithProjectedShadow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateProjectedShadowCaster(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateProjectedShadowImpl() throws -> WinAppSDK.CompositionProjectedShadow? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositorWithProjectedShadow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateProjectedShadow(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateProjectedShadowReceiverImpl() throws -> WinAppSDK.CompositionProjectedShadowReceiver? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositorWithProjectedShadow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateProjectedShadowReceiver(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class ICompositorWithRadialGradient: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositorWithRadialGradient } + + internal func CreateRadialGradientBrushImpl() throws -> WinAppSDK.CompositionRadialGradientBrush? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositorWithRadialGradient.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateRadialGradientBrush(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class ICompositorWithVisualSurface: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICompositorWithVisualSurface } + + internal func CreateVisualSurfaceImpl() throws -> WinAppSDK.CompositionVisualSurface? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICompositorWithVisualSurface.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateVisualSurface(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IContainerVisual: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIContainerVisual } + + internal func get_ChildrenImpl() throws -> WinAppSDK.VisualCollection? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIContainerVisual.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Children(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IContainerVisualFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIContainerVisualFactory } + + } + + public class ICubicBezierEasingFunction: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CICubicBezierEasingFunction } + + internal func get_ControlPoint1Impl() throws -> WindowsFoundation.Vector2 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICubicBezierEasingFunction.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ControlPoint1(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_ControlPoint2Impl() throws -> WindowsFoundation.Vector2 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CICubicBezierEasingFunction.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ControlPoint2(pThis, &value)) + } + return .from(abi: value) + } + + } + + public class IDistantLight: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIDistantLight } + + internal func get_ColorImpl() throws -> UWP.Color { + var value: __x_ABI_CWindows_CUI_CColor = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIDistantLight.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Color(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_ColorImpl(_ value: UWP.Color) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIDistantLight.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Color(pThis, .from(swift: value))) + } + } + + internal func get_CoordinateSpaceImpl() throws -> WinAppSDK.Visual? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIDistantLight.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CoordinateSpace(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_CoordinateSpaceImpl(_ value: WinAppSDK.Visual?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIDistantLight.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CoordinateSpace(pThis, RawPointer(value))) + } + } + + internal func get_DirectionImpl() throws -> WindowsFoundation.Vector3 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector3 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIDistantLight.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Direction(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_DirectionImpl(_ value: WindowsFoundation.Vector3) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIDistantLight.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Direction(pThis, .from(swift: value))) + } + } + + } + + public class IDistantLight2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIDistantLight2 } + + internal func get_IntensityImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIDistantLight2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Intensity(pThis, &value)) + } + return value + } + + internal func put_IntensityImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIDistantLight2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Intensity(pThis, value)) + } + } + + } + + public class IDropShadow: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIDropShadow } + + internal func get_BlurRadiusImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIDropShadow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BlurRadius(pThis, &value)) + } + return value + } + + internal func put_BlurRadiusImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIDropShadow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_BlurRadius(pThis, value)) + } + } + + internal func get_ColorImpl() throws -> UWP.Color { + var value: __x_ABI_CWindows_CUI_CColor = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIDropShadow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Color(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_ColorImpl(_ value: UWP.Color) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIDropShadow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Color(pThis, .from(swift: value))) + } + } + + internal func get_MaskImpl() throws -> WinAppSDK.CompositionBrush? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIDropShadow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Mask(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_MaskImpl(_ value: WinAppSDK.CompositionBrush?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIDropShadow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Mask(pThis, RawPointer(value))) + } + } + + internal func get_OffsetImpl() throws -> WindowsFoundation.Vector3 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector3 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIDropShadow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Offset(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_OffsetImpl(_ value: WindowsFoundation.Vector3) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIDropShadow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Offset(pThis, .from(swift: value))) + } + } + + internal func get_OpacityImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIDropShadow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Opacity(pThis, &value)) + } + return value + } + + internal func put_OpacityImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIDropShadow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Opacity(pThis, value)) + } + } + + } + + public class IDropShadow2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIDropShadow2 } + + internal func get_SourcePolicyImpl() throws -> WinAppSDK.CompositionDropShadowSourcePolicy { + var value: __x_ABI_CMicrosoft_CUI_CComposition_CCompositionDropShadowSourcePolicy = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIDropShadow2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SourcePolicy(pThis, &value)) + } + return value + } + + internal func put_SourcePolicyImpl(_ value: WinAppSDK.CompositionDropShadowSourcePolicy) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIDropShadow2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_SourcePolicy(pThis, value)) + } + } + + } + + public class IElasticEasingFunction: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIElasticEasingFunction } + + internal func get_ModeImpl() throws -> WinAppSDK.CompositionEasingFunctionMode { + var value: __x_ABI_CMicrosoft_CUI_CComposition_CCompositionEasingFunctionMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIElasticEasingFunction.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Mode(pThis, &value)) + } + return value + } + + internal func get_OscillationsImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIElasticEasingFunction.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Oscillations(pThis, &value)) + } + return value + } + + internal func get_SpringinessImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIElasticEasingFunction.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Springiness(pThis, &value)) + } + return value + } + + } + + public class IExponentialEasingFunction: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIExponentialEasingFunction } + + internal func get_ModeImpl() throws -> WinAppSDK.CompositionEasingFunctionMode { + var value: __x_ABI_CMicrosoft_CUI_CComposition_CCompositionEasingFunctionMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIExponentialEasingFunction.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Mode(pThis, &value)) + } + return value + } + + internal func get_ExponentImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIExponentialEasingFunction.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Exponent(pThis, &value)) + } + return value + } + + } + + public class IExpressionAnimation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIExpressionAnimation } + + internal func get_ExpressionImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIExpressionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Expression(pThis, &value)) + } + return .init(from: value) + } + + internal func put_ExpressionImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIExpressionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Expression(pThis, _value.get())) + } + } + + } + + public class IImplicitAnimationCollection: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIImplicitAnimationCollection } + + } + + public class IInsetClip: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIInsetClip } + + internal func get_BottomInsetImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIInsetClip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BottomInset(pThis, &value)) + } + return value + } + + internal func put_BottomInsetImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIInsetClip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_BottomInset(pThis, value)) + } + } + + internal func get_LeftInsetImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIInsetClip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LeftInset(pThis, &value)) + } + return value + } + + internal func put_LeftInsetImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIInsetClip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_LeftInset(pThis, value)) + } + } + + internal func get_RightInsetImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIInsetClip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RightInset(pThis, &value)) + } + return value + } + + internal func put_RightInsetImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIInsetClip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_RightInset(pThis, value)) + } + } + + internal func get_TopInsetImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIInsetClip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TopInset(pThis, &value)) + } + return value + } + + internal func put_TopInsetImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIInsetClip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TopInset(pThis, value)) + } + } + + } + + public class IKeyFrameAnimation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIKeyFrameAnimation } + + internal func get_DelayTimeImpl() throws -> WindowsFoundation.TimeSpan { + var value: __x_ABI_CWindows_CFoundation_CTimeSpan = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIKeyFrameAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DelayTime(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_DelayTimeImpl(_ value: WindowsFoundation.TimeSpan) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIKeyFrameAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_DelayTime(pThis, .from(swift: value))) + } + } + + internal func get_DurationImpl() throws -> WindowsFoundation.TimeSpan { + var value: __x_ABI_CWindows_CFoundation_CTimeSpan = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIKeyFrameAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Duration(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_DurationImpl(_ value: WindowsFoundation.TimeSpan) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIKeyFrameAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Duration(pThis, .from(swift: value))) + } + } + + internal func get_IterationBehaviorImpl() throws -> WinAppSDK.AnimationIterationBehavior { + var value: __x_ABI_CMicrosoft_CUI_CComposition_CAnimationIterationBehavior = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIKeyFrameAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IterationBehavior(pThis, &value)) + } + return value + } + + internal func put_IterationBehaviorImpl(_ value: WinAppSDK.AnimationIterationBehavior) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIKeyFrameAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IterationBehavior(pThis, value)) + } + } + + internal func get_IterationCountImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIKeyFrameAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IterationCount(pThis, &value)) + } + return value + } + + internal func put_IterationCountImpl(_ value: Int32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIKeyFrameAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IterationCount(pThis, value)) + } + } + + internal func get_KeyFrameCountImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIKeyFrameAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyFrameCount(pThis, &value)) + } + return value + } + + internal func get_StopBehaviorImpl() throws -> WinAppSDK.AnimationStopBehavior { + var value: __x_ABI_CMicrosoft_CUI_CComposition_CAnimationStopBehavior = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIKeyFrameAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_StopBehavior(pThis, &value)) + } + return value + } + + internal func put_StopBehaviorImpl(_ value: WinAppSDK.AnimationStopBehavior) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIKeyFrameAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_StopBehavior(pThis, value)) + } + } + + internal func InsertExpressionKeyFrameImpl(_ normalizedProgressKey: Float, _ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIKeyFrameAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InsertExpressionKeyFrame(pThis, normalizedProgressKey, _value.get())) + } + } + + internal func InsertExpressionKeyFrameWithEasingFunctionImpl(_ normalizedProgressKey: Float, _ value: String, _ easingFunction: WinAppSDK.CompositionEasingFunction?) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIKeyFrameAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InsertExpressionKeyFrameWithEasingFunction(pThis, normalizedProgressKey, _value.get(), RawPointer(easingFunction))) + } + } + + } + + public class IKeyFrameAnimation2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIKeyFrameAnimation2 } + + internal func get_DirectionImpl() throws -> WinAppSDK.AnimationDirection { + var value: __x_ABI_CMicrosoft_CUI_CComposition_CAnimationDirection = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIKeyFrameAnimation2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Direction(pThis, &value)) + } + return value + } + + internal func put_DirectionImpl(_ value: WinAppSDK.AnimationDirection) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIKeyFrameAnimation2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Direction(pThis, value)) + } + } + + } + + public class IKeyFrameAnimation3: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIKeyFrameAnimation3 } + + internal func get_DelayBehaviorImpl() throws -> WinAppSDK.AnimationDelayBehavior { + var value: __x_ABI_CMicrosoft_CUI_CComposition_CAnimationDelayBehavior = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIKeyFrameAnimation3.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DelayBehavior(pThis, &value)) + } + return value + } + + internal func put_DelayBehaviorImpl(_ value: WinAppSDK.AnimationDelayBehavior) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIKeyFrameAnimation3.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_DelayBehavior(pThis, value)) + } + } + + } + + public class IKeyFrameAnimationFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIKeyFrameAnimationFactory } + + } + + public class ILayerVisual: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CILayerVisual } + + internal func get_EffectImpl() throws -> WinAppSDK.CompositionEffectBrush? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CILayerVisual.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Effect(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_EffectImpl(_ value: WinAppSDK.CompositionEffectBrush?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CILayerVisual.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Effect(pThis, RawPointer(value))) + } + } + + } + + public class ILayerVisual2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CILayerVisual2 } + + internal func get_ShadowImpl() throws -> WinAppSDK.CompositionShadow? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CILayerVisual2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Shadow(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ShadowImpl(_ value: WinAppSDK.CompositionShadow?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CILayerVisual2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Shadow(pThis, RawPointer(value))) + } + } + + } + + public class ILinearEasingFunction: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CILinearEasingFunction } + + } + + public class INaturalMotionAnimation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CINaturalMotionAnimation } + + internal func get_DelayBehaviorImpl() throws -> WinAppSDK.AnimationDelayBehavior { + var value: __x_ABI_CMicrosoft_CUI_CComposition_CAnimationDelayBehavior = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CINaturalMotionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DelayBehavior(pThis, &value)) + } + return value + } + + internal func put_DelayBehaviorImpl(_ value: WinAppSDK.AnimationDelayBehavior) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CINaturalMotionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_DelayBehavior(pThis, value)) + } + } + + internal func get_DelayTimeImpl() throws -> WindowsFoundation.TimeSpan { + var value: __x_ABI_CWindows_CFoundation_CTimeSpan = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CINaturalMotionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DelayTime(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_DelayTimeImpl(_ value: WindowsFoundation.TimeSpan) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CINaturalMotionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_DelayTime(pThis, .from(swift: value))) + } + } + + internal func get_StopBehaviorImpl() throws -> WinAppSDK.AnimationStopBehavior { + var value: __x_ABI_CMicrosoft_CUI_CComposition_CAnimationStopBehavior = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CINaturalMotionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_StopBehavior(pThis, &value)) + } + return value + } + + internal func put_StopBehaviorImpl(_ value: WinAppSDK.AnimationStopBehavior) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CINaturalMotionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_StopBehavior(pThis, value)) + } + } + + } + + public class INaturalMotionAnimationFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CINaturalMotionAnimationFactory } + + } + + public class IPathKeyFrameAnimation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIPathKeyFrameAnimation } + + internal func InsertKeyFrameImpl(_ normalizedProgressKey: Float, _ path: WinAppSDK.CompositionPath?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIPathKeyFrameAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InsertKeyFrame(pThis, normalizedProgressKey, RawPointer(path))) + } + } + + internal func InsertKeyFrameWithEasingFunctionImpl(_ normalizedProgressKey: Float, _ path: WinAppSDK.CompositionPath?, _ easingFunction: WinAppSDK.CompositionEasingFunction?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIPathKeyFrameAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InsertKeyFrameWithEasingFunction(pThis, normalizedProgressKey, RawPointer(path), RawPointer(easingFunction))) + } + } + + } + + public class IPointLight: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIPointLight } + + internal func get_ColorImpl() throws -> UWP.Color { + var value: __x_ABI_CWindows_CUI_CColor = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIPointLight.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Color(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_ColorImpl(_ value: UWP.Color) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIPointLight.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Color(pThis, .from(swift: value))) + } + } + + internal func get_ConstantAttenuationImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIPointLight.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ConstantAttenuation(pThis, &value)) + } + return value + } + + internal func put_ConstantAttenuationImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIPointLight.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ConstantAttenuation(pThis, value)) + } + } + + internal func get_CoordinateSpaceImpl() throws -> WinAppSDK.Visual? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIPointLight.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CoordinateSpace(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_CoordinateSpaceImpl(_ value: WinAppSDK.Visual?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIPointLight.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CoordinateSpace(pThis, RawPointer(value))) + } + } + + internal func get_LinearAttenuationImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIPointLight.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LinearAttenuation(pThis, &value)) + } + return value + } + + internal func put_LinearAttenuationImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIPointLight.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_LinearAttenuation(pThis, value)) + } + } + + internal func get_OffsetImpl() throws -> WindowsFoundation.Vector3 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector3 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIPointLight.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Offset(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_OffsetImpl(_ value: WindowsFoundation.Vector3) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIPointLight.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Offset(pThis, .from(swift: value))) + } + } + + internal func get_QuadraticAttenuationImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIPointLight.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_QuadraticAttenuation(pThis, &value)) + } + return value + } + + internal func put_QuadraticAttenuationImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIPointLight.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_QuadraticAttenuation(pThis, value)) + } + } + + } + + public class IPointLight2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIPointLight2 } + + internal func get_IntensityImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIPointLight2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Intensity(pThis, &value)) + } + return value + } + + internal func put_IntensityImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIPointLight2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Intensity(pThis, value)) + } + } + + } + + public class IPointLight3: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIPointLight3 } + + internal func get_MinAttenuationCutoffImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIPointLight3.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MinAttenuationCutoff(pThis, &value)) + } + return value + } + + internal func put_MinAttenuationCutoffImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIPointLight3.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_MinAttenuationCutoff(pThis, value)) + } + } + + internal func get_MaxAttenuationCutoffImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIPointLight3.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MaxAttenuationCutoff(pThis, &value)) + } + return value + } + + internal func put_MaxAttenuationCutoffImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIPointLight3.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_MaxAttenuationCutoff(pThis, value)) + } + } + + } + + public class IPowerEasingFunction: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIPowerEasingFunction } + + internal func get_ModeImpl() throws -> WinAppSDK.CompositionEasingFunctionMode { + var value: __x_ABI_CMicrosoft_CUI_CComposition_CCompositionEasingFunctionMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIPowerEasingFunction.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Mode(pThis, &value)) + } + return value + } + + internal func get_PowerImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIPowerEasingFunction.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Power(pThis, &value)) + } + return value + } + + } + + public class IQuaternionKeyFrameAnimation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIQuaternionKeyFrameAnimation } + + internal func InsertKeyFrameImpl(_ normalizedProgressKey: Float, _ value: WindowsFoundation.Quaternion) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIQuaternionKeyFrameAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InsertKeyFrame(pThis, normalizedProgressKey, .from(swift: value))) + } + } + + internal func InsertKeyFrameWithEasingFunctionImpl(_ normalizedProgressKey: Float, _ value: WindowsFoundation.Quaternion, _ easingFunction: WinAppSDK.CompositionEasingFunction?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIQuaternionKeyFrameAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InsertKeyFrameWithEasingFunction(pThis, normalizedProgressKey, .from(swift: value), RawPointer(easingFunction))) + } + } + + } + + public class IRectangleClip: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIRectangleClip } + + internal func get_BottomImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIRectangleClip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Bottom(pThis, &value)) + } + return value + } + + internal func put_BottomImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIRectangleClip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Bottom(pThis, value)) + } + } + + internal func get_BottomLeftRadiusImpl() throws -> WindowsFoundation.Vector2 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIRectangleClip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BottomLeftRadius(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_BottomLeftRadiusImpl(_ value: WindowsFoundation.Vector2) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIRectangleClip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_BottomLeftRadius(pThis, .from(swift: value))) + } + } + + internal func get_BottomRightRadiusImpl() throws -> WindowsFoundation.Vector2 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIRectangleClip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BottomRightRadius(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_BottomRightRadiusImpl(_ value: WindowsFoundation.Vector2) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIRectangleClip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_BottomRightRadius(pThis, .from(swift: value))) + } + } + + internal func get_LeftImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIRectangleClip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Left(pThis, &value)) + } + return value + } + + internal func put_LeftImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIRectangleClip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Left(pThis, value)) + } + } + + internal func get_RightImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIRectangleClip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Right(pThis, &value)) + } + return value + } + + internal func put_RightImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIRectangleClip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Right(pThis, value)) + } + } + + internal func get_TopImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIRectangleClip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Top(pThis, &value)) + } + return value + } + + internal func put_TopImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIRectangleClip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Top(pThis, value)) + } + } + + internal func get_TopLeftRadiusImpl() throws -> WindowsFoundation.Vector2 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIRectangleClip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TopLeftRadius(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_TopLeftRadiusImpl(_ value: WindowsFoundation.Vector2) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIRectangleClip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TopLeftRadius(pThis, .from(swift: value))) + } + } + + internal func get_TopRightRadiusImpl() throws -> WindowsFoundation.Vector2 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIRectangleClip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TopRightRadius(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_TopRightRadiusImpl(_ value: WindowsFoundation.Vector2) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIRectangleClip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TopRightRadius(pThis, .from(swift: value))) + } + } + + } + + public class IRedirectVisual: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIRedirectVisual } + + internal func get_SourceImpl() throws -> WinAppSDK.Visual? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIRedirectVisual.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Source(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_SourceImpl(_ value: WinAppSDK.Visual?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIRedirectVisual.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Source(pThis, RawPointer(value))) + } + } + + } + + public class IRenderingDeviceReplacedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIRenderingDeviceReplacedEventArgs } + + internal func get_GraphicsDeviceImpl() throws -> WinAppSDK.CompositionGraphicsDevice? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIRenderingDeviceReplacedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_GraphicsDevice(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IScalarKeyFrameAnimation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIScalarKeyFrameAnimation } + + internal func InsertKeyFrameImpl(_ normalizedProgressKey: Float, _ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIScalarKeyFrameAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InsertKeyFrame(pThis, normalizedProgressKey, value)) + } + } + + internal func InsertKeyFrameWithEasingFunctionImpl(_ normalizedProgressKey: Float, _ value: Float, _ easingFunction: WinAppSDK.CompositionEasingFunction?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIScalarKeyFrameAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InsertKeyFrameWithEasingFunction(pThis, normalizedProgressKey, value, RawPointer(easingFunction))) + } + } + + } + + public class IScalarNaturalMotionAnimation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIScalarNaturalMotionAnimation } + + internal func get_FinalValueImpl() throws -> Float? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIScalarNaturalMotionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FinalValue(pThis, &valueAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIReference_1_floatWrapper.unwrapFrom(abi: value) + } + + internal func put_FinalValueImpl(_ value: Float?) throws { + let valueWrapper = WinAppSDK.__x_ABI_C__FIReference_1_floatWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIScalarNaturalMotionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FinalValue(pThis, _value)) + } + } + + internal func get_InitialValueImpl() throws -> Float? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIScalarNaturalMotionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_InitialValue(pThis, &valueAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIReference_1_floatWrapper.unwrapFrom(abi: value) + } + + internal func put_InitialValueImpl(_ value: Float?) throws { + let valueWrapper = WinAppSDK.__x_ABI_C__FIReference_1_floatWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIScalarNaturalMotionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_InitialValue(pThis, _value)) + } + } + + internal func get_InitialVelocityImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIScalarNaturalMotionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_InitialVelocity(pThis, &value)) + } + return value + } + + internal func put_InitialVelocityImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIScalarNaturalMotionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_InitialVelocity(pThis, value)) + } + } + + } + + public class IScalarNaturalMotionAnimationFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIScalarNaturalMotionAnimationFactory } + + } + + public class IShapeVisual: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIShapeVisual } + + internal func get_ShapesImpl() throws -> WinAppSDK.CompositionShapeCollection? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIShapeVisual.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Shapes(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ViewBoxImpl() throws -> WinAppSDK.CompositionViewBox? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIShapeVisual.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ViewBox(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ViewBoxImpl(_ value: WinAppSDK.CompositionViewBox?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIShapeVisual.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ViewBox(pThis, RawPointer(value))) + } + } + + } + + public class ISineEasingFunction: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CISineEasingFunction } + + internal func get_ModeImpl() throws -> WinAppSDK.CompositionEasingFunctionMode { + var value: __x_ABI_CMicrosoft_CUI_CComposition_CCompositionEasingFunctionMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CISineEasingFunction.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Mode(pThis, &value)) + } + return value + } + + } + + public class ISpotLight: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CISpotLight } + + internal func get_ConstantAttenuationImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CISpotLight.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ConstantAttenuation(pThis, &value)) + } + return value + } + + internal func put_ConstantAttenuationImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CISpotLight.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ConstantAttenuation(pThis, value)) + } + } + + internal func get_CoordinateSpaceImpl() throws -> WinAppSDK.Visual? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CISpotLight.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CoordinateSpace(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_CoordinateSpaceImpl(_ value: WinAppSDK.Visual?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CISpotLight.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CoordinateSpace(pThis, RawPointer(value))) + } + } + + internal func get_DirectionImpl() throws -> WindowsFoundation.Vector3 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector3 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CISpotLight.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Direction(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_DirectionImpl(_ value: WindowsFoundation.Vector3) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CISpotLight.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Direction(pThis, .from(swift: value))) + } + } + + internal func get_InnerConeAngleImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CISpotLight.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_InnerConeAngle(pThis, &value)) + } + return value + } + + internal func put_InnerConeAngleImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CISpotLight.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_InnerConeAngle(pThis, value)) + } + } + + internal func get_InnerConeAngleInDegreesImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CISpotLight.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_InnerConeAngleInDegrees(pThis, &value)) + } + return value + } + + internal func put_InnerConeAngleInDegreesImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CISpotLight.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_InnerConeAngleInDegrees(pThis, value)) + } + } + + internal func get_InnerConeColorImpl() throws -> UWP.Color { + var value: __x_ABI_CWindows_CUI_CColor = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CISpotLight.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_InnerConeColor(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_InnerConeColorImpl(_ value: UWP.Color) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CISpotLight.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_InnerConeColor(pThis, .from(swift: value))) + } + } + + internal func get_LinearAttenuationImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CISpotLight.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LinearAttenuation(pThis, &value)) + } + return value + } + + internal func put_LinearAttenuationImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CISpotLight.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_LinearAttenuation(pThis, value)) + } + } + + internal func get_OffsetImpl() throws -> WindowsFoundation.Vector3 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector3 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CISpotLight.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Offset(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_OffsetImpl(_ value: WindowsFoundation.Vector3) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CISpotLight.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Offset(pThis, .from(swift: value))) + } + } + + internal func get_OuterConeAngleImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CISpotLight.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OuterConeAngle(pThis, &value)) + } + return value + } + + internal func put_OuterConeAngleImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CISpotLight.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_OuterConeAngle(pThis, value)) + } + } + + internal func get_OuterConeAngleInDegreesImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CISpotLight.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OuterConeAngleInDegrees(pThis, &value)) + } + return value + } + + internal func put_OuterConeAngleInDegreesImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CISpotLight.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_OuterConeAngleInDegrees(pThis, value)) + } + } + + internal func get_OuterConeColorImpl() throws -> UWP.Color { + var value: __x_ABI_CWindows_CUI_CColor = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CISpotLight.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OuterConeColor(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_OuterConeColorImpl(_ value: UWP.Color) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CISpotLight.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_OuterConeColor(pThis, .from(swift: value))) + } + } + + internal func get_QuadraticAttenuationImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CISpotLight.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_QuadraticAttenuation(pThis, &value)) + } + return value + } + + internal func put_QuadraticAttenuationImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CISpotLight.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_QuadraticAttenuation(pThis, value)) + } + } + + } + + public class ISpotLight2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CISpotLight2 } + + internal func get_InnerConeIntensityImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CISpotLight2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_InnerConeIntensity(pThis, &value)) + } + return value + } + + internal func put_InnerConeIntensityImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CISpotLight2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_InnerConeIntensity(pThis, value)) + } + } + + internal func get_OuterConeIntensityImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CISpotLight2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OuterConeIntensity(pThis, &value)) + } + return value + } + + internal func put_OuterConeIntensityImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CISpotLight2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_OuterConeIntensity(pThis, value)) + } + } + + } + + public class ISpotLight3: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CISpotLight3 } + + internal func get_MinAttenuationCutoffImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CISpotLight3.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MinAttenuationCutoff(pThis, &value)) + } + return value + } + + internal func put_MinAttenuationCutoffImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CISpotLight3.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_MinAttenuationCutoff(pThis, value)) + } + } + + internal func get_MaxAttenuationCutoffImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CISpotLight3.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MaxAttenuationCutoff(pThis, &value)) + } + return value + } + + internal func put_MaxAttenuationCutoffImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CISpotLight3.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_MaxAttenuationCutoff(pThis, value)) + } + } + + } + + public class ISpringScalarNaturalMotionAnimation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CISpringScalarNaturalMotionAnimation } + + internal func get_DampingRatioImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CISpringScalarNaturalMotionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DampingRatio(pThis, &value)) + } + return value + } + + internal func put_DampingRatioImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CISpringScalarNaturalMotionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_DampingRatio(pThis, value)) + } + } + + internal func get_PeriodImpl() throws -> WindowsFoundation.TimeSpan { + var value: __x_ABI_CWindows_CFoundation_CTimeSpan = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CISpringScalarNaturalMotionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Period(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_PeriodImpl(_ value: WindowsFoundation.TimeSpan) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CISpringScalarNaturalMotionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Period(pThis, .from(swift: value))) + } + } + + } + + public class ISpringVector2NaturalMotionAnimation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CISpringVector2NaturalMotionAnimation } + + internal func get_DampingRatioImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CISpringVector2NaturalMotionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DampingRatio(pThis, &value)) + } + return value + } + + internal func put_DampingRatioImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CISpringVector2NaturalMotionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_DampingRatio(pThis, value)) + } + } + + internal func get_PeriodImpl() throws -> WindowsFoundation.TimeSpan { + var value: __x_ABI_CWindows_CFoundation_CTimeSpan = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CISpringVector2NaturalMotionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Period(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_PeriodImpl(_ value: WindowsFoundation.TimeSpan) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CISpringVector2NaturalMotionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Period(pThis, .from(swift: value))) + } + } + + } + + public class ISpringVector3NaturalMotionAnimation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CISpringVector3NaturalMotionAnimation } + + internal func get_DampingRatioImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CISpringVector3NaturalMotionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DampingRatio(pThis, &value)) + } + return value + } + + internal func put_DampingRatioImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CISpringVector3NaturalMotionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_DampingRatio(pThis, value)) + } + } + + internal func get_PeriodImpl() throws -> WindowsFoundation.TimeSpan { + var value: __x_ABI_CWindows_CFoundation_CTimeSpan = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CISpringVector3NaturalMotionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Period(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_PeriodImpl(_ value: WindowsFoundation.TimeSpan) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CISpringVector3NaturalMotionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Period(pThis, .from(swift: value))) + } + } + + } + + public class ISpriteVisual: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CISpriteVisual } + + internal func get_BrushImpl() throws -> WinAppSDK.CompositionBrush? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CISpriteVisual.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Brush(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_BrushImpl(_ value: WinAppSDK.CompositionBrush?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CISpriteVisual.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Brush(pThis, RawPointer(value))) + } + } + + } + + public class ISpriteVisual2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CISpriteVisual2 } + + internal func get_ShadowImpl() throws -> WinAppSDK.CompositionShadow? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CISpriteVisual2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Shadow(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ShadowImpl(_ value: WinAppSDK.CompositionShadow?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CISpriteVisual2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Shadow(pThis, RawPointer(value))) + } + } + + } + + public class IStepEasingFunction: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIStepEasingFunction } + + internal func get_FinalStepImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIStepEasingFunction.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FinalStep(pThis, &value)) + } + return value + } + + internal func put_FinalStepImpl(_ value: Int32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIStepEasingFunction.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FinalStep(pThis, value)) + } + } + + internal func get_InitialStepImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIStepEasingFunction.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_InitialStep(pThis, &value)) + } + return value + } + + internal func put_InitialStepImpl(_ value: Int32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIStepEasingFunction.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_InitialStep(pThis, value)) + } + } + + internal func get_IsFinalStepSingleFrameImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIStepEasingFunction.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsFinalStepSingleFrame(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsFinalStepSingleFrameImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIStepEasingFunction.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsFinalStepSingleFrame(pThis, .init(from: value))) + } + } + + internal func get_IsInitialStepSingleFrameImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIStepEasingFunction.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsInitialStepSingleFrame(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsInitialStepSingleFrameImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIStepEasingFunction.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsInitialStepSingleFrame(pThis, .init(from: value))) + } + } + + internal func get_StepCountImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIStepEasingFunction.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_StepCount(pThis, &value)) + } + return value + } + + internal func put_StepCountImpl(_ value: Int32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIStepEasingFunction.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_StepCount(pThis, value)) + } + } + + } + + public class IVector2KeyFrameAnimation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIVector2KeyFrameAnimation } + + internal func InsertKeyFrameImpl(_ normalizedProgressKey: Float, _ value: WindowsFoundation.Vector2) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVector2KeyFrameAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InsertKeyFrame(pThis, normalizedProgressKey, .from(swift: value))) + } + } + + internal func InsertKeyFrameWithEasingFunctionImpl(_ normalizedProgressKey: Float, _ value: WindowsFoundation.Vector2, _ easingFunction: WinAppSDK.CompositionEasingFunction?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVector2KeyFrameAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InsertKeyFrameWithEasingFunction(pThis, normalizedProgressKey, .from(swift: value), RawPointer(easingFunction))) + } + } + + } + + public class IVector2NaturalMotionAnimation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIVector2NaturalMotionAnimation } + + internal func get_FinalValueImpl() throws -> WindowsFoundation.Vector2? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVector2NaturalMotionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FinalValue(pThis, &valueAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector2Wrapper.unwrapFrom(abi: value) + } + + internal func put_FinalValueImpl(_ value: WindowsFoundation.Vector2?) throws { + let valueWrapper = WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector2Wrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVector2NaturalMotionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FinalValue(pThis, _value)) + } + } + + internal func get_InitialValueImpl() throws -> WindowsFoundation.Vector2? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVector2NaturalMotionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_InitialValue(pThis, &valueAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector2Wrapper.unwrapFrom(abi: value) + } + + internal func put_InitialValueImpl(_ value: WindowsFoundation.Vector2?) throws { + let valueWrapper = WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector2Wrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVector2NaturalMotionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_InitialValue(pThis, _value)) + } + } + + internal func get_InitialVelocityImpl() throws -> WindowsFoundation.Vector2 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVector2NaturalMotionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_InitialVelocity(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_InitialVelocityImpl(_ value: WindowsFoundation.Vector2) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVector2NaturalMotionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_InitialVelocity(pThis, .from(swift: value))) + } + } + + } + + public class IVector2NaturalMotionAnimationFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIVector2NaturalMotionAnimationFactory } + + } + + public class IVector3KeyFrameAnimation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIVector3KeyFrameAnimation } + + internal func InsertKeyFrameImpl(_ normalizedProgressKey: Float, _ value: WindowsFoundation.Vector3) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVector3KeyFrameAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InsertKeyFrame(pThis, normalizedProgressKey, .from(swift: value))) + } + } + + internal func InsertKeyFrameWithEasingFunctionImpl(_ normalizedProgressKey: Float, _ value: WindowsFoundation.Vector3, _ easingFunction: WinAppSDK.CompositionEasingFunction?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVector3KeyFrameAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InsertKeyFrameWithEasingFunction(pThis, normalizedProgressKey, .from(swift: value), RawPointer(easingFunction))) + } + } + + } + + public class IVector3NaturalMotionAnimation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIVector3NaturalMotionAnimation } + + internal func get_FinalValueImpl() throws -> WindowsFoundation.Vector3? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVector3NaturalMotionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FinalValue(pThis, &valueAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector3Wrapper.unwrapFrom(abi: value) + } + + internal func put_FinalValueImpl(_ value: WindowsFoundation.Vector3?) throws { + let valueWrapper = WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector3Wrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVector3NaturalMotionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FinalValue(pThis, _value)) + } + } + + internal func get_InitialValueImpl() throws -> WindowsFoundation.Vector3? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVector3NaturalMotionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_InitialValue(pThis, &valueAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector3Wrapper.unwrapFrom(abi: value) + } + + internal func put_InitialValueImpl(_ value: WindowsFoundation.Vector3?) throws { + let valueWrapper = WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector3Wrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVector3NaturalMotionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_InitialValue(pThis, _value)) + } + } + + internal func get_InitialVelocityImpl() throws -> WindowsFoundation.Vector3 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector3 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVector3NaturalMotionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_InitialVelocity(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_InitialVelocityImpl(_ value: WindowsFoundation.Vector3) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVector3NaturalMotionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_InitialVelocity(pThis, .from(swift: value))) + } + } + + } + + public class IVector3NaturalMotionAnimationFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIVector3NaturalMotionAnimationFactory } + + } + + public class IVector4KeyFrameAnimation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIVector4KeyFrameAnimation } + + internal func InsertKeyFrameImpl(_ normalizedProgressKey: Float, _ value: WindowsFoundation.Vector4) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVector4KeyFrameAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InsertKeyFrame(pThis, normalizedProgressKey, .from(swift: value))) + } + } + + internal func InsertKeyFrameWithEasingFunctionImpl(_ normalizedProgressKey: Float, _ value: WindowsFoundation.Vector4, _ easingFunction: WinAppSDK.CompositionEasingFunction?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVector4KeyFrameAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InsertKeyFrameWithEasingFunction(pThis, normalizedProgressKey, .from(swift: value), RawPointer(easingFunction))) + } + } + + } + + public class IVisual: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIVisual } + + internal func get_AnchorPointImpl() throws -> WindowsFoundation.Vector2 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisual.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AnchorPoint(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_AnchorPointImpl(_ value: WindowsFoundation.Vector2) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisual.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_AnchorPoint(pThis, .from(swift: value))) + } + } + + internal func get_BackfaceVisibilityImpl() throws -> WinAppSDK.CompositionBackfaceVisibility { + var value: __x_ABI_CMicrosoft_CUI_CComposition_CCompositionBackfaceVisibility = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisual.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BackfaceVisibility(pThis, &value)) + } + return value + } + + internal func put_BackfaceVisibilityImpl(_ value: WinAppSDK.CompositionBackfaceVisibility) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisual.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_BackfaceVisibility(pThis, value)) + } + } + + internal func get_BorderModeImpl() throws -> WinAppSDK.CompositionBorderMode { + var value: __x_ABI_CMicrosoft_CUI_CComposition_CCompositionBorderMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisual.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BorderMode(pThis, &value)) + } + return value + } + + internal func put_BorderModeImpl(_ value: WinAppSDK.CompositionBorderMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisual.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_BorderMode(pThis, value)) + } + } + + internal func get_CenterPointImpl() throws -> WindowsFoundation.Vector3 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector3 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisual.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CenterPoint(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_CenterPointImpl(_ value: WindowsFoundation.Vector3) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisual.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CenterPoint(pThis, .from(swift: value))) + } + } + + internal func get_ClipImpl() throws -> WinAppSDK.CompositionClip? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisual.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Clip(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ClipImpl(_ value: WinAppSDK.CompositionClip?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisual.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Clip(pThis, RawPointer(value))) + } + } + + internal func get_CompositeModeImpl() throws -> WinAppSDK.CompositionCompositeMode { + var value: __x_ABI_CMicrosoft_CUI_CComposition_CCompositionCompositeMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisual.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CompositeMode(pThis, &value)) + } + return value + } + + internal func put_CompositeModeImpl(_ value: WinAppSDK.CompositionCompositeMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisual.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CompositeMode(pThis, value)) + } + } + + internal func get_IsVisibleImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisual.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsVisible(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsVisibleImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisual.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsVisible(pThis, .init(from: value))) + } + } + + internal func get_OffsetImpl() throws -> WindowsFoundation.Vector3 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector3 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisual.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Offset(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_OffsetImpl(_ value: WindowsFoundation.Vector3) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisual.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Offset(pThis, .from(swift: value))) + } + } + + internal func get_OpacityImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisual.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Opacity(pThis, &value)) + } + return value + } + + internal func put_OpacityImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisual.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Opacity(pThis, value)) + } + } + + internal func get_OrientationImpl() throws -> WindowsFoundation.Quaternion { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CQuaternion = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisual.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Orientation(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_OrientationImpl(_ value: WindowsFoundation.Quaternion) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisual.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Orientation(pThis, .from(swift: value))) + } + } + + internal func get_ParentImpl() throws -> WinAppSDK.ContainerVisual? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisual.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Parent(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_RotationAngleImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisual.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RotationAngle(pThis, &value)) + } + return value + } + + internal func put_RotationAngleImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisual.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_RotationAngle(pThis, value)) + } + } + + internal func get_RotationAngleInDegreesImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisual.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RotationAngleInDegrees(pThis, &value)) + } + return value + } + + internal func put_RotationAngleInDegreesImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisual.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_RotationAngleInDegrees(pThis, value)) + } + } + + internal func get_RotationAxisImpl() throws -> WindowsFoundation.Vector3 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector3 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisual.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RotationAxis(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_RotationAxisImpl(_ value: WindowsFoundation.Vector3) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisual.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_RotationAxis(pThis, .from(swift: value))) + } + } + + internal func get_ScaleImpl() throws -> WindowsFoundation.Vector3 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector3 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisual.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Scale(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_ScaleImpl(_ value: WindowsFoundation.Vector3) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisual.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Scale(pThis, .from(swift: value))) + } + } + + internal func get_SizeImpl() throws -> WindowsFoundation.Vector2 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisual.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_SizeImpl(_ value: WindowsFoundation.Vector2) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisual.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Size(pThis, .from(swift: value))) + } + } + + internal func get_TransformMatrixImpl() throws -> WindowsFoundation.Matrix4x4 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CMatrix4x4 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisual.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TransformMatrix(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_TransformMatrixImpl(_ value: WindowsFoundation.Matrix4x4) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisual.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TransformMatrix(pThis, .from(swift: value))) + } + } + + } + + public class IVisual2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIVisual2 } + + internal func get_ParentForTransformImpl() throws -> WinAppSDK.Visual? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisual2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ParentForTransform(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ParentForTransformImpl(_ value: WinAppSDK.Visual?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisual2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ParentForTransform(pThis, RawPointer(value))) + } + } + + internal func get_RelativeOffsetAdjustmentImpl() throws -> WindowsFoundation.Vector3 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector3 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisual2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RelativeOffsetAdjustment(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_RelativeOffsetAdjustmentImpl(_ value: WindowsFoundation.Vector3) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisual2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_RelativeOffsetAdjustment(pThis, .from(swift: value))) + } + } + + internal func get_RelativeSizeAdjustmentImpl() throws -> WindowsFoundation.Vector2 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisual2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RelativeSizeAdjustment(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_RelativeSizeAdjustmentImpl(_ value: WindowsFoundation.Vector2) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisual2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_RelativeSizeAdjustment(pThis, .from(swift: value))) + } + } + + } + + public class IVisual3: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIVisual3 } + + internal func get_IsHitTestVisibleImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisual3.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsHitTestVisible(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsHitTestVisibleImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisual3.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsHitTestVisible(pThis, .init(from: value))) + } + } + + } + + public class IVisual4: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIVisual4 } + + internal func get_IsPixelSnappingEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisual4.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsPixelSnappingEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsPixelSnappingEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisual4.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsPixelSnappingEnabled(pThis, .init(from: value))) + } + } + + } + + public class IVisualCollection: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIVisualCollection } + + internal func get_CountImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisualCollection.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Count(pThis, &value)) + } + return value + } + + internal func InsertAboveImpl(_ newChild: WinAppSDK.Visual?, _ sibling: WinAppSDK.Visual?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisualCollection.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InsertAbove(pThis, RawPointer(newChild), RawPointer(sibling))) + } + } + + internal func InsertAtBottomImpl(_ newChild: WinAppSDK.Visual?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisualCollection.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InsertAtBottom(pThis, RawPointer(newChild))) + } + } + + internal func InsertAtTopImpl(_ newChild: WinAppSDK.Visual?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisualCollection.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InsertAtTop(pThis, RawPointer(newChild))) + } + } + + internal func InsertBelowImpl(_ newChild: WinAppSDK.Visual?, _ sibling: WinAppSDK.Visual?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisualCollection.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InsertBelow(pThis, RawPointer(newChild), RawPointer(sibling))) + } + } + + internal func RemoveImpl(_ child: WinAppSDK.Visual?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisualCollection.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Remove(pThis, RawPointer(child))) + } + } + + internal func RemoveAllImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisualCollection.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAll(pThis)) + } + } + + } + + public class IVisualElement: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIVisualElement } + + } + + internal static var IVisualElementVTable: __x_ABI_CMicrosoft_CUI_CComposition_CIVisualElementVtbl = .init( + QueryInterface: { IVisualElementWrapper.queryInterface($0, $1, $2) }, + AddRef: { IVisualElementWrapper.addRef($0) }, + Release: { IVisualElementWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = __ABI_Microsoft_UI_Composition.IVisualElementWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Microsoft.UI.Composition.IVisualElement").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + } + ) + + public typealias IVisualElementWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Composition.IVisualElementBridge> + public class IVisualElement2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIVisualElement2 } + + open func GetVisualInternalImpl() throws -> WinAppSDK.Visual? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisualElement2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetVisualInternal(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + } + + internal static var IVisualElement2VTable: __x_ABI_CMicrosoft_CUI_CComposition_CIVisualElement2Vtbl = .init( + QueryInterface: { IVisualElement2Wrapper.queryInterface($0, $1, $2) }, + AddRef: { IVisualElement2Wrapper.addRef($0) }, + Release: { IVisualElement2Wrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = __ABI_Microsoft_UI_Composition.IVisualElement2Wrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Microsoft.UI.Composition.IVisualElement2").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + GetVisualInternal: { + do { + guard let __unwrapped__instance = IVisualElement2Wrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.getVisualInternal() + result?.copyTo($1) + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) + + public typealias IVisualElement2Wrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Composition.IVisualElement2Bridge> + public class IVisualFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIVisualFactory } + + } + + public class IVisualUnorderedCollection: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CIVisualUnorderedCollection } + + internal func get_CountImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisualUnorderedCollection.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Count(pThis, &value)) + } + return value + } + + internal func AddImpl(_ newVisual: WinAppSDK.Visual?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisualUnorderedCollection.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Add(pThis, RawPointer(newVisual))) + } + } + + internal func RemoveImpl(_ visual: WinAppSDK.Visual?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisualUnorderedCollection.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Remove(pThis, RawPointer(visual))) + } + } + + internal func RemoveAllImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CIVisualUnorderedCollection.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAll(pThis)) + } + } + + } + +} diff --git a/Sources/WinAppSDK/Microsoft.UI.Composition+Impl.swift b/Sources/WinAppSDK/Microsoft.UI.Composition+Impl.swift new file mode 100644 index 0000000..e017ea5 --- /dev/null +++ b/Sources/WinAppSDK/Microsoft.UI.Composition+Impl.swift @@ -0,0 +1,205 @@ +// WARNING: Please don't edit this file. It was generated by Swift/WinRT v0.0.1 +// swiftlint:disable all +import Foundation +@_spi(WinRTInternal) @_spi(WinRTImplements) import UWP +@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation +import CWinRT + +public enum __IMPL_Microsoft_UI_Composition { + public enum IAnimationObjectBridge : AbiInterfaceBridge { + public typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CIAnimationObject + public typealias SwiftABI = __ABI_Microsoft_UI_Composition.IAnimationObject + public typealias SwiftProjection = AnyIAnimationObject + public static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return IAnimationObjectImpl(abi) + } + + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Composition.IAnimationObjectVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } + } + + fileprivate class IAnimationObjectImpl: IAnimationObject, WinRTAbiImpl { + fileprivate typealias Bridge = IAnimationObjectBridge + fileprivate let _default: Bridge.SwiftABI + fileprivate var thisPtr: WindowsFoundation.IInspectable { _default } + fileprivate init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.ianimationobject.populatepropertyinfo) + fileprivate func populatePropertyInfo(_ propertyName: String, _ propertyInfo: AnimationPropertyInfo!) throws { + try _default.PopulatePropertyInfoImpl(propertyName, propertyInfo) + } + + } + + public enum ICompositionAnimationBaseBridge : AbiInterfaceBridge { + public typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionAnimationBase + public typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionAnimationBase + public typealias SwiftProjection = AnyICompositionAnimationBase + public static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return ICompositionAnimationBaseImpl(abi) + } + + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Composition.ICompositionAnimationBaseVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } + } + + fileprivate class ICompositionAnimationBaseImpl: ICompositionAnimationBase, WinRTAbiImpl { + fileprivate typealias Bridge = ICompositionAnimationBaseBridge + fileprivate let _default: Bridge.SwiftABI + fileprivate var thisPtr: WindowsFoundation.IInspectable { _default } + fileprivate init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + } + + public enum ICompositionSupportsSystemBackdropBridge : AbiInterfaceBridge { + public typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSupportsSystemBackdrop + public typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionSupportsSystemBackdrop + public typealias SwiftProjection = AnyICompositionSupportsSystemBackdrop + public static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return ICompositionSupportsSystemBackdropImpl(abi) + } + + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Composition.ICompositionSupportsSystemBackdropVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } + } + + fileprivate class ICompositionSupportsSystemBackdropImpl: ICompositionSupportsSystemBackdrop, WinRTAbiImpl { + fileprivate typealias Bridge = ICompositionSupportsSystemBackdropBridge + fileprivate let _default: Bridge.SwiftABI + fileprivate var thisPtr: WindowsFoundation.IInspectable { _default } + fileprivate init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.icompositionsupportssystembackdrop.systembackdrop) + fileprivate var systemBackdrop : UWP.CompositionBrush! { + get { try! _default.get_SystemBackdropImpl() } + set { try! _default.put_SystemBackdropImpl(newValue) } + } + + } + + public enum ICompositionSurfaceBridge : AbiInterfaceBridge { + public typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSurface + public typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionSurface + public typealias SwiftProjection = AnyICompositionSurface + public static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return ICompositionSurfaceImpl(abi) + } + + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Composition.ICompositionSurfaceVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } + } + + fileprivate class ICompositionSurfaceImpl: ICompositionSurface, WinRTAbiImpl { + fileprivate typealias Bridge = ICompositionSurfaceBridge + fileprivate let _default: Bridge.SwiftABI + fileprivate var thisPtr: WindowsFoundation.IInspectable { _default } + fileprivate init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + } + + public enum ICompositionSurfaceFacadeBridge : AbiInterfaceBridge { + public typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSurfaceFacade + public typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionSurfaceFacade + public typealias SwiftProjection = AnyICompositionSurfaceFacade + public static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return ICompositionSurfaceFacadeImpl(abi) + } + + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Composition.ICompositionSurfaceFacadeVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } + } + + fileprivate class ICompositionSurfaceFacadeImpl: ICompositionSurfaceFacade, WinRTAbiImpl { + fileprivate typealias Bridge = ICompositionSurfaceFacadeBridge + fileprivate let _default: Bridge.SwiftABI + fileprivate var thisPtr: WindowsFoundation.IInspectable { _default } + fileprivate init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.icompositionsurfacefacade.getrealsurface) + fileprivate func getRealSurface() throws -> AnyICompositionSurface! { + try _default.GetRealSurfaceImpl() + } + + } + + public enum IVisualElementBridge : AbiInterfaceBridge { + public typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CIVisualElement + public typealias SwiftABI = __ABI_Microsoft_UI_Composition.IVisualElement + public typealias SwiftProjection = AnyIVisualElement + public static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return IVisualElementImpl(abi) + } + + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Composition.IVisualElementVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } + } + + fileprivate class IVisualElementImpl: IVisualElement, WinRTAbiImpl { + fileprivate typealias Bridge = IVisualElementBridge + fileprivate let _default: Bridge.SwiftABI + fileprivate var thisPtr: WindowsFoundation.IInspectable { _default } + fileprivate init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + } + + public enum IVisualElement2Bridge : AbiInterfaceBridge { + public typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CIVisualElement2 + public typealias SwiftABI = __ABI_Microsoft_UI_Composition.IVisualElement2 + public typealias SwiftProjection = AnyIVisualElement2 + public static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return IVisualElement2Impl(abi) + } + + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Composition.IVisualElement2VTable) { $0 } + return .init(lpVtbl: vtblPtr) + } + } + + fileprivate class IVisualElement2Impl: IVisualElement2, WinRTAbiImpl { + fileprivate typealias Bridge = IVisualElement2Bridge + fileprivate let _default: Bridge.SwiftABI + fileprivate var thisPtr: WindowsFoundation.IInspectable { _default } + fileprivate init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.ivisualelement2.getvisualinternal) + fileprivate func getVisualInternal() throws -> Visual! { + try _default.GetVisualInternalImpl() + } + + } + +} diff --git a/Sources/WinAppSDK/Microsoft.UI.Composition.Interactions+ABI.swift b/Sources/WinAppSDK/Microsoft.UI.Composition.Interactions+ABI.swift new file mode 100644 index 0000000..aa791c5 --- /dev/null +++ b/Sources/WinAppSDK/Microsoft.UI.Composition.Interactions+ABI.swift @@ -0,0 +1,1567 @@ +// WARNING: Please don't edit this file. It was generated by Swift/WinRT v0.0.1 +// swiftlint:disable all +import Foundation +@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation +import CWinRT + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CICompositionConditionalValue: WindowsFoundation.IID { + .init(Data1: 0x3743DDA0, Data2: 0xFBE2, Data3: 0x5ECF, Data4: ( 0x9E,0x80,0x46,0x38,0xA0,0x11,0xF7,0x07 ))// 3743DDA0-FBE2-5ECF-9E80-4638A011F707 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CICompositionConditionalValueStatics: WindowsFoundation.IID { + .init(Data1: 0xDF133C1F, Data2: 0xA185, Data3: 0x536C, Data4: ( 0xB5,0x4B,0x8F,0x36,0x92,0x12,0xA5,0x81 ))// DF133C1F-A185-536C-B54B-8F369212A581 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CICompositionInteractionSource: WindowsFoundation.IID { + .init(Data1: 0x711C72C0, Data2: 0xC406, Data3: 0x4A12, Data4: ( 0x85,0x9B,0xB4,0x4F,0x65,0x1A,0xF0,0x46 ))// 711C72C0-C406-4A12-859B-B44F651AF046 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CICompositionInteractionSourceCollection: WindowsFoundation.IID { + .init(Data1: 0x9AA1B86B, Data2: 0xB002, Data3: 0x5E2E, Data4: ( 0xBB,0x2B,0x0E,0x2C,0x54,0x74,0x45,0xE1 ))// 9AA1B86B-B002-5E2E-BB2B-0E2C547445E1 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionSourceConfiguration: WindowsFoundation.IID { + .init(Data1: 0x099E0124, Data2: 0xDADF, Data3: 0x5BC6, Data4: ( 0xA8,0x95,0x90,0x38,0x76,0x57,0x55,0x0F ))// 099E0124-DADF-5BC6-A895-90387657550F +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTracker: WindowsFoundation.IID { + .init(Data1: 0x02D8EC1F, Data2: 0x8F04, Data3: 0x505E, Data4: ( 0xBD,0x1E,0x47,0xB2,0xA2,0x04,0xDE,0x51 ))// 02D8EC1F-8F04-505E-BD1E-47B2A204DE51 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTracker2: WindowsFoundation.IID { + .init(Data1: 0x396D7FB1, Data2: 0x2FAD, Data3: 0x5508, Data4: ( 0x85,0x91,0x4F,0xF0,0xDC,0x5A,0x74,0x84 ))// 396D7FB1-2FAD-5508-8591-4FF0DC5A7484 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTracker3: WindowsFoundation.IID { + .init(Data1: 0x239752CF, Data2: 0x266C, Data3: 0x5ACB, Data4: ( 0xAC,0xC3,0xB3,0xE3,0xEC,0xAF,0x4D,0x3F ))// 239752CF-266C-5ACB-ACC3-B3E3ECAF4D3F +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTracker4: WindowsFoundation.IID { + .init(Data1: 0xA9A9CE02, Data2: 0x53C9, Data3: 0x5690, Data4: ( 0xA5,0x75,0xF3,0x40,0xB7,0xC2,0xFD,0xF2 ))// A9A9CE02-53C9-5690-A575-F340B7C2FDF2 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTracker5: WindowsFoundation.IID { + .init(Data1: 0xDBFCD333, Data2: 0xC3BF, Data3: 0x5057, Data4: ( 0xA4,0x5E,0x25,0xED,0xF0,0x6E,0xBD,0x8F ))// DBFCD333-C3BF-5057-A45E-25EDF06EBD8F +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerCustomAnimationStateEnteredArgs: WindowsFoundation.IID { + .init(Data1: 0x7464035C, Data2: 0xCFCE, Data3: 0x56DA, Data4: ( 0x94,0x72,0x42,0x0F,0x27,0x6B,0xD0,0xA5 ))// 7464035C-CFCE-56DA-9472-420F276BD0A5 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerCustomAnimationStateEnteredArgs2: WindowsFoundation.IID { + .init(Data1: 0x06B99FBC, Data2: 0xD6A8, Data3: 0x5AE3, Data4: ( 0x88,0xB8,0xE9,0x16,0x21,0xBE,0xCB,0xD6 ))// 06B99FBC-D6A8-5AE3-88B8-E91621BECBD6 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerIdleStateEnteredArgs: WindowsFoundation.IID { + .init(Data1: 0x199094AB, Data2: 0x15FD, Data3: 0x539C, Data4: ( 0x97,0xB8,0x96,0x4A,0x81,0x96,0xF7,0x77 ))// 199094AB-15FD-539C-97B8-964A8196F777 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerIdleStateEnteredArgs2: WindowsFoundation.IID { + .init(Data1: 0x4EB213C0, Data2: 0x931C, Data3: 0x5164, Data4: ( 0x89,0x65,0x11,0xC0,0x18,0x6D,0x33,0x90 ))// 4EB213C0-931C-5164-8965-11C0186D3390 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaModifier: WindowsFoundation.IID { + .init(Data1: 0x4D3A0C6B, Data2: 0xC508, Data3: 0x5029, Data4: ( 0xA4,0x7A,0xCB,0xF6,0x46,0x36,0xF0,0x10 ))// 4D3A0C6B-C508-5029-A47A-CBF64636F010 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaModifierFactory: WindowsFoundation.IID { + .init(Data1: 0x6DEE5B33, Data2: 0x0B5A, Data3: 0x57B1, Data4: ( 0x85,0x37,0x93,0xD4,0xFD,0x03,0x8F,0x9F ))// 6DEE5B33-0B5A-57B1-8537-93D4FD038F9F +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaMotion: WindowsFoundation.IID { + .init(Data1: 0x91F662C0, Data2: 0x3141, Data3: 0x5B5E, Data4: ( 0x86,0x2F,0xCF,0xC6,0x0B,0xEE,0x8C,0xD6 ))// 91F662C0-3141-5B5E-862F-CFC60BEE8CD6 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaMotionStatics: WindowsFoundation.IID { + .init(Data1: 0xB0185A4F, Data2: 0x0059, Data3: 0x52C6, Data4: ( 0xA6,0x60,0x9A,0xED,0x0C,0x44,0xFF,0x7D ))// B0185A4F-0059-52C6-A660-9AED0C44FF7D +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaNaturalMotion: WindowsFoundation.IID { + .init(Data1: 0x8C7482E0, Data2: 0x185D, Data3: 0x56B1, Data4: ( 0xB6,0x7F,0xFC,0xA4,0xFC,0xD1,0x3C,0xD2 ))// 8C7482E0-185D-56B1-B67F-FCA4FCD13CD2 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaNaturalMotionStatics: WindowsFoundation.IID { + .init(Data1: 0x860EC143, Data2: 0xF165, Data3: 0x5298, Data4: ( 0xAB,0xF2,0x47,0x36,0x9D,0xD0,0x7F,0x10 ))// 860EC143-F165-5298-ABF2-47369DD07F10 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaRestingValue: WindowsFoundation.IID { + .init(Data1: 0x1A2B20CD, Data2: 0x3371, Data3: 0x53FF, Data4: ( 0xA5,0x60,0xF4,0x84,0x7B,0x46,0x7D,0x73 ))// 1A2B20CD-3371-53FF-A560-F4847B467D73 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaRestingValueStatics: WindowsFoundation.IID { + .init(Data1: 0xCF0F0414, Data2: 0x7FDF, Data3: 0x5284, Data4: ( 0xAE,0xEF,0x28,0xB7,0x1B,0x62,0xAA,0x4F ))// CF0F0414-7FDF-5284-AEEF-28B71B62AA4F +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaStateEnteredArgs: WindowsFoundation.IID { + .init(Data1: 0x5B76C949, Data2: 0xA4D0, Data3: 0x5C9D, Data4: ( 0x92,0x92,0x70,0x13,0xAE,0x96,0x56,0xC7 ))// 5B76C949-A4D0-5C9D-9292-7013AE9656C7 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaStateEnteredArgs2: WindowsFoundation.IID { + .init(Data1: 0xC42D7E8F, Data2: 0x7199, Data3: 0x57A9, Data4: ( 0x8A,0xEC,0x87,0x27,0x55,0x2B,0x13,0xE6 ))// C42D7E8F-7199-57A9-8AEC-8727552B13E6 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaStateEnteredArgs3: WindowsFoundation.IID { + .init(Data1: 0xCE726CA0, Data2: 0x1C04, Data3: 0x531B, Data4: ( 0x99,0x51,0x4A,0xEC,0x99,0x69,0x52,0xE4 ))// CE726CA0-1C04-531B-9951-4AEC996952E4 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInteractingStateEnteredArgs: WindowsFoundation.IID { + .init(Data1: 0x70D29B84, Data2: 0x0931, Data3: 0x5F17, Data4: ( 0xA8,0xA1,0x82,0xF8,0xF8,0x78,0x25,0x32 ))// 70D29B84-0931-5F17-A8A1-82F8F8782532 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInteractingStateEnteredArgs2: WindowsFoundation.IID { + .init(Data1: 0x2F1FF38D, Data2: 0x2F51, Data3: 0x5CEB, Data4: ( 0x8D,0x09,0xBD,0xA1,0x51,0x9F,0x93,0x42 ))// 2F1FF38D-2F51-5CEB-8D09-BDA1519F9342 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerOwner: WindowsFoundation.IID { + .init(Data1: 0x8869779D, Data2: 0x1D2A, Data3: 0x5816, Data4: ( 0x83,0x6A,0x68,0xA9,0x10,0x50,0x7D,0x87 ))// 8869779D-1D2A-5816-836A-68A910507D87 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerRequestIgnoredArgs: WindowsFoundation.IID { + .init(Data1: 0xC276205E, Data2: 0xF7A5, Data3: 0x5BA2, Data4: ( 0xAD,0x45,0xD1,0x2C,0x3C,0x33,0x91,0x49 ))// C276205E-F7A5-5BA2-AD45-D12C3C339149 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerStatics: WindowsFoundation.IID { + .init(Data1: 0x7AC9867A, Data2: 0xE16E, Data3: 0x56EF, Data4: ( 0x98,0x09,0xF6,0xE4,0x04,0x24,0x0F,0x50 ))// 7AC9867A-E16E-56EF-9809-F6E404240F50 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerStatics2: WindowsFoundation.IID { + .init(Data1: 0x25658E4C, Data2: 0xB99F, Data3: 0x5108, Data4: ( 0xAA,0xB7,0x1C,0xC4,0x4F,0x11,0x50,0x8B ))// 25658E4C-B99F-5108-AAB7-1CC44F11508B +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerValuesChangedArgs: WindowsFoundation.IID { + .init(Data1: 0x9B495BED, Data2: 0x1CF7, Data3: 0x55C1, Data4: ( 0x82,0xB9,0x80,0x22,0xCB,0xF3,0xC7,0x66 ))// 9B495BED-1CF7-55C1-82B9-8022CBF3C766 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerVector2InertiaModifier: WindowsFoundation.IID { + .init(Data1: 0x4B8ED310, Data2: 0xCB61, Data3: 0x5F0A, Data4: ( 0xB9,0x9A,0x94,0x0C,0xDD,0x2C,0x42,0xB1 ))// 4B8ED310-CB61-5F0A-B99A-940CDD2C42B1 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerVector2InertiaModifierFactory: WindowsFoundation.IID { + .init(Data1: 0x1B3FD240, Data2: 0xBA66, Data3: 0x5296, Data4: ( 0xB8,0x01,0x62,0xA2,0xA3,0x60,0x66,0x13 ))// 1B3FD240-BA66-5296-B801-62A2A3606613 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerVector2InertiaNaturalMotion: WindowsFoundation.IID { + .init(Data1: 0x097BA1A6, Data2: 0xE077, Data3: 0x52D1, Data4: ( 0x86,0xD3,0x38,0xE3,0xF6,0x61,0x9D,0xDF ))// 097BA1A6-E077-52D1-86D3-38E3F6619DDF +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerVector2InertiaNaturalMotionStatics: WindowsFoundation.IID { + .init(Data1: 0xCC24AB87, Data2: 0x9131, Data3: 0x5286, Data4: ( 0xB3,0xCE,0x1E,0xF9,0x7E,0x09,0x74,0xE6 ))// CC24AB87-9131-5286-B3CE-1EF97E0974E6 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIVisualInteractionSource: WindowsFoundation.IID { + .init(Data1: 0xEA595C95, Data2: 0xB9CB, Data3: 0x5CD4, Data4: ( 0xBB,0x9C,0x49,0x34,0xFF,0x32,0x90,0x63 ))// EA595C95-B9CB-5CD4-BB9C-4934FF329063 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIVisualInteractionSource2: WindowsFoundation.IID { + .init(Data1: 0xFF1132BA, Data2: 0xDC0D, Data3: 0x519E, Data4: ( 0xBE,0x49,0xBE,0x30,0x1E,0x52,0x30,0x6A ))// FF1132BA-DC0D-519E-BE49-BE301E52306A +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIVisualInteractionSource3: WindowsFoundation.IID { + .init(Data1: 0xD523BD66, Data2: 0xA05D, Data3: 0x5417, Data4: ( 0x8E,0x07,0x84,0xAE,0x3C,0xAF,0x97,0x52 ))// D523BD66-A05D-5417-8E07-84AE3CAF9752 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIVisualInteractionSourceObjectFactory: WindowsFoundation.IID { + .init(Data1: 0xFEB73102, Data2: 0x238C, Data3: 0x52AA, Data4: ( 0x8E,0x03,0xB6,0x8D,0x5E,0xCC,0x44,0xB3 ))// FEB73102-238C-52AA-8E03-B68D5ECC44B3 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIVisualInteractionSourceStatics: WindowsFoundation.IID { + .init(Data1: 0x5FC9C763, Data2: 0xE2E5, Data3: 0x530E, Data4: ( 0x87,0xCD,0xB9,0x31,0x18,0xAD,0xE8,0xA3 ))// 5FC9C763-E2E5-530E-87CD-B93118ADE8A3 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIVisualInteractionSourceStatics2: WindowsFoundation.IID { + .init(Data1: 0xA6B494FE, Data2: 0x12A1, Data3: 0x5A73, Data4: ( 0xB8,0x7E,0x4C,0x4E,0xF5,0x8E,0xAC,0x6C ))// A6B494FE-12A1-5A73-B87E-4C4EF58EAC6C +} + +public enum __ABI_Microsoft_UI_Composition_Interactions { + public class ICompositionConditionalValue: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CICompositionConditionalValue } + + internal func get_ConditionImpl() throws -> WinAppSDK.ExpressionAnimation? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CICompositionConditionalValue.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Condition(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ConditionImpl(_ value: WinAppSDK.ExpressionAnimation?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CICompositionConditionalValue.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Condition(pThis, RawPointer(value))) + } + } + + internal func get_ValueImpl() throws -> WinAppSDK.ExpressionAnimation? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CICompositionConditionalValue.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Value(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ValueImpl(_ value: WinAppSDK.ExpressionAnimation?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CICompositionConditionalValue.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Value(pThis, RawPointer(value))) + } + } + + } + + public class ICompositionConditionalValueStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CICompositionConditionalValueStatics } + + internal func CreateImpl(_ compositor: WinAppSDK.Compositor?) throws -> WinAppSDK.CompositionConditionalValue? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CICompositionConditionalValueStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Create(pThis, RawPointer(compositor), &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class ICompositionInteractionSource: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CICompositionInteractionSource } + + } + + internal static var ICompositionInteractionSourceVTable: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CICompositionInteractionSourceVtbl = .init( + QueryInterface: { ICompositionInteractionSourceWrapper.queryInterface($0, $1, $2) }, + AddRef: { ICompositionInteractionSourceWrapper.addRef($0) }, + Release: { ICompositionInteractionSourceWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = __ABI_Microsoft_UI_Composition_Interactions.ICompositionInteractionSourceWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Microsoft.UI.Composition.Interactions.ICompositionInteractionSource").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + } + ) + + public typealias ICompositionInteractionSourceWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Composition_Interactions.ICompositionInteractionSourceBridge> + public class ICompositionInteractionSourceCollection: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CICompositionInteractionSourceCollection } + + internal func get_CountImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CICompositionInteractionSourceCollection.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Count(pThis, &value)) + } + return value + } + + internal func AddImpl(_ value: WinAppSDK.AnyICompositionInteractionSource?) throws { + let valueWrapper = __ABI_Microsoft_UI_Composition_Interactions.ICompositionInteractionSourceWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CICompositionInteractionSourceCollection.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Add(pThis, _value)) + } + } + + internal func RemoveImpl(_ value: WinAppSDK.AnyICompositionInteractionSource?) throws { + let valueWrapper = __ABI_Microsoft_UI_Composition_Interactions.ICompositionInteractionSourceWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CICompositionInteractionSourceCollection.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Remove(pThis, _value)) + } + } + + internal func RemoveAllImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CICompositionInteractionSourceCollection.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAll(pThis)) + } + } + + } + + public class IInteractionSourceConfiguration: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionSourceConfiguration } + + internal func get_PositionXSourceModeImpl() throws -> WinAppSDK.InteractionSourceRedirectionMode { + var value: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CInteractionSourceRedirectionMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionSourceConfiguration.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PositionXSourceMode(pThis, &value)) + } + return value + } + + internal func put_PositionXSourceModeImpl(_ value: WinAppSDK.InteractionSourceRedirectionMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionSourceConfiguration.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_PositionXSourceMode(pThis, value)) + } + } + + internal func get_PositionYSourceModeImpl() throws -> WinAppSDK.InteractionSourceRedirectionMode { + var value: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CInteractionSourceRedirectionMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionSourceConfiguration.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PositionYSourceMode(pThis, &value)) + } + return value + } + + internal func put_PositionYSourceModeImpl(_ value: WinAppSDK.InteractionSourceRedirectionMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionSourceConfiguration.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_PositionYSourceMode(pThis, value)) + } + } + + internal func get_ScaleSourceModeImpl() throws -> WinAppSDK.InteractionSourceRedirectionMode { + var value: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CInteractionSourceRedirectionMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionSourceConfiguration.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ScaleSourceMode(pThis, &value)) + } + return value + } + + internal func put_ScaleSourceModeImpl(_ value: WinAppSDK.InteractionSourceRedirectionMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionSourceConfiguration.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ScaleSourceMode(pThis, value)) + } + } + + } + + public class IInteractionTracker: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTracker } + + internal func get_InteractionSourcesImpl() throws -> WinAppSDK.CompositionInteractionSourceCollection? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTracker.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_InteractionSources(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsPositionRoundingSuggestedImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTracker.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsPositionRoundingSuggested(pThis, &value)) + } + return .init(from: value) + } + + internal func get_MaxPositionImpl() throws -> WindowsFoundation.Vector3 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector3 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTracker.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MaxPosition(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_MaxPositionImpl(_ value: WindowsFoundation.Vector3) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTracker.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_MaxPosition(pThis, .from(swift: value))) + } + } + + internal func get_MaxScaleImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTracker.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MaxScale(pThis, &value)) + } + return value + } + + internal func put_MaxScaleImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTracker.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_MaxScale(pThis, value)) + } + } + + internal func get_MinPositionImpl() throws -> WindowsFoundation.Vector3 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector3 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTracker.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MinPosition(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_MinPositionImpl(_ value: WindowsFoundation.Vector3) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTracker.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_MinPosition(pThis, .from(swift: value))) + } + } + + internal func get_MinScaleImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTracker.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MinScale(pThis, &value)) + } + return value + } + + internal func put_MinScaleImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTracker.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_MinScale(pThis, value)) + } + } + + internal func get_NaturalRestingPositionImpl() throws -> WindowsFoundation.Vector3 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector3 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTracker.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_NaturalRestingPosition(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_NaturalRestingScaleImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTracker.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_NaturalRestingScale(pThis, &value)) + } + return value + } + + internal func get_OwnerImpl() throws -> WinAppSDK.AnyIInteractionTrackerOwner? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTracker.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Owner(pThis, &valueAbi)) + } + } + return __ABI_Microsoft_UI_Composition_Interactions.IInteractionTrackerOwnerWrapper.unwrapFrom(abi: value) + } + + internal func get_PositionImpl() throws -> WindowsFoundation.Vector3 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector3 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTracker.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Position(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_PositionInertiaDecayRateImpl() throws -> WindowsFoundation.Vector3? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTracker.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PositionInertiaDecayRate(pThis, &valueAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector3Wrapper.unwrapFrom(abi: value) + } + + internal func put_PositionInertiaDecayRateImpl(_ value: WindowsFoundation.Vector3?) throws { + let valueWrapper = WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector3Wrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTracker.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_PositionInertiaDecayRate(pThis, _value)) + } + } + + internal func get_PositionVelocityInPixelsPerSecondImpl() throws -> WindowsFoundation.Vector3 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector3 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTracker.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PositionVelocityInPixelsPerSecond(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_ScaleImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTracker.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Scale(pThis, &value)) + } + return value + } + + internal func get_ScaleInertiaDecayRateImpl() throws -> Float? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTracker.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ScaleInertiaDecayRate(pThis, &valueAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIReference_1_floatWrapper.unwrapFrom(abi: value) + } + + internal func put_ScaleInertiaDecayRateImpl(_ value: Float?) throws { + let valueWrapper = WinAppSDK.__x_ABI_C__FIReference_1_floatWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTracker.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ScaleInertiaDecayRate(pThis, _value)) + } + } + + internal func get_ScaleVelocityInPercentPerSecondImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTracker.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ScaleVelocityInPercentPerSecond(pThis, &value)) + } + return value + } + + internal func AdjustPositionXIfGreaterThanThresholdImpl(_ adjustment: Float, _ positionThreshold: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTracker.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.AdjustPositionXIfGreaterThanThreshold(pThis, adjustment, positionThreshold)) + } + } + + internal func AdjustPositionYIfGreaterThanThresholdImpl(_ adjustment: Float, _ positionThreshold: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTracker.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.AdjustPositionYIfGreaterThanThreshold(pThis, adjustment, positionThreshold)) + } + } + + internal func ConfigurePositionXInertiaModifiersImpl(_ modifiers: WindowsFoundation.AnyIIterable?) throws { + let modifiersWrapper = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierWrapper(modifiers) + let _modifiers = try! modifiersWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTracker.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ConfigurePositionXInertiaModifiers(pThis, _modifiers)) + } + } + + internal func ConfigurePositionYInertiaModifiersImpl(_ modifiers: WindowsFoundation.AnyIIterable?) throws { + let modifiersWrapper = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierWrapper(modifiers) + let _modifiers = try! modifiersWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTracker.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ConfigurePositionYInertiaModifiers(pThis, _modifiers)) + } + } + + internal func ConfigureScaleInertiaModifiersImpl(_ modifiers: WindowsFoundation.AnyIIterable?) throws { + let modifiersWrapper = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierWrapper(modifiers) + let _modifiers = try! modifiersWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTracker.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ConfigureScaleInertiaModifiers(pThis, _modifiers)) + } + } + + internal func TryUpdatePositionImpl(_ value: WindowsFoundation.Vector3) throws -> Int32 { + var result: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTracker.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.TryUpdatePosition(pThis, .from(swift: value), &result)) + } + return result + } + + internal func TryUpdatePositionByImpl(_ amount: WindowsFoundation.Vector3) throws -> Int32 { + var result: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTracker.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.TryUpdatePositionBy(pThis, .from(swift: amount), &result)) + } + return result + } + + internal func TryUpdatePositionWithAnimationImpl(_ animation: WinAppSDK.CompositionAnimation?) throws -> Int32 { + var result: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTracker.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.TryUpdatePositionWithAnimation(pThis, RawPointer(animation), &result)) + } + return result + } + + internal func TryUpdatePositionWithAdditionalVelocityImpl(_ velocityInPixelsPerSecond: WindowsFoundation.Vector3) throws -> Int32 { + var result: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTracker.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.TryUpdatePositionWithAdditionalVelocity(pThis, .from(swift: velocityInPixelsPerSecond), &result)) + } + return result + } + + internal func TryUpdateScaleImpl(_ value: Float, _ centerPoint: WindowsFoundation.Vector3) throws -> Int32 { + var result: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTracker.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.TryUpdateScale(pThis, value, .from(swift: centerPoint), &result)) + } + return result + } + + internal func TryUpdateScaleWithAnimationImpl(_ animation: WinAppSDK.CompositionAnimation?, _ centerPoint: WindowsFoundation.Vector3) throws -> Int32 { + var result: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTracker.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.TryUpdateScaleWithAnimation(pThis, RawPointer(animation), .from(swift: centerPoint), &result)) + } + return result + } + + internal func TryUpdateScaleWithAdditionalVelocityImpl(_ velocityInPercentPerSecond: Float, _ centerPoint: WindowsFoundation.Vector3) throws -> Int32 { + var result: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTracker.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.TryUpdateScaleWithAdditionalVelocity(pThis, velocityInPercentPerSecond, .from(swift: centerPoint), &result)) + } + return result + } + + } + + public class IInteractionTracker2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTracker2 } + + internal func ConfigureCenterPointXInertiaModifiersImpl(_ conditionalValues: WindowsFoundation.AnyIIterable?) throws { + let conditionalValuesWrapper = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueWrapper(conditionalValues) + let _conditionalValues = try! conditionalValuesWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTracker2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ConfigureCenterPointXInertiaModifiers(pThis, _conditionalValues)) + } + } + + internal func ConfigureCenterPointYInertiaModifiersImpl(_ conditionalValues: WindowsFoundation.AnyIIterable?) throws { + let conditionalValuesWrapper = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueWrapper(conditionalValues) + let _conditionalValues = try! conditionalValuesWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTracker2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ConfigureCenterPointYInertiaModifiers(pThis, _conditionalValues)) + } + } + + } + + public class IInteractionTracker3: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTracker3 } + + internal func ConfigureVector2PositionInertiaModifiersImpl(_ modifiers: WindowsFoundation.AnyIIterable?) throws { + let modifiersWrapper = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierWrapper(modifiers) + let _modifiers = try! modifiersWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTracker3.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ConfigureVector2PositionInertiaModifiers(pThis, _modifiers)) + } + } + + } + + public class IInteractionTracker4: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTracker4 } + + internal func TryUpdatePositionWithOptionImpl(_ value: WindowsFoundation.Vector3, _ option: WinAppSDK.InteractionTrackerClampingOption) throws -> Int32 { + var result: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTracker4.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.TryUpdatePositionWithOption(pThis, .from(swift: value), option, &result)) + } + return result + } + + internal func TryUpdatePositionByWithOptionImpl(_ amount: WindowsFoundation.Vector3, _ option: WinAppSDK.InteractionTrackerClampingOption) throws -> Int32 { + var result: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTracker4.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.TryUpdatePositionByWithOption(pThis, .from(swift: amount), option, &result)) + } + return result + } + + internal func get_IsInertiaFromImpulseImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTracker4.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsInertiaFromImpulse(pThis, &value)) + } + return .init(from: value) + } + + } + + public class IInteractionTracker5: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTracker5 } + + internal func TryUpdatePositionWithOptionImpl(_ value: WindowsFoundation.Vector3, _ option: WinAppSDK.InteractionTrackerClampingOption, _ posUpdateOption: WinAppSDK.InteractionTrackerPositionUpdateOption) throws -> Int32 { + var result: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTracker5.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.TryUpdatePositionWithOption(pThis, .from(swift: value), option, posUpdateOption, &result)) + } + return result + } + + } + + public class IInteractionTrackerCustomAnimationStateEnteredArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerCustomAnimationStateEnteredArgs } + + internal func get_RequestIdImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerCustomAnimationStateEnteredArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RequestId(pThis, &value)) + } + return value + } + + } + + public class IInteractionTrackerCustomAnimationStateEnteredArgs2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerCustomAnimationStateEnteredArgs2 } + + internal func get_IsFromBindingImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerCustomAnimationStateEnteredArgs2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsFromBinding(pThis, &value)) + } + return .init(from: value) + } + + } + + public class IInteractionTrackerIdleStateEnteredArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerIdleStateEnteredArgs } + + internal func get_RequestIdImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerIdleStateEnteredArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RequestId(pThis, &value)) + } + return value + } + + } + + public class IInteractionTrackerIdleStateEnteredArgs2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerIdleStateEnteredArgs2 } + + internal func get_IsFromBindingImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerIdleStateEnteredArgs2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsFromBinding(pThis, &value)) + } + return .init(from: value) + } + + } + + public class IInteractionTrackerInertiaModifier: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaModifier } + + } + + public class IInteractionTrackerInertiaModifierFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaModifierFactory } + + } + + public class IInteractionTrackerInertiaMotion: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaMotion } + + internal func get_ConditionImpl() throws -> WinAppSDK.ExpressionAnimation? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaMotion.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Condition(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ConditionImpl(_ value: WinAppSDK.ExpressionAnimation?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaMotion.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Condition(pThis, RawPointer(value))) + } + } + + internal func get_MotionImpl() throws -> WinAppSDK.ExpressionAnimation? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaMotion.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Motion(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_MotionImpl(_ value: WinAppSDK.ExpressionAnimation?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaMotion.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Motion(pThis, RawPointer(value))) + } + } + + } + + public class IInteractionTrackerInertiaMotionStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaMotionStatics } + + internal func CreateImpl(_ compositor: WinAppSDK.Compositor?) throws -> WinAppSDK.InteractionTrackerInertiaMotion? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaMotionStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Create(pThis, RawPointer(compositor), &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IInteractionTrackerInertiaNaturalMotion: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaNaturalMotion } + + internal func get_ConditionImpl() throws -> WinAppSDK.ExpressionAnimation? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaNaturalMotion.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Condition(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ConditionImpl(_ value: WinAppSDK.ExpressionAnimation?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaNaturalMotion.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Condition(pThis, RawPointer(value))) + } + } + + internal func get_NaturalMotionImpl() throws -> WinAppSDK.ScalarNaturalMotionAnimation? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaNaturalMotion.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_NaturalMotion(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_NaturalMotionImpl(_ value: WinAppSDK.ScalarNaturalMotionAnimation?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaNaturalMotion.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_NaturalMotion(pThis, RawPointer(value))) + } + } + + } + + public class IInteractionTrackerInertiaNaturalMotionStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaNaturalMotionStatics } + + internal func CreateImpl(_ compositor: WinAppSDK.Compositor?) throws -> WinAppSDK.InteractionTrackerInertiaNaturalMotion? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaNaturalMotionStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Create(pThis, RawPointer(compositor), &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IInteractionTrackerInertiaRestingValue: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaRestingValue } + + internal func get_ConditionImpl() throws -> WinAppSDK.ExpressionAnimation? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaRestingValue.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Condition(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ConditionImpl(_ value: WinAppSDK.ExpressionAnimation?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaRestingValue.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Condition(pThis, RawPointer(value))) + } + } + + internal func get_RestingValueImpl() throws -> WinAppSDK.ExpressionAnimation? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaRestingValue.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RestingValue(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_RestingValueImpl(_ value: WinAppSDK.ExpressionAnimation?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaRestingValue.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_RestingValue(pThis, RawPointer(value))) + } + } + + } + + public class IInteractionTrackerInertiaRestingValueStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaRestingValueStatics } + + internal func CreateImpl(_ compositor: WinAppSDK.Compositor?) throws -> WinAppSDK.InteractionTrackerInertiaRestingValue? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaRestingValueStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Create(pThis, RawPointer(compositor), &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IInteractionTrackerInertiaStateEnteredArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaStateEnteredArgs } + + internal func get_ModifiedRestingPositionImpl() throws -> WindowsFoundation.Vector3? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaStateEnteredArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ModifiedRestingPosition(pThis, &valueAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector3Wrapper.unwrapFrom(abi: value) + } + + internal func get_ModifiedRestingScaleImpl() throws -> Float? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaStateEnteredArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ModifiedRestingScale(pThis, &valueAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIReference_1_floatWrapper.unwrapFrom(abi: value) + } + + internal func get_NaturalRestingPositionImpl() throws -> WindowsFoundation.Vector3 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector3 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaStateEnteredArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_NaturalRestingPosition(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_NaturalRestingScaleImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaStateEnteredArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_NaturalRestingScale(pThis, &value)) + } + return value + } + + internal func get_PositionVelocityInPixelsPerSecondImpl() throws -> WindowsFoundation.Vector3 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector3 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaStateEnteredArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PositionVelocityInPixelsPerSecond(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_RequestIdImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaStateEnteredArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RequestId(pThis, &value)) + } + return value + } + + internal func get_ScaleVelocityInPercentPerSecondImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaStateEnteredArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ScaleVelocityInPercentPerSecond(pThis, &value)) + } + return value + } + + } + + public class IInteractionTrackerInertiaStateEnteredArgs2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaStateEnteredArgs2 } + + internal func get_IsInertiaFromImpulseImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaStateEnteredArgs2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsInertiaFromImpulse(pThis, &value)) + } + return .init(from: value) + } + + } + + public class IInteractionTrackerInertiaStateEnteredArgs3: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaStateEnteredArgs3 } + + internal func get_IsFromBindingImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaStateEnteredArgs3.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsFromBinding(pThis, &value)) + } + return .init(from: value) + } + + } + + public class IInteractionTrackerInteractingStateEnteredArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInteractingStateEnteredArgs } + + internal func get_RequestIdImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInteractingStateEnteredArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RequestId(pThis, &value)) + } + return value + } + + } + + public class IInteractionTrackerInteractingStateEnteredArgs2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInteractingStateEnteredArgs2 } + + internal func get_IsFromBindingImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInteractingStateEnteredArgs2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsFromBinding(pThis, &value)) + } + return .init(from: value) + } + + } + + public class IInteractionTrackerOwner: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerOwner } + + open func CustomAnimationStateEnteredImpl(_ sender: WinAppSDK.InteractionTracker?, _ args: WinAppSDK.InteractionTrackerCustomAnimationStateEnteredArgs?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerOwner.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CustomAnimationStateEntered(pThis, RawPointer(sender), RawPointer(args))) + } + } + + open func IdleStateEnteredImpl(_ sender: WinAppSDK.InteractionTracker?, _ args: WinAppSDK.InteractionTrackerIdleStateEnteredArgs?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerOwner.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.IdleStateEntered(pThis, RawPointer(sender), RawPointer(args))) + } + } + + open func InertiaStateEnteredImpl(_ sender: WinAppSDK.InteractionTracker?, _ args: WinAppSDK.InteractionTrackerInertiaStateEnteredArgs?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerOwner.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InertiaStateEntered(pThis, RawPointer(sender), RawPointer(args))) + } + } + + open func InteractingStateEnteredImpl(_ sender: WinAppSDK.InteractionTracker?, _ args: WinAppSDK.InteractionTrackerInteractingStateEnteredArgs?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerOwner.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InteractingStateEntered(pThis, RawPointer(sender), RawPointer(args))) + } + } + + open func RequestIgnoredImpl(_ sender: WinAppSDK.InteractionTracker?, _ args: WinAppSDK.InteractionTrackerRequestIgnoredArgs?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerOwner.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RequestIgnored(pThis, RawPointer(sender), RawPointer(args))) + } + } + + open func ValuesChangedImpl(_ sender: WinAppSDK.InteractionTracker?, _ args: WinAppSDK.InteractionTrackerValuesChangedArgs?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerOwner.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ValuesChanged(pThis, RawPointer(sender), RawPointer(args))) + } + } + + } + + internal static var IInteractionTrackerOwnerVTable: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerOwnerVtbl = .init( + QueryInterface: { IInteractionTrackerOwnerWrapper.queryInterface($0, $1, $2) }, + AddRef: { IInteractionTrackerOwnerWrapper.addRef($0) }, + Release: { IInteractionTrackerOwnerWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = __ABI_Microsoft_UI_Composition_Interactions.IInteractionTrackerOwnerWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Microsoft.UI.Composition.Interactions.IInteractionTrackerOwner").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + CustomAnimationStateEntered: { + do { + guard let __unwrapped__instance = IInteractionTrackerOwnerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinAppSDK.InteractionTracker? = .from(abi: ComPtr($1)) + let args: WinAppSDK.InteractionTrackerCustomAnimationStateEnteredArgs? = .from(abi: ComPtr($2)) + try __unwrapped__instance.customAnimationStateEntered(sender, args) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + IdleStateEntered: { + do { + guard let __unwrapped__instance = IInteractionTrackerOwnerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinAppSDK.InteractionTracker? = .from(abi: ComPtr($1)) + let args: WinAppSDK.InteractionTrackerIdleStateEnteredArgs? = .from(abi: ComPtr($2)) + try __unwrapped__instance.idleStateEntered(sender, args) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + InertiaStateEntered: { + do { + guard let __unwrapped__instance = IInteractionTrackerOwnerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinAppSDK.InteractionTracker? = .from(abi: ComPtr($1)) + let args: WinAppSDK.InteractionTrackerInertiaStateEnteredArgs? = .from(abi: ComPtr($2)) + try __unwrapped__instance.inertiaStateEntered(sender, args) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + InteractingStateEntered: { + do { + guard let __unwrapped__instance = IInteractionTrackerOwnerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinAppSDK.InteractionTracker? = .from(abi: ComPtr($1)) + let args: WinAppSDK.InteractionTrackerInteractingStateEnteredArgs? = .from(abi: ComPtr($2)) + try __unwrapped__instance.interactingStateEntered(sender, args) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + RequestIgnored: { + do { + guard let __unwrapped__instance = IInteractionTrackerOwnerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinAppSDK.InteractionTracker? = .from(abi: ComPtr($1)) + let args: WinAppSDK.InteractionTrackerRequestIgnoredArgs? = .from(abi: ComPtr($2)) + try __unwrapped__instance.requestIgnored(sender, args) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + ValuesChanged: { + do { + guard let __unwrapped__instance = IInteractionTrackerOwnerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinAppSDK.InteractionTracker? = .from(abi: ComPtr($1)) + let args: WinAppSDK.InteractionTrackerValuesChangedArgs? = .from(abi: ComPtr($2)) + try __unwrapped__instance.valuesChanged(sender, args) + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) + + public typealias IInteractionTrackerOwnerWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Composition_Interactions.IInteractionTrackerOwnerBridge> + public class IInteractionTrackerRequestIgnoredArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerRequestIgnoredArgs } + + internal func get_RequestIdImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerRequestIgnoredArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RequestId(pThis, &value)) + } + return value + } + + } + + public class IInteractionTrackerStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerStatics } + + internal func CreateImpl(_ compositor: WinAppSDK.Compositor?) throws -> WinAppSDK.InteractionTracker? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Create(pThis, RawPointer(compositor), &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateWithOwnerImpl(_ compositor: WinAppSDK.Compositor?, _ owner: WinAppSDK.AnyIInteractionTrackerOwner?) throws -> WinAppSDK.InteractionTracker? { + let (result) = try ComPtrs.initialize { resultAbi in + let ownerWrapper = __ABI_Microsoft_UI_Composition_Interactions.IInteractionTrackerOwnerWrapper(owner) + let _owner = try! ownerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateWithOwner(pThis, RawPointer(compositor), _owner, &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IInteractionTrackerStatics2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerStatics2 } + + internal func SetBindingModeImpl(_ boundTracker1: WinAppSDK.InteractionTracker?, _ boundTracker2: WinAppSDK.InteractionTracker?, _ axisMode: WinAppSDK.InteractionBindingAxisModes) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerStatics2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetBindingMode(pThis, RawPointer(boundTracker1), RawPointer(boundTracker2), axisMode)) + } + } + + internal func GetBindingModeImpl(_ boundTracker1: WinAppSDK.InteractionTracker?, _ boundTracker2: WinAppSDK.InteractionTracker?) throws -> WinAppSDK.InteractionBindingAxisModes { + var result: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CInteractionBindingAxisModes = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerStatics2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetBindingMode(pThis, RawPointer(boundTracker1), RawPointer(boundTracker2), &result)) + } + return result + } + + } + + public class IInteractionTrackerValuesChangedArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerValuesChangedArgs } + + internal func get_PositionImpl() throws -> WindowsFoundation.Vector3 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector3 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerValuesChangedArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Position(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_RequestIdImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerValuesChangedArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RequestId(pThis, &value)) + } + return value + } + + internal func get_ScaleImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerValuesChangedArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Scale(pThis, &value)) + } + return value + } + + } + + public class IInteractionTrackerVector2InertiaModifier: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerVector2InertiaModifier } + + } + + public class IInteractionTrackerVector2InertiaModifierFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerVector2InertiaModifierFactory } + + } + + public class IInteractionTrackerVector2InertiaNaturalMotion: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerVector2InertiaNaturalMotion } + + internal func get_ConditionImpl() throws -> WinAppSDK.ExpressionAnimation? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerVector2InertiaNaturalMotion.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Condition(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ConditionImpl(_ value: WinAppSDK.ExpressionAnimation?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerVector2InertiaNaturalMotion.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Condition(pThis, RawPointer(value))) + } + } + + internal func get_NaturalMotionImpl() throws -> WinAppSDK.Vector2NaturalMotionAnimation? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerVector2InertiaNaturalMotion.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_NaturalMotion(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_NaturalMotionImpl(_ value: WinAppSDK.Vector2NaturalMotionAnimation?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerVector2InertiaNaturalMotion.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_NaturalMotion(pThis, RawPointer(value))) + } + } + + } + + public class IInteractionTrackerVector2InertiaNaturalMotionStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerVector2InertiaNaturalMotionStatics } + + internal func CreateImpl(_ compositor: WinAppSDK.Compositor?) throws -> WinAppSDK.InteractionTrackerVector2InertiaNaturalMotion? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerVector2InertiaNaturalMotionStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Create(pThis, RawPointer(compositor), &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IVisualInteractionSource: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIVisualInteractionSource } + + internal func get_IsPositionXRailsEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIVisualInteractionSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsPositionXRailsEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsPositionXRailsEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIVisualInteractionSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsPositionXRailsEnabled(pThis, .init(from: value))) + } + } + + internal func get_IsPositionYRailsEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIVisualInteractionSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsPositionYRailsEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsPositionYRailsEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIVisualInteractionSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsPositionYRailsEnabled(pThis, .init(from: value))) + } + } + + internal func get_ManipulationRedirectionModeImpl() throws -> WinAppSDK.VisualInteractionSourceRedirectionMode { + var value: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CVisualInteractionSourceRedirectionMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIVisualInteractionSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ManipulationRedirectionMode(pThis, &value)) + } + return value + } + + internal func put_ManipulationRedirectionModeImpl(_ value: WinAppSDK.VisualInteractionSourceRedirectionMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIVisualInteractionSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ManipulationRedirectionMode(pThis, value)) + } + } + + internal func get_PositionXChainingModeImpl() throws -> WinAppSDK.InteractionChainingMode { + var value: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CInteractionChainingMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIVisualInteractionSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PositionXChainingMode(pThis, &value)) + } + return value + } + + internal func put_PositionXChainingModeImpl(_ value: WinAppSDK.InteractionChainingMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIVisualInteractionSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_PositionXChainingMode(pThis, value)) + } + } + + internal func get_PositionXSourceModeImpl() throws -> WinAppSDK.InteractionSourceMode { + var value: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CInteractionSourceMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIVisualInteractionSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PositionXSourceMode(pThis, &value)) + } + return value + } + + internal func put_PositionXSourceModeImpl(_ value: WinAppSDK.InteractionSourceMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIVisualInteractionSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_PositionXSourceMode(pThis, value)) + } + } + + internal func get_PositionYChainingModeImpl() throws -> WinAppSDK.InteractionChainingMode { + var value: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CInteractionChainingMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIVisualInteractionSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PositionYChainingMode(pThis, &value)) + } + return value + } + + internal func put_PositionYChainingModeImpl(_ value: WinAppSDK.InteractionChainingMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIVisualInteractionSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_PositionYChainingMode(pThis, value)) + } + } + + internal func get_PositionYSourceModeImpl() throws -> WinAppSDK.InteractionSourceMode { + var value: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CInteractionSourceMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIVisualInteractionSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PositionYSourceMode(pThis, &value)) + } + return value + } + + internal func put_PositionYSourceModeImpl(_ value: WinAppSDK.InteractionSourceMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIVisualInteractionSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_PositionYSourceMode(pThis, value)) + } + } + + internal func get_ScaleChainingModeImpl() throws -> WinAppSDK.InteractionChainingMode { + var value: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CInteractionChainingMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIVisualInteractionSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ScaleChainingMode(pThis, &value)) + } + return value + } + + internal func put_ScaleChainingModeImpl(_ value: WinAppSDK.InteractionChainingMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIVisualInteractionSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ScaleChainingMode(pThis, value)) + } + } + + internal func get_ScaleSourceModeImpl() throws -> WinAppSDK.InteractionSourceMode { + var value: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CInteractionSourceMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIVisualInteractionSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ScaleSourceMode(pThis, &value)) + } + return value + } + + internal func put_ScaleSourceModeImpl(_ value: WinAppSDK.InteractionSourceMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIVisualInteractionSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ScaleSourceMode(pThis, value)) + } + } + + internal func get_SourceImpl() throws -> WinAppSDK.Visual? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIVisualInteractionSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Source(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func TryRedirectForManipulationImpl(_ pointerPoint: WinAppSDK.PointerPoint?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIVisualInteractionSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.TryRedirectForManipulation(pThis, RawPointer(pointerPoint))) + } + } + + } + + public class IVisualInteractionSource2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIVisualInteractionSource2 } + + internal func get_DeltaPositionImpl() throws -> WindowsFoundation.Vector3 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector3 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIVisualInteractionSource2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DeltaPosition(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_DeltaScaleImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIVisualInteractionSource2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DeltaScale(pThis, &value)) + } + return value + } + + internal func get_PositionImpl() throws -> WindowsFoundation.Vector3 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector3 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIVisualInteractionSource2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Position(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_PositionVelocityImpl() throws -> WindowsFoundation.Vector3 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector3 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIVisualInteractionSource2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PositionVelocity(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_ScaleImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIVisualInteractionSource2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Scale(pThis, &value)) + } + return value + } + + internal func get_ScaleVelocityImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIVisualInteractionSource2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ScaleVelocity(pThis, &value)) + } + return value + } + + internal func ConfigureCenterPointXModifiersImpl(_ conditionalValues: WindowsFoundation.AnyIIterable?) throws { + let conditionalValuesWrapper = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueWrapper(conditionalValues) + let _conditionalValues = try! conditionalValuesWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIVisualInteractionSource2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ConfigureCenterPointXModifiers(pThis, _conditionalValues)) + } + } + + internal func ConfigureCenterPointYModifiersImpl(_ conditionalValues: WindowsFoundation.AnyIIterable?) throws { + let conditionalValuesWrapper = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueWrapper(conditionalValues) + let _conditionalValues = try! conditionalValuesWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIVisualInteractionSource2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ConfigureCenterPointYModifiers(pThis, _conditionalValues)) + } + } + + internal func ConfigureDeltaPositionXModifiersImpl(_ conditionalValues: WindowsFoundation.AnyIIterable?) throws { + let conditionalValuesWrapper = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueWrapper(conditionalValues) + let _conditionalValues = try! conditionalValuesWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIVisualInteractionSource2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ConfigureDeltaPositionXModifiers(pThis, _conditionalValues)) + } + } + + internal func ConfigureDeltaPositionYModifiersImpl(_ conditionalValues: WindowsFoundation.AnyIIterable?) throws { + let conditionalValuesWrapper = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueWrapper(conditionalValues) + let _conditionalValues = try! conditionalValuesWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIVisualInteractionSource2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ConfigureDeltaPositionYModifiers(pThis, _conditionalValues)) + } + } + + internal func ConfigureDeltaScaleModifiersImpl(_ conditionalValues: WindowsFoundation.AnyIIterable?) throws { + let conditionalValuesWrapper = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueWrapper(conditionalValues) + let _conditionalValues = try! conditionalValuesWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIVisualInteractionSource2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ConfigureDeltaScaleModifiers(pThis, _conditionalValues)) + } + } + + } + + public class IVisualInteractionSource3: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIVisualInteractionSource3 } + + internal func get_PointerWheelConfigImpl() throws -> WinAppSDK.InteractionSourceConfiguration? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIVisualInteractionSource3.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PointerWheelConfig(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IVisualInteractionSourceObjectFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIVisualInteractionSourceObjectFactory } + + } + + public class IVisualInteractionSourceStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIVisualInteractionSourceStatics } + + internal func CreateImpl(_ source: WinAppSDK.Visual?) throws -> WinAppSDK.VisualInteractionSource? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIVisualInteractionSourceStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Create(pThis, RawPointer(source), &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IVisualInteractionSourceStatics2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIVisualInteractionSourceStatics2 } + + internal func CreateFromIVisualElementImpl(_ source: WinAppSDK.AnyIVisualElement?) throws -> WinAppSDK.VisualInteractionSource? { + let (result) = try ComPtrs.initialize { resultAbi in + let sourceWrapper = __ABI_Microsoft_UI_Composition.IVisualElementWrapper(source) + let _source = try! sourceWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIVisualInteractionSourceStatics2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateFromIVisualElement(pThis, _source, &resultAbi)) + } + } + return .from(abi: result) + } + + } + +} diff --git a/Sources/WinAppSDK/Microsoft.UI.Composition.Interactions+Impl.swift b/Sources/WinAppSDK/Microsoft.UI.Composition.Interactions+Impl.swift new file mode 100644 index 0000000..26de7f6 --- /dev/null +++ b/Sources/WinAppSDK/Microsoft.UI.Composition.Interactions+Impl.swift @@ -0,0 +1,88 @@ +// WARNING: Please don't edit this file. It was generated by Swift/WinRT v0.0.1 +// swiftlint:disable all +import Foundation +@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation +import CWinRT + +public enum __IMPL_Microsoft_UI_Composition_Interactions { + public enum ICompositionInteractionSourceBridge : AbiInterfaceBridge { + public typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CICompositionInteractionSource + public typealias SwiftABI = __ABI_Microsoft_UI_Composition_Interactions.ICompositionInteractionSource + public typealias SwiftProjection = AnyICompositionInteractionSource + public static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return ICompositionInteractionSourceImpl(abi) + } + + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Composition_Interactions.ICompositionInteractionSourceVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } + } + + fileprivate class ICompositionInteractionSourceImpl: ICompositionInteractionSource, WinRTAbiImpl { + fileprivate typealias Bridge = ICompositionInteractionSourceBridge + fileprivate let _default: Bridge.SwiftABI + fileprivate var thisPtr: WindowsFoundation.IInspectable { _default } + fileprivate init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + } + + public enum IInteractionTrackerOwnerBridge : AbiInterfaceBridge { + public typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerOwner + public typealias SwiftABI = __ABI_Microsoft_UI_Composition_Interactions.IInteractionTrackerOwner + public typealias SwiftProjection = AnyIInteractionTrackerOwner + public static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return IInteractionTrackerOwnerImpl(abi) + } + + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Composition_Interactions.IInteractionTrackerOwnerVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } + } + + fileprivate class IInteractionTrackerOwnerImpl: IInteractionTrackerOwner, WinRTAbiImpl { + fileprivate typealias Bridge = IInteractionTrackerOwnerBridge + fileprivate let _default: Bridge.SwiftABI + fileprivate var thisPtr: WindowsFoundation.IInspectable { _default } + fileprivate init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.iinteractiontrackerowner.customanimationstateentered) + fileprivate func customAnimationStateEntered(_ sender: InteractionTracker!, _ args: InteractionTrackerCustomAnimationStateEnteredArgs!) throws { + try _default.CustomAnimationStateEnteredImpl(sender, args) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.iinteractiontrackerowner.idlestateentered) + fileprivate func idleStateEntered(_ sender: InteractionTracker!, _ args: InteractionTrackerIdleStateEnteredArgs!) throws { + try _default.IdleStateEnteredImpl(sender, args) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.iinteractiontrackerowner.inertiastateentered) + fileprivate func inertiaStateEntered(_ sender: InteractionTracker!, _ args: InteractionTrackerInertiaStateEnteredArgs!) throws { + try _default.InertiaStateEnteredImpl(sender, args) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.iinteractiontrackerowner.interactingstateentered) + fileprivate func interactingStateEntered(_ sender: InteractionTracker!, _ args: InteractionTrackerInteractingStateEnteredArgs!) throws { + try _default.InteractingStateEnteredImpl(sender, args) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.iinteractiontrackerowner.requestignored) + fileprivate func requestIgnored(_ sender: InteractionTracker!, _ args: InteractionTrackerRequestIgnoredArgs!) throws { + try _default.RequestIgnoredImpl(sender, args) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.iinteractiontrackerowner.valueschanged) + fileprivate func valuesChanged(_ sender: InteractionTracker!, _ args: InteractionTrackerValuesChangedArgs!) throws { + try _default.ValuesChangedImpl(sender, args) + } + + } + +} diff --git a/Sources/WinAppSDK/Microsoft.UI.Composition.Interactions.swift b/Sources/WinAppSDK/Microsoft.UI.Composition.Interactions.swift new file mode 100644 index 0000000..e633941 --- /dev/null +++ b/Sources/WinAppSDK/Microsoft.UI.Composition.Interactions.swift @@ -0,0 +1,1306 @@ +// WARNING: Please don't edit this file. It was generated by Swift/WinRT v0.0.1 +// swiftlint:disable all +import Foundation +@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation +import CWinRT + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactionbindingaxismodes) +public typealias InteractionBindingAxisModes = __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CInteractionBindingAxisModes +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactionchainingmode) +public typealias InteractionChainingMode = __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CInteractionChainingMode +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactionsourcemode) +public typealias InteractionSourceMode = __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CInteractionSourceMode +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactionsourceredirectionmode) +public typealias InteractionSourceRedirectionMode = __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CInteractionSourceRedirectionMode +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontrackerclampingoption) +public typealias InteractionTrackerClampingOption = __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CInteractionTrackerClampingOption +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontrackerpositionupdateoption) +public typealias InteractionTrackerPositionUpdateOption = __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CInteractionTrackerPositionUpdateOption +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.visualinteractionsourceredirectionmode) +public typealias VisualInteractionSourceRedirectionMode = __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CVisualInteractionSourceRedirectionMode +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.compositionconditionalvalue) +public final class CompositionConditionalValue : WinAppSDK.CompositionObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition_Interactions.ICompositionConditionalValue + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CICompositionConditionalValue + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CICompositionConditionalValue>?) -> CompositionConditionalValue? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + private static let _ICompositionConditionalValueStatics: __ABI_Microsoft_UI_Composition_Interactions.ICompositionConditionalValueStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Composition.Interactions.CompositionConditionalValue")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.compositionconditionalvalue.create) + public static func create(_ compositor: WinAppSDK.Compositor!) -> CompositionConditionalValue! { + return try! _ICompositionConditionalValueStatics.CreateImpl(compositor) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.compositionconditionalvalue.condition) + public var condition : WinAppSDK.ExpressionAnimation! { + get { try! _default.get_ConditionImpl() } + set { try! _default.put_ConditionImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.compositionconditionalvalue.value) + public var value : WinAppSDK.ExpressionAnimation! { + get { try! _default.get_ValueImpl() } + set { try! _default.put_ValueImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.compositioninteractionsourcecollection) +public final class CompositionInteractionSourceCollection : WinAppSDK.CompositionObject, IIterable { + public typealias T = AnyICompositionInteractionSource? + private typealias SwiftABI = __ABI_Microsoft_UI_Composition_Interactions.ICompositionInteractionSourceCollection + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CICompositionInteractionSourceCollection + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CICompositionInteractionSourceCollection>?) -> CompositionInteractionSourceCollection? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + override public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + return super.queryInterface(iid) + } + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.compositioninteractionsourcecollection.add) + public func add(_ value: AnyICompositionInteractionSource!) throws { + try _default.AddImpl(value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.compositioninteractionsourcecollection.remove) + public func remove(_ value: AnyICompositionInteractionSource!) throws { + try _default.RemoveImpl(value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.compositioninteractionsourcecollection.removeall) + public func removeAll() throws { + try _default.RemoveAllImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.compositioninteractionsourcecollection.count) + public var count : Int32 { + get { try! _default.get_CountImpl() } + } + + private lazy var _IIterable: IIterableICompositionInteractionSource! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.compositioninteractionsourcecollection.first) + public func first() -> WindowsFoundation.AnyIIterator? { + try! _IIterable.FirstImpl() + } + + deinit { + _default = nil + _IIterable = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactionsourceconfiguration) +public final class InteractionSourceConfiguration : WinAppSDK.CompositionObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition_Interactions.IInteractionSourceConfiguration + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionSourceConfiguration + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionSourceConfiguration>?) -> InteractionSourceConfiguration? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactionsourceconfiguration.positionxsourcemode) + public var positionXSourceMode : InteractionSourceRedirectionMode { + get { try! _default.get_PositionXSourceModeImpl() } + set { try! _default.put_PositionXSourceModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactionsourceconfiguration.positionysourcemode) + public var positionYSourceMode : InteractionSourceRedirectionMode { + get { try! _default.get_PositionYSourceModeImpl() } + set { try! _default.put_PositionYSourceModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactionsourceconfiguration.scalesourcemode) + public var scaleSourceMode : InteractionSourceRedirectionMode { + get { try! _default.get_ScaleSourceModeImpl() } + set { try! _default.put_ScaleSourceModeImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontracker) +public final class InteractionTracker : WinAppSDK.CompositionObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition_Interactions.IInteractionTracker + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTracker + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTracker>?) -> InteractionTracker? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + private static let _IInteractionTrackerStatics: __ABI_Microsoft_UI_Composition_Interactions.IInteractionTrackerStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Composition.Interactions.InteractionTracker")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontracker.create) + public static func create(_ compositor: WinAppSDK.Compositor!) -> InteractionTracker! { + return try! _IInteractionTrackerStatics.CreateImpl(compositor) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontracker.createwithowner) + public static func createWithOwner(_ compositor: WinAppSDK.Compositor!, _ owner: AnyIInteractionTrackerOwner!) -> InteractionTracker! { + return try! _IInteractionTrackerStatics.CreateWithOwnerImpl(compositor, owner) + } + + private static let _IInteractionTrackerStatics2: __ABI_Microsoft_UI_Composition_Interactions.IInteractionTrackerStatics2 = try! RoGetActivationFactory(HString("Microsoft.UI.Composition.Interactions.InteractionTracker")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontracker.setbindingmode) + public static func setBindingMode(_ boundTracker1: InteractionTracker!, _ boundTracker2: InteractionTracker!, _ axisMode: InteractionBindingAxisModes) { + try! _IInteractionTrackerStatics2.SetBindingModeImpl(boundTracker1, boundTracker2, axisMode) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontracker.getbindingmode) + public static func getBindingMode(_ boundTracker1: InteractionTracker!, _ boundTracker2: InteractionTracker!) -> InteractionBindingAxisModes { + return try! _IInteractionTrackerStatics2.GetBindingModeImpl(boundTracker1, boundTracker2) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontracker.adjustpositionxifgreaterthanthreshold) + public func adjustPositionXIfGreaterThanThreshold(_ adjustment: Float, _ positionThreshold: Float) throws { + try _default.AdjustPositionXIfGreaterThanThresholdImpl(adjustment, positionThreshold) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontracker.adjustpositionyifgreaterthanthreshold) + public func adjustPositionYIfGreaterThanThreshold(_ adjustment: Float, _ positionThreshold: Float) throws { + try _default.AdjustPositionYIfGreaterThanThresholdImpl(adjustment, positionThreshold) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontracker.configurepositionxinertiamodifiers) + public func configurePositionXInertiaModifiers(_ modifiers: WindowsFoundation.AnyIIterable!) throws { + try _default.ConfigurePositionXInertiaModifiersImpl(modifiers) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontracker.configurepositionyinertiamodifiers) + public func configurePositionYInertiaModifiers(_ modifiers: WindowsFoundation.AnyIIterable!) throws { + try _default.ConfigurePositionYInertiaModifiersImpl(modifiers) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontracker.configurescaleinertiamodifiers) + public func configureScaleInertiaModifiers(_ modifiers: WindowsFoundation.AnyIIterable!) throws { + try _default.ConfigureScaleInertiaModifiersImpl(modifiers) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontracker.tryupdateposition) + public func tryUpdatePosition(_ value: WindowsFoundation.Vector3) throws -> Int32 { + try _default.TryUpdatePositionImpl(value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontracker.tryupdatepositionby) + public func tryUpdatePositionBy(_ amount: WindowsFoundation.Vector3) throws -> Int32 { + try _default.TryUpdatePositionByImpl(amount) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontracker.tryupdatepositionwithanimation) + public func tryUpdatePositionWithAnimation(_ animation: WinAppSDK.CompositionAnimation!) throws -> Int32 { + try _default.TryUpdatePositionWithAnimationImpl(animation) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontracker.tryupdatepositionwithadditionalvelocity) + public func tryUpdatePositionWithAdditionalVelocity(_ velocityInPixelsPerSecond: WindowsFoundation.Vector3) throws -> Int32 { + try _default.TryUpdatePositionWithAdditionalVelocityImpl(velocityInPixelsPerSecond) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontracker.tryupdatescale) + public func tryUpdateScale(_ value: Float, _ centerPoint: WindowsFoundation.Vector3) throws -> Int32 { + try _default.TryUpdateScaleImpl(value, centerPoint) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontracker.tryupdatescalewithanimation) + public func tryUpdateScaleWithAnimation(_ animation: WinAppSDK.CompositionAnimation!, _ centerPoint: WindowsFoundation.Vector3) throws -> Int32 { + try _default.TryUpdateScaleWithAnimationImpl(animation, centerPoint) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontracker.tryupdatescalewithadditionalvelocity) + public func tryUpdateScaleWithAdditionalVelocity(_ velocityInPercentPerSecond: Float, _ centerPoint: WindowsFoundation.Vector3) throws -> Int32 { + try _default.TryUpdateScaleWithAdditionalVelocityImpl(velocityInPercentPerSecond, centerPoint) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontracker.interactionsources) + public var interactionSources : CompositionInteractionSourceCollection! { + get { try! _default.get_InteractionSourcesImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontracker.ispositionroundingsuggested) + public var isPositionRoundingSuggested : Bool { + get { try! _default.get_IsPositionRoundingSuggestedImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontracker.maxposition) + public var maxPosition : WindowsFoundation.Vector3 { + get { try! _default.get_MaxPositionImpl() } + set { try! _default.put_MaxPositionImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontracker.maxscale) + public var maxScale : Float { + get { try! _default.get_MaxScaleImpl() } + set { try! _default.put_MaxScaleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontracker.minposition) + public var minPosition : WindowsFoundation.Vector3 { + get { try! _default.get_MinPositionImpl() } + set { try! _default.put_MinPositionImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontracker.minscale) + public var minScale : Float { + get { try! _default.get_MinScaleImpl() } + set { try! _default.put_MinScaleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontracker.naturalrestingposition) + public var naturalRestingPosition : WindowsFoundation.Vector3 { + get { try! _default.get_NaturalRestingPositionImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontracker.naturalrestingscale) + public var naturalRestingScale : Float { + get { try! _default.get_NaturalRestingScaleImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontracker.owner) + public var owner : AnyIInteractionTrackerOwner! { + get { try! _default.get_OwnerImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontracker.position) + public var position : WindowsFoundation.Vector3 { + get { try! _default.get_PositionImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontracker.positioninertiadecayrate) + public var positionInertiaDecayRate : WindowsFoundation.Vector3? { + get { try! _default.get_PositionInertiaDecayRateImpl() } + set { try! _default.put_PositionInertiaDecayRateImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontracker.positionvelocityinpixelspersecond) + public var positionVelocityInPixelsPerSecond : WindowsFoundation.Vector3 { + get { try! _default.get_PositionVelocityInPixelsPerSecondImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontracker.scale) + public var scale : Float { + get { try! _default.get_ScaleImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontracker.scaleinertiadecayrate) + public var scaleInertiaDecayRate : Float? { + get { try! _default.get_ScaleInertiaDecayRateImpl() } + set { try! _default.put_ScaleInertiaDecayRateImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontracker.scalevelocityinpercentpersecond) + public var scaleVelocityInPercentPerSecond : Float { + get { try! _default.get_ScaleVelocityInPercentPerSecondImpl() } + } + + private lazy var _IInteractionTracker2: __ABI_Microsoft_UI_Composition_Interactions.IInteractionTracker2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontracker.configurecenterpointxinertiamodifiers) + public func configureCenterPointXInertiaModifiers(_ conditionalValues: WindowsFoundation.AnyIIterable!) throws { + try _IInteractionTracker2.ConfigureCenterPointXInertiaModifiersImpl(conditionalValues) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontracker.configurecenterpointyinertiamodifiers) + public func configureCenterPointYInertiaModifiers(_ conditionalValues: WindowsFoundation.AnyIIterable!) throws { + try _IInteractionTracker2.ConfigureCenterPointYInertiaModifiersImpl(conditionalValues) + } + + private lazy var _IInteractionTracker3: __ABI_Microsoft_UI_Composition_Interactions.IInteractionTracker3! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontracker.configurevector2positioninertiamodifiers) + public func configureVector2PositionInertiaModifiers(_ modifiers: WindowsFoundation.AnyIIterable!) throws { + try _IInteractionTracker3.ConfigureVector2PositionInertiaModifiersImpl(modifiers) + } + + private lazy var _IInteractionTracker4: __ABI_Microsoft_UI_Composition_Interactions.IInteractionTracker4! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontracker.tryupdateposition) + public func tryUpdatePosition(_ value: WindowsFoundation.Vector3, _ option: InteractionTrackerClampingOption) throws -> Int32 { + try _IInteractionTracker4.TryUpdatePositionWithOptionImpl(value, option) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontracker.tryupdatepositionby) + public func tryUpdatePositionBy(_ amount: WindowsFoundation.Vector3, _ option: InteractionTrackerClampingOption) throws -> Int32 { + try _IInteractionTracker4.TryUpdatePositionByWithOptionImpl(amount, option) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontracker.isinertiafromimpulse) + public var isInertiaFromImpulse : Bool { + get { try! _IInteractionTracker4.get_IsInertiaFromImpulseImpl() } + } + + private lazy var _IInteractionTracker5: __ABI_Microsoft_UI_Composition_Interactions.IInteractionTracker5! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontracker.tryupdateposition) + public func tryUpdatePosition(_ value: WindowsFoundation.Vector3, _ option: InteractionTrackerClampingOption, _ posUpdateOption: InteractionTrackerPositionUpdateOption) throws -> Int32 { + try _IInteractionTracker5.TryUpdatePositionWithOptionImpl(value, option, posUpdateOption) + } + + deinit { + _default = nil + _IInteractionTracker2 = nil + _IInteractionTracker3 = nil + _IInteractionTracker4 = nil + _IInteractionTracker5 = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontrackercustomanimationstateenteredargs) +public final class InteractionTrackerCustomAnimationStateEnteredArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition_Interactions.IInteractionTrackerCustomAnimationStateEnteredArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerCustomAnimationStateEnteredArgs + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerCustomAnimationStateEnteredArgs>?) -> InteractionTrackerCustomAnimationStateEnteredArgs? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontrackercustomanimationstateenteredargs.requestid) + public var requestId : Int32 { + get { try! _default.get_RequestIdImpl() } + } + + private lazy var _IInteractionTrackerCustomAnimationStateEnteredArgs2: __ABI_Microsoft_UI_Composition_Interactions.IInteractionTrackerCustomAnimationStateEnteredArgs2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontrackercustomanimationstateenteredargs.isfrombinding) + public var isFromBinding : Bool { + get { try! _IInteractionTrackerCustomAnimationStateEnteredArgs2.get_IsFromBindingImpl() } + } + + deinit { + _default = nil + _IInteractionTrackerCustomAnimationStateEnteredArgs2 = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontrackeridlestateenteredargs) +public final class InteractionTrackerIdleStateEnteredArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition_Interactions.IInteractionTrackerIdleStateEnteredArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerIdleStateEnteredArgs + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerIdleStateEnteredArgs>?) -> InteractionTrackerIdleStateEnteredArgs? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontrackeridlestateenteredargs.requestid) + public var requestId : Int32 { + get { try! _default.get_RequestIdImpl() } + } + + private lazy var _IInteractionTrackerIdleStateEnteredArgs2: __ABI_Microsoft_UI_Composition_Interactions.IInteractionTrackerIdleStateEnteredArgs2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontrackeridlestateenteredargs.isfrombinding) + public var isFromBinding : Bool { + get { try! _IInteractionTrackerIdleStateEnteredArgs2.get_IsFromBindingImpl() } + } + + deinit { + _default = nil + _IInteractionTrackerIdleStateEnteredArgs2 = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontrackerinertiamodifier) +open class InteractionTrackerInertiaModifier : WinAppSDK.CompositionObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition_Interactions.IInteractionTrackerInertiaModifier + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaModifier + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override open func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaModifier>?) -> InteractionTrackerInertiaModifier? { + guard let abi = abi else { return nil } + return UnsealedWinRTClassWrapper.unwrapFrom(base: abi) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + @_spi(WinRTInternal) + override public init( + composing: Composable.Type, + _ createCallback: (UnsealedWinRTClassWrapper?, inout WindowsFoundation.IInspectable?) -> Composable.Default.SwiftABI) + { + super.init(composing: composing, createCallback) + } + override open func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + return super.queryInterface(iid) + } + private static var _IInteractionTrackerInertiaModifierFactory : __ABI_Microsoft_UI_Composition_Interactions.IInteractionTrackerInertiaModifierFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Composition.Interactions.InteractionTrackerInertiaModifier")) + + internal enum IInteractionTrackerInertiaModifier : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = InteractionTrackerInertiaModifier + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaModifier + internal typealias SwiftABI = __ABI_Microsoft_UI_Composition_Interactions.IInteractionTrackerInertiaModifier + } + } + internal typealias Composable = IInteractionTrackerInertiaModifier + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontrackerinertiamotion) +public final class InteractionTrackerInertiaMotion : WinAppSDK.InteractionTrackerInertiaModifier { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition_Interactions.IInteractionTrackerInertiaMotion + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaMotion + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaMotion>?) -> InteractionTrackerInertiaMotion? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + private static let _IInteractionTrackerInertiaMotionStatics: __ABI_Microsoft_UI_Composition_Interactions.IInteractionTrackerInertiaMotionStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Composition.Interactions.InteractionTrackerInertiaMotion")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontrackerinertiamotion.create) + public static func create(_ compositor: WinAppSDK.Compositor!) -> InteractionTrackerInertiaMotion! { + return try! _IInteractionTrackerInertiaMotionStatics.CreateImpl(compositor) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontrackerinertiamotion.condition) + public var condition : WinAppSDK.ExpressionAnimation! { + get { try! _default.get_ConditionImpl() } + set { try! _default.put_ConditionImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontrackerinertiamotion.motion) + public var motion : WinAppSDK.ExpressionAnimation! { + get { try! _default.get_MotionImpl() } + set { try! _default.put_MotionImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontrackerinertianaturalmotion) +public final class InteractionTrackerInertiaNaturalMotion : WinAppSDK.InteractionTrackerInertiaModifier { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition_Interactions.IInteractionTrackerInertiaNaturalMotion + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaNaturalMotion + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaNaturalMotion>?) -> InteractionTrackerInertiaNaturalMotion? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + private static let _IInteractionTrackerInertiaNaturalMotionStatics: __ABI_Microsoft_UI_Composition_Interactions.IInteractionTrackerInertiaNaturalMotionStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Composition.Interactions.InteractionTrackerInertiaNaturalMotion")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontrackerinertianaturalmotion.create) + public static func create(_ compositor: WinAppSDK.Compositor!) -> InteractionTrackerInertiaNaturalMotion! { + return try! _IInteractionTrackerInertiaNaturalMotionStatics.CreateImpl(compositor) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontrackerinertianaturalmotion.condition) + public var condition : WinAppSDK.ExpressionAnimation! { + get { try! _default.get_ConditionImpl() } + set { try! _default.put_ConditionImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontrackerinertianaturalmotion.naturalmotion) + public var naturalMotion : WinAppSDK.ScalarNaturalMotionAnimation! { + get { try! _default.get_NaturalMotionImpl() } + set { try! _default.put_NaturalMotionImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontrackerinertiarestingvalue) +public final class InteractionTrackerInertiaRestingValue : WinAppSDK.InteractionTrackerInertiaModifier { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition_Interactions.IInteractionTrackerInertiaRestingValue + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaRestingValue + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaRestingValue>?) -> InteractionTrackerInertiaRestingValue? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + private static let _IInteractionTrackerInertiaRestingValueStatics: __ABI_Microsoft_UI_Composition_Interactions.IInteractionTrackerInertiaRestingValueStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Composition.Interactions.InteractionTrackerInertiaRestingValue")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontrackerinertiarestingvalue.create) + public static func create(_ compositor: WinAppSDK.Compositor!) -> InteractionTrackerInertiaRestingValue! { + return try! _IInteractionTrackerInertiaRestingValueStatics.CreateImpl(compositor) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontrackerinertiarestingvalue.condition) + public var condition : WinAppSDK.ExpressionAnimation! { + get { try! _default.get_ConditionImpl() } + set { try! _default.put_ConditionImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontrackerinertiarestingvalue.restingvalue) + public var restingValue : WinAppSDK.ExpressionAnimation! { + get { try! _default.get_RestingValueImpl() } + set { try! _default.put_RestingValueImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontrackerinertiastateenteredargs) +public final class InteractionTrackerInertiaStateEnteredArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition_Interactions.IInteractionTrackerInertiaStateEnteredArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaStateEnteredArgs + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInertiaStateEnteredArgs>?) -> InteractionTrackerInertiaStateEnteredArgs? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontrackerinertiastateenteredargs.modifiedrestingposition) + public var modifiedRestingPosition : WindowsFoundation.Vector3? { + get { try! _default.get_ModifiedRestingPositionImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontrackerinertiastateenteredargs.modifiedrestingscale) + public var modifiedRestingScale : Float? { + get { try! _default.get_ModifiedRestingScaleImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontrackerinertiastateenteredargs.naturalrestingposition) + public var naturalRestingPosition : WindowsFoundation.Vector3 { + get { try! _default.get_NaturalRestingPositionImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontrackerinertiastateenteredargs.naturalrestingscale) + public var naturalRestingScale : Float { + get { try! _default.get_NaturalRestingScaleImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontrackerinertiastateenteredargs.positionvelocityinpixelspersecond) + public var positionVelocityInPixelsPerSecond : WindowsFoundation.Vector3 { + get { try! _default.get_PositionVelocityInPixelsPerSecondImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontrackerinertiastateenteredargs.requestid) + public var requestId : Int32 { + get { try! _default.get_RequestIdImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontrackerinertiastateenteredargs.scalevelocityinpercentpersecond) + public var scaleVelocityInPercentPerSecond : Float { + get { try! _default.get_ScaleVelocityInPercentPerSecondImpl() } + } + + private lazy var _IInteractionTrackerInertiaStateEnteredArgs2: __ABI_Microsoft_UI_Composition_Interactions.IInteractionTrackerInertiaStateEnteredArgs2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontrackerinertiastateenteredargs.isinertiafromimpulse) + public var isInertiaFromImpulse : Bool { + get { try! _IInteractionTrackerInertiaStateEnteredArgs2.get_IsInertiaFromImpulseImpl() } + } + + private lazy var _IInteractionTrackerInertiaStateEnteredArgs3: __ABI_Microsoft_UI_Composition_Interactions.IInteractionTrackerInertiaStateEnteredArgs3! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontrackerinertiastateenteredargs.isfrombinding) + public var isFromBinding : Bool { + get { try! _IInteractionTrackerInertiaStateEnteredArgs3.get_IsFromBindingImpl() } + } + + deinit { + _default = nil + _IInteractionTrackerInertiaStateEnteredArgs2 = nil + _IInteractionTrackerInertiaStateEnteredArgs3 = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontrackerinteractingstateenteredargs) +public final class InteractionTrackerInteractingStateEnteredArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition_Interactions.IInteractionTrackerInteractingStateEnteredArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInteractingStateEnteredArgs + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerInteractingStateEnteredArgs>?) -> InteractionTrackerInteractingStateEnteredArgs? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontrackerinteractingstateenteredargs.requestid) + public var requestId : Int32 { + get { try! _default.get_RequestIdImpl() } + } + + private lazy var _IInteractionTrackerInteractingStateEnteredArgs2: __ABI_Microsoft_UI_Composition_Interactions.IInteractionTrackerInteractingStateEnteredArgs2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontrackerinteractingstateenteredargs.isfrombinding) + public var isFromBinding : Bool { + get { try! _IInteractionTrackerInteractingStateEnteredArgs2.get_IsFromBindingImpl() } + } + + deinit { + _default = nil + _IInteractionTrackerInteractingStateEnteredArgs2 = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontrackerrequestignoredargs) +public final class InteractionTrackerRequestIgnoredArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition_Interactions.IInteractionTrackerRequestIgnoredArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerRequestIgnoredArgs + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerRequestIgnoredArgs>?) -> InteractionTrackerRequestIgnoredArgs? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontrackerrequestignoredargs.requestid) + public var requestId : Int32 { + get { try! _default.get_RequestIdImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontrackervalueschangedargs) +public final class InteractionTrackerValuesChangedArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition_Interactions.IInteractionTrackerValuesChangedArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerValuesChangedArgs + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerValuesChangedArgs>?) -> InteractionTrackerValuesChangedArgs? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontrackervalueschangedargs.position) + public var position : WindowsFoundation.Vector3 { + get { try! _default.get_PositionImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontrackervalueschangedargs.requestid) + public var requestId : Int32 { + get { try! _default.get_RequestIdImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontrackervalueschangedargs.scale) + public var scale : Float { + get { try! _default.get_ScaleImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontrackervector2inertiamodifier) +open class InteractionTrackerVector2InertiaModifier : WinAppSDK.CompositionObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition_Interactions.IInteractionTrackerVector2InertiaModifier + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerVector2InertiaModifier + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override open func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerVector2InertiaModifier>?) -> InteractionTrackerVector2InertiaModifier? { + guard let abi = abi else { return nil } + return UnsealedWinRTClassWrapper.unwrapFrom(base: abi) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + @_spi(WinRTInternal) + override public init( + composing: Composable.Type, + _ createCallback: (UnsealedWinRTClassWrapper?, inout WindowsFoundation.IInspectable?) -> Composable.Default.SwiftABI) + { + super.init(composing: composing, createCallback) + } + override open func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + return super.queryInterface(iid) + } + private static var _IInteractionTrackerVector2InertiaModifierFactory : __ABI_Microsoft_UI_Composition_Interactions.IInteractionTrackerVector2InertiaModifierFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Composition.Interactions.InteractionTrackerVector2InertiaModifier")) + + internal enum IInteractionTrackerVector2InertiaModifier : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = InteractionTrackerVector2InertiaModifier + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerVector2InertiaModifier + internal typealias SwiftABI = __ABI_Microsoft_UI_Composition_Interactions.IInteractionTrackerVector2InertiaModifier + } + } + internal typealias Composable = IInteractionTrackerVector2InertiaModifier + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontrackervector2inertianaturalmotion) +public final class InteractionTrackerVector2InertiaNaturalMotion : WinAppSDK.InteractionTrackerVector2InertiaModifier { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition_Interactions.IInteractionTrackerVector2InertiaNaturalMotion + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerVector2InertiaNaturalMotion + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIInteractionTrackerVector2InertiaNaturalMotion>?) -> InteractionTrackerVector2InertiaNaturalMotion? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + private static let _IInteractionTrackerVector2InertiaNaturalMotionStatics: __ABI_Microsoft_UI_Composition_Interactions.IInteractionTrackerVector2InertiaNaturalMotionStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Composition.Interactions.InteractionTrackerVector2InertiaNaturalMotion")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontrackervector2inertianaturalmotion.create) + public static func create(_ compositor: WinAppSDK.Compositor!) -> InteractionTrackerVector2InertiaNaturalMotion! { + return try! _IInteractionTrackerVector2InertiaNaturalMotionStatics.CreateImpl(compositor) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontrackervector2inertianaturalmotion.condition) + public var condition : WinAppSDK.ExpressionAnimation! { + get { try! _default.get_ConditionImpl() } + set { try! _default.put_ConditionImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.interactiontrackervector2inertianaturalmotion.naturalmotion) + public var naturalMotion : WinAppSDK.Vector2NaturalMotionAnimation! { + get { try! _default.get_NaturalMotionImpl() } + set { try! _default.put_NaturalMotionImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.visualinteractionsource) +open class VisualInteractionSource : WinAppSDK.CompositionObject, ICompositionInteractionSource { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition_Interactions.IVisualInteractionSource + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIVisualInteractionSource + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override open func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIVisualInteractionSource>?) -> VisualInteractionSource? { + guard let abi = abi else { return nil } + return UnsealedWinRTClassWrapper.unwrapFrom(base: abi) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + @_spi(WinRTInternal) + override public init( + composing: Composable.Type, + _ createCallback: (UnsealedWinRTClassWrapper?, inout WindowsFoundation.IInspectable?) -> Composable.Default.SwiftABI) + { + super.init(composing: composing, createCallback) + } + override open func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + return super.queryInterface(iid) + } + private static var _IVisualInteractionSourceObjectFactory : __ABI_Microsoft_UI_Composition_Interactions.IVisualInteractionSourceObjectFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Composition.Interactions.VisualInteractionSource")) + + private static let _IVisualInteractionSourceStatics: __ABI_Microsoft_UI_Composition_Interactions.IVisualInteractionSourceStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Composition.Interactions.VisualInteractionSource")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.visualinteractionsource.create) + public class func create(_ source: WinAppSDK.Visual!) -> VisualInteractionSource! { + return try! _IVisualInteractionSourceStatics.CreateImpl(source) + } + + private static let _IVisualInteractionSourceStatics2: __ABI_Microsoft_UI_Composition_Interactions.IVisualInteractionSourceStatics2 = try! RoGetActivationFactory(HString("Microsoft.UI.Composition.Interactions.VisualInteractionSource")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.visualinteractionsource.createfromivisualelement) + public class func createFromIVisualElement(_ source: WinAppSDK.AnyIVisualElement!) -> VisualInteractionSource! { + return try! _IVisualInteractionSourceStatics2.CreateFromIVisualElementImpl(source) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.visualinteractionsource.tryredirectformanipulation) + public func tryRedirectForManipulation(_ pointerPoint: WinAppSDK.PointerPoint!) throws { + try _default.TryRedirectForManipulationImpl(pointerPoint) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.visualinteractionsource.ispositionxrailsenabled) + public var isPositionXRailsEnabled : Bool { + get { try! _default.get_IsPositionXRailsEnabledImpl() } + set { try! _default.put_IsPositionXRailsEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.visualinteractionsource.ispositionyrailsenabled) + public var isPositionYRailsEnabled : Bool { + get { try! _default.get_IsPositionYRailsEnabledImpl() } + set { try! _default.put_IsPositionYRailsEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.visualinteractionsource.manipulationredirectionmode) + public var manipulationRedirectionMode : VisualInteractionSourceRedirectionMode { + get { try! _default.get_ManipulationRedirectionModeImpl() } + set { try! _default.put_ManipulationRedirectionModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.visualinteractionsource.positionxchainingmode) + public var positionXChainingMode : InteractionChainingMode { + get { try! _default.get_PositionXChainingModeImpl() } + set { try! _default.put_PositionXChainingModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.visualinteractionsource.positionxsourcemode) + public var positionXSourceMode : InteractionSourceMode { + get { try! _default.get_PositionXSourceModeImpl() } + set { try! _default.put_PositionXSourceModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.visualinteractionsource.positionychainingmode) + public var positionYChainingMode : InteractionChainingMode { + get { try! _default.get_PositionYChainingModeImpl() } + set { try! _default.put_PositionYChainingModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.visualinteractionsource.positionysourcemode) + public var positionYSourceMode : InteractionSourceMode { + get { try! _default.get_PositionYSourceModeImpl() } + set { try! _default.put_PositionYSourceModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.visualinteractionsource.scalechainingmode) + public var scaleChainingMode : InteractionChainingMode { + get { try! _default.get_ScaleChainingModeImpl() } + set { try! _default.put_ScaleChainingModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.visualinteractionsource.scalesourcemode) + public var scaleSourceMode : InteractionSourceMode { + get { try! _default.get_ScaleSourceModeImpl() } + set { try! _default.put_ScaleSourceModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.visualinteractionsource.source) + public var source : WinAppSDK.Visual! { + get { try! _default.get_SourceImpl() } + } + + private lazy var _IVisualInteractionSource2: __ABI_Microsoft_UI_Composition_Interactions.IVisualInteractionSource2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.visualinteractionsource.configurecenterpointxmodifiers) + public func configureCenterPointXModifiers(_ conditionalValues: WindowsFoundation.AnyIIterable!) throws { + try _IVisualInteractionSource2.ConfigureCenterPointXModifiersImpl(conditionalValues) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.visualinteractionsource.configurecenterpointymodifiers) + public func configureCenterPointYModifiers(_ conditionalValues: WindowsFoundation.AnyIIterable!) throws { + try _IVisualInteractionSource2.ConfigureCenterPointYModifiersImpl(conditionalValues) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.visualinteractionsource.configuredeltapositionxmodifiers) + public func configureDeltaPositionXModifiers(_ conditionalValues: WindowsFoundation.AnyIIterable!) throws { + try _IVisualInteractionSource2.ConfigureDeltaPositionXModifiersImpl(conditionalValues) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.visualinteractionsource.configuredeltapositionymodifiers) + public func configureDeltaPositionYModifiers(_ conditionalValues: WindowsFoundation.AnyIIterable!) throws { + try _IVisualInteractionSource2.ConfigureDeltaPositionYModifiersImpl(conditionalValues) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.visualinteractionsource.configuredeltascalemodifiers) + public func configureDeltaScaleModifiers(_ conditionalValues: WindowsFoundation.AnyIIterable!) throws { + try _IVisualInteractionSource2.ConfigureDeltaScaleModifiersImpl(conditionalValues) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.visualinteractionsource.deltaposition) + public var deltaPosition : WindowsFoundation.Vector3 { + get { try! _IVisualInteractionSource2.get_DeltaPositionImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.visualinteractionsource.deltascale) + public var deltaScale : Float { + get { try! _IVisualInteractionSource2.get_DeltaScaleImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.visualinteractionsource.position) + public var position : WindowsFoundation.Vector3 { + get { try! _IVisualInteractionSource2.get_PositionImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.visualinteractionsource.positionvelocity) + public var positionVelocity : WindowsFoundation.Vector3 { + get { try! _IVisualInteractionSource2.get_PositionVelocityImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.visualinteractionsource.scale) + public var scale : Float { + get { try! _IVisualInteractionSource2.get_ScaleImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.visualinteractionsource.scalevelocity) + public var scaleVelocity : Float { + get { try! _IVisualInteractionSource2.get_ScaleVelocityImpl() } + } + + private lazy var _IVisualInteractionSource3: __ABI_Microsoft_UI_Composition_Interactions.IVisualInteractionSource3! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.visualinteractionsource.pointerwheelconfig) + public var pointerWheelConfig : InteractionSourceConfiguration! { + get { try! _IVisualInteractionSource3.get_PointerWheelConfigImpl() } + } + + private lazy var _ICompositionInteractionSource: __ABI_Microsoft_UI_Composition_Interactions.ICompositionInteractionSource! = getInterfaceForCaching() + internal enum IVisualInteractionSource : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = VisualInteractionSource + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CIVisualInteractionSource + internal typealias SwiftABI = __ABI_Microsoft_UI_Composition_Interactions.IVisualInteractionSource + } + } + internal typealias Composable = IVisualInteractionSource + deinit { + _default = nil + _IVisualInteractionSource2 = nil + _IVisualInteractionSource3 = nil + _ICompositionInteractionSource = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.icompositioninteractionsource) +public protocol ICompositionInteractionSource : WinRTInterface { +} + +extension ICompositionInteractionSource { + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + switch iid { + case __ABI_Microsoft_UI_Composition_Interactions.ICompositionInteractionSourceWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Composition_Interactions.ICompositionInteractionSourceWrapper(self) + return wrapper!.queryInterface(iid) + default: return nil + } + } +} +public typealias AnyICompositionInteractionSource = any ICompositionInteractionSource + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.iinteractiontrackerowner) +public protocol IInteractionTrackerOwner : WinRTInterface { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.iinteractiontrackerowner.customanimationstateentered) + func customAnimationStateEntered(_ sender: WinAppSDK.InteractionTracker!, _ args: WinAppSDK.InteractionTrackerCustomAnimationStateEnteredArgs!) throws + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.iinteractiontrackerowner.idlestateentered) + func idleStateEntered(_ sender: WinAppSDK.InteractionTracker!, _ args: WinAppSDK.InteractionTrackerIdleStateEnteredArgs!) throws + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.iinteractiontrackerowner.inertiastateentered) + func inertiaStateEntered(_ sender: WinAppSDK.InteractionTracker!, _ args: WinAppSDK.InteractionTrackerInertiaStateEnteredArgs!) throws + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.iinteractiontrackerowner.interactingstateentered) + func interactingStateEntered(_ sender: WinAppSDK.InteractionTracker!, _ args: WinAppSDK.InteractionTrackerInteractingStateEnteredArgs!) throws + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.iinteractiontrackerowner.requestignored) + func requestIgnored(_ sender: WinAppSDK.InteractionTracker!, _ args: WinAppSDK.InteractionTrackerRequestIgnoredArgs!) throws + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.interactions.iinteractiontrackerowner.valueschanged) + func valuesChanged(_ sender: WinAppSDK.InteractionTracker!, _ args: WinAppSDK.InteractionTrackerValuesChangedArgs!) throws +} + +extension IInteractionTrackerOwner { + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + switch iid { + case __ABI_Microsoft_UI_Composition_Interactions.IInteractionTrackerOwnerWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Composition_Interactions.IInteractionTrackerOwnerWrapper(self) + return wrapper!.queryInterface(iid) + default: return nil + } + } +} +public typealias AnyIInteractionTrackerOwner = any IInteractionTrackerOwner + +extension WinAppSDK.InteractionBindingAxisModes { + public static var none : WinAppSDK.InteractionBindingAxisModes { + __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CInteractionBindingAxisModes_None + } + public static var positionX : WinAppSDK.InteractionBindingAxisModes { + __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CInteractionBindingAxisModes_PositionX + } + public static var positionY : WinAppSDK.InteractionBindingAxisModes { + __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CInteractionBindingAxisModes_PositionY + } + public static var scale : WinAppSDK.InteractionBindingAxisModes { + __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CInteractionBindingAxisModes_Scale + } +} +extension WinAppSDK.InteractionBindingAxisModes: @retroactive Hashable, @retroactive Codable {} + +extension WinAppSDK.InteractionChainingMode { + public static var auto : WinAppSDK.InteractionChainingMode { + __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CInteractionChainingMode_Auto + } + public static var always : WinAppSDK.InteractionChainingMode { + __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CInteractionChainingMode_Always + } + public static var never : WinAppSDK.InteractionChainingMode { + __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CInteractionChainingMode_Never + } +} +extension WinAppSDK.InteractionChainingMode: @retroactive Hashable, @retroactive Codable {} + +extension WinAppSDK.InteractionSourceMode { + public static var disabled : WinAppSDK.InteractionSourceMode { + __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CInteractionSourceMode_Disabled + } + public static var enabledWithInertia : WinAppSDK.InteractionSourceMode { + __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CInteractionSourceMode_EnabledWithInertia + } + public static var enabledWithoutInertia : WinAppSDK.InteractionSourceMode { + __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CInteractionSourceMode_EnabledWithoutInertia + } +} +extension WinAppSDK.InteractionSourceMode: @retroactive Hashable, @retroactive Codable {} + +extension WinAppSDK.InteractionSourceRedirectionMode { + public static var disabled : WinAppSDK.InteractionSourceRedirectionMode { + __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CInteractionSourceRedirectionMode_Disabled + } + public static var enabled : WinAppSDK.InteractionSourceRedirectionMode { + __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CInteractionSourceRedirectionMode_Enabled + } +} +extension WinAppSDK.InteractionSourceRedirectionMode: @retroactive Hashable, @retroactive Codable {} + +extension WinAppSDK.InteractionTrackerClampingOption { + public static var auto : WinAppSDK.InteractionTrackerClampingOption { + __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CInteractionTrackerClampingOption_Auto + } + public static var disabled : WinAppSDK.InteractionTrackerClampingOption { + __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CInteractionTrackerClampingOption_Disabled + } +} +extension WinAppSDK.InteractionTrackerClampingOption: @retroactive Hashable, @retroactive Codable {} + +extension WinAppSDK.InteractionTrackerPositionUpdateOption { + public static var `default` : WinAppSDK.InteractionTrackerPositionUpdateOption { + __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CInteractionTrackerPositionUpdateOption_Default + } + public static var allowActiveCustomScaleAnimation : WinAppSDK.InteractionTrackerPositionUpdateOption { + __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CInteractionTrackerPositionUpdateOption_AllowActiveCustomScaleAnimation + } +} +extension WinAppSDK.InteractionTrackerPositionUpdateOption: @retroactive Hashable, @retroactive Codable {} + +extension WinAppSDK.VisualInteractionSourceRedirectionMode { + public static var off : WinAppSDK.VisualInteractionSourceRedirectionMode { + __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CVisualInteractionSourceRedirectionMode_Off + } + public static var capableTouchpadOnly : WinAppSDK.VisualInteractionSourceRedirectionMode { + __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CVisualInteractionSourceRedirectionMode_CapableTouchpadOnly + } + public static var pointerWheelOnly : WinAppSDK.VisualInteractionSourceRedirectionMode { + __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CVisualInteractionSourceRedirectionMode_PointerWheelOnly + } + public static var capableTouchpadAndPointerWheel : WinAppSDK.VisualInteractionSourceRedirectionMode { + __x_ABI_CMicrosoft_CUI_CComposition_CInteractions_CVisualInteractionSourceRedirectionMode_CapableTouchpadAndPointerWheel + } +} +extension WinAppSDK.VisualInteractionSourceRedirectionMode: @retroactive Hashable, @retroactive Codable {} + diff --git a/Sources/WinAppSDK/Microsoft.UI.Composition.SystemBackdrops+ABI.swift b/Sources/WinAppSDK/Microsoft.UI.Composition.SystemBackdrops+ABI.swift new file mode 100644 index 0000000..98842a6 --- /dev/null +++ b/Sources/WinAppSDK/Microsoft.UI.Composition.SystemBackdrops+ABI.swift @@ -0,0 +1,542 @@ +// WARNING: Please don't edit this file. It was generated by Swift/WinRT v0.0.1 +// swiftlint:disable all +import Foundation +@_spi(WinRTInternal) @_spi(WinRTImplements) import UWP +@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation +import CWinRT + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CIDesktopAcrylicController: WindowsFoundation.IID { + .init(Data1: 0x7C20A6AF, Data2: 0x8EB3, Data3: 0x5F08, Data4: ( 0xBD,0xFC,0x6D,0x35,0xE3,0x5D,0xFE,0x45 ))// 7C20A6AF-8EB3-5F08-BDFC-6D35E35DFE45 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CIDesktopAcrylicController2: WindowsFoundation.IID { + .init(Data1: 0x88E0A368, Data2: 0xDFC7, Data3: 0x5971, Data4: ( 0xA5,0x0B,0x40,0xDF,0x5A,0xA5,0xF5,0xC2 ))// 88E0A368-DFC7-5971-A50B-40DF5AA5F5C2 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CIDesktopAcrylicController3: WindowsFoundation.IID { + .init(Data1: 0x30D917E6, Data2: 0x02D3, Data3: 0x59CA, Data4: ( 0xB4,0x40,0xBF,0x9D,0x2E,0x7C,0xC1,0x40 ))// 30D917E6-02D3-59CA-B440-BF9D2E7CC140 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CIDesktopAcrylicControllerStatics: WindowsFoundation.IID { + .init(Data1: 0xA9E8F790, Data2: 0x79EF, Data3: 0x5416, Data4: ( 0x9B,0x67,0x6B,0xCF,0xE8,0x67,0xC8,0xB7 ))// A9E8F790-79EF-5416-9B67-6BCFE867C8B7 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CIMicaController: WindowsFoundation.IID { + .init(Data1: 0x2DE996A9, Data2: 0x0A2A, Data3: 0x5889, Data4: ( 0xA8,0x9C,0x1F,0x84,0x06,0x0A,0x8C,0xAB ))// 2DE996A9-0A2A-5889-A89C-1F84060A8CAB +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CIMicaController2: WindowsFoundation.IID { + .init(Data1: 0xF1ED4A52, Data2: 0xD9CA, Data3: 0x506E, Data4: ( 0x95,0x86,0xCA,0xAE,0xFD,0x3A,0xA9,0x71 ))// F1ED4A52-D9CA-506E-9586-CAAEFD3AA971 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CIMicaControllerStatics: WindowsFoundation.IID { + .init(Data1: 0x7D85D834, Data2: 0xD514, Data3: 0x5250, Data4: ( 0xB7,0xC4,0x0B,0x78,0x50,0xD1,0xEF,0xDC ))// 7D85D834-D514-5250-B7C4-0B7850D1EFDC +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CISystemBackdropConfiguration: WindowsFoundation.IID { + .init(Data1: 0xEBCCE1B9, Data2: 0x0E0C, Data3: 0x5431, Data4: ( 0xAB,0x0E,0x00,0xF3,0xF0,0x66,0x99,0x62 ))// EBCCE1B9-0E0C-5431-AB0E-00F3F0669962 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CISystemBackdropController: WindowsFoundation.IID { + .init(Data1: 0x5632D76C, Data2: 0x0B74, Data3: 0x5B52, Data4: ( 0xAA,0x33,0x80,0x26,0x20,0x68,0xAE,0xB2 ))// 5632D76C-0B74-5B52-AA33-80262068AEB2 +} + +private var IID___x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CISystemBackdropControllerWithTargets: WindowsFoundation.IID { + .init(Data1: 0x9C56FE7C, Data2: 0x98EB, Data3: 0x5F89, Data4: ( 0xAD,0x97,0xDA,0xD5,0x7F,0xC3,0x0C,0x8C ))// 9C56FE7C-98EB-5F89-AD97-DAD57FC30C8C +} + +public enum __ABI_Microsoft_UI_Composition_SystemBackdrops { + public class IDesktopAcrylicController: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CIDesktopAcrylicController } + + internal func get_FallbackColorImpl() throws -> UWP.Color { + var value: __x_ABI_CWindows_CUI_CColor = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CIDesktopAcrylicController.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FallbackColor(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_FallbackColorImpl(_ value: UWP.Color) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CIDesktopAcrylicController.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FallbackColor(pThis, .from(swift: value))) + } + } + + internal func get_LuminosityOpacityImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CIDesktopAcrylicController.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LuminosityOpacity(pThis, &value)) + } + return value + } + + internal func put_LuminosityOpacityImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CIDesktopAcrylicController.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_LuminosityOpacity(pThis, value)) + } + } + + internal func get_TintColorImpl() throws -> UWP.Color { + var value: __x_ABI_CWindows_CUI_CColor = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CIDesktopAcrylicController.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TintColor(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_TintColorImpl(_ value: UWP.Color) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CIDesktopAcrylicController.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TintColor(pThis, .from(swift: value))) + } + } + + internal func get_TintOpacityImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CIDesktopAcrylicController.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TintOpacity(pThis, &value)) + } + return value + } + + internal func put_TintOpacityImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CIDesktopAcrylicController.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TintOpacity(pThis, value)) + } + } + + } + + public class IDesktopAcrylicController2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CIDesktopAcrylicController2 } + + internal func ResetPropertiesImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CIDesktopAcrylicController2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ResetProperties(pThis)) + } + } + + } + + public class IDesktopAcrylicController3: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CIDesktopAcrylicController3 } + + internal func get_KindImpl() throws -> WinAppSDK.DesktopAcrylicKind { + var value: __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CDesktopAcrylicKind = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CIDesktopAcrylicController3.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Kind(pThis, &value)) + } + return value + } + + internal func put_KindImpl(_ value: WinAppSDK.DesktopAcrylicKind) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CIDesktopAcrylicController3.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Kind(pThis, value)) + } + } + + } + + public class IDesktopAcrylicControllerStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CIDesktopAcrylicControllerStatics } + + internal func IsSupportedImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CIDesktopAcrylicControllerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.IsSupported(pThis, &result)) + } + return .init(from: result) + } + + } + + public class IMicaController: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CIMicaController } + + internal func get_FallbackColorImpl() throws -> UWP.Color { + var value: __x_ABI_CWindows_CUI_CColor = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CIMicaController.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FallbackColor(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_FallbackColorImpl(_ value: UWP.Color) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CIMicaController.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FallbackColor(pThis, .from(swift: value))) + } + } + + internal func get_LuminosityOpacityImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CIMicaController.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LuminosityOpacity(pThis, &value)) + } + return value + } + + internal func put_LuminosityOpacityImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CIMicaController.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_LuminosityOpacity(pThis, value)) + } + } + + internal func get_TintColorImpl() throws -> UWP.Color { + var value: __x_ABI_CWindows_CUI_CColor = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CIMicaController.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TintColor(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_TintColorImpl(_ value: UWP.Color) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CIMicaController.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TintColor(pThis, .from(swift: value))) + } + } + + internal func get_TintOpacityImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CIMicaController.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TintOpacity(pThis, &value)) + } + return value + } + + internal func put_TintOpacityImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CIMicaController.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TintOpacity(pThis, value)) + } + } + + } + + public class IMicaController2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CIMicaController2 } + + internal func get_KindImpl() throws -> WinAppSDK.MicaKind { + var value: __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CMicaKind = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CIMicaController2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Kind(pThis, &value)) + } + return value + } + + internal func put_KindImpl(_ value: WinAppSDK.MicaKind) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CIMicaController2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Kind(pThis, value)) + } + } + + internal func ResetPropertiesImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CIMicaController2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ResetProperties(pThis)) + } + } + + } + + public class IMicaControllerStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CIMicaControllerStatics } + + internal func IsSupportedImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CIMicaControllerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.IsSupported(pThis, &result)) + } + return .init(from: result) + } + + } + + public class ISystemBackdropConfiguration: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CISystemBackdropConfiguration } + + internal func get_HighContrastBackgroundColorImpl() throws -> UWP.Color? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CISystemBackdropConfiguration.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HighContrastBackgroundColor(pThis, &valueAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColorWrapper.unwrapFrom(abi: value) + } + + internal func put_HighContrastBackgroundColorImpl(_ value: UWP.Color?) throws { + let valueWrapper = WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColorWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CISystemBackdropConfiguration.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_HighContrastBackgroundColor(pThis, _value)) + } + } + + internal func get_IsHighContrastImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CISystemBackdropConfiguration.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsHighContrast(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsHighContrastImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CISystemBackdropConfiguration.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsHighContrast(pThis, .init(from: value))) + } + } + + internal func get_IsInputActiveImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CISystemBackdropConfiguration.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsInputActive(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsInputActiveImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CISystemBackdropConfiguration.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsInputActive(pThis, .init(from: value))) + } + } + + internal func get_ThemeImpl() throws -> WinAppSDK.SystemBackdropTheme { + var value: __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CSystemBackdropTheme = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CISystemBackdropConfiguration.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Theme(pThis, &value)) + } + return value + } + + internal func put_ThemeImpl(_ value: WinAppSDK.SystemBackdropTheme) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CISystemBackdropConfiguration.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Theme(pThis, value)) + } + } + + } + + public class ISystemBackdropController: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CISystemBackdropController } + + open func SetTargetWithWindowIdImpl(_ windowId: WinAppSDK.WindowId, _ desktopWindowTarget: UWP.CompositionTarget?) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CISystemBackdropController.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetTargetWithWindowId(pThis, .from(swift: windowId), RawPointer(desktopWindowTarget), &result)) + } + return .init(from: result) + } + + open func SetTargetWithCoreWindowImpl(_ coreWindow: UWP.CoreWindow?, _ compositionTarget: UWP.CompositionTarget?) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CISystemBackdropController.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetTargetWithCoreWindow(pThis, RawPointer(coreWindow), RawPointer(compositionTarget), &result)) + } + return .init(from: result) + } + + } + + internal static var ISystemBackdropControllerVTable: __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CISystemBackdropControllerVtbl = .init( + QueryInterface: { ISystemBackdropControllerWrapper.queryInterface($0, $1, $2) }, + AddRef: { ISystemBackdropControllerWrapper.addRef($0) }, + Release: { ISystemBackdropControllerWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 4).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = __ABI_Microsoft_UI_Composition_SystemBackdrops.ISystemBackdropControllerWrapper.IID + iids[3] = __ABI_Windows_Foundation.IClosableWrapper.IID + $1!.pointee = 4 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Microsoft.UI.Composition.SystemBackdrops.ISystemBackdropController").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + SetTargetWithWindowId: { + do { + guard let __unwrapped__instance = ISystemBackdropControllerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let windowId: WinAppSDK.WindowId = .from(abi: $1) + let desktopWindowTarget: UWP.CompositionTarget? = .from(abi: ComPtr($2)) + let result = try __unwrapped__instance.setTarget(windowId, desktopWindowTarget) + $3?.initialize(to: .init(from: result)) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + SetTargetWithCoreWindow: { + do { + guard let __unwrapped__instance = ISystemBackdropControllerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let coreWindow: UWP.CoreWindow? = .from(abi: ComPtr($1)) + let compositionTarget: UWP.CompositionTarget? = .from(abi: ComPtr($2)) + let result = try __unwrapped__instance.setTarget(coreWindow, compositionTarget) + $3?.initialize(to: .init(from: result)) + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) + + public typealias ISystemBackdropControllerWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Composition_SystemBackdrops.ISystemBackdropControllerBridge> + public class ISystemBackdropControllerWithTargets: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CISystemBackdropControllerWithTargets } + + open func get_StateImpl() throws -> WinAppSDK.SystemBackdropState { + var value: __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CSystemBackdropState = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CISystemBackdropControllerWithTargets.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_State(pThis, &value)) + } + return value + } + + open func AddSystemBackdropTargetImpl(_ systemBackdropTarget: WinAppSDK.AnyICompositionSupportsSystemBackdrop?) throws -> Bool { + var result: boolean = 0 + let systemBackdropTargetWrapper = __ABI_Microsoft_UI_Composition.ICompositionSupportsSystemBackdropWrapper(systemBackdropTarget) + let _systemBackdropTarget = try! systemBackdropTargetWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CISystemBackdropControllerWithTargets.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.AddSystemBackdropTarget(pThis, _systemBackdropTarget, &result)) + } + return .init(from: result) + } + + open func RemoveAllSystemBackdropTargetsImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CISystemBackdropControllerWithTargets.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAllSystemBackdropTargets(pThis)) + } + } + + open func RemoveSystemBackdropTargetImpl(_ systemBackdropTarget: WinAppSDK.AnyICompositionSupportsSystemBackdrop?) throws -> Bool { + var result: boolean = 0 + let systemBackdropTargetWrapper = __ABI_Microsoft_UI_Composition.ICompositionSupportsSystemBackdropWrapper(systemBackdropTarget) + let _systemBackdropTarget = try! systemBackdropTargetWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CISystemBackdropControllerWithTargets.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveSystemBackdropTarget(pThis, _systemBackdropTarget, &result)) + } + return .init(from: result) + } + + open func SetSystemBackdropConfigurationImpl(_ configuration: WinAppSDK.SystemBackdropConfiguration?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CISystemBackdropControllerWithTargets.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetSystemBackdropConfiguration(pThis, RawPointer(configuration))) + } + } + + open func add_StateChangedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CSystemBackdrops__CISystemBackdropControllerWithTargets_IInspectableWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CISystemBackdropControllerWithTargets.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_StateChanged(pThis, _handler, &token)) + } + return token + } + + open func remove_StateChangedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CISystemBackdropControllerWithTargets.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_StateChanged(pThis, token)) + } + } + + } + + internal static var ISystemBackdropControllerWithTargetsVTable: __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CISystemBackdropControllerWithTargetsVtbl = .init( + QueryInterface: { ISystemBackdropControllerWithTargetsWrapper.queryInterface($0, $1, $2) }, + AddRef: { ISystemBackdropControllerWithTargetsWrapper.addRef($0) }, + Release: { ISystemBackdropControllerWithTargetsWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 5).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = __ABI_Microsoft_UI_Composition_SystemBackdrops.ISystemBackdropControllerWithTargetsWrapper.IID + iids[3] = __ABI_Windows_Foundation.IClosableWrapper.IID + iids[4] = __ABI_Microsoft_UI_Composition_SystemBackdrops.ISystemBackdropControllerWrapper.IID + $1!.pointee = 5 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Microsoft.UI.Composition.SystemBackdrops.ISystemBackdropControllerWithTargets").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + get_State: { + guard let __unwrapped__instance = ISystemBackdropControllerWithTargetsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value = __unwrapped__instance.state + $1?.initialize(to: value) + return S_OK + }, + + AddSystemBackdropTarget: { + do { + guard let __unwrapped__instance = ISystemBackdropControllerWithTargetsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let systemBackdropTarget: WinAppSDK.AnyICompositionSupportsSystemBackdrop? = __ABI_Microsoft_UI_Composition.ICompositionSupportsSystemBackdropWrapper.unwrapFrom(abi: ComPtr($1)) + let result = try __unwrapped__instance.addSystemBackdropTarget(systemBackdropTarget) + $2?.initialize(to: .init(from: result)) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + RemoveAllSystemBackdropTargets: { + do { + guard let __unwrapped__instance = ISystemBackdropControllerWithTargetsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + try __unwrapped__instance.removeAllSystemBackdropTargets() + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + RemoveSystemBackdropTarget: { + do { + guard let __unwrapped__instance = ISystemBackdropControllerWithTargetsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let systemBackdropTarget: WinAppSDK.AnyICompositionSupportsSystemBackdrop? = __ABI_Microsoft_UI_Composition.ICompositionSupportsSystemBackdropWrapper.unwrapFrom(abi: ComPtr($1)) + let result = try __unwrapped__instance.removeSystemBackdropTarget(systemBackdropTarget) + $2?.initialize(to: .init(from: result)) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + SetSystemBackdropConfiguration: { + do { + guard let __unwrapped__instance = ISystemBackdropControllerWithTargetsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let configuration: WinAppSDK.SystemBackdropConfiguration? = .from(abi: ComPtr($1)) + try __unwrapped__instance.setSystemBackdropConfiguration(configuration) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + add_StateChanged: { + guard let __unwrapped__instance = ISystemBackdropControllerWithTargetsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + guard let handler = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CSystemBackdrops__CISystemBackdropControllerWithTargets_IInspectableWrapper.unwrapFrom(abi: ComPtr($1)) else { return E_INVALIDARG } + let token = __unwrapped__instance.stateChanged.addHandler(handler) + $2?.initialize(to: .from(swift: token)) + return S_OK + }, + + remove_StateChanged: { + guard let __unwrapped__instance = ISystemBackdropControllerWithTargetsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let token: EventRegistrationToken = $1 + __unwrapped__instance.stateChanged.removeHandler(token) + return S_OK + } + ) + + public typealias ISystemBackdropControllerWithTargetsWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Composition_SystemBackdrops.ISystemBackdropControllerWithTargetsBridge> +} diff --git a/Sources/WinAppSDK/Microsoft.UI.Composition.SystemBackdrops+Impl.swift b/Sources/WinAppSDK/Microsoft.UI.Composition.SystemBackdrops+Impl.swift new file mode 100644 index 0000000..f190205 --- /dev/null +++ b/Sources/WinAppSDK/Microsoft.UI.Composition.SystemBackdrops+Impl.swift @@ -0,0 +1,130 @@ +// WARNING: Please don't edit this file. It was generated by Swift/WinRT v0.0.1 +// swiftlint:disable all +import Foundation +@_spi(WinRTInternal) @_spi(WinRTImplements) import UWP +@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation +import CWinRT + +public enum __IMPL_Microsoft_UI_Composition_SystemBackdrops { + public enum ISystemBackdropControllerBridge : AbiInterfaceBridge { + public typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CISystemBackdropController + public typealias SwiftABI = __ABI_Microsoft_UI_Composition_SystemBackdrops.ISystemBackdropController + public typealias SwiftProjection = AnyISystemBackdropController + public static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return ISystemBackdropControllerImpl(abi) + } + + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Composition_SystemBackdrops.ISystemBackdropControllerVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } + } + + fileprivate class ISystemBackdropControllerImpl: ISystemBackdropController, WinRTAbiImpl { + fileprivate typealias Bridge = ISystemBackdropControllerBridge + fileprivate let _default: Bridge.SwiftABI + fileprivate var thisPtr: WindowsFoundation.IInspectable { _default } + fileprivate init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.isystembackdropcontroller.settarget) + fileprivate func setTarget(_ windowId: WinAppSDK.WindowId, _ desktopWindowTarget: UWP.CompositionTarget!) throws -> Bool { + try _default.SetTargetWithWindowIdImpl(windowId, desktopWindowTarget) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.isystembackdropcontroller.settarget) + fileprivate func setTarget(_ coreWindow: UWP.CoreWindow!, _ compositionTarget: UWP.CompositionTarget!) throws -> Bool { + try _default.SetTargetWithCoreWindowImpl(coreWindow, compositionTarget) + } + + private lazy var _IClosable: __ABI_Windows_Foundation.IClosable! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.isystembackdropcontroller.close) + fileprivate func close() throws { + try _IClosable.CloseImpl() + } + + } + + public enum ISystemBackdropControllerWithTargetsBridge : AbiInterfaceBridge { + public typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CISystemBackdropControllerWithTargets + public typealias SwiftABI = __ABI_Microsoft_UI_Composition_SystemBackdrops.ISystemBackdropControllerWithTargets + public typealias SwiftProjection = AnyISystemBackdropControllerWithTargets + public static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return ISystemBackdropControllerWithTargetsImpl(abi) + } + + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Composition_SystemBackdrops.ISystemBackdropControllerWithTargetsVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } + } + + fileprivate class ISystemBackdropControllerWithTargetsImpl: ISystemBackdropControllerWithTargets, WinRTAbiImpl { + fileprivate typealias Bridge = ISystemBackdropControllerWithTargetsBridge + fileprivate let _default: Bridge.SwiftABI + fileprivate var thisPtr: WindowsFoundation.IInspectable { _default } + fileprivate init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.isystembackdropcontrollerwithtargets.addsystembackdroptarget) + fileprivate func addSystemBackdropTarget(_ systemBackdropTarget: WinAppSDK.AnyICompositionSupportsSystemBackdrop!) throws -> Bool { + try _default.AddSystemBackdropTargetImpl(systemBackdropTarget) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.isystembackdropcontrollerwithtargets.removeallsystembackdroptargets) + fileprivate func removeAllSystemBackdropTargets() throws { + try _default.RemoveAllSystemBackdropTargetsImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.isystembackdropcontrollerwithtargets.removesystembackdroptarget) + fileprivate func removeSystemBackdropTarget(_ systemBackdropTarget: WinAppSDK.AnyICompositionSupportsSystemBackdrop!) throws -> Bool { + try _default.RemoveSystemBackdropTargetImpl(systemBackdropTarget) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.isystembackdropcontrollerwithtargets.setsystembackdropconfiguration) + fileprivate func setSystemBackdropConfiguration(_ configuration: SystemBackdropConfiguration!) throws { + try _default.SetSystemBackdropConfigurationImpl(configuration) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.isystembackdropcontrollerwithtargets.state) + fileprivate var state : SystemBackdropState { + get { try! _default.get_StateImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.isystembackdropcontrollerwithtargets.statechanged) + fileprivate lazy var stateChanged : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_StateChangedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_StateChangedImpl($0) + } + ) + }() + + private lazy var _IClosable: __ABI_Windows_Foundation.IClosable! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.isystembackdropcontrollerwithtargets.close) + fileprivate func close() throws { + try _IClosable.CloseImpl() + } + + private lazy var _ISystemBackdropController: __ABI_Microsoft_UI_Composition_SystemBackdrops.ISystemBackdropController! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.isystembackdropcontrollerwithtargets.settarget) + fileprivate func setTarget(_ windowId: WinAppSDK.WindowId, _ desktopWindowTarget: UWP.CompositionTarget!) throws -> Bool { + try _ISystemBackdropController.SetTargetWithWindowIdImpl(windowId, desktopWindowTarget) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.isystembackdropcontrollerwithtargets.settarget) + fileprivate func setTarget(_ coreWindow: UWP.CoreWindow!, _ compositionTarget: UWP.CompositionTarget!) throws -> Bool { + try _ISystemBackdropController.SetTargetWithCoreWindowImpl(coreWindow, compositionTarget) + } + + } + +} diff --git a/Sources/WinAppSDK/Microsoft.UI.Composition.SystemBackdrops.swift b/Sources/WinAppSDK/Microsoft.UI.Composition.SystemBackdrops.swift new file mode 100644 index 0000000..9d85c4f --- /dev/null +++ b/Sources/WinAppSDK/Microsoft.UI.Composition.SystemBackdrops.swift @@ -0,0 +1,522 @@ +// WARNING: Please don't edit this file. It was generated by Swift/WinRT v0.0.1 +// swiftlint:disable all +import Foundation +@_spi(WinRTInternal) @_spi(WinRTImplements) import UWP +@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation +import CWinRT + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.desktopacrylickind) +public typealias DesktopAcrylicKind = __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CDesktopAcrylicKind +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.micakind) +public typealias MicaKind = __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CMicaKind +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.systembackdropstate) +public typealias SystemBackdropState = __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CSystemBackdropState +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.systembackdroptheme) +public typealias SystemBackdropTheme = __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CSystemBackdropTheme +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.desktopacryliccontroller) +public final class DesktopAcrylicController : WinRTClass, WindowsFoundation.IClosable, ISystemBackdropController, ISystemBackdropControllerWithTargets, WinAppSDK.IClosableNotifier { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition_SystemBackdrops.IDesktopAcrylicController + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CIDesktopAcrylicController + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CIDesktopAcrylicController>?) -> DesktopAcrylicController? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + override public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + return super.queryInterface(iid) + } + override public init() { + super.init(try! RoActivateInstance(HString("Microsoft.UI.Composition.SystemBackdrops.DesktopAcrylicController"))) + } + + private static let _IDesktopAcrylicControllerStatics: __ABI_Microsoft_UI_Composition_SystemBackdrops.IDesktopAcrylicControllerStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Composition.SystemBackdrops.DesktopAcrylicController")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.desktopacryliccontroller.issupported) + public static func isSupported() -> Bool { + return try! _IDesktopAcrylicControllerStatics.IsSupportedImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.desktopacryliccontroller.fallbackcolor) + public var fallbackColor : UWP.Color { + get { try! _default.get_FallbackColorImpl() } + set { try! _default.put_FallbackColorImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.desktopacryliccontroller.luminosityopacity) + public var luminosityOpacity : Float { + get { try! _default.get_LuminosityOpacityImpl() } + set { try! _default.put_LuminosityOpacityImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.desktopacryliccontroller.tintcolor) + public var tintColor : UWP.Color { + get { try! _default.get_TintColorImpl() } + set { try! _default.put_TintColorImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.desktopacryliccontroller.tintopacity) + public var tintOpacity : Float { + get { try! _default.get_TintOpacityImpl() } + set { try! _default.put_TintOpacityImpl(newValue) } + } + + private lazy var _IDesktopAcrylicController2: __ABI_Microsoft_UI_Composition_SystemBackdrops.IDesktopAcrylicController2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.desktopacryliccontroller.resetproperties) + public func resetProperties() throws { + try _IDesktopAcrylicController2.ResetPropertiesImpl() + } + + private lazy var _IDesktopAcrylicController3: __ABI_Microsoft_UI_Composition_SystemBackdrops.IDesktopAcrylicController3! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.desktopacryliccontroller.kind) + public var kind : DesktopAcrylicKind { + get { try! _IDesktopAcrylicController3.get_KindImpl() } + set { try! _IDesktopAcrylicController3.put_KindImpl(newValue) } + } + + private lazy var _IClosable: __ABI_Windows_Foundation.IClosable! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.desktopacryliccontroller.close) + public func close() throws { + try _IClosable.CloseImpl() + } + + private lazy var _ISystemBackdropController: __ABI_Microsoft_UI_Composition_SystemBackdrops.ISystemBackdropController! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.desktopacryliccontroller.settarget) + public func setTarget(_ windowId: WinAppSDK.WindowId, _ desktopWindowTarget: UWP.CompositionTarget!) throws -> Bool { + try _ISystemBackdropController.SetTargetWithWindowIdImpl(windowId, desktopWindowTarget) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.desktopacryliccontroller.settarget) + public func setTarget(_ coreWindow: UWP.CoreWindow!, _ compositionTarget: UWP.CompositionTarget!) throws -> Bool { + try _ISystemBackdropController.SetTargetWithCoreWindowImpl(coreWindow, compositionTarget) + } + + private lazy var _ISystemBackdropControllerWithTargets: __ABI_Microsoft_UI_Composition_SystemBackdrops.ISystemBackdropControllerWithTargets! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.desktopacryliccontroller.addsystembackdroptarget) + public func addSystemBackdropTarget(_ systemBackdropTarget: WinAppSDK.AnyICompositionSupportsSystemBackdrop!) throws -> Bool { + try _ISystemBackdropControllerWithTargets.AddSystemBackdropTargetImpl(systemBackdropTarget) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.desktopacryliccontroller.removeallsystembackdroptargets) + public func removeAllSystemBackdropTargets() throws { + try _ISystemBackdropControllerWithTargets.RemoveAllSystemBackdropTargetsImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.desktopacryliccontroller.removesystembackdroptarget) + public func removeSystemBackdropTarget(_ systemBackdropTarget: WinAppSDK.AnyICompositionSupportsSystemBackdrop!) throws -> Bool { + try _ISystemBackdropControllerWithTargets.RemoveSystemBackdropTargetImpl(systemBackdropTarget) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.desktopacryliccontroller.setsystembackdropconfiguration) + public func setSystemBackdropConfiguration(_ configuration: SystemBackdropConfiguration!) throws { + try _ISystemBackdropControllerWithTargets.SetSystemBackdropConfigurationImpl(configuration) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.desktopacryliccontroller.state) + public var state : SystemBackdropState { + get { try! _ISystemBackdropControllerWithTargets.get_StateImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.desktopacryliccontroller.statechanged) + public lazy var stateChanged : Event> = { + .init( + add: { [weak self] in + guard let this = self?._ISystemBackdropControllerWithTargets else { return .init() } + return try! this.add_StateChangedImpl($0) + }, + remove: { [weak self] in + try? self?._ISystemBackdropControllerWithTargets.remove_StateChangedImpl($0) + } + ) + }() + + private lazy var _IClosableNotifier: __ABI_Microsoft_UI.IClosableNotifier! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.desktopacryliccontroller.isclosed) + public var isClosed : Bool { + get { try! _IClosableNotifier.get_IsClosedImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.desktopacryliccontroller.closed) + public lazy var closed : Event = { + .init( + add: { [weak self] in + guard let this = self?._IClosableNotifier else { return .init() } + return try! this.add_ClosedImpl($0) + }, + remove: { [weak self] in + try? self?._IClosableNotifier.remove_ClosedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.desktopacryliccontroller.frameworkclosed) + public lazy var frameworkClosed : Event = { + .init( + add: { [weak self] in + guard let this = self?._IClosableNotifier else { return .init() } + return try! this.add_FrameworkClosedImpl($0) + }, + remove: { [weak self] in + try? self?._IClosableNotifier.remove_FrameworkClosedImpl($0) + } + ) + }() + + deinit { + _default = nil + _IDesktopAcrylicController2 = nil + _IDesktopAcrylicController3 = nil + _IClosable = nil + _ISystemBackdropController = nil + _ISystemBackdropControllerWithTargets = nil + _IClosableNotifier = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.micacontroller) +public final class MicaController : WinRTClass, WindowsFoundation.IClosable, ISystemBackdropController, ISystemBackdropControllerWithTargets, WinAppSDK.IClosableNotifier { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition_SystemBackdrops.IMicaController + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CIMicaController + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CIMicaController>?) -> MicaController? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + override public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + return super.queryInterface(iid) + } + override public init() { + super.init(try! RoActivateInstance(HString("Microsoft.UI.Composition.SystemBackdrops.MicaController"))) + } + + private static let _IMicaControllerStatics: __ABI_Microsoft_UI_Composition_SystemBackdrops.IMicaControllerStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Composition.SystemBackdrops.MicaController")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.micacontroller.issupported) + public static func isSupported() -> Bool { + return try! _IMicaControllerStatics.IsSupportedImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.micacontroller.fallbackcolor) + public var fallbackColor : UWP.Color { + get { try! _default.get_FallbackColorImpl() } + set { try! _default.put_FallbackColorImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.micacontroller.luminosityopacity) + public var luminosityOpacity : Float { + get { try! _default.get_LuminosityOpacityImpl() } + set { try! _default.put_LuminosityOpacityImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.micacontroller.tintcolor) + public var tintColor : UWP.Color { + get { try! _default.get_TintColorImpl() } + set { try! _default.put_TintColorImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.micacontroller.tintopacity) + public var tintOpacity : Float { + get { try! _default.get_TintOpacityImpl() } + set { try! _default.put_TintOpacityImpl(newValue) } + } + + private lazy var _IMicaController2: __ABI_Microsoft_UI_Composition_SystemBackdrops.IMicaController2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.micacontroller.resetproperties) + public func resetProperties() throws { + try _IMicaController2.ResetPropertiesImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.micacontroller.kind) + public var kind : MicaKind { + get { try! _IMicaController2.get_KindImpl() } + set { try! _IMicaController2.put_KindImpl(newValue) } + } + + private lazy var _IClosable: __ABI_Windows_Foundation.IClosable! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.micacontroller.close) + public func close() throws { + try _IClosable.CloseImpl() + } + + private lazy var _ISystemBackdropController: __ABI_Microsoft_UI_Composition_SystemBackdrops.ISystemBackdropController! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.micacontroller.settarget) + public func setTarget(_ windowId: WinAppSDK.WindowId, _ desktopWindowTarget: UWP.CompositionTarget!) throws -> Bool { + try _ISystemBackdropController.SetTargetWithWindowIdImpl(windowId, desktopWindowTarget) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.micacontroller.settarget) + public func setTarget(_ coreWindow: UWP.CoreWindow!, _ compositionTarget: UWP.CompositionTarget!) throws -> Bool { + try _ISystemBackdropController.SetTargetWithCoreWindowImpl(coreWindow, compositionTarget) + } + + private lazy var _ISystemBackdropControllerWithTargets: __ABI_Microsoft_UI_Composition_SystemBackdrops.ISystemBackdropControllerWithTargets! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.micacontroller.addsystembackdroptarget) + public func addSystemBackdropTarget(_ systemBackdropTarget: WinAppSDK.AnyICompositionSupportsSystemBackdrop!) throws -> Bool { + try _ISystemBackdropControllerWithTargets.AddSystemBackdropTargetImpl(systemBackdropTarget) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.micacontroller.removeallsystembackdroptargets) + public func removeAllSystemBackdropTargets() throws { + try _ISystemBackdropControllerWithTargets.RemoveAllSystemBackdropTargetsImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.micacontroller.removesystembackdroptarget) + public func removeSystemBackdropTarget(_ systemBackdropTarget: WinAppSDK.AnyICompositionSupportsSystemBackdrop!) throws -> Bool { + try _ISystemBackdropControllerWithTargets.RemoveSystemBackdropTargetImpl(systemBackdropTarget) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.micacontroller.setsystembackdropconfiguration) + public func setSystemBackdropConfiguration(_ configuration: SystemBackdropConfiguration!) throws { + try _ISystemBackdropControllerWithTargets.SetSystemBackdropConfigurationImpl(configuration) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.micacontroller.state) + public var state : SystemBackdropState { + get { try! _ISystemBackdropControllerWithTargets.get_StateImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.micacontroller.statechanged) + public lazy var stateChanged : Event> = { + .init( + add: { [weak self] in + guard let this = self?._ISystemBackdropControllerWithTargets else { return .init() } + return try! this.add_StateChangedImpl($0) + }, + remove: { [weak self] in + try? self?._ISystemBackdropControllerWithTargets.remove_StateChangedImpl($0) + } + ) + }() + + private lazy var _IClosableNotifier: __ABI_Microsoft_UI.IClosableNotifier! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.micacontroller.isclosed) + public var isClosed : Bool { + get { try! _IClosableNotifier.get_IsClosedImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.micacontroller.closed) + public lazy var closed : Event = { + .init( + add: { [weak self] in + guard let this = self?._IClosableNotifier else { return .init() } + return try! this.add_ClosedImpl($0) + }, + remove: { [weak self] in + try? self?._IClosableNotifier.remove_ClosedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.micacontroller.frameworkclosed) + public lazy var frameworkClosed : Event = { + .init( + add: { [weak self] in + guard let this = self?._IClosableNotifier else { return .init() } + return try! this.add_FrameworkClosedImpl($0) + }, + remove: { [weak self] in + try? self?._IClosableNotifier.remove_FrameworkClosedImpl($0) + } + ) + }() + + deinit { + _default = nil + _IMicaController2 = nil + _IClosable = nil + _ISystemBackdropController = nil + _ISystemBackdropControllerWithTargets = nil + _IClosableNotifier = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.systembackdropconfiguration) +public final class SystemBackdropConfiguration : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition_SystemBackdrops.ISystemBackdropConfiguration + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CISystemBackdropConfiguration + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CISystemBackdropConfiguration>?) -> SystemBackdropConfiguration? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + override public init() { + super.init(try! RoActivateInstance(HString("Microsoft.UI.Composition.SystemBackdrops.SystemBackdropConfiguration"))) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.systembackdropconfiguration.highcontrastbackgroundcolor) + public var highContrastBackgroundColor : UWP.Color? { + get { try! _default.get_HighContrastBackgroundColorImpl() } + set { try! _default.put_HighContrastBackgroundColorImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.systembackdropconfiguration.ishighcontrast) + public var isHighContrast : Bool { + get { try! _default.get_IsHighContrastImpl() } + set { try! _default.put_IsHighContrastImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.systembackdropconfiguration.isinputactive) + public var isInputActive : Bool { + get { try! _default.get_IsInputActiveImpl() } + set { try! _default.put_IsInputActiveImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.systembackdropconfiguration.theme) + public var theme : SystemBackdropTheme { + get { try! _default.get_ThemeImpl() } + set { try! _default.put_ThemeImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.isystembackdropcontroller) +public protocol ISystemBackdropController : WindowsFoundation.IClosable { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.isystembackdropcontroller.settarget) + func setTarget(_ windowId: WinAppSDK.WindowId, _ desktopWindowTarget: UWP.CompositionTarget!) throws -> Bool + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.isystembackdropcontroller.settarget) + func setTarget(_ coreWindow: UWP.CoreWindow!, _ compositionTarget: UWP.CompositionTarget!) throws -> Bool +} + +extension ISystemBackdropController { + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + switch iid { + case __ABI_Microsoft_UI_Composition_SystemBackdrops.ISystemBackdropControllerWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Composition_SystemBackdrops.ISystemBackdropControllerWrapper(self) + return wrapper!.queryInterface(iid) + case __ABI_Windows_Foundation.IClosableWrapper.IID: + let wrapper = __ABI_Windows_Foundation.IClosableWrapper(self) + return wrapper!.queryInterface(iid) + default: return nil + } + } +} +public typealias AnyISystemBackdropController = any ISystemBackdropController + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.isystembackdropcontrollerwithtargets) +public protocol ISystemBackdropControllerWithTargets : WindowsFoundation.IClosable, ISystemBackdropController { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.isystembackdropcontrollerwithtargets.addsystembackdroptarget) + func addSystemBackdropTarget(_ systemBackdropTarget: WinAppSDK.AnyICompositionSupportsSystemBackdrop!) throws -> Bool + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.isystembackdropcontrollerwithtargets.removeallsystembackdroptargets) + func removeAllSystemBackdropTargets() throws + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.isystembackdropcontrollerwithtargets.removesystembackdroptarget) + func removeSystemBackdropTarget(_ systemBackdropTarget: WinAppSDK.AnyICompositionSupportsSystemBackdrop!) throws -> Bool + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.isystembackdropcontrollerwithtargets.setsystembackdropconfiguration) + func setSystemBackdropConfiguration(_ configuration: WinAppSDK.SystemBackdropConfiguration!) throws + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.isystembackdropcontrollerwithtargets.state) + var state: WinAppSDK.SystemBackdropState { get } + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.systembackdrops.isystembackdropcontrollerwithtargets.statechanged) + var stateChanged: Event> { get } +} + +extension ISystemBackdropControllerWithTargets { + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + switch iid { + case __ABI_Microsoft_UI_Composition_SystemBackdrops.ISystemBackdropControllerWithTargetsWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Composition_SystemBackdrops.ISystemBackdropControllerWithTargetsWrapper(self) + return wrapper!.queryInterface(iid) + case __ABI_Windows_Foundation.IClosableWrapper.IID: + let wrapper = __ABI_Windows_Foundation.IClosableWrapper(self) + return wrapper!.queryInterface(iid) + case __ABI_Microsoft_UI_Composition_SystemBackdrops.ISystemBackdropControllerWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Composition_SystemBackdrops.ISystemBackdropControllerWrapper(self) + return wrapper!.queryInterface(iid) + default: return nil + } + } +} +public typealias AnyISystemBackdropControllerWithTargets = any ISystemBackdropControllerWithTargets + +extension WinAppSDK.DesktopAcrylicKind { + public static var `default` : WinAppSDK.DesktopAcrylicKind { + __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CDesktopAcrylicKind_Default + } + public static var base : WinAppSDK.DesktopAcrylicKind { + __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CDesktopAcrylicKind_Base + } + public static var thin : WinAppSDK.DesktopAcrylicKind { + __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CDesktopAcrylicKind_Thin + } +} +extension WinAppSDK.DesktopAcrylicKind: @retroactive Hashable, @retroactive Codable {} + +extension WinAppSDK.MicaKind { + public static var base : WinAppSDK.MicaKind { + __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CMicaKind_Base + } + public static var baseAlt : WinAppSDK.MicaKind { + __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CMicaKind_BaseAlt + } +} +extension WinAppSDK.MicaKind: @retroactive Hashable, @retroactive Codable {} + +extension WinAppSDK.SystemBackdropState { + public static var active : WinAppSDK.SystemBackdropState { + __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CSystemBackdropState_Active + } + public static var fallback : WinAppSDK.SystemBackdropState { + __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CSystemBackdropState_Fallback + } + public static var highContrast : WinAppSDK.SystemBackdropState { + __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CSystemBackdropState_HighContrast + } +} +extension WinAppSDK.SystemBackdropState: @retroactive Hashable, @retroactive Codable {} + +extension WinAppSDK.SystemBackdropTheme { + public static var `default` : WinAppSDK.SystemBackdropTheme { + __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CSystemBackdropTheme_Default + } + public static var light : WinAppSDK.SystemBackdropTheme { + __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CSystemBackdropTheme_Light + } + public static var dark : WinAppSDK.SystemBackdropTheme { + __x_ABI_CMicrosoft_CUI_CComposition_CSystemBackdrops_CSystemBackdropTheme_Dark + } +} +extension WinAppSDK.SystemBackdropTheme: @retroactive Hashable, @retroactive Codable {} + diff --git a/Sources/WinAppSDK/Microsoft.UI.Composition.swift b/Sources/WinAppSDK/Microsoft.UI.Composition.swift new file mode 100644 index 0000000..5054e0f --- /dev/null +++ b/Sources/WinAppSDK/Microsoft.UI.Composition.swift @@ -0,0 +1,7111 @@ +// WARNING: Please don't edit this file. It was generated by Swift/WinRT v0.0.1 +// swiftlint:disable all +import Foundation +@_spi(WinRTInternal) @_spi(WinRTImplements) import UWP +@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation +import CWinRT + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.animationcontrollerprogressbehavior) +public typealias AnimationControllerProgressBehavior = __x_ABI_CMicrosoft_CUI_CComposition_CAnimationControllerProgressBehavior +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.animationdelaybehavior) +public typealias AnimationDelayBehavior = __x_ABI_CMicrosoft_CUI_CComposition_CAnimationDelayBehavior +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.animationdirection) +public typealias AnimationDirection = __x_ABI_CMicrosoft_CUI_CComposition_CAnimationDirection +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.animationiterationbehavior) +public typealias AnimationIterationBehavior = __x_ABI_CMicrosoft_CUI_CComposition_CAnimationIterationBehavior +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.animationpropertyaccessmode) +public typealias AnimationPropertyAccessMode = __x_ABI_CMicrosoft_CUI_CComposition_CAnimationPropertyAccessMode +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.animationstopbehavior) +public typealias AnimationStopBehavior = __x_ABI_CMicrosoft_CUI_CComposition_CAnimationStopBehavior +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionbackfacevisibility) +public typealias CompositionBackfaceVisibility = __x_ABI_CMicrosoft_CUI_CComposition_CCompositionBackfaceVisibility +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionbatchtypes) +public typealias CompositionBatchTypes = __x_ABI_CMicrosoft_CUI_CComposition_CCompositionBatchTypes +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionbitmapinterpolationmode) +public typealias CompositionBitmapInterpolationMode = __x_ABI_CMicrosoft_CUI_CComposition_CCompositionBitmapInterpolationMode +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionbordermode) +public typealias CompositionBorderMode = __x_ABI_CMicrosoft_CUI_CComposition_CCompositionBorderMode +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioncolorspace) +public typealias CompositionColorSpace = __x_ABI_CMicrosoft_CUI_CComposition_CCompositionColorSpace +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioncompositemode) +public typealias CompositionCompositeMode = __x_ABI_CMicrosoft_CUI_CComposition_CCompositionCompositeMode +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositiondropshadowsourcepolicy) +public typealias CompositionDropShadowSourcePolicy = __x_ABI_CMicrosoft_CUI_CComposition_CCompositionDropShadowSourcePolicy +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioneasingfunctionmode) +public typealias CompositionEasingFunctionMode = __x_ABI_CMicrosoft_CUI_CComposition_CCompositionEasingFunctionMode +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioneffectfactoryloadstatus) +public typealias CompositionEffectFactoryLoadStatus = __x_ABI_CMicrosoft_CUI_CComposition_CCompositionEffectFactoryLoadStatus +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositiongetvaluestatus) +public typealias CompositionGetValueStatus = __x_ABI_CMicrosoft_CUI_CComposition_CCompositionGetValueStatus +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositiongradientextendmode) +public typealias CompositionGradientExtendMode = __x_ABI_CMicrosoft_CUI_CComposition_CCompositionGradientExtendMode +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionmappingmode) +public typealias CompositionMappingMode = __x_ABI_CMicrosoft_CUI_CComposition_CCompositionMappingMode +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionstretch) +public typealias CompositionStretch = __x_ABI_CMicrosoft_CUI_CComposition_CCompositionStretch +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionstrokecap) +public typealias CompositionStrokeCap = __x_ABI_CMicrosoft_CUI_CComposition_CCompositionStrokeCap +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionstrokelinejoin) +public typealias CompositionStrokeLineJoin = __x_ABI_CMicrosoft_CUI_CComposition_CCompositionStrokeLineJoin +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.ambientlight) +public final class AmbientLight : WinAppSDK.CompositionLight { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.IAmbientLight + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CIAmbientLight + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CIAmbientLight>?) -> AmbientLight? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.ambientlight.color) + public var color : UWP.Color { + get { try! _default.get_ColorImpl() } + set { try! _default.put_ColorImpl(newValue) } + } + + private lazy var _IAmbientLight2: __ABI_Microsoft_UI_Composition.IAmbientLight2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.ambientlight.intensity) + public var intensity : Float { + get { try! _IAmbientLight2.get_IntensityImpl() } + set { try! _IAmbientLight2.put_IntensityImpl(newValue) } + } + + deinit { + _default = nil + _IAmbientLight2 = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.animationcontroller) +public final class AnimationController : WinAppSDK.CompositionObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.IAnimationController + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CIAnimationController + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CIAnimationController>?) -> AnimationController? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + private static let _IAnimationControllerStatics: __ABI_Microsoft_UI_Composition.IAnimationControllerStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Composition.AnimationController")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.animationcontroller.maxplaybackrate) + public static var maxPlaybackRate : Float { + get { try! _IAnimationControllerStatics.get_MaxPlaybackRateImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.animationcontroller.minplaybackrate) + public static var minPlaybackRate : Float { + get { try! _IAnimationControllerStatics.get_MinPlaybackRateImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.animationcontroller.pause) + public func pause() throws { + try _default.PauseImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.animationcontroller.resume) + public func resume() throws { + try _default.ResumeImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.animationcontroller.playbackrate) + public var playbackRate : Float { + get { try! _default.get_PlaybackRateImpl() } + set { try! _default.put_PlaybackRateImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.animationcontroller.progress) + public var progress : Float { + get { try! _default.get_ProgressImpl() } + set { try! _default.put_ProgressImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.animationcontroller.progressbehavior) + public var progressBehavior : AnimationControllerProgressBehavior { + get { try! _default.get_ProgressBehaviorImpl() } + set { try! _default.put_ProgressBehaviorImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.animationpropertyinfo) +public final class AnimationPropertyInfo : WinAppSDK.CompositionObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.IAnimationPropertyInfo + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CIAnimationPropertyInfo + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CIAnimationPropertyInfo>?) -> AnimationPropertyInfo? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.animationpropertyinfo.accessmode) + public var accessMode : AnimationPropertyAccessMode { + get { try! _default.get_AccessModeImpl() } + set { try! _default.put_AccessModeImpl(newValue) } + } + + private lazy var _IAnimationPropertyInfo2: __ABI_Microsoft_UI_Composition.IAnimationPropertyInfo2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.animationpropertyinfo.getresolvedcompositionobject) + public func getResolvedCompositionObject() throws -> CompositionObject! { + try _IAnimationPropertyInfo2.GetResolvedCompositionObjectImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.animationpropertyinfo.getresolvedcompositionobjectproperty) + public func getResolvedCompositionObjectProperty() throws -> String { + try _IAnimationPropertyInfo2.GetResolvedCompositionObjectPropertyImpl() + } + + deinit { + _default = nil + _IAnimationPropertyInfo2 = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.backeasingfunction) +public final class BackEasingFunction : WinAppSDK.CompositionEasingFunction { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.IBackEasingFunction + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CIBackEasingFunction + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CIBackEasingFunction>?) -> BackEasingFunction? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.backeasingfunction.amplitude) + public var amplitude : Float { + get { try! _default.get_AmplitudeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.backeasingfunction.mode) + public var mode : CompositionEasingFunctionMode { + get { try! _default.get_ModeImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.booleankeyframeanimation) +public final class BooleanKeyFrameAnimation : WinAppSDK.KeyFrameAnimation { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.IBooleanKeyFrameAnimation + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CIBooleanKeyFrameAnimation + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CIBooleanKeyFrameAnimation>?) -> BooleanKeyFrameAnimation? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.booleankeyframeanimation.insertkeyframe) + public func insertKeyFrame(_ normalizedProgressKey: Float, _ value: Bool) throws { + try _default.InsertKeyFrameImpl(normalizedProgressKey, value) + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.bounceeasingfunction) +public final class BounceEasingFunction : WinAppSDK.CompositionEasingFunction { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.IBounceEasingFunction + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CIBounceEasingFunction + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CIBounceEasingFunction>?) -> BounceEasingFunction? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.bounceeasingfunction.bounces) + public var bounces : Int32 { + get { try! _default.get_BouncesImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.bounceeasingfunction.bounciness) + public var bounciness : Float { + get { try! _default.get_BouncinessImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.bounceeasingfunction.mode) + public var mode : CompositionEasingFunctionMode { + get { try! _default.get_ModeImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.bouncescalarnaturalmotionanimation) +public final class BounceScalarNaturalMotionAnimation : WinAppSDK.ScalarNaturalMotionAnimation { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.IBounceScalarNaturalMotionAnimation + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CIBounceScalarNaturalMotionAnimation + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CIBounceScalarNaturalMotionAnimation>?) -> BounceScalarNaturalMotionAnimation? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.bouncescalarnaturalmotionanimation.acceleration) + public var acceleration : Float { + get { try! _default.get_AccelerationImpl() } + set { try! _default.put_AccelerationImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.bouncescalarnaturalmotionanimation.restitution) + public var restitution : Float { + get { try! _default.get_RestitutionImpl() } + set { try! _default.put_RestitutionImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.bouncevector2naturalmotionanimation) +public final class BounceVector2NaturalMotionAnimation : WinAppSDK.Vector2NaturalMotionAnimation { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.IBounceVector2NaturalMotionAnimation + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CIBounceVector2NaturalMotionAnimation + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CIBounceVector2NaturalMotionAnimation>?) -> BounceVector2NaturalMotionAnimation? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.bouncevector2naturalmotionanimation.acceleration) + public var acceleration : Float { + get { try! _default.get_AccelerationImpl() } + set { try! _default.put_AccelerationImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.bouncevector2naturalmotionanimation.restitution) + public var restitution : Float { + get { try! _default.get_RestitutionImpl() } + set { try! _default.put_RestitutionImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.bouncevector3naturalmotionanimation) +public final class BounceVector3NaturalMotionAnimation : WinAppSDK.Vector3NaturalMotionAnimation { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.IBounceVector3NaturalMotionAnimation + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CIBounceVector3NaturalMotionAnimation + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CIBounceVector3NaturalMotionAnimation>?) -> BounceVector3NaturalMotionAnimation? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.bouncevector3naturalmotionanimation.acceleration) + public var acceleration : Float { + get { try! _default.get_AccelerationImpl() } + set { try! _default.put_AccelerationImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.bouncevector3naturalmotionanimation.restitution) + public var restitution : Float { + get { try! _default.get_RestitutionImpl() } + set { try! _default.put_RestitutionImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.circleeasingfunction) +public final class CircleEasingFunction : WinAppSDK.CompositionEasingFunction { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICircleEasingFunction + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICircleEasingFunction + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CICircleEasingFunction>?) -> CircleEasingFunction? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.circleeasingfunction.mode) + public var mode : CompositionEasingFunctionMode { + get { try! _default.get_ModeImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.colorkeyframeanimation) +public final class ColorKeyFrameAnimation : WinAppSDK.KeyFrameAnimation { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.IColorKeyFrameAnimation + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CIColorKeyFrameAnimation + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CIColorKeyFrameAnimation>?) -> ColorKeyFrameAnimation? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.colorkeyframeanimation.insertkeyframe) + public func insertKeyFrame(_ normalizedProgressKey: Float, _ value: UWP.Color) throws { + try _default.InsertKeyFrameImpl(normalizedProgressKey, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.colorkeyframeanimation.insertkeyframe) + public func insertKeyFrame(_ normalizedProgressKey: Float, _ value: UWP.Color, _ easingFunction: CompositionEasingFunction!) throws { + try _default.InsertKeyFrameWithEasingFunctionImpl(normalizedProgressKey, value, easingFunction) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.colorkeyframeanimation.interpolationcolorspace) + public var interpolationColorSpace : CompositionColorSpace { + get { try! _default.get_InterpolationColorSpaceImpl() } + set { try! _default.put_InterpolationColorSpaceImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionanimation) +open class CompositionAnimation : WinAppSDK.CompositionObject, ICompositionAnimationBase { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionAnimation + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionAnimation + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override open func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CICompositionAnimation>?) -> CompositionAnimation? { + guard let abi = abi else { return nil } + return UnsealedWinRTClassWrapper.unwrapFrom(base: abi) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + @_spi(WinRTInternal) + override public init( + composing: Composable.Type, + _ createCallback: (UnsealedWinRTClassWrapper?, inout WindowsFoundation.IInspectable?) -> Composable.Default.SwiftABI) + { + super.init(composing: composing, createCallback) + } + override open func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + return super.queryInterface(iid) + } + private static var _ICompositionAnimationFactory : __ABI_Microsoft_UI_Composition.ICompositionAnimationFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Composition.CompositionAnimation")) + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionanimation.clearallparameters) + public func clearAllParameters() throws { + try _default.ClearAllParametersImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionanimation.clearparameter) + public func clearParameter(_ key: String) throws { + try _default.ClearParameterImpl(key) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionanimation.setcolorparameter) + public func setColorParameter(_ key: String, _ value: UWP.Color) throws { + try _default.SetColorParameterImpl(key, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionanimation.setmatrix3x2parameter) + public func setMatrix3x2Parameter(_ key: String, _ value: WindowsFoundation.Matrix3x2) throws { + try _default.SetMatrix3x2ParameterImpl(key, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionanimation.setmatrix4x4parameter) + public func setMatrix4x4Parameter(_ key: String, _ value: WindowsFoundation.Matrix4x4) throws { + try _default.SetMatrix4x4ParameterImpl(key, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionanimation.setquaternionparameter) + public func setQuaternionParameter(_ key: String, _ value: WindowsFoundation.Quaternion) throws { + try _default.SetQuaternionParameterImpl(key, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionanimation.setreferenceparameter) + public func setReferenceParameter(_ key: String, _ compositionObject: CompositionObject!) throws { + try _default.SetReferenceParameterImpl(key, compositionObject) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionanimation.setscalarparameter) + public func setScalarParameter(_ key: String, _ value: Float) throws { + try _default.SetScalarParameterImpl(key, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionanimation.setvector2parameter) + public func setVector2Parameter(_ key: String, _ value: WindowsFoundation.Vector2) throws { + try _default.SetVector2ParameterImpl(key, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionanimation.setvector3parameter) + public func setVector3Parameter(_ key: String, _ value: WindowsFoundation.Vector3) throws { + try _default.SetVector3ParameterImpl(key, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionanimation.setvector4parameter) + public func setVector4Parameter(_ key: String, _ value: WindowsFoundation.Vector4) throws { + try _default.SetVector4ParameterImpl(key, value) + } + + private lazy var _ICompositionAnimation2: __ABI_Microsoft_UI_Composition.ICompositionAnimation2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionanimation.setbooleanparameter) + public func setBooleanParameter(_ key: String, _ value: Bool) throws { + try _ICompositionAnimation2.SetBooleanParameterImpl(key, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionanimation.target) + public var target : String { + get { try! _ICompositionAnimation2.get_TargetImpl() } + set { try! _ICompositionAnimation2.put_TargetImpl(newValue) } + } + + private lazy var _ICompositionAnimation3: __ABI_Microsoft_UI_Composition.ICompositionAnimation3! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionanimation.initialvalueexpressions) + public var initialValueExpressions : InitialValueExpressionCollection! { + get { try! _ICompositionAnimation3.get_InitialValueExpressionsImpl() } + } + + private lazy var _ICompositionAnimation4: __ABI_Microsoft_UI_Composition.ICompositionAnimation4! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionanimation.setexpressionreferenceparameter) + public func setExpressionReferenceParameter(_ parameterName: String, _ source: AnyIAnimationObject!) throws { + try _ICompositionAnimation4.SetExpressionReferenceParameterImpl(parameterName, source) + } + + private lazy var _ICompositionAnimationBase: __ABI_Microsoft_UI_Composition.ICompositionAnimationBase! = getInterfaceForCaching() + internal enum ICompositionAnimation : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = CompositionAnimation + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionAnimation + internal typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionAnimation + } + } + internal typealias Composable = ICompositionAnimation + deinit { + _default = nil + _ICompositionAnimation2 = nil + _ICompositionAnimation3 = nil + _ICompositionAnimation4 = nil + _ICompositionAnimationBase = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionanimationgroup) +public final class CompositionAnimationGroup : WinAppSDK.CompositionObject, IIterable, ICompositionAnimationBase { + public typealias T = CompositionAnimation? + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionAnimationGroup + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionAnimationGroup + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CICompositionAnimationGroup>?) -> CompositionAnimationGroup? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + override public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + return super.queryInterface(iid) + } + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionanimationgroup.add) + public func add(_ value: CompositionAnimation!) throws { + try _default.AddImpl(value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionanimationgroup.remove) + public func remove(_ value: CompositionAnimation!) throws { + try _default.RemoveImpl(value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionanimationgroup.removeall) + public func removeAll() throws { + try _default.RemoveAllImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionanimationgroup.count) + public var count : Int32 { + get { try! _default.get_CountImpl() } + } + + private lazy var _IIterable: IIterableCompositionAnimation! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionanimationgroup.first) + public func first() -> WindowsFoundation.AnyIIterator? { + try! _IIterable.FirstImpl() + } + + private lazy var _ICompositionAnimationBase: __ABI_Microsoft_UI_Composition.ICompositionAnimationBase! = getInterfaceForCaching() + deinit { + _default = nil + _IIterable = nil + _ICompositionAnimationBase = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionapiinformation) +public final class CompositionApiInformation { + private static let _ICompositionApiInformationStatics: __ABI_Microsoft_UI_Composition.ICompositionApiInformationStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Composition.CompositionApiInformation")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionapiinformation.apiversion) + public static var apiVersion : UInt64 { + get { try! _ICompositionApiInformationStatics.get_ApiVersionImpl() } + } + +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionbackdropbrush) +public final class CompositionBackdropBrush : WinAppSDK.CompositionBrush { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionBackdropBrush + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionBackdropBrush + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CICompositionBackdropBrush>?) -> CompositionBackdropBrush? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionbatchcompletedeventargs) +public final class CompositionBatchCompletedEventArgs : WinAppSDK.CompositionObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionBatchCompletedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionBatchCompletedEventArgs + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CICompositionBatchCompletedEventArgs>?) -> CompositionBatchCompletedEventArgs? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionbrush) +open class CompositionBrush : WinAppSDK.CompositionObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionBrush + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionBrush + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override open func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CICompositionBrush>?) -> CompositionBrush? { + guard let abi = abi else { return nil } + return UnsealedWinRTClassWrapper.unwrapFrom(base: abi) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + @_spi(WinRTInternal) + override public init( + composing: Composable.Type, + _ createCallback: (UnsealedWinRTClassWrapper?, inout WindowsFoundation.IInspectable?) -> Composable.Default.SwiftABI) + { + super.init(composing: composing, createCallback) + } + override open func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + return super.queryInterface(iid) + } + private static var _ICompositionBrushFactory : __ABI_Microsoft_UI_Composition.ICompositionBrushFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Composition.CompositionBrush")) + + internal enum ICompositionBrush : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = CompositionBrush + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionBrush + internal typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionBrush + } + } + internal typealias Composable = ICompositionBrush + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioncapabilities) +public final class CompositionCapabilities : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionCapabilities + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionCapabilities + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CICompositionCapabilities>?) -> CompositionCapabilities? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + override public init() { + super.init(try! RoActivateInstance(HString("Microsoft.UI.Composition.CompositionCapabilities"))) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioncapabilities.areeffectssupported) + public func areEffectsSupported() throws -> Bool { + try _default.AreEffectsSupportedImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioncapabilities.areeffectsfast) + public func areEffectsFast() throws -> Bool { + try _default.AreEffectsFastImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioncapabilities.changed) + public lazy var changed : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ChangedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ChangedImpl($0) + } + ) + }() + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionclip) +open class CompositionClip : WinAppSDK.CompositionObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionClip + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionClip + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override open func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CICompositionClip>?) -> CompositionClip? { + guard let abi = abi else { return nil } + return UnsealedWinRTClassWrapper.unwrapFrom(base: abi) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + @_spi(WinRTInternal) + override public init( + composing: Composable.Type, + _ createCallback: (UnsealedWinRTClassWrapper?, inout WindowsFoundation.IInspectable?) -> Composable.Default.SwiftABI) + { + super.init(composing: composing, createCallback) + } + override open func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + return super.queryInterface(iid) + } + private static var _ICompositionClipFactory : __ABI_Microsoft_UI_Composition.ICompositionClipFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Composition.CompositionClip")) + + private lazy var _ICompositionClip2: __ABI_Microsoft_UI_Composition.ICompositionClip2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionclip.anchorpoint) + public var anchorPoint : WindowsFoundation.Vector2 { + get { try! _ICompositionClip2.get_AnchorPointImpl() } + set { try! _ICompositionClip2.put_AnchorPointImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionclip.centerpoint) + public var centerPoint : WindowsFoundation.Vector2 { + get { try! _ICompositionClip2.get_CenterPointImpl() } + set { try! _ICompositionClip2.put_CenterPointImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionclip.offset) + public var offset : WindowsFoundation.Vector2 { + get { try! _ICompositionClip2.get_OffsetImpl() } + set { try! _ICompositionClip2.put_OffsetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionclip.rotationangle) + public var rotationAngle : Float { + get { try! _ICompositionClip2.get_RotationAngleImpl() } + set { try! _ICompositionClip2.put_RotationAngleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionclip.rotationangleindegrees) + public var rotationAngleInDegrees : Float { + get { try! _ICompositionClip2.get_RotationAngleInDegreesImpl() } + set { try! _ICompositionClip2.put_RotationAngleInDegreesImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionclip.scale) + public var scale : WindowsFoundation.Vector2 { + get { try! _ICompositionClip2.get_ScaleImpl() } + set { try! _ICompositionClip2.put_ScaleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionclip.transformmatrix) + public var transformMatrix : WindowsFoundation.Matrix3x2 { + get { try! _ICompositionClip2.get_TransformMatrixImpl() } + set { try! _ICompositionClip2.put_TransformMatrixImpl(newValue) } + } + + internal enum ICompositionClip : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = CompositionClip + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionClip + internal typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionClip + } + } + internal typealias Composable = ICompositionClip + deinit { + _default = nil + _ICompositionClip2 = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioncolorbrush) +public final class CompositionColorBrush : WinAppSDK.CompositionBrush { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionColorBrush + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionColorBrush + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CICompositionColorBrush>?) -> CompositionColorBrush? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioncolorbrush.color) + public var color : UWP.Color { + get { try! _default.get_ColorImpl() } + set { try! _default.put_ColorImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioncolorgradientstop) +public final class CompositionColorGradientStop : WinAppSDK.CompositionObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionColorGradientStop + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionColorGradientStop + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CICompositionColorGradientStop>?) -> CompositionColorGradientStop? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioncolorgradientstop.color) + public var color : UWP.Color { + get { try! _default.get_ColorImpl() } + set { try! _default.put_ColorImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioncolorgradientstop.offset) + public var offset : Float { + get { try! _default.get_OffsetImpl() } + set { try! _default.put_OffsetImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioncolorgradientstopcollection) +public final class CompositionColorGradientStopCollection : WinRTClass, IIterable, IVector { + public typealias T = CompositionColorGradientStop? + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionColorGradientStopCollection + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionColorGradientStopCollection + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CICompositionColorGradientStopCollection>?) -> CompositionColorGradientStopCollection? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + override public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + return super.queryInterface(iid) + } + private lazy var _IIterable: IIterableCompositionColorGradientStop! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioncolorgradientstopcollection.first) + public func first() -> WindowsFoundation.AnyIIterator? { + try! _IIterable.FirstImpl() + } + + // MARK: Collection + public typealias Element = T + public var startIndex: Int { 0 } + public var endIndex: Int { Int(size) } + public func index(after i: Int) -> Int { + i+1 + } + + public func index(of: Element) -> Int? { + var index: UInt32 = 0 + let result = indexOf(of, &index) + guard result else { return nil } + return Int(index) + } + public var count: Int { Int(size) } + + + public subscript(position: Int) -> Element { + get { + getAt(UInt32(position)) + } + set(newValue) { + setAt(UInt32(position), newValue) + } + } + + public func removeLast() { + removeAtEnd() + } + + // MARK: WinRT + private lazy var _IVector: IVectorCompositionColorGradientStop! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioncolorgradientstopcollection.getat) + public func getAt(_ index: UInt32) -> CompositionColorGradientStop? { + try! _IVector.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioncolorgradientstopcollection.getview) + public func getView() -> WindowsFoundation.AnyIVectorView? { + try! _IVector.GetViewImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioncolorgradientstopcollection.indexof) + public func indexOf(_ value: CompositionColorGradientStop?, _ index: inout UInt32) -> Bool { + try! _IVector.IndexOfImpl(value, &index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioncolorgradientstopcollection.setat) + public func setAt(_ index: UInt32, _ value: CompositionColorGradientStop?) { + try! _IVector.SetAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioncolorgradientstopcollection.insertat) + public func insertAt(_ index: UInt32, _ value: CompositionColorGradientStop?) { + try! _IVector.InsertAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioncolorgradientstopcollection.removeat) + public func removeAt(_ index: UInt32) { + try! _IVector.RemoveAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioncolorgradientstopcollection.append) + public func append(_ value: CompositionColorGradientStop?) { + try! _IVector.AppendImpl(value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioncolorgradientstopcollection.removeatend) + public func removeAtEnd() { + try! _IVector.RemoveAtEndImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioncolorgradientstopcollection.clear) + public func clear() { + try! _IVector.ClearImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioncolorgradientstopcollection.size) + public var size : UInt32 { + get { try! _IVector.get_SizeImpl() } + } + + deinit { + _default = nil + _IIterable = nil + _IVector = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioncommitbatch) +public final class CompositionCommitBatch : WinAppSDK.CompositionObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionCommitBatch + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionCommitBatch + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CICompositionCommitBatch>?) -> CompositionCommitBatch? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioncommitbatch.isactive) + public var isActive : Bool { + get { try! _default.get_IsActiveImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioncommitbatch.isended) + public var isEnded : Bool { + get { try! _default.get_IsEndedImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioncommitbatch.completed) + public lazy var completed : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_CompletedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_CompletedImpl($0) + } + ) + }() + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioncontainershape) +public final class CompositionContainerShape : WinAppSDK.CompositionShape { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionContainerShape + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionContainerShape + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CICompositionContainerShape>?) -> CompositionContainerShape? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioncontainershape.shapes) + public var shapes : CompositionShapeCollection! { + get { try! _default.get_ShapesImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositiondrawingsurface) +open class CompositionDrawingSurface : WinAppSDK.CompositionObject, ICompositionSurface { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionDrawingSurface + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionDrawingSurface + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override open func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CICompositionDrawingSurface>?) -> CompositionDrawingSurface? { + guard let abi = abi else { return nil } + return UnsealedWinRTClassWrapper.unwrapFrom(base: abi) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + @_spi(WinRTInternal) + override public init( + composing: Composable.Type, + _ createCallback: (UnsealedWinRTClassWrapper?, inout WindowsFoundation.IInspectable?) -> Composable.Default.SwiftABI) + { + super.init(composing: composing, createCallback) + } + override open func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + return super.queryInterface(iid) + } + private static var _ICompositionDrawingSurfaceFactory : __ABI_Microsoft_UI_Composition.ICompositionDrawingSurfaceFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Composition.CompositionDrawingSurface")) + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositiondrawingsurface.alphamode) + public var alphaMode : WinAppSDK.DirectXAlphaMode { + get { try! _default.get_AlphaModeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositiondrawingsurface.pixelformat) + public var pixelFormat : WinAppSDK.DirectXPixelFormat { + get { try! _default.get_PixelFormatImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositiondrawingsurface.size) + public var size : WindowsFoundation.Size { + get { try! _default.get_SizeImpl() } + } + + private lazy var _ICompositionDrawingSurface2: __ABI_Microsoft_UI_Composition.ICompositionDrawingSurface2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositiondrawingsurface.resize) + public func resize(_ sizePixels: UWP.SizeInt32) throws { + try _ICompositionDrawingSurface2.ResizeImpl(sizePixels) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositiondrawingsurface.scroll) + public func scroll(_ offset: UWP.PointInt32) throws { + try _ICompositionDrawingSurface2.ScrollImpl(offset) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositiondrawingsurface.scroll) + public func scroll(_ offset: UWP.PointInt32, _ scrollRect: UWP.RectInt32) throws { + try _ICompositionDrawingSurface2.ScrollRectImpl(offset, scrollRect) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositiondrawingsurface.scrollwithclip) + public func scrollWithClip(_ offset: UWP.PointInt32, _ clipRect: UWP.RectInt32) throws { + try _ICompositionDrawingSurface2.ScrollWithClipImpl(offset, clipRect) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositiondrawingsurface.scrollwithclip) + public func scrollWithClip(_ offset: UWP.PointInt32, _ clipRect: UWP.RectInt32, _ scrollRect: UWP.RectInt32) throws { + try _ICompositionDrawingSurface2.ScrollRectWithClipImpl(offset, clipRect, scrollRect) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositiondrawingsurface.sizeint32) + public var sizeInt32 : UWP.SizeInt32 { + get { try! _ICompositionDrawingSurface2.get_SizeInt32Impl() } + } + + private lazy var _ICompositionSurface: __ABI_Microsoft_UI_Composition.ICompositionSurface! = getInterfaceForCaching() + internal enum ICompositionDrawingSurface : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = CompositionDrawingSurface + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionDrawingSurface + internal typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionDrawingSurface + } + } + internal typealias Composable = ICompositionDrawingSurface + deinit { + _default = nil + _ICompositionDrawingSurface2 = nil + _ICompositionSurface = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioneasingfunction) +open class CompositionEasingFunction : WinAppSDK.CompositionObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionEasingFunction + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionEasingFunction + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override open func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CICompositionEasingFunction>?) -> CompositionEasingFunction? { + guard let abi = abi else { return nil } + return UnsealedWinRTClassWrapper.unwrapFrom(base: abi) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + @_spi(WinRTInternal) + override public init( + composing: Composable.Type, + _ createCallback: (UnsealedWinRTClassWrapper?, inout WindowsFoundation.IInspectable?) -> Composable.Default.SwiftABI) + { + super.init(composing: composing, createCallback) + } + override open func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + return super.queryInterface(iid) + } + private static var _ICompositionEasingFunctionFactory : __ABI_Microsoft_UI_Composition.ICompositionEasingFunctionFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Composition.CompositionEasingFunction")) + + private static let _ICompositionEasingFunctionStatics: __ABI_Microsoft_UI_Composition.ICompositionEasingFunctionStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Composition.CompositionEasingFunction")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioneasingfunction.createcubicbeziereasingfunction) + public class func createCubicBezierEasingFunction(_ owner: Compositor!, _ controlPoint1: WindowsFoundation.Vector2, _ controlPoint2: WindowsFoundation.Vector2) -> CubicBezierEasingFunction! { + return try! _ICompositionEasingFunctionStatics.CreateCubicBezierEasingFunctionImpl(owner, controlPoint1, controlPoint2) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioneasingfunction.createlineareasingfunction) + public class func createLinearEasingFunction(_ owner: Compositor!) -> LinearEasingFunction! { + return try! _ICompositionEasingFunctionStatics.CreateLinearEasingFunctionImpl(owner) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioneasingfunction.createstepeasingfunction) + public class func createStepEasingFunction(_ owner: Compositor!) -> StepEasingFunction! { + return try! _ICompositionEasingFunctionStatics.CreateStepEasingFunctionImpl(owner) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioneasingfunction.createstepeasingfunction) + public class func createStepEasingFunction(_ owner: Compositor!, _ stepCount: Int32) -> StepEasingFunction! { + return try! _ICompositionEasingFunctionStatics.CreateStepEasingFunctionWithStepCountImpl(owner, stepCount) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioneasingfunction.createbackeasingfunction) + public class func createBackEasingFunction(_ owner: Compositor!, _ mode: CompositionEasingFunctionMode, _ amplitude: Float) -> BackEasingFunction! { + return try! _ICompositionEasingFunctionStatics.CreateBackEasingFunctionImpl(owner, mode, amplitude) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioneasingfunction.createbounceeasingfunction) + public class func createBounceEasingFunction(_ owner: Compositor!, _ mode: CompositionEasingFunctionMode, _ bounces: Int32, _ bounciness: Float) -> BounceEasingFunction! { + return try! _ICompositionEasingFunctionStatics.CreateBounceEasingFunctionImpl(owner, mode, bounces, bounciness) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioneasingfunction.createcircleeasingfunction) + public class func createCircleEasingFunction(_ owner: Compositor!, _ mode: CompositionEasingFunctionMode) -> CircleEasingFunction! { + return try! _ICompositionEasingFunctionStatics.CreateCircleEasingFunctionImpl(owner, mode) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioneasingfunction.createelasticeasingfunction) + public class func createElasticEasingFunction(_ owner: Compositor!, _ mode: CompositionEasingFunctionMode, _ oscillations: Int32, _ springiness: Float) -> ElasticEasingFunction! { + return try! _ICompositionEasingFunctionStatics.CreateElasticEasingFunctionImpl(owner, mode, oscillations, springiness) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioneasingfunction.createexponentialeasingfunction) + public class func createExponentialEasingFunction(_ owner: Compositor!, _ mode: CompositionEasingFunctionMode, _ exponent: Float) -> ExponentialEasingFunction! { + return try! _ICompositionEasingFunctionStatics.CreateExponentialEasingFunctionImpl(owner, mode, exponent) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioneasingfunction.createpowereasingfunction) + public class func createPowerEasingFunction(_ owner: Compositor!, _ mode: CompositionEasingFunctionMode, _ power: Float) -> PowerEasingFunction! { + return try! _ICompositionEasingFunctionStatics.CreatePowerEasingFunctionImpl(owner, mode, power) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioneasingfunction.createsineeasingfunction) + public class func createSineEasingFunction(_ owner: Compositor!, _ mode: CompositionEasingFunctionMode) -> SineEasingFunction! { + return try! _ICompositionEasingFunctionStatics.CreateSineEasingFunctionImpl(owner, mode) + } + + internal enum ICompositionEasingFunction : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = CompositionEasingFunction + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionEasingFunction + internal typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionEasingFunction + } + } + internal typealias Composable = ICompositionEasingFunction + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioneffectbrush) +public final class CompositionEffectBrush : WinAppSDK.CompositionBrush { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionEffectBrush + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionEffectBrush + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CICompositionEffectBrush>?) -> CompositionEffectBrush? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioneffectbrush.getsourceparameter) + public func getSourceParameter(_ name: String) throws -> CompositionBrush! { + try _default.GetSourceParameterImpl(name) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioneffectbrush.setsourceparameter) + public func setSourceParameter(_ name: String, _ source: CompositionBrush!) throws { + try _default.SetSourceParameterImpl(name, source) + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioneffectfactory) +public final class CompositionEffectFactory : WinAppSDK.CompositionObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionEffectFactory + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionEffectFactory + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CICompositionEffectFactory>?) -> CompositionEffectFactory? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioneffectfactory.createbrush) + public func createBrush() throws -> CompositionEffectBrush! { + try _default.CreateBrushImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioneffectfactory.extendederror) + public var extendedError : HRESULT { + get { try! _default.get_ExtendedErrorImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioneffectfactory.loadstatus) + public var loadStatus : CompositionEffectFactoryLoadStatus { + get { try! _default.get_LoadStatusImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioneffectsourceparameter) +public final class CompositionEffectSourceParameter : WinRTClass, UWP.IGraphicsEffectSource { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionEffectSourceParameter + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionEffectSourceParameter + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CICompositionEffectSourceParameter>?) -> CompositionEffectSourceParameter? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + override public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + return super.queryInterface(iid) + } + private static let _ICompositionEffectSourceParameterFactory: __ABI_Microsoft_UI_Composition.ICompositionEffectSourceParameterFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Composition.CompositionEffectSourceParameter")) + public init(_ name: String) { + super.init(try! Self._ICompositionEffectSourceParameterFactory.CreateImpl(name)) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioneffectsourceparameter.name) + public var name : String { + get { try! _default.get_NameImpl() } + } + + private lazy var _IGraphicsEffectSource: __ABI_Windows_Graphics_Effects.IGraphicsEffectSource! = getInterfaceForCaching() + deinit { + _default = nil + _IGraphicsEffectSource = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionellipsegeometry) +public final class CompositionEllipseGeometry : WinAppSDK.CompositionGeometry { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionEllipseGeometry + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionEllipseGeometry + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CICompositionEllipseGeometry>?) -> CompositionEllipseGeometry? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionellipsegeometry.center) + public var center : WindowsFoundation.Vector2 { + get { try! _default.get_CenterImpl() } + set { try! _default.put_CenterImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionellipsegeometry.radius) + public var radius : WindowsFoundation.Vector2 { + get { try! _default.get_RadiusImpl() } + set { try! _default.put_RadiusImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositiongeometricclip) +public final class CompositionGeometricClip : WinAppSDK.CompositionClip { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionGeometricClip + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionGeometricClip + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CICompositionGeometricClip>?) -> CompositionGeometricClip? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositiongeometricclip.geometry) + public var geometry : CompositionGeometry! { + get { try! _default.get_GeometryImpl() } + set { try! _default.put_GeometryImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositiongeometricclip.viewbox) + public var viewBox : CompositionViewBox! { + get { try! _default.get_ViewBoxImpl() } + set { try! _default.put_ViewBoxImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositiongeometry) +open class CompositionGeometry : WinAppSDK.CompositionObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionGeometry + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionGeometry + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override open func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CICompositionGeometry>?) -> CompositionGeometry? { + guard let abi = abi else { return nil } + return UnsealedWinRTClassWrapper.unwrapFrom(base: abi) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + @_spi(WinRTInternal) + override public init( + composing: Composable.Type, + _ createCallback: (UnsealedWinRTClassWrapper?, inout WindowsFoundation.IInspectable?) -> Composable.Default.SwiftABI) + { + super.init(composing: composing, createCallback) + } + override open func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + return super.queryInterface(iid) + } + private static var _ICompositionGeometryFactory : __ABI_Microsoft_UI_Composition.ICompositionGeometryFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Composition.CompositionGeometry")) + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositiongeometry.trimend) + public var trimEnd : Float { + get { try! _default.get_TrimEndImpl() } + set { try! _default.put_TrimEndImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositiongeometry.trimoffset) + public var trimOffset : Float { + get { try! _default.get_TrimOffsetImpl() } + set { try! _default.put_TrimOffsetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositiongeometry.trimstart) + public var trimStart : Float { + get { try! _default.get_TrimStartImpl() } + set { try! _default.put_TrimStartImpl(newValue) } + } + + internal enum ICompositionGeometry : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = CompositionGeometry + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionGeometry + internal typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionGeometry + } + } + internal typealias Composable = ICompositionGeometry + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositiongradientbrush) +open class CompositionGradientBrush : WinAppSDK.CompositionBrush { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionGradientBrush + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionGradientBrush + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override open func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CICompositionGradientBrush>?) -> CompositionGradientBrush? { + guard let abi = abi else { return nil } + return UnsealedWinRTClassWrapper.unwrapFrom(base: abi) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + @_spi(WinRTInternal) + override public init( + composing: Composable.Type, + _ createCallback: (UnsealedWinRTClassWrapper?, inout WindowsFoundation.IInspectable?) -> Composable.Default.SwiftABI) + { + super.init(composing: composing, createCallback) + } + override open func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + return super.queryInterface(iid) + } + private static var _ICompositionGradientBrushFactory : __ABI_Microsoft_UI_Composition.ICompositionGradientBrushFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Composition.CompositionGradientBrush")) + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositiongradientbrush.anchorpoint) + public var anchorPoint : WindowsFoundation.Vector2 { + get { try! _default.get_AnchorPointImpl() } + set { try! _default.put_AnchorPointImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositiongradientbrush.centerpoint) + public var centerPoint : WindowsFoundation.Vector2 { + get { try! _default.get_CenterPointImpl() } + set { try! _default.put_CenterPointImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositiongradientbrush.colorstops) + public var colorStops : CompositionColorGradientStopCollection! { + get { try! _default.get_ColorStopsImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositiongradientbrush.extendmode) + public var extendMode : CompositionGradientExtendMode { + get { try! _default.get_ExtendModeImpl() } + set { try! _default.put_ExtendModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositiongradientbrush.interpolationspace) + public var interpolationSpace : CompositionColorSpace { + get { try! _default.get_InterpolationSpaceImpl() } + set { try! _default.put_InterpolationSpaceImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositiongradientbrush.offset) + public var offset : WindowsFoundation.Vector2 { + get { try! _default.get_OffsetImpl() } + set { try! _default.put_OffsetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositiongradientbrush.rotationangle) + public var rotationAngle : Float { + get { try! _default.get_RotationAngleImpl() } + set { try! _default.put_RotationAngleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositiongradientbrush.rotationangleindegrees) + public var rotationAngleInDegrees : Float { + get { try! _default.get_RotationAngleInDegreesImpl() } + set { try! _default.put_RotationAngleInDegreesImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositiongradientbrush.scale) + public var scale : WindowsFoundation.Vector2 { + get { try! _default.get_ScaleImpl() } + set { try! _default.put_ScaleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositiongradientbrush.transformmatrix) + public var transformMatrix : WindowsFoundation.Matrix3x2 { + get { try! _default.get_TransformMatrixImpl() } + set { try! _default.put_TransformMatrixImpl(newValue) } + } + + private lazy var _ICompositionGradientBrush2: __ABI_Microsoft_UI_Composition.ICompositionGradientBrush2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositiongradientbrush.mappingmode) + public var mappingMode : CompositionMappingMode { + get { try! _ICompositionGradientBrush2.get_MappingModeImpl() } + set { try! _ICompositionGradientBrush2.put_MappingModeImpl(newValue) } + } + + internal enum ICompositionGradientBrush : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = CompositionGradientBrush + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionGradientBrush + internal typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionGradientBrush + } + } + internal typealias Composable = ICompositionGradientBrush + deinit { + _default = nil + _ICompositionGradientBrush2 = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositiongraphicsdevice) +public final class CompositionGraphicsDevice : WinAppSDK.CompositionObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionGraphicsDevice + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionGraphicsDevice + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CICompositionGraphicsDevice>?) -> CompositionGraphicsDevice? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositiongraphicsdevice.createdrawingsurface) + public func createDrawingSurface(_ sizePixels: WindowsFoundation.Size, _ pixelFormat: WinAppSDK.DirectXPixelFormat, _ alphaMode: WinAppSDK.DirectXAlphaMode) throws -> CompositionDrawingSurface! { + try _default.CreateDrawingSurfaceImpl(sizePixels, pixelFormat, alphaMode) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositiongraphicsdevice.renderingdevicereplaced) + public lazy var renderingDeviceReplaced : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_RenderingDeviceReplacedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_RenderingDeviceReplacedImpl($0) + } + ) + }() + + private lazy var _ICompositionGraphicsDevice2: __ABI_Microsoft_UI_Composition.ICompositionGraphicsDevice2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositiongraphicsdevice.createdrawingsurface2) + public func createDrawingSurface2(_ sizePixels: UWP.SizeInt32, _ pixelFormat: WinAppSDK.DirectXPixelFormat, _ alphaMode: WinAppSDK.DirectXAlphaMode) throws -> CompositionDrawingSurface! { + try _ICompositionGraphicsDevice2.CreateDrawingSurface2Impl(sizePixels, pixelFormat, alphaMode) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositiongraphicsdevice.createvirtualdrawingsurface) + public func createVirtualDrawingSurface(_ sizePixels: UWP.SizeInt32, _ pixelFormat: WinAppSDK.DirectXPixelFormat, _ alphaMode: WinAppSDK.DirectXAlphaMode) throws -> CompositionVirtualDrawingSurface! { + try _ICompositionGraphicsDevice2.CreateVirtualDrawingSurfaceImpl(sizePixels, pixelFormat, alphaMode) + } + + private lazy var _ICompositionGraphicsDevice3: __ABI_Microsoft_UI_Composition.ICompositionGraphicsDevice3! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositiongraphicsdevice.createmipmapsurface) + public func createMipmapSurface(_ sizePixels: UWP.SizeInt32, _ pixelFormat: WinAppSDK.DirectXPixelFormat, _ alphaMode: WinAppSDK.DirectXAlphaMode) throws -> CompositionMipmapSurface! { + try _ICompositionGraphicsDevice3.CreateMipmapSurfaceImpl(sizePixels, pixelFormat, alphaMode) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositiongraphicsdevice.trim) + public func trim() throws { + try _ICompositionGraphicsDevice3.TrimImpl() + } + + private lazy var _ICompositionGraphicsDevice4: __ABI_Microsoft_UI_Composition.ICompositionGraphicsDevice4! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositiongraphicsdevice.captureasync) + public func captureAsync(_ captureVisual: Visual!, _ size: UWP.SizeInt32, _ pixelFormat: WinAppSDK.DirectXPixelFormat, _ alphaMode: WinAppSDK.DirectXAlphaMode, _ sdrBoost: Float) throws -> WindowsFoundation.AnyIAsyncOperation! { + try _ICompositionGraphicsDevice4.CaptureAsyncImpl(captureVisual, size, pixelFormat, alphaMode, sdrBoost) + } + + deinit { + _default = nil + _ICompositionGraphicsDevice2 = nil + _ICompositionGraphicsDevice3 = nil + _ICompositionGraphicsDevice4 = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionlight) +open class CompositionLight : WinAppSDK.CompositionObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionLight + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionLight + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override open func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CICompositionLight>?) -> CompositionLight? { + guard let abi = abi else { return nil } + return UnsealedWinRTClassWrapper.unwrapFrom(base: abi) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + @_spi(WinRTInternal) + override public init( + composing: Composable.Type, + _ createCallback: (UnsealedWinRTClassWrapper?, inout WindowsFoundation.IInspectable?) -> Composable.Default.SwiftABI) + { + super.init(composing: composing, createCallback) + } + override open func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + return super.queryInterface(iid) + } + private static var _ICompositionLightFactory : __ABI_Microsoft_UI_Composition.ICompositionLightFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Composition.CompositionLight")) + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionlight.targets) + public var targets : VisualUnorderedCollection! { + get { try! _default.get_TargetsImpl() } + } + + private lazy var _ICompositionLight2: __ABI_Microsoft_UI_Composition.ICompositionLight2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionlight.exclusionsfromtargets) + public var exclusionsFromTargets : VisualUnorderedCollection! { + get { try! _ICompositionLight2.get_ExclusionsFromTargetsImpl() } + } + + private lazy var _ICompositionLight3: __ABI_Microsoft_UI_Composition.ICompositionLight3! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionlight.isenabled) + public var isEnabled : Bool { + get { try! _ICompositionLight3.get_IsEnabledImpl() } + set { try! _ICompositionLight3.put_IsEnabledImpl(newValue) } + } + + internal enum ICompositionLight : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = CompositionLight + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionLight + internal typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionLight + } + } + internal typealias Composable = ICompositionLight + deinit { + _default = nil + _ICompositionLight2 = nil + _ICompositionLight3 = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionlinegeometry) +public final class CompositionLineGeometry : WinAppSDK.CompositionGeometry { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionLineGeometry + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionLineGeometry + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CICompositionLineGeometry>?) -> CompositionLineGeometry? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionlinegeometry.end) + public var end : WindowsFoundation.Vector2 { + get { try! _default.get_EndImpl() } + set { try! _default.put_EndImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionlinegeometry.start) + public var start : WindowsFoundation.Vector2 { + get { try! _default.get_StartImpl() } + set { try! _default.put_StartImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionlineargradientbrush) +public final class CompositionLinearGradientBrush : WinAppSDK.CompositionGradientBrush { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionLinearGradientBrush + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionLinearGradientBrush + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CICompositionLinearGradientBrush>?) -> CompositionLinearGradientBrush? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionlineargradientbrush.endpoint) + public var endPoint : WindowsFoundation.Vector2 { + get { try! _default.get_EndPointImpl() } + set { try! _default.put_EndPointImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionlineargradientbrush.startpoint) + public var startPoint : WindowsFoundation.Vector2 { + get { try! _default.get_StartPointImpl() } + set { try! _default.put_StartPointImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionmaskbrush) +public final class CompositionMaskBrush : WinAppSDK.CompositionBrush { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionMaskBrush + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionMaskBrush + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CICompositionMaskBrush>?) -> CompositionMaskBrush? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionmaskbrush.mask) + public var mask : CompositionBrush! { + get { try! _default.get_MaskImpl() } + set { try! _default.put_MaskImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionmaskbrush.source) + public var source : CompositionBrush! { + get { try! _default.get_SourceImpl() } + set { try! _default.put_SourceImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionmipmapsurface) +public final class CompositionMipmapSurface : WinAppSDK.CompositionObject, ICompositionSurface { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionMipmapSurface + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionMipmapSurface + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CICompositionMipmapSurface>?) -> CompositionMipmapSurface? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + override public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + return super.queryInterface(iid) + } + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionmipmapsurface.getdrawingsurfaceforlevel) + public func getDrawingSurfaceForLevel(_ level: UInt32) throws -> CompositionDrawingSurface! { + try _default.GetDrawingSurfaceForLevelImpl(level) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionmipmapsurface.alphamode) + public var alphaMode : WinAppSDK.DirectXAlphaMode { + get { try! _default.get_AlphaModeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionmipmapsurface.levelcount) + public var levelCount : UInt32 { + get { try! _default.get_LevelCountImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionmipmapsurface.pixelformat) + public var pixelFormat : WinAppSDK.DirectXPixelFormat { + get { try! _default.get_PixelFormatImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionmipmapsurface.sizeint32) + public var sizeInt32 : UWP.SizeInt32 { + get { try! _default.get_SizeInt32Impl() } + } + + private lazy var _ICompositionSurface: __ABI_Microsoft_UI_Composition.ICompositionSurface! = getInterfaceForCaching() + deinit { + _default = nil + _ICompositionSurface = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionninegridbrush) +public final class CompositionNineGridBrush : WinAppSDK.CompositionBrush { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionNineGridBrush + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionNineGridBrush + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CICompositionNineGridBrush>?) -> CompositionNineGridBrush? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionninegridbrush.setinsets) + public func setInsets(_ inset: Float) throws { + try _default.SetInsetsImpl(inset) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionninegridbrush.setinsets) + public func setInsets(_ left: Float, _ top: Float, _ right: Float, _ bottom: Float) throws { + try _default.SetInsetsWithValuesImpl(left, top, right, bottom) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionninegridbrush.setinsetscales) + public func setInsetScales(_ scale: Float) throws { + try _default.SetInsetScalesImpl(scale) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionninegridbrush.setinsetscales) + public func setInsetScales(_ left: Float, _ top: Float, _ right: Float, _ bottom: Float) throws { + try _default.SetInsetScalesWithValuesImpl(left, top, right, bottom) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionninegridbrush.bottominset) + public var bottomInset : Float { + get { try! _default.get_BottomInsetImpl() } + set { try! _default.put_BottomInsetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionninegridbrush.bottominsetscale) + public var bottomInsetScale : Float { + get { try! _default.get_BottomInsetScaleImpl() } + set { try! _default.put_BottomInsetScaleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionninegridbrush.iscenterhollow) + public var isCenterHollow : Bool { + get { try! _default.get_IsCenterHollowImpl() } + set { try! _default.put_IsCenterHollowImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionninegridbrush.leftinset) + public var leftInset : Float { + get { try! _default.get_LeftInsetImpl() } + set { try! _default.put_LeftInsetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionninegridbrush.leftinsetscale) + public var leftInsetScale : Float { + get { try! _default.get_LeftInsetScaleImpl() } + set { try! _default.put_LeftInsetScaleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionninegridbrush.rightinset) + public var rightInset : Float { + get { try! _default.get_RightInsetImpl() } + set { try! _default.put_RightInsetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionninegridbrush.rightinsetscale) + public var rightInsetScale : Float { + get { try! _default.get_RightInsetScaleImpl() } + set { try! _default.put_RightInsetScaleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionninegridbrush.source) + public var source : CompositionBrush! { + get { try! _default.get_SourceImpl() } + set { try! _default.put_SourceImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionninegridbrush.topinset) + public var topInset : Float { + get { try! _default.get_TopInsetImpl() } + set { try! _default.put_TopInsetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionninegridbrush.topinsetscale) + public var topInsetScale : Float { + get { try! _default.get_TopInsetScaleImpl() } + set { try! _default.put_TopInsetScaleImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionobject) +open class CompositionObject : WinRTClass, WindowsFoundation.IClosable, IAnimationObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionObject + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionObject + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override open func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CICompositionObject>?) -> CompositionObject? { + guard let abi = abi else { return nil } + return UnsealedWinRTClassWrapper.unwrapFrom(base: abi) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + @_spi(WinRTInternal) + public init( + composing: Composable.Type, + _ createCallback: (UnsealedWinRTClassWrapper?, inout WindowsFoundation.IInspectable?) -> Composable.Default.SwiftABI) + { + super.init() + MakeComposed(composing: composing, (self as! Composable.Class), createCallback) + } + override open func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + return super.queryInterface(iid) + } + private static var _ICompositionObjectFactory : __ABI_Microsoft_UI_Composition.ICompositionObjectFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Composition.CompositionObject")) + + private static let _ICompositionObjectStatics: __ABI_Microsoft_UI_Composition.ICompositionObjectStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Composition.CompositionObject")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionobject.startanimationwithianimationobject) + public class func startAnimationWithIAnimationObject(_ target: AnyIAnimationObject!, _ propertyName: String, _ animation: CompositionAnimation!) { + try! _ICompositionObjectStatics.StartAnimationWithIAnimationObjectImpl(target, propertyName, animation) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionobject.startanimationgroupwithianimationobject) + public class func startAnimationGroupWithIAnimationObject(_ target: AnyIAnimationObject!, _ animation: AnyICompositionAnimationBase!) { + try! _ICompositionObjectStatics.StartAnimationGroupWithIAnimationObjectImpl(target, animation) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionobject.startanimation) + public func startAnimation(_ propertyName: String, _ animation: CompositionAnimation!) throws { + try _default.StartAnimationImpl(propertyName, animation) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionobject.stopanimation) + public func stopAnimation(_ propertyName: String) throws { + try _default.StopAnimationImpl(propertyName) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionobject.compositor) + public var compositor : Compositor! { + get { try! _default.get_CompositorImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionobject.properties) + public var properties : CompositionPropertySet! { + get { try! _default.get_PropertiesImpl() } + } + + private lazy var _ICompositionObject2: __ABI_Microsoft_UI_Composition.ICompositionObject2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionobject.startanimationgroup) + public func startAnimationGroup(_ value: AnyICompositionAnimationBase!) throws { + try _ICompositionObject2.StartAnimationGroupImpl(value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionobject.stopanimationgroup) + public func stopAnimationGroup(_ value: AnyICompositionAnimationBase!) throws { + try _ICompositionObject2.StopAnimationGroupImpl(value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionobject.comment) + public var comment : String { + get { try! _ICompositionObject2.get_CommentImpl() } + set { try! _ICompositionObject2.put_CommentImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionobject.implicitanimations) + public var implicitAnimations : ImplicitAnimationCollection! { + get { try! _ICompositionObject2.get_ImplicitAnimationsImpl() } + set { try! _ICompositionObject2.put_ImplicitAnimationsImpl(newValue) } + } + + private lazy var _ICompositionObject3: __ABI_Microsoft_UI_Composition.ICompositionObject3! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionobject.dispatcherqueue) + public var dispatcherQueue : WinAppSDK.DispatcherQueue! { + get { try! _ICompositionObject3.get_DispatcherQueueImpl() } + } + + private lazy var _ICompositionObject4: __ABI_Microsoft_UI_Composition.ICompositionObject4! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionobject.trygetanimationcontroller) + public func tryGetAnimationController(_ propertyName: String) throws -> AnimationController! { + try _ICompositionObject4.TryGetAnimationControllerImpl(propertyName) + } + + private lazy var _ICompositionObject5: __ABI_Microsoft_UI_Composition.ICompositionObject5! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionobject.startanimation) + public func startAnimation(_ propertyName: String, _ animation: CompositionAnimation!, _ animationController: AnimationController!) throws { + try _ICompositionObject5.StartAnimationWithControllerImpl(propertyName, animation, animationController) + } + + private lazy var _IClosable: __ABI_Windows_Foundation.IClosable! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionobject.close) + public func close() throws { + try _IClosable.CloseImpl() + } + + private lazy var _IAnimationObject: __ABI_Microsoft_UI_Composition.IAnimationObject! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionobject.populatepropertyinfo) + public func populatePropertyInfo(_ propertyName: String, _ propertyInfo: AnimationPropertyInfo!) throws { + try _IAnimationObject.PopulatePropertyInfoImpl(propertyName, propertyInfo) + } + + internal enum ICompositionObject : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = CompositionObject + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionObject + internal typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionObject + } + } + internal typealias Composable = ICompositionObject + deinit { + _default = nil + _ICompositionObject2 = nil + _ICompositionObject3 = nil + _ICompositionObject4 = nil + _ICompositionObject5 = nil + _IClosable = nil + _IAnimationObject = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionpath) +public final class CompositionPath : WinRTClass, UWP.IGeometrySource2D { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionPath + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionPath + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CICompositionPath>?) -> CompositionPath? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + override public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + return super.queryInterface(iid) + } + private static let _ICompositionPathFactory: __ABI_Microsoft_UI_Composition.ICompositionPathFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Composition.CompositionPath")) + public init(_ source: UWP.AnyIGeometrySource2D!) { + super.init(try! Self._ICompositionPathFactory.CreateImpl(source)) + } + + private lazy var _IGeometrySource2D: __ABI_Windows_Graphics.IGeometrySource2D! = getInterfaceForCaching() + deinit { + _default = nil + _IGeometrySource2D = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionpathgeometry) +public final class CompositionPathGeometry : WinAppSDK.CompositionGeometry { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionPathGeometry + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionPathGeometry + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CICompositionPathGeometry>?) -> CompositionPathGeometry? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionpathgeometry.path) + public var path : CompositionPath! { + get { try! _default.get_PathImpl() } + set { try! _default.put_PathImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionprojectedshadow) +public final class CompositionProjectedShadow : WinAppSDK.CompositionObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionProjectedShadow + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionProjectedShadow + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CICompositionProjectedShadow>?) -> CompositionProjectedShadow? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionprojectedshadow.blurradiusmultiplier) + public var blurRadiusMultiplier : Float { + get { try! _default.get_BlurRadiusMultiplierImpl() } + set { try! _default.put_BlurRadiusMultiplierImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionprojectedshadow.casters) + public var casters : CompositionProjectedShadowCasterCollection! { + get { try! _default.get_CastersImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionprojectedshadow.lightsource) + public var lightSource : CompositionLight! { + get { try! _default.get_LightSourceImpl() } + set { try! _default.put_LightSourceImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionprojectedshadow.maxblurradius) + public var maxBlurRadius : Float { + get { try! _default.get_MaxBlurRadiusImpl() } + set { try! _default.put_MaxBlurRadiusImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionprojectedshadow.minblurradius) + public var minBlurRadius : Float { + get { try! _default.get_MinBlurRadiusImpl() } + set { try! _default.put_MinBlurRadiusImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionprojectedshadow.receivers) + public var receivers : CompositionProjectedShadowReceiverUnorderedCollection! { + get { try! _default.get_ReceiversImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionprojectedshadowcaster) +public final class CompositionProjectedShadowCaster : WinAppSDK.CompositionObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionProjectedShadowCaster + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionProjectedShadowCaster + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CICompositionProjectedShadowCaster>?) -> CompositionProjectedShadowCaster? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionprojectedshadowcaster.brush) + public var brush : CompositionBrush! { + get { try! _default.get_BrushImpl() } + set { try! _default.put_BrushImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionprojectedshadowcaster.castingvisual) + public var castingVisual : Visual! { + get { try! _default.get_CastingVisualImpl() } + set { try! _default.put_CastingVisualImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionprojectedshadowcastercollection) +public final class CompositionProjectedShadowCasterCollection : WinAppSDK.CompositionObject, IIterable { + public typealias T = CompositionProjectedShadowCaster? + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionProjectedShadowCasterCollection + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionProjectedShadowCasterCollection + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CICompositionProjectedShadowCasterCollection>?) -> CompositionProjectedShadowCasterCollection? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + override public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + return super.queryInterface(iid) + } + private static let _ICompositionProjectedShadowCasterCollectionStatics: __ABI_Microsoft_UI_Composition.ICompositionProjectedShadowCasterCollectionStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Composition.CompositionProjectedShadowCasterCollection")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionprojectedshadowcastercollection.maxrespectedcasters) + public static var maxRespectedCasters : Int32 { + get { try! _ICompositionProjectedShadowCasterCollectionStatics.get_MaxRespectedCastersImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionprojectedshadowcastercollection.insertabove) + public func insertAbove(_ newCaster: CompositionProjectedShadowCaster!, _ reference: CompositionProjectedShadowCaster!) throws { + try _default.InsertAboveImpl(newCaster, reference) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionprojectedshadowcastercollection.insertatbottom) + public func insertAtBottom(_ newCaster: CompositionProjectedShadowCaster!) throws { + try _default.InsertAtBottomImpl(newCaster) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionprojectedshadowcastercollection.insertattop) + public func insertAtTop(_ newCaster: CompositionProjectedShadowCaster!) throws { + try _default.InsertAtTopImpl(newCaster) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionprojectedshadowcastercollection.insertbelow) + public func insertBelow(_ newCaster: CompositionProjectedShadowCaster!, _ reference: CompositionProjectedShadowCaster!) throws { + try _default.InsertBelowImpl(newCaster, reference) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionprojectedshadowcastercollection.remove) + public func remove(_ caster: CompositionProjectedShadowCaster!) throws { + try _default.RemoveImpl(caster) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionprojectedshadowcastercollection.removeall) + public func removeAll() throws { + try _default.RemoveAllImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionprojectedshadowcastercollection.count) + public var count : Int32 { + get { try! _default.get_CountImpl() } + } + + private lazy var _IIterable: IIterableCompositionProjectedShadowCaster! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionprojectedshadowcastercollection.first) + public func first() -> WindowsFoundation.AnyIIterator? { + try! _IIterable.FirstImpl() + } + + deinit { + _default = nil + _IIterable = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionprojectedshadowreceiver) +public final class CompositionProjectedShadowReceiver : WinAppSDK.CompositionObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionProjectedShadowReceiver + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionProjectedShadowReceiver + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CICompositionProjectedShadowReceiver>?) -> CompositionProjectedShadowReceiver? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionprojectedshadowreceiver.receivingvisual) + public var receivingVisual : Visual! { + get { try! _default.get_ReceivingVisualImpl() } + set { try! _default.put_ReceivingVisualImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionprojectedshadowreceiverunorderedcollection) +public final class CompositionProjectedShadowReceiverUnorderedCollection : WinAppSDK.CompositionObject, IIterable { + public typealias T = CompositionProjectedShadowReceiver? + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionProjectedShadowReceiverUnorderedCollection + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionProjectedShadowReceiverUnorderedCollection + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CICompositionProjectedShadowReceiverUnorderedCollection>?) -> CompositionProjectedShadowReceiverUnorderedCollection? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + override public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + return super.queryInterface(iid) + } + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionprojectedshadowreceiverunorderedcollection.add) + public func add(_ value: CompositionProjectedShadowReceiver!) throws { + try _default.AddImpl(value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionprojectedshadowreceiverunorderedcollection.remove) + public func remove(_ value: CompositionProjectedShadowReceiver!) throws { + try _default.RemoveImpl(value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionprojectedshadowreceiverunorderedcollection.removeall) + public func removeAll() throws { + try _default.RemoveAllImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionprojectedshadowreceiverunorderedcollection.count) + public var count : Int32 { + get { try! _default.get_CountImpl() } + } + + private lazy var _IIterable: IIterableCompositionProjectedShadowReceiver! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionprojectedshadowreceiverunorderedcollection.first) + public func first() -> WindowsFoundation.AnyIIterator? { + try! _IIterable.FirstImpl() + } + + deinit { + _default = nil + _IIterable = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionpropertyset) +public final class CompositionPropertySet : WinAppSDK.CompositionObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionPropertySet + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionPropertySet + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CICompositionPropertySet>?) -> CompositionPropertySet? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionpropertyset.insertcolor) + public func insertColor(_ propertyName: String, _ value: UWP.Color) throws { + try _default.InsertColorImpl(propertyName, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionpropertyset.insertmatrix3x2) + public func insertMatrix3x2(_ propertyName: String, _ value: WindowsFoundation.Matrix3x2) throws { + try _default.InsertMatrix3x2Impl(propertyName, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionpropertyset.insertmatrix4x4) + public func insertMatrix4x4(_ propertyName: String, _ value: WindowsFoundation.Matrix4x4) throws { + try _default.InsertMatrix4x4Impl(propertyName, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionpropertyset.insertquaternion) + public func insertQuaternion(_ propertyName: String, _ value: WindowsFoundation.Quaternion) throws { + try _default.InsertQuaternionImpl(propertyName, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionpropertyset.insertscalar) + public func insertScalar(_ propertyName: String, _ value: Float) throws { + try _default.InsertScalarImpl(propertyName, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionpropertyset.insertvector2) + public func insertVector2(_ propertyName: String, _ value: WindowsFoundation.Vector2) throws { + try _default.InsertVector2Impl(propertyName, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionpropertyset.insertvector3) + public func insertVector3(_ propertyName: String, _ value: WindowsFoundation.Vector3) throws { + try _default.InsertVector3Impl(propertyName, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionpropertyset.insertvector4) + public func insertVector4(_ propertyName: String, _ value: WindowsFoundation.Vector4) throws { + try _default.InsertVector4Impl(propertyName, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionpropertyset.trygetcolor) + public func tryGetColor(_ propertyName: String, _ value: inout UWP.Color) throws -> CompositionGetValueStatus { + try _default.TryGetColorImpl(propertyName, &value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionpropertyset.trygetmatrix3x2) + public func tryGetMatrix3x2(_ propertyName: String, _ value: inout WindowsFoundation.Matrix3x2) throws -> CompositionGetValueStatus { + try _default.TryGetMatrix3x2Impl(propertyName, &value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionpropertyset.trygetmatrix4x4) + public func tryGetMatrix4x4(_ propertyName: String, _ value: inout WindowsFoundation.Matrix4x4) throws -> CompositionGetValueStatus { + try _default.TryGetMatrix4x4Impl(propertyName, &value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionpropertyset.trygetquaternion) + public func tryGetQuaternion(_ propertyName: String, _ value: inout WindowsFoundation.Quaternion) throws -> CompositionGetValueStatus { + try _default.TryGetQuaternionImpl(propertyName, &value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionpropertyset.trygetscalar) + public func tryGetScalar(_ propertyName: String, _ value: inout Float) throws -> CompositionGetValueStatus { + try _default.TryGetScalarImpl(propertyName, &value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionpropertyset.trygetvector2) + public func tryGetVector2(_ propertyName: String, _ value: inout WindowsFoundation.Vector2) throws -> CompositionGetValueStatus { + try _default.TryGetVector2Impl(propertyName, &value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionpropertyset.trygetvector3) + public func tryGetVector3(_ propertyName: String, _ value: inout WindowsFoundation.Vector3) throws -> CompositionGetValueStatus { + try _default.TryGetVector3Impl(propertyName, &value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionpropertyset.trygetvector4) + public func tryGetVector4(_ propertyName: String, _ value: inout WindowsFoundation.Vector4) throws -> CompositionGetValueStatus { + try _default.TryGetVector4Impl(propertyName, &value) + } + + private lazy var _ICompositionPropertySet2: __ABI_Microsoft_UI_Composition.ICompositionPropertySet2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionpropertyset.insertboolean) + public func insertBoolean(_ propertyName: String, _ value: Bool) throws { + try _ICompositionPropertySet2.InsertBooleanImpl(propertyName, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionpropertyset.trygetboolean) + public func tryGetBoolean(_ propertyName: String, _ value: inout Bool) throws -> CompositionGetValueStatus { + try _ICompositionPropertySet2.TryGetBooleanImpl(propertyName, &value) + } + + deinit { + _default = nil + _ICompositionPropertySet2 = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionradialgradientbrush) +public final class CompositionRadialGradientBrush : WinAppSDK.CompositionGradientBrush { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionRadialGradientBrush + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionRadialGradientBrush + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CICompositionRadialGradientBrush>?) -> CompositionRadialGradientBrush? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionradialgradientbrush.ellipsecenter) + public var ellipseCenter : WindowsFoundation.Vector2 { + get { try! _default.get_EllipseCenterImpl() } + set { try! _default.put_EllipseCenterImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionradialgradientbrush.ellipseradius) + public var ellipseRadius : WindowsFoundation.Vector2 { + get { try! _default.get_EllipseRadiusImpl() } + set { try! _default.put_EllipseRadiusImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionradialgradientbrush.gradientoriginoffset) + public var gradientOriginOffset : WindowsFoundation.Vector2 { + get { try! _default.get_GradientOriginOffsetImpl() } + set { try! _default.put_GradientOriginOffsetImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionrectanglegeometry) +public final class CompositionRectangleGeometry : WinAppSDK.CompositionGeometry { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionRectangleGeometry + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionRectangleGeometry + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CICompositionRectangleGeometry>?) -> CompositionRectangleGeometry? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionrectanglegeometry.offset) + public var offset : WindowsFoundation.Vector2 { + get { try! _default.get_OffsetImpl() } + set { try! _default.put_OffsetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionrectanglegeometry.size) + public var size : WindowsFoundation.Vector2 { + get { try! _default.get_SizeImpl() } + set { try! _default.put_SizeImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionroundedrectanglegeometry) +public final class CompositionRoundedRectangleGeometry : WinAppSDK.CompositionGeometry { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionRoundedRectangleGeometry + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionRoundedRectangleGeometry + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CICompositionRoundedRectangleGeometry>?) -> CompositionRoundedRectangleGeometry? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionroundedrectanglegeometry.cornerradius) + public var cornerRadius : WindowsFoundation.Vector2 { + get { try! _default.get_CornerRadiusImpl() } + set { try! _default.put_CornerRadiusImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionroundedrectanglegeometry.offset) + public var offset : WindowsFoundation.Vector2 { + get { try! _default.get_OffsetImpl() } + set { try! _default.put_OffsetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionroundedrectanglegeometry.size) + public var size : WindowsFoundation.Vector2 { + get { try! _default.get_SizeImpl() } + set { try! _default.put_SizeImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionscopedbatch) +public final class CompositionScopedBatch : WinAppSDK.CompositionObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionScopedBatch + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionScopedBatch + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CICompositionScopedBatch>?) -> CompositionScopedBatch? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionscopedbatch.end) + public func end() throws { + try _default.EndImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionscopedbatch.resume) + public func resume() throws { + try _default.ResumeImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionscopedbatch.suspend) + public func suspend() throws { + try _default.SuspendImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionscopedbatch.isactive) + public var isActive : Bool { + get { try! _default.get_IsActiveImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionscopedbatch.isended) + public var isEnded : Bool { + get { try! _default.get_IsEndedImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionscopedbatch.completed) + public lazy var completed : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_CompletedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_CompletedImpl($0) + } + ) + }() + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionshadow) +open class CompositionShadow : WinAppSDK.CompositionObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionShadow + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionShadow + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override open func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CICompositionShadow>?) -> CompositionShadow? { + guard let abi = abi else { return nil } + return UnsealedWinRTClassWrapper.unwrapFrom(base: abi) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + @_spi(WinRTInternal) + override public init( + composing: Composable.Type, + _ createCallback: (UnsealedWinRTClassWrapper?, inout WindowsFoundation.IInspectable?) -> Composable.Default.SwiftABI) + { + super.init(composing: composing, createCallback) + } + override open func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + return super.queryInterface(iid) + } + private static var _ICompositionShadowFactory : __ABI_Microsoft_UI_Composition.ICompositionShadowFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Composition.CompositionShadow")) + + internal enum ICompositionShadow : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = CompositionShadow + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionShadow + internal typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionShadow + } + } + internal typealias Composable = ICompositionShadow + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionshape) +open class CompositionShape : WinAppSDK.CompositionObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionShape + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionShape + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override open func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CICompositionShape>?) -> CompositionShape? { + guard let abi = abi else { return nil } + return UnsealedWinRTClassWrapper.unwrapFrom(base: abi) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + @_spi(WinRTInternal) + override public init( + composing: Composable.Type, + _ createCallback: (UnsealedWinRTClassWrapper?, inout WindowsFoundation.IInspectable?) -> Composable.Default.SwiftABI) + { + super.init(composing: composing, createCallback) + } + override open func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + return super.queryInterface(iid) + } + private static var _ICompositionShapeFactory : __ABI_Microsoft_UI_Composition.ICompositionShapeFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Composition.CompositionShape")) + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionshape.centerpoint) + public var centerPoint : WindowsFoundation.Vector2 { + get { try! _default.get_CenterPointImpl() } + set { try! _default.put_CenterPointImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionshape.offset) + public var offset : WindowsFoundation.Vector2 { + get { try! _default.get_OffsetImpl() } + set { try! _default.put_OffsetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionshape.rotationangle) + public var rotationAngle : Float { + get { try! _default.get_RotationAngleImpl() } + set { try! _default.put_RotationAngleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionshape.rotationangleindegrees) + public var rotationAngleInDegrees : Float { + get { try! _default.get_RotationAngleInDegreesImpl() } + set { try! _default.put_RotationAngleInDegreesImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionshape.scale) + public var scale : WindowsFoundation.Vector2 { + get { try! _default.get_ScaleImpl() } + set { try! _default.put_ScaleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionshape.transformmatrix) + public var transformMatrix : WindowsFoundation.Matrix3x2 { + get { try! _default.get_TransformMatrixImpl() } + set { try! _default.put_TransformMatrixImpl(newValue) } + } + + internal enum ICompositionShape : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = CompositionShape + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionShape + internal typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionShape + } + } + internal typealias Composable = ICompositionShape + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionshapecollection) +public final class CompositionShapeCollection : WinAppSDK.CompositionObject, IVector, IIterable { + public typealias T = CompositionShape? + private typealias SwiftABI = WinAppSDK.IVectorCompositionShape + private typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape>?) -> CompositionShapeCollection? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + override public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + return super.queryInterface(iid) + } + // MARK: Collection + public typealias Element = T + public var startIndex: Int { 0 } + public var endIndex: Int { Int(size) } + public func index(after i: Int) -> Int { + i+1 + } + + public func index(of: Element) -> Int? { + var index: UInt32 = 0 + let result = indexOf(of, &index) + guard result else { return nil } + return Int(index) + } + public var count: Int { Int(size) } + + + public subscript(position: Int) -> Element { + get { + getAt(UInt32(position)) + } + set(newValue) { + setAt(UInt32(position), newValue) + } + } + + public func removeLast() { + removeAtEnd() + } + + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionshapecollection.getat) + public func getAt(_ index: UInt32) -> CompositionShape? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionshapecollection.getview) + public func getView() -> WindowsFoundation.AnyIVectorView? { + try! _default.GetViewImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionshapecollection.indexof) + public func indexOf(_ value: CompositionShape?, _ index: inout UInt32) -> Bool { + try! _default.IndexOfImpl(value, &index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionshapecollection.setat) + public func setAt(_ index: UInt32, _ value: CompositionShape?) { + try! _default.SetAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionshapecollection.insertat) + public func insertAt(_ index: UInt32, _ value: CompositionShape?) { + try! _default.InsertAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionshapecollection.removeat) + public func removeAt(_ index: UInt32) { + try! _default.RemoveAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionshapecollection.append) + public func append(_ value: CompositionShape?) { + try! _default.AppendImpl(value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionshapecollection.removeatend) + public func removeAtEnd() { + try! _default.RemoveAtEndImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionshapecollection.clear) + public func clear() { + try! _default.ClearImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionshapecollection.size) + public var size : UInt32 { + get { try! _default.get_SizeImpl() } + } + + private lazy var _IIterable: IIterableCompositionShape! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionshapecollection.first) + public func first() -> WindowsFoundation.AnyIIterator? { + try! _IIterable.FirstImpl() + } + + deinit { + _default = nil + _IIterable = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionspriteshape) +public final class CompositionSpriteShape : WinAppSDK.CompositionShape { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionSpriteShape + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSpriteShape + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CICompositionSpriteShape>?) -> CompositionSpriteShape? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionspriteshape.fillbrush) + public var fillBrush : CompositionBrush! { + get { try! _default.get_FillBrushImpl() } + set { try! _default.put_FillBrushImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionspriteshape.geometry) + public var geometry : CompositionGeometry! { + get { try! _default.get_GeometryImpl() } + set { try! _default.put_GeometryImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionspriteshape.isstrokenonscaling) + public var isStrokeNonScaling : Bool { + get { try! _default.get_IsStrokeNonScalingImpl() } + set { try! _default.put_IsStrokeNonScalingImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionspriteshape.strokebrush) + public var strokeBrush : CompositionBrush! { + get { try! _default.get_StrokeBrushImpl() } + set { try! _default.put_StrokeBrushImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionspriteshape.strokedasharray) + public var strokeDashArray : CompositionStrokeDashArray! { + get { try! _default.get_StrokeDashArrayImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionspriteshape.strokedashcap) + public var strokeDashCap : CompositionStrokeCap { + get { try! _default.get_StrokeDashCapImpl() } + set { try! _default.put_StrokeDashCapImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionspriteshape.strokedashoffset) + public var strokeDashOffset : Float { + get { try! _default.get_StrokeDashOffsetImpl() } + set { try! _default.put_StrokeDashOffsetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionspriteshape.strokeendcap) + public var strokeEndCap : CompositionStrokeCap { + get { try! _default.get_StrokeEndCapImpl() } + set { try! _default.put_StrokeEndCapImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionspriteshape.strokelinejoin) + public var strokeLineJoin : CompositionStrokeLineJoin { + get { try! _default.get_StrokeLineJoinImpl() } + set { try! _default.put_StrokeLineJoinImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionspriteshape.strokemiterlimit) + public var strokeMiterLimit : Float { + get { try! _default.get_StrokeMiterLimitImpl() } + set { try! _default.put_StrokeMiterLimitImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionspriteshape.strokestartcap) + public var strokeStartCap : CompositionStrokeCap { + get { try! _default.get_StrokeStartCapImpl() } + set { try! _default.put_StrokeStartCapImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionspriteshape.strokethickness) + public var strokeThickness : Float { + get { try! _default.get_StrokeThicknessImpl() } + set { try! _default.put_StrokeThicknessImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionstrokedasharray) +public final class CompositionStrokeDashArray : WinAppSDK.CompositionObject, IVector, IIterable { + public typealias T = Float + private typealias SwiftABI = WinAppSDK.IVectorFloat + private typealias CABI = __x_ABI_C__FIVector_1_float + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_C__FIVector_1_float>?) -> CompositionStrokeDashArray? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + override public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + return super.queryInterface(iid) + } + // MARK: Collection + public typealias Element = T + public var startIndex: Int { 0 } + public var endIndex: Int { Int(size) } + public func index(after i: Int) -> Int { + i+1 + } + + public func index(of: Element) -> Int? { + var index: UInt32 = 0 + let result = indexOf(of, &index) + guard result else { return nil } + return Int(index) + } + public var count: Int { Int(size) } + + + public subscript(position: Int) -> Element { + get { + getAt(UInt32(position)) + } + set(newValue) { + setAt(UInt32(position), newValue) + } + } + + public func removeLast() { + removeAtEnd() + } + + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionstrokedasharray.getat) + public func getAt(_ index: UInt32) -> Float { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionstrokedasharray.getview) + public func getView() -> WindowsFoundation.AnyIVectorView? { + try! _default.GetViewImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionstrokedasharray.indexof) + public func indexOf(_ value: Float, _ index: inout UInt32) -> Bool { + try! _default.IndexOfImpl(value, &index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionstrokedasharray.setat) + public func setAt(_ index: UInt32, _ value: Float) { + try! _default.SetAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionstrokedasharray.insertat) + public func insertAt(_ index: UInt32, _ value: Float) { + try! _default.InsertAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionstrokedasharray.removeat) + public func removeAt(_ index: UInt32) { + try! _default.RemoveAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionstrokedasharray.append) + public func append(_ value: Float) { + try! _default.AppendImpl(value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionstrokedasharray.removeatend) + public func removeAtEnd() { + try! _default.RemoveAtEndImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionstrokedasharray.clear) + public func clear() { + try! _default.ClearImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionstrokedasharray.size) + public var size : UInt32 { + get { try! _default.get_SizeImpl() } + } + + private lazy var _IIterable: IIterableFloat! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionstrokedasharray.first) + public func first() -> WindowsFoundation.AnyIIterator? { + try! _IIterable.FirstImpl() + } + + deinit { + _default = nil + _IIterable = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionsurfacebrush) +public final class CompositionSurfaceBrush : WinAppSDK.CompositionBrush { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionSurfaceBrush + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionSurfaceBrush + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CICompositionSurfaceBrush>?) -> CompositionSurfaceBrush? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionsurfacebrush.bitmapinterpolationmode) + public var bitmapInterpolationMode : CompositionBitmapInterpolationMode { + get { try! _default.get_BitmapInterpolationModeImpl() } + set { try! _default.put_BitmapInterpolationModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionsurfacebrush.horizontalalignmentratio) + public var horizontalAlignmentRatio : Float { + get { try! _default.get_HorizontalAlignmentRatioImpl() } + set { try! _default.put_HorizontalAlignmentRatioImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionsurfacebrush.stretch) + public var stretch : CompositionStretch { + get { try! _default.get_StretchImpl() } + set { try! _default.put_StretchImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionsurfacebrush.surface) + public var surface : AnyICompositionSurface! { + get { try! _default.get_SurfaceImpl() } + set { try! _default.put_SurfaceImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionsurfacebrush.verticalalignmentratio) + public var verticalAlignmentRatio : Float { + get { try! _default.get_VerticalAlignmentRatioImpl() } + set { try! _default.put_VerticalAlignmentRatioImpl(newValue) } + } + + private lazy var _ICompositionSurfaceBrush2: __ABI_Microsoft_UI_Composition.ICompositionSurfaceBrush2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionsurfacebrush.anchorpoint) + public var anchorPoint : WindowsFoundation.Vector2 { + get { try! _ICompositionSurfaceBrush2.get_AnchorPointImpl() } + set { try! _ICompositionSurfaceBrush2.put_AnchorPointImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionsurfacebrush.centerpoint) + public var centerPoint : WindowsFoundation.Vector2 { + get { try! _ICompositionSurfaceBrush2.get_CenterPointImpl() } + set { try! _ICompositionSurfaceBrush2.put_CenterPointImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionsurfacebrush.offset) + public var offset : WindowsFoundation.Vector2 { + get { try! _ICompositionSurfaceBrush2.get_OffsetImpl() } + set { try! _ICompositionSurfaceBrush2.put_OffsetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionsurfacebrush.rotationangle) + public var rotationAngle : Float { + get { try! _ICompositionSurfaceBrush2.get_RotationAngleImpl() } + set { try! _ICompositionSurfaceBrush2.put_RotationAngleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionsurfacebrush.rotationangleindegrees) + public var rotationAngleInDegrees : Float { + get { try! _ICompositionSurfaceBrush2.get_RotationAngleInDegreesImpl() } + set { try! _ICompositionSurfaceBrush2.put_RotationAngleInDegreesImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionsurfacebrush.scale) + public var scale : WindowsFoundation.Vector2 { + get { try! _ICompositionSurfaceBrush2.get_ScaleImpl() } + set { try! _ICompositionSurfaceBrush2.put_ScaleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionsurfacebrush.transformmatrix) + public var transformMatrix : WindowsFoundation.Matrix3x2 { + get { try! _ICompositionSurfaceBrush2.get_TransformMatrixImpl() } + set { try! _ICompositionSurfaceBrush2.put_TransformMatrixImpl(newValue) } + } + + private lazy var _ICompositionSurfaceBrush3: __ABI_Microsoft_UI_Composition.ICompositionSurfaceBrush3! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionsurfacebrush.snaptopixels) + public var snapToPixels : Bool { + get { try! _ICompositionSurfaceBrush3.get_SnapToPixelsImpl() } + set { try! _ICompositionSurfaceBrush3.put_SnapToPixelsImpl(newValue) } + } + + deinit { + _default = nil + _ICompositionSurfaceBrush2 = nil + _ICompositionSurfaceBrush3 = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositiontransform) +open class CompositionTransform : WinAppSDK.CompositionObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionTransform + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionTransform + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override open func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CICompositionTransform>?) -> CompositionTransform? { + guard let abi = abi else { return nil } + return UnsealedWinRTClassWrapper.unwrapFrom(base: abi) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + @_spi(WinRTInternal) + override public init( + composing: Composable.Type, + _ createCallback: (UnsealedWinRTClassWrapper?, inout WindowsFoundation.IInspectable?) -> Composable.Default.SwiftABI) + { + super.init(composing: composing, createCallback) + } + override open func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + return super.queryInterface(iid) + } + private static var _ICompositionTransformFactory : __ABI_Microsoft_UI_Composition.ICompositionTransformFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Composition.CompositionTransform")) + + internal enum ICompositionTransform : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = CompositionTransform + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionTransform + internal typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionTransform + } + } + internal typealias Composable = ICompositionTransform + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionviewbox) +public final class CompositionViewBox : WinAppSDK.CompositionObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionViewBox + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionViewBox + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CICompositionViewBox>?) -> CompositionViewBox? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionviewbox.horizontalalignmentratio) + public var horizontalAlignmentRatio : Float { + get { try! _default.get_HorizontalAlignmentRatioImpl() } + set { try! _default.put_HorizontalAlignmentRatioImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionviewbox.offset) + public var offset : WindowsFoundation.Vector2 { + get { try! _default.get_OffsetImpl() } + set { try! _default.put_OffsetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionviewbox.size) + public var size : WindowsFoundation.Vector2 { + get { try! _default.get_SizeImpl() } + set { try! _default.put_SizeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionviewbox.stretch) + public var stretch : CompositionStretch { + get { try! _default.get_StretchImpl() } + set { try! _default.put_StretchImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionviewbox.verticalalignmentratio) + public var verticalAlignmentRatio : Float { + get { try! _default.get_VerticalAlignmentRatioImpl() } + set { try! _default.put_VerticalAlignmentRatioImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionvirtualdrawingsurface) +open class CompositionVirtualDrawingSurface : WinAppSDK.CompositionDrawingSurface { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionVirtualDrawingSurface + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionVirtualDrawingSurface + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override open func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CICompositionVirtualDrawingSurface>?) -> CompositionVirtualDrawingSurface? { + guard let abi = abi else { return nil } + return UnsealedWinRTClassWrapper.unwrapFrom(base: abi) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + @_spi(WinRTInternal) + override public init( + composing: Composable.Type, + _ createCallback: (UnsealedWinRTClassWrapper?, inout WindowsFoundation.IInspectable?) -> Composable.Default.SwiftABI) + { + super.init(composing: composing, createCallback) + } + override open func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + return super.queryInterface(iid) + } + private static var _ICompositionVirtualDrawingSurfaceFactory : __ABI_Microsoft_UI_Composition.ICompositionVirtualDrawingSurfaceFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Composition.CompositionVirtualDrawingSurface")) + + internal enum ICompositionVirtualDrawingSurface : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = CompositionVirtualDrawingSurface + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionVirtualDrawingSurface + internal typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionVirtualDrawingSurface + } + } + internal typealias Composable = ICompositionVirtualDrawingSurface + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionvisualsurface) +public final class CompositionVisualSurface : WinAppSDK.CompositionObject, ICompositionSurface { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositionVisualSurface + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositionVisualSurface + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CICompositionVisualSurface>?) -> CompositionVisualSurface? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + override public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + return super.queryInterface(iid) + } + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionvisualsurface.sourceoffset) + public var sourceOffset : WindowsFoundation.Vector2 { + get { try! _default.get_SourceOffsetImpl() } + set { try! _default.put_SourceOffsetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionvisualsurface.sourcesize) + public var sourceSize : WindowsFoundation.Vector2 { + get { try! _default.get_SourceSizeImpl() } + set { try! _default.put_SourceSizeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionvisualsurface.sourcevisual) + public var sourceVisual : Visual! { + get { try! _default.get_SourceVisualImpl() } + set { try! _default.put_SourceVisualImpl(newValue) } + } + + private lazy var _ICompositionSurface: __ABI_Microsoft_UI_Composition.ICompositionSurface! = getInterfaceForCaching() + deinit { + _default = nil + _ICompositionSurface = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor) +public final class Compositor : WinRTClass, WindowsFoundation.IClosable { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICompositor + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICompositor + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CICompositor>?) -> Compositor? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + override public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + return super.queryInterface(iid) + } + override public init() { + super.init(try! RoActivateInstance(HString("Microsoft.UI.Composition.Compositor"))) + } + + private static let _ICompositorStatics: __ABI_Microsoft_UI_Composition.ICompositorStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Composition.Compositor")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.maxglobalplaybackrate) + public static var maxGlobalPlaybackRate : Float { + get { try! _ICompositorStatics.get_MaxGlobalPlaybackRateImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.minglobalplaybackrate) + public static var minGlobalPlaybackRate : Float { + get { try! _ICompositorStatics.get_MinGlobalPlaybackRateImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createcolorkeyframeanimation) + public func createColorKeyFrameAnimation() throws -> ColorKeyFrameAnimation! { + try _default.CreateColorKeyFrameAnimationImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createcolorbrush) + public func createColorBrush() throws -> CompositionColorBrush! { + try _default.CreateColorBrushImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createcolorbrush) + public func createColorBrush(_ color: UWP.Color) throws -> CompositionColorBrush! { + try _default.CreateColorBrushWithColorImpl(color) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createcontainervisual) + public func createContainerVisual() throws -> ContainerVisual! { + try _default.CreateContainerVisualImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createcubicbeziereasingfunction) + public func createCubicBezierEasingFunction(_ controlPoint1: WindowsFoundation.Vector2, _ controlPoint2: WindowsFoundation.Vector2) throws -> CubicBezierEasingFunction! { + try _default.CreateCubicBezierEasingFunctionImpl(controlPoint1, controlPoint2) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createeffectfactory) + public func createEffectFactory(_ graphicsEffect: UWP.AnyIGraphicsEffect!) throws -> CompositionEffectFactory! { + try _default.CreateEffectFactoryImpl(graphicsEffect) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createeffectfactory) + public func createEffectFactory(_ graphicsEffect: UWP.AnyIGraphicsEffect!, _ animatableProperties: WindowsFoundation.AnyIIterable!) throws -> CompositionEffectFactory! { + try _default.CreateEffectFactoryWithPropertiesImpl(graphicsEffect, animatableProperties) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createexpressionanimation) + public func createExpressionAnimation() throws -> ExpressionAnimation! { + try _default.CreateExpressionAnimationImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createexpressionanimation) + public func createExpressionAnimation(_ expression: String) throws -> ExpressionAnimation! { + try _default.CreateExpressionAnimationWithExpressionImpl(expression) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createinsetclip) + public func createInsetClip() throws -> InsetClip! { + try _default.CreateInsetClipImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createinsetclip) + public func createInsetClip(_ leftInset: Float, _ topInset: Float, _ rightInset: Float, _ bottomInset: Float) throws -> InsetClip! { + try _default.CreateInsetClipWithInsetsImpl(leftInset, topInset, rightInset, bottomInset) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createlineareasingfunction) + public func createLinearEasingFunction() throws -> LinearEasingFunction! { + try _default.CreateLinearEasingFunctionImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createpropertyset) + public func createPropertySet() throws -> CompositionPropertySet! { + try _default.CreatePropertySetImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createquaternionkeyframeanimation) + public func createQuaternionKeyFrameAnimation() throws -> QuaternionKeyFrameAnimation! { + try _default.CreateQuaternionKeyFrameAnimationImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createscalarkeyframeanimation) + public func createScalarKeyFrameAnimation() throws -> ScalarKeyFrameAnimation! { + try _default.CreateScalarKeyFrameAnimationImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createscopedbatch) + public func createScopedBatch(_ batchType: CompositionBatchTypes) throws -> CompositionScopedBatch! { + try _default.CreateScopedBatchImpl(batchType) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createspritevisual) + public func createSpriteVisual() throws -> SpriteVisual! { + try _default.CreateSpriteVisualImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createsurfacebrush) + public func createSurfaceBrush() throws -> CompositionSurfaceBrush! { + try _default.CreateSurfaceBrushImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createsurfacebrush) + public func createSurfaceBrush(_ surface: AnyICompositionSurface!) throws -> CompositionSurfaceBrush! { + try _default.CreateSurfaceBrushWithSurfaceImpl(surface) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createvector2keyframeanimation) + public func createVector2KeyFrameAnimation() throws -> Vector2KeyFrameAnimation! { + try _default.CreateVector2KeyFrameAnimationImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createvector3keyframeanimation) + public func createVector3KeyFrameAnimation() throws -> Vector3KeyFrameAnimation! { + try _default.CreateVector3KeyFrameAnimationImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createvector4keyframeanimation) + public func createVector4KeyFrameAnimation() throws -> Vector4KeyFrameAnimation! { + try _default.CreateVector4KeyFrameAnimationImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.getcommitbatch) + public func getCommitBatch(_ batchType: CompositionBatchTypes) throws -> CompositionCommitBatch! { + try _default.GetCommitBatchImpl(batchType) + } + + private lazy var _ICompositor2: __ABI_Microsoft_UI_Composition.ICompositor2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createambientlight) + public func createAmbientLight() throws -> AmbientLight! { + try _ICompositor2.CreateAmbientLightImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createanimationgroup) + public func createAnimationGroup() throws -> CompositionAnimationGroup! { + try _ICompositor2.CreateAnimationGroupImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createbackdropbrush) + public func createBackdropBrush() throws -> CompositionBackdropBrush! { + try _ICompositor2.CreateBackdropBrushImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createdistantlight) + public func createDistantLight() throws -> DistantLight! { + try _ICompositor2.CreateDistantLightImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createdropshadow) + public func createDropShadow() throws -> DropShadow! { + try _ICompositor2.CreateDropShadowImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createimplicitanimationcollection) + public func createImplicitAnimationCollection() throws -> ImplicitAnimationCollection! { + try _ICompositor2.CreateImplicitAnimationCollectionImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createlayervisual) + public func createLayerVisual() throws -> LayerVisual! { + try _ICompositor2.CreateLayerVisualImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createmaskbrush) + public func createMaskBrush() throws -> CompositionMaskBrush! { + try _ICompositor2.CreateMaskBrushImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createninegridbrush) + public func createNineGridBrush() throws -> CompositionNineGridBrush! { + try _ICompositor2.CreateNineGridBrushImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createpointlight) + public func createPointLight() throws -> PointLight! { + try _ICompositor2.CreatePointLightImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createspotlight) + public func createSpotLight() throws -> SpotLight! { + try _ICompositor2.CreateSpotLightImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createstepeasingfunction) + public func createStepEasingFunction() throws -> StepEasingFunction! { + try _ICompositor2.CreateStepEasingFunctionImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createstepeasingfunction) + public func createStepEasingFunction(_ stepCount: Int32) throws -> StepEasingFunction! { + try _ICompositor2.CreateStepEasingFunctionWithStepCountImpl(stepCount) + } + + private lazy var _ICompositor4: __ABI_Microsoft_UI_Composition.ICompositor4! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createcolorgradientstop) + public func createColorGradientStop() throws -> CompositionColorGradientStop! { + try _ICompositor4.CreateColorGradientStopImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createcolorgradientstop) + public func createColorGradientStop(_ offset: Float, _ color: UWP.Color) throws -> CompositionColorGradientStop! { + try _ICompositor4.CreateColorGradientStopWithOffsetAndColorImpl(offset, color) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createlineargradientbrush) + public func createLinearGradientBrush() throws -> CompositionLinearGradientBrush! { + try _ICompositor4.CreateLinearGradientBrushImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createspringscalaranimation) + public func createSpringScalarAnimation() throws -> SpringScalarNaturalMotionAnimation! { + try _ICompositor4.CreateSpringScalarAnimationImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createspringvector2animation) + public func createSpringVector2Animation() throws -> SpringVector2NaturalMotionAnimation! { + try _ICompositor4.CreateSpringVector2AnimationImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createspringvector3animation) + public func createSpringVector3Animation() throws -> SpringVector3NaturalMotionAnimation! { + try _ICompositor4.CreateSpringVector3AnimationImpl() + } + + private lazy var _ICompositor5: __ABI_Microsoft_UI_Composition.ICompositor5! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createbouncescalaranimation) + public func createBounceScalarAnimation() throws -> BounceScalarNaturalMotionAnimation! { + try _ICompositor5.CreateBounceScalarAnimationImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createbouncevector2animation) + public func createBounceVector2Animation() throws -> BounceVector2NaturalMotionAnimation! { + try _ICompositor5.CreateBounceVector2AnimationImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createbouncevector3animation) + public func createBounceVector3Animation() throws -> BounceVector3NaturalMotionAnimation! { + try _ICompositor5.CreateBounceVector3AnimationImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createcontainershape) + public func createContainerShape() throws -> CompositionContainerShape! { + try _ICompositor5.CreateContainerShapeImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createellipsegeometry) + public func createEllipseGeometry() throws -> CompositionEllipseGeometry! { + try _ICompositor5.CreateEllipseGeometryImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createlinegeometry) + public func createLineGeometry() throws -> CompositionLineGeometry! { + try _ICompositor5.CreateLineGeometryImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createpathgeometry) + public func createPathGeometry() throws -> CompositionPathGeometry! { + try _ICompositor5.CreatePathGeometryImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createpathgeometry) + public func createPathGeometry(_ path: CompositionPath!) throws -> CompositionPathGeometry! { + try _ICompositor5.CreatePathGeometryWithPathImpl(path) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createpathkeyframeanimation) + public func createPathKeyFrameAnimation() throws -> PathKeyFrameAnimation! { + try _ICompositor5.CreatePathKeyFrameAnimationImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createrectanglegeometry) + public func createRectangleGeometry() throws -> CompositionRectangleGeometry! { + try _ICompositor5.CreateRectangleGeometryImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createroundedrectanglegeometry) + public func createRoundedRectangleGeometry() throws -> CompositionRoundedRectangleGeometry! { + try _ICompositor5.CreateRoundedRectangleGeometryImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createshapevisual) + public func createShapeVisual() throws -> ShapeVisual! { + try _ICompositor5.CreateShapeVisualImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createspriteshape) + public func createSpriteShape() throws -> CompositionSpriteShape! { + try _ICompositor5.CreateSpriteShapeImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createspriteshape) + public func createSpriteShape(_ geometry: CompositionGeometry!) throws -> CompositionSpriteShape! { + try _ICompositor5.CreateSpriteShapeWithGeometryImpl(geometry) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createviewbox) + public func createViewBox() throws -> CompositionViewBox! { + try _ICompositor5.CreateViewBoxImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.requestcommitasync) + public func requestCommitAsync() throws -> WindowsFoundation.AnyIAsyncAction! { + try _ICompositor5.RequestCommitAsyncImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.comment) + public var comment : String { + get { try! _ICompositor5.get_CommentImpl() } + set { try! _ICompositor5.put_CommentImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.globalplaybackrate) + public var globalPlaybackRate : Float { + get { try! _ICompositor5.get_GlobalPlaybackRateImpl() } + set { try! _ICompositor5.put_GlobalPlaybackRateImpl(newValue) } + } + + private lazy var _ICompositor6: __ABI_Microsoft_UI_Composition.ICompositor6! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.creategeometricclip) + public func createGeometricClip() throws -> CompositionGeometricClip! { + try _ICompositor6.CreateGeometricClipImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.creategeometricclip) + public func createGeometricClip(_ geometry: CompositionGeometry!) throws -> CompositionGeometricClip! { + try _ICompositor6.CreateGeometricClipWithGeometryImpl(geometry) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createredirectvisual) + public func createRedirectVisual() throws -> RedirectVisual! { + try _ICompositor6.CreateRedirectVisualImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createredirectvisual) + public func createRedirectVisual(_ source: Visual!) throws -> RedirectVisual! { + try _ICompositor6.CreateRedirectVisualWithSourceVisualImpl(source) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createbooleankeyframeanimation) + public func createBooleanKeyFrameAnimation() throws -> BooleanKeyFrameAnimation! { + try _ICompositor6.CreateBooleanKeyFrameAnimationImpl() + } + + private lazy var _ICompositor7: __ABI_Microsoft_UI_Composition.ICompositor7! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createanimationpropertyinfo) + public func createAnimationPropertyInfo() throws -> AnimationPropertyInfo! { + try _ICompositor7.CreateAnimationPropertyInfoImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createrectangleclip) + public func createRectangleClip() throws -> RectangleClip! { + try _ICompositor7.CreateRectangleClipImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createrectangleclip) + public func createRectangleClip(_ left: Float, _ top: Float, _ right: Float, _ bottom: Float) throws -> RectangleClip! { + try _ICompositor7.CreateRectangleClipWithSidesImpl(left, top, right, bottom) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createrectangleclip) + public func createRectangleClip(_ left: Float, _ top: Float, _ right: Float, _ bottom: Float, _ topLeftRadius: WindowsFoundation.Vector2, _ topRightRadius: WindowsFoundation.Vector2, _ bottomRightRadius: WindowsFoundation.Vector2, _ bottomLeftRadius: WindowsFoundation.Vector2) throws -> RectangleClip! { + try _ICompositor7.CreateRectangleClipWithSidesAndRadiusImpl(left, top, right, bottom, topLeftRadius, topRightRadius, bottomRightRadius, bottomLeftRadius) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.dispatcherqueue) + public var dispatcherQueue : WinAppSDK.DispatcherQueue! { + get { try! _ICompositor7.get_DispatcherQueueImpl() } + } + + private lazy var _ICompositorWithProjectedShadow: __ABI_Microsoft_UI_Composition.ICompositorWithProjectedShadow! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createprojectedshadowcaster) + public func createProjectedShadowCaster() throws -> CompositionProjectedShadowCaster! { + try _ICompositorWithProjectedShadow.CreateProjectedShadowCasterImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createprojectedshadow) + public func createProjectedShadow() throws -> CompositionProjectedShadow! { + try _ICompositorWithProjectedShadow.CreateProjectedShadowImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createprojectedshadowreceiver) + public func createProjectedShadowReceiver() throws -> CompositionProjectedShadowReceiver! { + try _ICompositorWithProjectedShadow.CreateProjectedShadowReceiverImpl() + } + + private lazy var _ICompositorWithRadialGradient: __ABI_Microsoft_UI_Composition.ICompositorWithRadialGradient! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createradialgradientbrush) + public func createRadialGradientBrush() throws -> CompositionRadialGradientBrush! { + try _ICompositorWithRadialGradient.CreateRadialGradientBrushImpl() + } + + private lazy var _ICompositorWithVisualSurface: __ABI_Microsoft_UI_Composition.ICompositorWithVisualSurface! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createvisualsurface) + public func createVisualSurface() throws -> CompositionVisualSurface! { + try _ICompositorWithVisualSurface.CreateVisualSurfaceImpl() + } + + private lazy var _ICompositor8: __ABI_Microsoft_UI_Composition.ICompositor8! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.createanimationcontroller) + public func createAnimationController() throws -> AnimationController! { + try _ICompositor8.CreateAnimationControllerImpl() + } + + private lazy var _IClosable: __ABI_Windows_Foundation.IClosable! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositor.close) + public func close() throws { + try _IClosable.CloseImpl() + } + + deinit { + _default = nil + _ICompositor2 = nil + _ICompositor4 = nil + _ICompositor5 = nil + _ICompositor6 = nil + _ICompositor7 = nil + _ICompositorWithProjectedShadow = nil + _ICompositorWithRadialGradient = nil + _ICompositorWithVisualSurface = nil + _ICompositor8 = nil + _IClosable = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.containervisual) +open class ContainerVisual : WinAppSDK.Visual { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.IContainerVisual + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CIContainerVisual + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override open func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CIContainerVisual>?) -> ContainerVisual? { + guard let abi = abi else { return nil } + return UnsealedWinRTClassWrapper.unwrapFrom(base: abi) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + @_spi(WinRTInternal) + override public init( + composing: Composable.Type, + _ createCallback: (UnsealedWinRTClassWrapper?, inout WindowsFoundation.IInspectable?) -> Composable.Default.SwiftABI) + { + super.init(composing: composing, createCallback) + } + override open func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + return super.queryInterface(iid) + } + private static var _IContainerVisualFactory : __ABI_Microsoft_UI_Composition.IContainerVisualFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Composition.ContainerVisual")) + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.containervisual.children) + public var children : VisualCollection! { + get { try! _default.get_ChildrenImpl() } + } + + internal enum IContainerVisual : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = ContainerVisual + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CIContainerVisual + internal typealias SwiftABI = __ABI_Microsoft_UI_Composition.IContainerVisual + } + } + internal typealias Composable = IContainerVisual + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.cubicbeziereasingfunction) +public final class CubicBezierEasingFunction : WinAppSDK.CompositionEasingFunction { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ICubicBezierEasingFunction + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CICubicBezierEasingFunction + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CICubicBezierEasingFunction>?) -> CubicBezierEasingFunction? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.cubicbeziereasingfunction.controlpoint1) + public var controlPoint1 : WindowsFoundation.Vector2 { + get { try! _default.get_ControlPoint1Impl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.cubicbeziereasingfunction.controlpoint2) + public var controlPoint2 : WindowsFoundation.Vector2 { + get { try! _default.get_ControlPoint2Impl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.distantlight) +public final class DistantLight : WinAppSDK.CompositionLight { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.IDistantLight + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CIDistantLight + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CIDistantLight>?) -> DistantLight? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.distantlight.color) + public var color : UWP.Color { + get { try! _default.get_ColorImpl() } + set { try! _default.put_ColorImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.distantlight.coordinatespace) + public var coordinateSpace : Visual! { + get { try! _default.get_CoordinateSpaceImpl() } + set { try! _default.put_CoordinateSpaceImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.distantlight.direction) + public var direction : WindowsFoundation.Vector3 { + get { try! _default.get_DirectionImpl() } + set { try! _default.put_DirectionImpl(newValue) } + } + + private lazy var _IDistantLight2: __ABI_Microsoft_UI_Composition.IDistantLight2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.distantlight.intensity) + public var intensity : Float { + get { try! _IDistantLight2.get_IntensityImpl() } + set { try! _IDistantLight2.put_IntensityImpl(newValue) } + } + + deinit { + _default = nil + _IDistantLight2 = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.dropshadow) +public final class DropShadow : WinAppSDK.CompositionShadow { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.IDropShadow + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CIDropShadow + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CIDropShadow>?) -> DropShadow? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.dropshadow.blurradius) + public var blurRadius : Float { + get { try! _default.get_BlurRadiusImpl() } + set { try! _default.put_BlurRadiusImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.dropshadow.color) + public var color : UWP.Color { + get { try! _default.get_ColorImpl() } + set { try! _default.put_ColorImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.dropshadow.mask) + public var mask : CompositionBrush! { + get { try! _default.get_MaskImpl() } + set { try! _default.put_MaskImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.dropshadow.offset) + public var offset : WindowsFoundation.Vector3 { + get { try! _default.get_OffsetImpl() } + set { try! _default.put_OffsetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.dropshadow.opacity) + public var opacity : Float { + get { try! _default.get_OpacityImpl() } + set { try! _default.put_OpacityImpl(newValue) } + } + + private lazy var _IDropShadow2: __ABI_Microsoft_UI_Composition.IDropShadow2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.dropshadow.sourcepolicy) + public var sourcePolicy : CompositionDropShadowSourcePolicy { + get { try! _IDropShadow2.get_SourcePolicyImpl() } + set { try! _IDropShadow2.put_SourcePolicyImpl(newValue) } + } + + deinit { + _default = nil + _IDropShadow2 = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.elasticeasingfunction) +public final class ElasticEasingFunction : WinAppSDK.CompositionEasingFunction { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.IElasticEasingFunction + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CIElasticEasingFunction + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CIElasticEasingFunction>?) -> ElasticEasingFunction? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.elasticeasingfunction.mode) + public var mode : CompositionEasingFunctionMode { + get { try! _default.get_ModeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.elasticeasingfunction.oscillations) + public var oscillations : Int32 { + get { try! _default.get_OscillationsImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.elasticeasingfunction.springiness) + public var springiness : Float { + get { try! _default.get_SpringinessImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.exponentialeasingfunction) +public final class ExponentialEasingFunction : WinAppSDK.CompositionEasingFunction { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.IExponentialEasingFunction + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CIExponentialEasingFunction + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CIExponentialEasingFunction>?) -> ExponentialEasingFunction? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.exponentialeasingfunction.exponent) + public var exponent : Float { + get { try! _default.get_ExponentImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.exponentialeasingfunction.mode) + public var mode : CompositionEasingFunctionMode { + get { try! _default.get_ModeImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.expressionanimation) +public final class ExpressionAnimation : WinAppSDK.CompositionAnimation { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.IExpressionAnimation + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CIExpressionAnimation + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CIExpressionAnimation>?) -> ExpressionAnimation? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.expressionanimation.expression) + public var expression : String { + get { try! _default.get_ExpressionImpl() } + set { try! _default.put_ExpressionImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.implicitanimationcollection) +public final class ImplicitAnimationCollection : WinAppSDK.CompositionObject, IIterable, IMap { + public typealias T = WindowsFoundation.AnyIKeyValuePair? + public typealias K = String + public typealias V = AnyICompositionAnimationBase? + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.IImplicitAnimationCollection + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CIImplicitAnimationCollection + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CIImplicitAnimationCollection>?) -> ImplicitAnimationCollection? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + override public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + return super.queryInterface(iid) + } + private lazy var _IIterable: IIterableIKeyValuePairString_ICompositionAnimationBase! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.implicitanimationcollection.first) + public func first() -> WindowsFoundation.AnyIIterator?>? { + try! _IIterable.FirstImpl() + } + + private lazy var _IMap: IMapString_ICompositionAnimationBase! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.implicitanimationcollection.lookup) + public func lookup(_ key: String) -> AnyICompositionAnimationBase? { + try! _IMap.LookupImpl(key) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.implicitanimationcollection.haskey) + public func hasKey(_ key: String) -> Bool { + try! _IMap.HasKeyImpl(key) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.implicitanimationcollection.getview) + public func getView() -> WindowsFoundation.AnyIMapView? { + try! _IMap.GetViewImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.implicitanimationcollection.insert) + public func insert(_ key: String, _ value: AnyICompositionAnimationBase?) -> Bool { + try! _IMap.InsertImpl(key, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.implicitanimationcollection.remove) + public func remove(_ key: String) { + try! _IMap.RemoveImpl(key) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.implicitanimationcollection.clear) + public func clear() { + try! _IMap.ClearImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.implicitanimationcollection.size) + public var size : UInt32 { + get { try! _IMap.get_SizeImpl() } + } + + deinit { + _default = nil + _IIterable = nil + _IMap = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.initialvalueexpressioncollection) +public final class InitialValueExpressionCollection : WinAppSDK.CompositionObject, IMap, IIterable { + public typealias K = String + public typealias V = String + public typealias T = WindowsFoundation.AnyIKeyValuePair? + private typealias SwiftABI = WinAppSDK.IMapString_String + private typealias CABI = __x_ABI_C__FIMap_2_HSTRING_HSTRING + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_C__FIMap_2_HSTRING_HSTRING>?) -> InitialValueExpressionCollection? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + override public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + return super.queryInterface(iid) + } + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.initialvalueexpressioncollection.lookup) + public func lookup(_ key: String) -> String { + try! _default.LookupImpl(key) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.initialvalueexpressioncollection.haskey) + public func hasKey(_ key: String) -> Bool { + try! _default.HasKeyImpl(key) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.initialvalueexpressioncollection.getview) + public func getView() -> WindowsFoundation.AnyIMapView? { + try! _default.GetViewImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.initialvalueexpressioncollection.insert) + public func insert(_ key: String, _ value: String) -> Bool { + try! _default.InsertImpl(key, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.initialvalueexpressioncollection.remove) + public func remove(_ key: String) { + try! _default.RemoveImpl(key) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.initialvalueexpressioncollection.clear) + public func clear() { + try! _default.ClearImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.initialvalueexpressioncollection.size) + public var size : UInt32 { + get { try! _default.get_SizeImpl() } + } + + private lazy var _IIterable: IIterableIKeyValuePairString_String! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.initialvalueexpressioncollection.first) + public func first() -> WindowsFoundation.AnyIIterator?>? { + try! _IIterable.FirstImpl() + } + + deinit { + _default = nil + _IIterable = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.insetclip) +public final class InsetClip : WinAppSDK.CompositionClip { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.IInsetClip + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CIInsetClip + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CIInsetClip>?) -> InsetClip? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.insetclip.bottominset) + public var bottomInset : Float { + get { try! _default.get_BottomInsetImpl() } + set { try! _default.put_BottomInsetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.insetclip.leftinset) + public var leftInset : Float { + get { try! _default.get_LeftInsetImpl() } + set { try! _default.put_LeftInsetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.insetclip.rightinset) + public var rightInset : Float { + get { try! _default.get_RightInsetImpl() } + set { try! _default.put_RightInsetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.insetclip.topinset) + public var topInset : Float { + get { try! _default.get_TopInsetImpl() } + set { try! _default.put_TopInsetImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.keyframeanimation) +open class KeyFrameAnimation : WinAppSDK.CompositionAnimation { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.IKeyFrameAnimation + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CIKeyFrameAnimation + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override open func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CIKeyFrameAnimation>?) -> KeyFrameAnimation? { + guard let abi = abi else { return nil } + return UnsealedWinRTClassWrapper.unwrapFrom(base: abi) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + @_spi(WinRTInternal) + override public init( + composing: Composable.Type, + _ createCallback: (UnsealedWinRTClassWrapper?, inout WindowsFoundation.IInspectable?) -> Composable.Default.SwiftABI) + { + super.init(composing: composing, createCallback) + } + override open func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + return super.queryInterface(iid) + } + private static var _IKeyFrameAnimationFactory : __ABI_Microsoft_UI_Composition.IKeyFrameAnimationFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Composition.KeyFrameAnimation")) + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.keyframeanimation.insertexpressionkeyframe) + public func insertExpressionKeyFrame(_ normalizedProgressKey: Float, _ value: String) throws { + try _default.InsertExpressionKeyFrameImpl(normalizedProgressKey, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.keyframeanimation.insertexpressionkeyframe) + public func insertExpressionKeyFrame(_ normalizedProgressKey: Float, _ value: String, _ easingFunction: CompositionEasingFunction!) throws { + try _default.InsertExpressionKeyFrameWithEasingFunctionImpl(normalizedProgressKey, value, easingFunction) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.keyframeanimation.delaytime) + public var delayTime : WindowsFoundation.TimeSpan { + get { try! _default.get_DelayTimeImpl() } + set { try! _default.put_DelayTimeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.keyframeanimation.duration) + public var duration : WindowsFoundation.TimeSpan { + get { try! _default.get_DurationImpl() } + set { try! _default.put_DurationImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.keyframeanimation.iterationbehavior) + public var iterationBehavior : AnimationIterationBehavior { + get { try! _default.get_IterationBehaviorImpl() } + set { try! _default.put_IterationBehaviorImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.keyframeanimation.iterationcount) + public var iterationCount : Int32 { + get { try! _default.get_IterationCountImpl() } + set { try! _default.put_IterationCountImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.keyframeanimation.keyframecount) + public var keyFrameCount : Int32 { + get { try! _default.get_KeyFrameCountImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.keyframeanimation.stopbehavior) + public var stopBehavior : AnimationStopBehavior { + get { try! _default.get_StopBehaviorImpl() } + set { try! _default.put_StopBehaviorImpl(newValue) } + } + + private lazy var _IKeyFrameAnimation2: __ABI_Microsoft_UI_Composition.IKeyFrameAnimation2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.keyframeanimation.direction) + public var direction : AnimationDirection { + get { try! _IKeyFrameAnimation2.get_DirectionImpl() } + set { try! _IKeyFrameAnimation2.put_DirectionImpl(newValue) } + } + + private lazy var _IKeyFrameAnimation3: __ABI_Microsoft_UI_Composition.IKeyFrameAnimation3! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.keyframeanimation.delaybehavior) + public var delayBehavior : AnimationDelayBehavior { + get { try! _IKeyFrameAnimation3.get_DelayBehaviorImpl() } + set { try! _IKeyFrameAnimation3.put_DelayBehaviorImpl(newValue) } + } + + internal enum IKeyFrameAnimation : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = KeyFrameAnimation + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CIKeyFrameAnimation + internal typealias SwiftABI = __ABI_Microsoft_UI_Composition.IKeyFrameAnimation + } + } + internal typealias Composable = IKeyFrameAnimation + deinit { + _default = nil + _IKeyFrameAnimation2 = nil + _IKeyFrameAnimation3 = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.layervisual) +public final class LayerVisual : WinAppSDK.ContainerVisual { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ILayerVisual + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CILayerVisual + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CILayerVisual>?) -> LayerVisual? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.layervisual.effect) + public var effect : CompositionEffectBrush! { + get { try! _default.get_EffectImpl() } + set { try! _default.put_EffectImpl(newValue) } + } + + private lazy var _ILayerVisual2: __ABI_Microsoft_UI_Composition.ILayerVisual2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.layervisual.shadow) + public var shadow : CompositionShadow! { + get { try! _ILayerVisual2.get_ShadowImpl() } + set { try! _ILayerVisual2.put_ShadowImpl(newValue) } + } + + deinit { + _default = nil + _ILayerVisual2 = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.lineareasingfunction) +public final class LinearEasingFunction : WinAppSDK.CompositionEasingFunction { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ILinearEasingFunction + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CILinearEasingFunction + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CILinearEasingFunction>?) -> LinearEasingFunction? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.naturalmotionanimation) +open class NaturalMotionAnimation : WinAppSDK.CompositionAnimation { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.INaturalMotionAnimation + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CINaturalMotionAnimation + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override open func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CINaturalMotionAnimation>?) -> NaturalMotionAnimation? { + guard let abi = abi else { return nil } + return UnsealedWinRTClassWrapper.unwrapFrom(base: abi) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + @_spi(WinRTInternal) + override public init( + composing: Composable.Type, + _ createCallback: (UnsealedWinRTClassWrapper?, inout WindowsFoundation.IInspectable?) -> Composable.Default.SwiftABI) + { + super.init(composing: composing, createCallback) + } + override open func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + return super.queryInterface(iid) + } + private static var _INaturalMotionAnimationFactory : __ABI_Microsoft_UI_Composition.INaturalMotionAnimationFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Composition.NaturalMotionAnimation")) + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.naturalmotionanimation.delaybehavior) + public var delayBehavior : AnimationDelayBehavior { + get { try! _default.get_DelayBehaviorImpl() } + set { try! _default.put_DelayBehaviorImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.naturalmotionanimation.delaytime) + public var delayTime : WindowsFoundation.TimeSpan { + get { try! _default.get_DelayTimeImpl() } + set { try! _default.put_DelayTimeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.naturalmotionanimation.stopbehavior) + public var stopBehavior : AnimationStopBehavior { + get { try! _default.get_StopBehaviorImpl() } + set { try! _default.put_StopBehaviorImpl(newValue) } + } + + internal enum INaturalMotionAnimation : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = NaturalMotionAnimation + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CINaturalMotionAnimation + internal typealias SwiftABI = __ABI_Microsoft_UI_Composition.INaturalMotionAnimation + } + } + internal typealias Composable = INaturalMotionAnimation + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.pathkeyframeanimation) +public final class PathKeyFrameAnimation : WinAppSDK.KeyFrameAnimation { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.IPathKeyFrameAnimation + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CIPathKeyFrameAnimation + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CIPathKeyFrameAnimation>?) -> PathKeyFrameAnimation? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.pathkeyframeanimation.insertkeyframe) + public func insertKeyFrame(_ normalizedProgressKey: Float, _ path: CompositionPath!) throws { + try _default.InsertKeyFrameImpl(normalizedProgressKey, path) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.pathkeyframeanimation.insertkeyframe) + public func insertKeyFrame(_ normalizedProgressKey: Float, _ path: CompositionPath!, _ easingFunction: CompositionEasingFunction!) throws { + try _default.InsertKeyFrameWithEasingFunctionImpl(normalizedProgressKey, path, easingFunction) + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.pointlight) +public final class PointLight : WinAppSDK.CompositionLight { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.IPointLight + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CIPointLight + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CIPointLight>?) -> PointLight? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.pointlight.color) + public var color : UWP.Color { + get { try! _default.get_ColorImpl() } + set { try! _default.put_ColorImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.pointlight.constantattenuation) + public var constantAttenuation : Float { + get { try! _default.get_ConstantAttenuationImpl() } + set { try! _default.put_ConstantAttenuationImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.pointlight.coordinatespace) + public var coordinateSpace : Visual! { + get { try! _default.get_CoordinateSpaceImpl() } + set { try! _default.put_CoordinateSpaceImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.pointlight.linearattenuation) + public var linearAttenuation : Float { + get { try! _default.get_LinearAttenuationImpl() } + set { try! _default.put_LinearAttenuationImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.pointlight.offset) + public var offset : WindowsFoundation.Vector3 { + get { try! _default.get_OffsetImpl() } + set { try! _default.put_OffsetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.pointlight.quadraticattenuation) + public var quadraticAttenuation : Float { + get { try! _default.get_QuadraticAttenuationImpl() } + set { try! _default.put_QuadraticAttenuationImpl(newValue) } + } + + private lazy var _IPointLight2: __ABI_Microsoft_UI_Composition.IPointLight2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.pointlight.intensity) + public var intensity : Float { + get { try! _IPointLight2.get_IntensityImpl() } + set { try! _IPointLight2.put_IntensityImpl(newValue) } + } + + private lazy var _IPointLight3: __ABI_Microsoft_UI_Composition.IPointLight3! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.pointlight.maxattenuationcutoff) + public var maxAttenuationCutoff : Float { + get { try! _IPointLight3.get_MaxAttenuationCutoffImpl() } + set { try! _IPointLight3.put_MaxAttenuationCutoffImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.pointlight.minattenuationcutoff) + public var minAttenuationCutoff : Float { + get { try! _IPointLight3.get_MinAttenuationCutoffImpl() } + set { try! _IPointLight3.put_MinAttenuationCutoffImpl(newValue) } + } + + deinit { + _default = nil + _IPointLight2 = nil + _IPointLight3 = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.powereasingfunction) +public final class PowerEasingFunction : WinAppSDK.CompositionEasingFunction { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.IPowerEasingFunction + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CIPowerEasingFunction + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CIPowerEasingFunction>?) -> PowerEasingFunction? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.powereasingfunction.mode) + public var mode : CompositionEasingFunctionMode { + get { try! _default.get_ModeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.powereasingfunction.power) + public var power : Float { + get { try! _default.get_PowerImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.quaternionkeyframeanimation) +public final class QuaternionKeyFrameAnimation : WinAppSDK.KeyFrameAnimation { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.IQuaternionKeyFrameAnimation + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CIQuaternionKeyFrameAnimation + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CIQuaternionKeyFrameAnimation>?) -> QuaternionKeyFrameAnimation? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.quaternionkeyframeanimation.insertkeyframe) + public func insertKeyFrame(_ normalizedProgressKey: Float, _ value: WindowsFoundation.Quaternion) throws { + try _default.InsertKeyFrameImpl(normalizedProgressKey, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.quaternionkeyframeanimation.insertkeyframe) + public func insertKeyFrame(_ normalizedProgressKey: Float, _ value: WindowsFoundation.Quaternion, _ easingFunction: CompositionEasingFunction!) throws { + try _default.InsertKeyFrameWithEasingFunctionImpl(normalizedProgressKey, value, easingFunction) + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.rectangleclip) +public final class RectangleClip : WinAppSDK.CompositionClip { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.IRectangleClip + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CIRectangleClip + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CIRectangleClip>?) -> RectangleClip? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.rectangleclip.bottom) + public var bottom : Float { + get { try! _default.get_BottomImpl() } + set { try! _default.put_BottomImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.rectangleclip.bottomleftradius) + public var bottomLeftRadius : WindowsFoundation.Vector2 { + get { try! _default.get_BottomLeftRadiusImpl() } + set { try! _default.put_BottomLeftRadiusImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.rectangleclip.bottomrightradius) + public var bottomRightRadius : WindowsFoundation.Vector2 { + get { try! _default.get_BottomRightRadiusImpl() } + set { try! _default.put_BottomRightRadiusImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.rectangleclip.left) + public var left : Float { + get { try! _default.get_LeftImpl() } + set { try! _default.put_LeftImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.rectangleclip.right) + public var right : Float { + get { try! _default.get_RightImpl() } + set { try! _default.put_RightImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.rectangleclip.top) + public var top : Float { + get { try! _default.get_TopImpl() } + set { try! _default.put_TopImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.rectangleclip.topleftradius) + public var topLeftRadius : WindowsFoundation.Vector2 { + get { try! _default.get_TopLeftRadiusImpl() } + set { try! _default.put_TopLeftRadiusImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.rectangleclip.toprightradius) + public var topRightRadius : WindowsFoundation.Vector2 { + get { try! _default.get_TopRightRadiusImpl() } + set { try! _default.put_TopRightRadiusImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.redirectvisual) +public final class RedirectVisual : WinAppSDK.ContainerVisual { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.IRedirectVisual + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CIRedirectVisual + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CIRedirectVisual>?) -> RedirectVisual? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.redirectvisual.source) + public var source : Visual! { + get { try! _default.get_SourceImpl() } + set { try! _default.put_SourceImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.renderingdevicereplacedeventargs) +public final class RenderingDeviceReplacedEventArgs : WinAppSDK.CompositionObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.IRenderingDeviceReplacedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CIRenderingDeviceReplacedEventArgs + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CIRenderingDeviceReplacedEventArgs>?) -> RenderingDeviceReplacedEventArgs? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.renderingdevicereplacedeventargs.graphicsdevice) + public var graphicsDevice : CompositionGraphicsDevice! { + get { try! _default.get_GraphicsDeviceImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.scalarkeyframeanimation) +public final class ScalarKeyFrameAnimation : WinAppSDK.KeyFrameAnimation { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.IScalarKeyFrameAnimation + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CIScalarKeyFrameAnimation + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CIScalarKeyFrameAnimation>?) -> ScalarKeyFrameAnimation? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.scalarkeyframeanimation.insertkeyframe) + public func insertKeyFrame(_ normalizedProgressKey: Float, _ value: Float) throws { + try _default.InsertKeyFrameImpl(normalizedProgressKey, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.scalarkeyframeanimation.insertkeyframe) + public func insertKeyFrame(_ normalizedProgressKey: Float, _ value: Float, _ easingFunction: CompositionEasingFunction!) throws { + try _default.InsertKeyFrameWithEasingFunctionImpl(normalizedProgressKey, value, easingFunction) + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.scalarnaturalmotionanimation) +open class ScalarNaturalMotionAnimation : WinAppSDK.NaturalMotionAnimation { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.IScalarNaturalMotionAnimation + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CIScalarNaturalMotionAnimation + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override open func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CIScalarNaturalMotionAnimation>?) -> ScalarNaturalMotionAnimation? { + guard let abi = abi else { return nil } + return UnsealedWinRTClassWrapper.unwrapFrom(base: abi) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + @_spi(WinRTInternal) + override public init( + composing: Composable.Type, + _ createCallback: (UnsealedWinRTClassWrapper?, inout WindowsFoundation.IInspectable?) -> Composable.Default.SwiftABI) + { + super.init(composing: composing, createCallback) + } + override open func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + return super.queryInterface(iid) + } + private static var _IScalarNaturalMotionAnimationFactory : __ABI_Microsoft_UI_Composition.IScalarNaturalMotionAnimationFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Composition.ScalarNaturalMotionAnimation")) + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.scalarnaturalmotionanimation.finalvalue) + public var finalValue : Float? { + get { try! _default.get_FinalValueImpl() } + set { try! _default.put_FinalValueImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.scalarnaturalmotionanimation.initialvalue) + public var initialValue : Float? { + get { try! _default.get_InitialValueImpl() } + set { try! _default.put_InitialValueImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.scalarnaturalmotionanimation.initialvelocity) + public var initialVelocity : Float { + get { try! _default.get_InitialVelocityImpl() } + set { try! _default.put_InitialVelocityImpl(newValue) } + } + + internal enum IScalarNaturalMotionAnimation : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = ScalarNaturalMotionAnimation + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CIScalarNaturalMotionAnimation + internal typealias SwiftABI = __ABI_Microsoft_UI_Composition.IScalarNaturalMotionAnimation + } + } + internal typealias Composable = IScalarNaturalMotionAnimation + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.shapevisual) +public final class ShapeVisual : WinAppSDK.ContainerVisual { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.IShapeVisual + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CIShapeVisual + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CIShapeVisual>?) -> ShapeVisual? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.shapevisual.shapes) + public var shapes : CompositionShapeCollection! { + get { try! _default.get_ShapesImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.shapevisual.viewbox) + public var viewBox : CompositionViewBox! { + get { try! _default.get_ViewBoxImpl() } + set { try! _default.put_ViewBoxImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.sineeasingfunction) +public final class SineEasingFunction : WinAppSDK.CompositionEasingFunction { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ISineEasingFunction + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CISineEasingFunction + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CISineEasingFunction>?) -> SineEasingFunction? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.sineeasingfunction.mode) + public var mode : CompositionEasingFunctionMode { + get { try! _default.get_ModeImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.spotlight) +public final class SpotLight : WinAppSDK.CompositionLight { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ISpotLight + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CISpotLight + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CISpotLight>?) -> SpotLight? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.spotlight.constantattenuation) + public var constantAttenuation : Float { + get { try! _default.get_ConstantAttenuationImpl() } + set { try! _default.put_ConstantAttenuationImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.spotlight.coordinatespace) + public var coordinateSpace : Visual! { + get { try! _default.get_CoordinateSpaceImpl() } + set { try! _default.put_CoordinateSpaceImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.spotlight.direction) + public var direction : WindowsFoundation.Vector3 { + get { try! _default.get_DirectionImpl() } + set { try! _default.put_DirectionImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.spotlight.innerconeangle) + public var innerConeAngle : Float { + get { try! _default.get_InnerConeAngleImpl() } + set { try! _default.put_InnerConeAngleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.spotlight.innerconeangleindegrees) + public var innerConeAngleInDegrees : Float { + get { try! _default.get_InnerConeAngleInDegreesImpl() } + set { try! _default.put_InnerConeAngleInDegreesImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.spotlight.innerconecolor) + public var innerConeColor : UWP.Color { + get { try! _default.get_InnerConeColorImpl() } + set { try! _default.put_InnerConeColorImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.spotlight.linearattenuation) + public var linearAttenuation : Float { + get { try! _default.get_LinearAttenuationImpl() } + set { try! _default.put_LinearAttenuationImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.spotlight.offset) + public var offset : WindowsFoundation.Vector3 { + get { try! _default.get_OffsetImpl() } + set { try! _default.put_OffsetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.spotlight.outerconeangle) + public var outerConeAngle : Float { + get { try! _default.get_OuterConeAngleImpl() } + set { try! _default.put_OuterConeAngleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.spotlight.outerconeangleindegrees) + public var outerConeAngleInDegrees : Float { + get { try! _default.get_OuterConeAngleInDegreesImpl() } + set { try! _default.put_OuterConeAngleInDegreesImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.spotlight.outerconecolor) + public var outerConeColor : UWP.Color { + get { try! _default.get_OuterConeColorImpl() } + set { try! _default.put_OuterConeColorImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.spotlight.quadraticattenuation) + public var quadraticAttenuation : Float { + get { try! _default.get_QuadraticAttenuationImpl() } + set { try! _default.put_QuadraticAttenuationImpl(newValue) } + } + + private lazy var _ISpotLight2: __ABI_Microsoft_UI_Composition.ISpotLight2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.spotlight.innerconeintensity) + public var innerConeIntensity : Float { + get { try! _ISpotLight2.get_InnerConeIntensityImpl() } + set { try! _ISpotLight2.put_InnerConeIntensityImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.spotlight.outerconeintensity) + public var outerConeIntensity : Float { + get { try! _ISpotLight2.get_OuterConeIntensityImpl() } + set { try! _ISpotLight2.put_OuterConeIntensityImpl(newValue) } + } + + private lazy var _ISpotLight3: __ABI_Microsoft_UI_Composition.ISpotLight3! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.spotlight.maxattenuationcutoff) + public var maxAttenuationCutoff : Float { + get { try! _ISpotLight3.get_MaxAttenuationCutoffImpl() } + set { try! _ISpotLight3.put_MaxAttenuationCutoffImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.spotlight.minattenuationcutoff) + public var minAttenuationCutoff : Float { + get { try! _ISpotLight3.get_MinAttenuationCutoffImpl() } + set { try! _ISpotLight3.put_MinAttenuationCutoffImpl(newValue) } + } + + deinit { + _default = nil + _ISpotLight2 = nil + _ISpotLight3 = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.springscalarnaturalmotionanimation) +public final class SpringScalarNaturalMotionAnimation : WinAppSDK.ScalarNaturalMotionAnimation { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ISpringScalarNaturalMotionAnimation + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CISpringScalarNaturalMotionAnimation + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CISpringScalarNaturalMotionAnimation>?) -> SpringScalarNaturalMotionAnimation? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.springscalarnaturalmotionanimation.dampingratio) + public var dampingRatio : Float { + get { try! _default.get_DampingRatioImpl() } + set { try! _default.put_DampingRatioImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.springscalarnaturalmotionanimation.period) + public var period : WindowsFoundation.TimeSpan { + get { try! _default.get_PeriodImpl() } + set { try! _default.put_PeriodImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.springvector2naturalmotionanimation) +public final class SpringVector2NaturalMotionAnimation : WinAppSDK.Vector2NaturalMotionAnimation { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ISpringVector2NaturalMotionAnimation + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CISpringVector2NaturalMotionAnimation + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CISpringVector2NaturalMotionAnimation>?) -> SpringVector2NaturalMotionAnimation? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.springvector2naturalmotionanimation.dampingratio) + public var dampingRatio : Float { + get { try! _default.get_DampingRatioImpl() } + set { try! _default.put_DampingRatioImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.springvector2naturalmotionanimation.period) + public var period : WindowsFoundation.TimeSpan { + get { try! _default.get_PeriodImpl() } + set { try! _default.put_PeriodImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.springvector3naturalmotionanimation) +public final class SpringVector3NaturalMotionAnimation : WinAppSDK.Vector3NaturalMotionAnimation { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ISpringVector3NaturalMotionAnimation + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CISpringVector3NaturalMotionAnimation + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CISpringVector3NaturalMotionAnimation>?) -> SpringVector3NaturalMotionAnimation? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.springvector3naturalmotionanimation.dampingratio) + public var dampingRatio : Float { + get { try! _default.get_DampingRatioImpl() } + set { try! _default.put_DampingRatioImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.springvector3naturalmotionanimation.period) + public var period : WindowsFoundation.TimeSpan { + get { try! _default.get_PeriodImpl() } + set { try! _default.put_PeriodImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.spritevisual) +public final class SpriteVisual : WinAppSDK.ContainerVisual { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.ISpriteVisual + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CISpriteVisual + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CISpriteVisual>?) -> SpriteVisual? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.spritevisual.brush) + public var brush : CompositionBrush! { + get { try! _default.get_BrushImpl() } + set { try! _default.put_BrushImpl(newValue) } + } + + private lazy var _ISpriteVisual2: __ABI_Microsoft_UI_Composition.ISpriteVisual2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.spritevisual.shadow) + public var shadow : CompositionShadow! { + get { try! _ISpriteVisual2.get_ShadowImpl() } + set { try! _ISpriteVisual2.put_ShadowImpl(newValue) } + } + + deinit { + _default = nil + _ISpriteVisual2 = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.stepeasingfunction) +public final class StepEasingFunction : WinAppSDK.CompositionEasingFunction { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.IStepEasingFunction + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CIStepEasingFunction + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CIStepEasingFunction>?) -> StepEasingFunction? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.stepeasingfunction.finalstep) + public var finalStep : Int32 { + get { try! _default.get_FinalStepImpl() } + set { try! _default.put_FinalStepImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.stepeasingfunction.initialstep) + public var initialStep : Int32 { + get { try! _default.get_InitialStepImpl() } + set { try! _default.put_InitialStepImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.stepeasingfunction.isfinalstepsingleframe) + public var isFinalStepSingleFrame : Bool { + get { try! _default.get_IsFinalStepSingleFrameImpl() } + set { try! _default.put_IsFinalStepSingleFrameImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.stepeasingfunction.isinitialstepsingleframe) + public var isInitialStepSingleFrame : Bool { + get { try! _default.get_IsInitialStepSingleFrameImpl() } + set { try! _default.put_IsInitialStepSingleFrameImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.stepeasingfunction.stepcount) + public var stepCount : Int32 { + get { try! _default.get_StepCountImpl() } + set { try! _default.put_StepCountImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.vector2keyframeanimation) +public final class Vector2KeyFrameAnimation : WinAppSDK.KeyFrameAnimation { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.IVector2KeyFrameAnimation + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CIVector2KeyFrameAnimation + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CIVector2KeyFrameAnimation>?) -> Vector2KeyFrameAnimation? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.vector2keyframeanimation.insertkeyframe) + public func insertKeyFrame(_ normalizedProgressKey: Float, _ value: WindowsFoundation.Vector2) throws { + try _default.InsertKeyFrameImpl(normalizedProgressKey, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.vector2keyframeanimation.insertkeyframe) + public func insertKeyFrame(_ normalizedProgressKey: Float, _ value: WindowsFoundation.Vector2, _ easingFunction: CompositionEasingFunction!) throws { + try _default.InsertKeyFrameWithEasingFunctionImpl(normalizedProgressKey, value, easingFunction) + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.vector2naturalmotionanimation) +open class Vector2NaturalMotionAnimation : WinAppSDK.NaturalMotionAnimation { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.IVector2NaturalMotionAnimation + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CIVector2NaturalMotionAnimation + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override open func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CIVector2NaturalMotionAnimation>?) -> Vector2NaturalMotionAnimation? { + guard let abi = abi else { return nil } + return UnsealedWinRTClassWrapper.unwrapFrom(base: abi) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + @_spi(WinRTInternal) + override public init( + composing: Composable.Type, + _ createCallback: (UnsealedWinRTClassWrapper?, inout WindowsFoundation.IInspectable?) -> Composable.Default.SwiftABI) + { + super.init(composing: composing, createCallback) + } + override open func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + return super.queryInterface(iid) + } + private static var _IVector2NaturalMotionAnimationFactory : __ABI_Microsoft_UI_Composition.IVector2NaturalMotionAnimationFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Composition.Vector2NaturalMotionAnimation")) + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.vector2naturalmotionanimation.finalvalue) + public var finalValue : WindowsFoundation.Vector2? { + get { try! _default.get_FinalValueImpl() } + set { try! _default.put_FinalValueImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.vector2naturalmotionanimation.initialvalue) + public var initialValue : WindowsFoundation.Vector2? { + get { try! _default.get_InitialValueImpl() } + set { try! _default.put_InitialValueImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.vector2naturalmotionanimation.initialvelocity) + public var initialVelocity : WindowsFoundation.Vector2 { + get { try! _default.get_InitialVelocityImpl() } + set { try! _default.put_InitialVelocityImpl(newValue) } + } + + internal enum IVector2NaturalMotionAnimation : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = Vector2NaturalMotionAnimation + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CIVector2NaturalMotionAnimation + internal typealias SwiftABI = __ABI_Microsoft_UI_Composition.IVector2NaturalMotionAnimation + } + } + internal typealias Composable = IVector2NaturalMotionAnimation + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.vector3keyframeanimation) +public final class Vector3KeyFrameAnimation : WinAppSDK.KeyFrameAnimation { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.IVector3KeyFrameAnimation + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CIVector3KeyFrameAnimation + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CIVector3KeyFrameAnimation>?) -> Vector3KeyFrameAnimation? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.vector3keyframeanimation.insertkeyframe) + public func insertKeyFrame(_ normalizedProgressKey: Float, _ value: WindowsFoundation.Vector3) throws { + try _default.InsertKeyFrameImpl(normalizedProgressKey, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.vector3keyframeanimation.insertkeyframe) + public func insertKeyFrame(_ normalizedProgressKey: Float, _ value: WindowsFoundation.Vector3, _ easingFunction: CompositionEasingFunction!) throws { + try _default.InsertKeyFrameWithEasingFunctionImpl(normalizedProgressKey, value, easingFunction) + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.vector3naturalmotionanimation) +open class Vector3NaturalMotionAnimation : WinAppSDK.NaturalMotionAnimation { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.IVector3NaturalMotionAnimation + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CIVector3NaturalMotionAnimation + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override open func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CIVector3NaturalMotionAnimation>?) -> Vector3NaturalMotionAnimation? { + guard let abi = abi else { return nil } + return UnsealedWinRTClassWrapper.unwrapFrom(base: abi) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + @_spi(WinRTInternal) + override public init( + composing: Composable.Type, + _ createCallback: (UnsealedWinRTClassWrapper?, inout WindowsFoundation.IInspectable?) -> Composable.Default.SwiftABI) + { + super.init(composing: composing, createCallback) + } + override open func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + return super.queryInterface(iid) + } + private static var _IVector3NaturalMotionAnimationFactory : __ABI_Microsoft_UI_Composition.IVector3NaturalMotionAnimationFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Composition.Vector3NaturalMotionAnimation")) + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.vector3naturalmotionanimation.finalvalue) + public var finalValue : WindowsFoundation.Vector3? { + get { try! _default.get_FinalValueImpl() } + set { try! _default.put_FinalValueImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.vector3naturalmotionanimation.initialvalue) + public var initialValue : WindowsFoundation.Vector3? { + get { try! _default.get_InitialValueImpl() } + set { try! _default.put_InitialValueImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.vector3naturalmotionanimation.initialvelocity) + public var initialVelocity : WindowsFoundation.Vector3 { + get { try! _default.get_InitialVelocityImpl() } + set { try! _default.put_InitialVelocityImpl(newValue) } + } + + internal enum IVector3NaturalMotionAnimation : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = Vector3NaturalMotionAnimation + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CIVector3NaturalMotionAnimation + internal typealias SwiftABI = __ABI_Microsoft_UI_Composition.IVector3NaturalMotionAnimation + } + } + internal typealias Composable = IVector3NaturalMotionAnimation + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.vector4keyframeanimation) +public final class Vector4KeyFrameAnimation : WinAppSDK.KeyFrameAnimation { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.IVector4KeyFrameAnimation + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CIVector4KeyFrameAnimation + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CIVector4KeyFrameAnimation>?) -> Vector4KeyFrameAnimation? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.vector4keyframeanimation.insertkeyframe) + public func insertKeyFrame(_ normalizedProgressKey: Float, _ value: WindowsFoundation.Vector4) throws { + try _default.InsertKeyFrameImpl(normalizedProgressKey, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.vector4keyframeanimation.insertkeyframe) + public func insertKeyFrame(_ normalizedProgressKey: Float, _ value: WindowsFoundation.Vector4, _ easingFunction: CompositionEasingFunction!) throws { + try _default.InsertKeyFrameWithEasingFunctionImpl(normalizedProgressKey, value, easingFunction) + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.visual) +open class Visual : WinAppSDK.CompositionObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.IVisual + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CIVisual + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override open func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CIVisual>?) -> Visual? { + guard let abi = abi else { return nil } + return UnsealedWinRTClassWrapper.unwrapFrom(base: abi) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + @_spi(WinRTInternal) + override public init( + composing: Composable.Type, + _ createCallback: (UnsealedWinRTClassWrapper?, inout WindowsFoundation.IInspectable?) -> Composable.Default.SwiftABI) + { + super.init(composing: composing, createCallback) + } + override open func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + return super.queryInterface(iid) + } + private static var _IVisualFactory : __ABI_Microsoft_UI_Composition.IVisualFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Composition.Visual")) + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.visual.anchorpoint) + public var anchorPoint : WindowsFoundation.Vector2 { + get { try! _default.get_AnchorPointImpl() } + set { try! _default.put_AnchorPointImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.visual.backfacevisibility) + public var backfaceVisibility : CompositionBackfaceVisibility { + get { try! _default.get_BackfaceVisibilityImpl() } + set { try! _default.put_BackfaceVisibilityImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.visual.bordermode) + public var borderMode : CompositionBorderMode { + get { try! _default.get_BorderModeImpl() } + set { try! _default.put_BorderModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.visual.centerpoint) + public var centerPoint : WindowsFoundation.Vector3 { + get { try! _default.get_CenterPointImpl() } + set { try! _default.put_CenterPointImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.visual.clip) + public var clip : CompositionClip! { + get { try! _default.get_ClipImpl() } + set { try! _default.put_ClipImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.visual.compositemode) + public var compositeMode : CompositionCompositeMode { + get { try! _default.get_CompositeModeImpl() } + set { try! _default.put_CompositeModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.visual.isvisible) + public var isVisible : Bool { + get { try! _default.get_IsVisibleImpl() } + set { try! _default.put_IsVisibleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.visual.offset) + public var offset : WindowsFoundation.Vector3 { + get { try! _default.get_OffsetImpl() } + set { try! _default.put_OffsetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.visual.opacity) + public var opacity : Float { + get { try! _default.get_OpacityImpl() } + set { try! _default.put_OpacityImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.visual.orientation) + public var orientation : WindowsFoundation.Quaternion { + get { try! _default.get_OrientationImpl() } + set { try! _default.put_OrientationImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.visual.parent) + public var parent : ContainerVisual! { + get { try! _default.get_ParentImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.visual.rotationangle) + public var rotationAngle : Float { + get { try! _default.get_RotationAngleImpl() } + set { try! _default.put_RotationAngleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.visual.rotationangleindegrees) + public var rotationAngleInDegrees : Float { + get { try! _default.get_RotationAngleInDegreesImpl() } + set { try! _default.put_RotationAngleInDegreesImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.visual.rotationaxis) + public var rotationAxis : WindowsFoundation.Vector3 { + get { try! _default.get_RotationAxisImpl() } + set { try! _default.put_RotationAxisImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.visual.scale) + public var scale : WindowsFoundation.Vector3 { + get { try! _default.get_ScaleImpl() } + set { try! _default.put_ScaleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.visual.size) + public var size : WindowsFoundation.Vector2 { + get { try! _default.get_SizeImpl() } + set { try! _default.put_SizeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.visual.transformmatrix) + public var transformMatrix : WindowsFoundation.Matrix4x4 { + get { try! _default.get_TransformMatrixImpl() } + set { try! _default.put_TransformMatrixImpl(newValue) } + } + + private lazy var _IVisual2: __ABI_Microsoft_UI_Composition.IVisual2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.visual.parentfortransform) + public var parentForTransform : Visual! { + get { try! _IVisual2.get_ParentForTransformImpl() } + set { try! _IVisual2.put_ParentForTransformImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.visual.relativeoffsetadjustment) + public var relativeOffsetAdjustment : WindowsFoundation.Vector3 { + get { try! _IVisual2.get_RelativeOffsetAdjustmentImpl() } + set { try! _IVisual2.put_RelativeOffsetAdjustmentImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.visual.relativesizeadjustment) + public var relativeSizeAdjustment : WindowsFoundation.Vector2 { + get { try! _IVisual2.get_RelativeSizeAdjustmentImpl() } + set { try! _IVisual2.put_RelativeSizeAdjustmentImpl(newValue) } + } + + private lazy var _IVisual3: __ABI_Microsoft_UI_Composition.IVisual3! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.visual.ishittestvisible) + public var isHitTestVisible : Bool { + get { try! _IVisual3.get_IsHitTestVisibleImpl() } + set { try! _IVisual3.put_IsHitTestVisibleImpl(newValue) } + } + + private lazy var _IVisual4: __ABI_Microsoft_UI_Composition.IVisual4! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.visual.ispixelsnappingenabled) + public var isPixelSnappingEnabled : Bool { + get { try! _IVisual4.get_IsPixelSnappingEnabledImpl() } + set { try! _IVisual4.put_IsPixelSnappingEnabledImpl(newValue) } + } + + internal enum IVisual : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = Visual + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CIVisual + internal typealias SwiftABI = __ABI_Microsoft_UI_Composition.IVisual + } + } + internal typealias Composable = IVisual + deinit { + _default = nil + _IVisual2 = nil + _IVisual3 = nil + _IVisual4 = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.visualcollection) +public final class VisualCollection : WinAppSDK.CompositionObject, IIterable { + public typealias T = Visual? + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.IVisualCollection + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CIVisualCollection + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CIVisualCollection>?) -> VisualCollection? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + override public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + return super.queryInterface(iid) + } + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.visualcollection.insertabove) + public func insertAbove(_ newChild: Visual!, _ sibling: Visual!) throws { + try _default.InsertAboveImpl(newChild, sibling) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.visualcollection.insertatbottom) + public func insertAtBottom(_ newChild: Visual!) throws { + try _default.InsertAtBottomImpl(newChild) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.visualcollection.insertattop) + public func insertAtTop(_ newChild: Visual!) throws { + try _default.InsertAtTopImpl(newChild) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.visualcollection.insertbelow) + public func insertBelow(_ newChild: Visual!, _ sibling: Visual!) throws { + try _default.InsertBelowImpl(newChild, sibling) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.visualcollection.remove) + public func remove(_ child: Visual!) throws { + try _default.RemoveImpl(child) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.visualcollection.removeall) + public func removeAll() throws { + try _default.RemoveAllImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.visualcollection.count) + public var count : Int32 { + get { try! _default.get_CountImpl() } + } + + private lazy var _IIterable: IIterableVisual! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.visualcollection.first) + public func first() -> WindowsFoundation.AnyIIterator? { + try! _IIterable.FirstImpl() + } + + deinit { + _default = nil + _IIterable = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.visualunorderedcollection) +public final class VisualUnorderedCollection : WinAppSDK.CompositionObject, IIterable { + public typealias T = Visual? + private typealias SwiftABI = __ABI_Microsoft_UI_Composition.IVisualUnorderedCollection + private typealias CABI = __x_ABI_CMicrosoft_CUI_CComposition_CIVisualUnorderedCollection + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CComposition_CIVisualUnorderedCollection>?) -> VisualUnorderedCollection? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + override public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + return super.queryInterface(iid) + } + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.visualunorderedcollection.add) + public func add(_ newVisual: Visual!) throws { + try _default.AddImpl(newVisual) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.visualunorderedcollection.remove) + public func remove(_ visual: Visual!) throws { + try _default.RemoveImpl(visual) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.visualunorderedcollection.removeall) + public func removeAll() throws { + try _default.RemoveAllImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.visualunorderedcollection.count) + public var count : Int32 { + get { try! _default.get_CountImpl() } + } + + private lazy var _IIterable: IIterableVisual! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.visualunorderedcollection.first) + public func first() -> WindowsFoundation.AnyIIterator? { + try! _IIterable.FirstImpl() + } + + deinit { + _default = nil + _IIterable = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.ianimationobject) +public protocol IAnimationObject : WinRTInterface { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.ianimationobject.populatepropertyinfo) + func populatePropertyInfo(_ propertyName: String, _ propertyInfo: WinAppSDK.AnimationPropertyInfo!) throws +} + +extension IAnimationObject { + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + switch iid { + case __ABI_Microsoft_UI_Composition.IAnimationObjectWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Composition.IAnimationObjectWrapper(self) + return wrapper!.queryInterface(iid) + default: return nil + } + } +} +public typealias AnyIAnimationObject = any IAnimationObject + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.icompositionanimationbase) +public protocol ICompositionAnimationBase : WinRTInterface { +} + +extension ICompositionAnimationBase { + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + switch iid { + case __ABI_Microsoft_UI_Composition.ICompositionAnimationBaseWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Composition.ICompositionAnimationBaseWrapper(self) + return wrapper!.queryInterface(iid) + default: return nil + } + } +} +public typealias AnyICompositionAnimationBase = any ICompositionAnimationBase + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.icompositionsupportssystembackdrop) +public protocol ICompositionSupportsSystemBackdrop : WinRTInterface { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.icompositionsupportssystembackdrop.systembackdrop) + var systemBackdrop: UWP.CompositionBrush! { get set } +} + +extension ICompositionSupportsSystemBackdrop { + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + switch iid { + case __ABI_Microsoft_UI_Composition.ICompositionSupportsSystemBackdropWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Composition.ICompositionSupportsSystemBackdropWrapper(self) + return wrapper!.queryInterface(iid) + default: return nil + } + } +} +public typealias AnyICompositionSupportsSystemBackdrop = any ICompositionSupportsSystemBackdrop + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.icompositionsurface) +public protocol ICompositionSurface : WinRTInterface { +} + +extension ICompositionSurface { + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + switch iid { + case __ABI_Microsoft_UI_Composition.ICompositionSurfaceWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Composition.ICompositionSurfaceWrapper(self) + return wrapper!.queryInterface(iid) + default: return nil + } + } +} +public typealias AnyICompositionSurface = any ICompositionSurface + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.icompositionsurfacefacade) +public protocol ICompositionSurfaceFacade : WinRTInterface { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.icompositionsurfacefacade.getrealsurface) + func getRealSurface() throws -> WinAppSDK.AnyICompositionSurface! +} + +extension ICompositionSurfaceFacade { + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + switch iid { + case __ABI_Microsoft_UI_Composition.ICompositionSurfaceFacadeWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Composition.ICompositionSurfaceFacadeWrapper(self) + return wrapper!.queryInterface(iid) + default: return nil + } + } +} +public typealias AnyICompositionSurfaceFacade = any ICompositionSurfaceFacade + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.ivisualelement) +public protocol IVisualElement : WinRTInterface { +} + +extension IVisualElement { + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + switch iid { + case __ABI_Microsoft_UI_Composition.IVisualElementWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Composition.IVisualElementWrapper(self) + return wrapper!.queryInterface(iid) + default: return nil + } + } +} +public typealias AnyIVisualElement = any IVisualElement + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.ivisualelement2) +public protocol IVisualElement2 : WinRTInterface { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.ivisualelement2.getvisualinternal) + func getVisualInternal() throws -> WinAppSDK.Visual! +} + +extension IVisualElement2 { + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + switch iid { + case __ABI_Microsoft_UI_Composition.IVisualElement2Wrapper.IID: + let wrapper = __ABI_Microsoft_UI_Composition.IVisualElement2Wrapper(self) + return wrapper!.queryInterface(iid) + default: return nil + } + } +} +public typealias AnyIVisualElement2 = any IVisualElement2 + +extension WinAppSDK.AnimationControllerProgressBehavior { + public static var `default` : WinAppSDK.AnimationControllerProgressBehavior { + __x_ABI_CMicrosoft_CUI_CComposition_CAnimationControllerProgressBehavior_Default + } + public static var includesDelayTime : WinAppSDK.AnimationControllerProgressBehavior { + __x_ABI_CMicrosoft_CUI_CComposition_CAnimationControllerProgressBehavior_IncludesDelayTime + } +} +extension WinAppSDK.AnimationControllerProgressBehavior: @retroactive Hashable, @retroactive Codable {} + +extension WinAppSDK.AnimationDelayBehavior { + public static var setInitialValueAfterDelay : WinAppSDK.AnimationDelayBehavior { + __x_ABI_CMicrosoft_CUI_CComposition_CAnimationDelayBehavior_SetInitialValueAfterDelay + } + public static var setInitialValueBeforeDelay : WinAppSDK.AnimationDelayBehavior { + __x_ABI_CMicrosoft_CUI_CComposition_CAnimationDelayBehavior_SetInitialValueBeforeDelay + } +} +extension WinAppSDK.AnimationDelayBehavior: @retroactive Hashable, @retroactive Codable {} + +extension WinAppSDK.AnimationDirection { + public static var normal : WinAppSDK.AnimationDirection { + __x_ABI_CMicrosoft_CUI_CComposition_CAnimationDirection_Normal + } + public static var reverse : WinAppSDK.AnimationDirection { + __x_ABI_CMicrosoft_CUI_CComposition_CAnimationDirection_Reverse + } + public static var alternate : WinAppSDK.AnimationDirection { + __x_ABI_CMicrosoft_CUI_CComposition_CAnimationDirection_Alternate + } + public static var alternateReverse : WinAppSDK.AnimationDirection { + __x_ABI_CMicrosoft_CUI_CComposition_CAnimationDirection_AlternateReverse + } +} +extension WinAppSDK.AnimationDirection: @retroactive Hashable, @retroactive Codable {} + +extension WinAppSDK.AnimationIterationBehavior { + public static var count : WinAppSDK.AnimationIterationBehavior { + __x_ABI_CMicrosoft_CUI_CComposition_CAnimationIterationBehavior_Count + } + public static var forever : WinAppSDK.AnimationIterationBehavior { + __x_ABI_CMicrosoft_CUI_CComposition_CAnimationIterationBehavior_Forever + } +} +extension WinAppSDK.AnimationIterationBehavior: @retroactive Hashable, @retroactive Codable {} + +extension WinAppSDK.AnimationPropertyAccessMode { + public static var none : WinAppSDK.AnimationPropertyAccessMode { + __x_ABI_CMicrosoft_CUI_CComposition_CAnimationPropertyAccessMode_None + } + public static var readOnly : WinAppSDK.AnimationPropertyAccessMode { + __x_ABI_CMicrosoft_CUI_CComposition_CAnimationPropertyAccessMode_ReadOnly + } + public static var writeOnly : WinAppSDK.AnimationPropertyAccessMode { + __x_ABI_CMicrosoft_CUI_CComposition_CAnimationPropertyAccessMode_WriteOnly + } + public static var readWrite : WinAppSDK.AnimationPropertyAccessMode { + __x_ABI_CMicrosoft_CUI_CComposition_CAnimationPropertyAccessMode_ReadWrite + } +} +extension WinAppSDK.AnimationPropertyAccessMode: @retroactive Hashable, @retroactive Codable {} + +extension WinAppSDK.AnimationStopBehavior { + public static var leaveCurrentValue : WinAppSDK.AnimationStopBehavior { + __x_ABI_CMicrosoft_CUI_CComposition_CAnimationStopBehavior_LeaveCurrentValue + } + public static var setToInitialValue : WinAppSDK.AnimationStopBehavior { + __x_ABI_CMicrosoft_CUI_CComposition_CAnimationStopBehavior_SetToInitialValue + } + public static var setToFinalValue : WinAppSDK.AnimationStopBehavior { + __x_ABI_CMicrosoft_CUI_CComposition_CAnimationStopBehavior_SetToFinalValue + } +} +extension WinAppSDK.AnimationStopBehavior: @retroactive Hashable, @retroactive Codable {} + +extension WinAppSDK.CompositionBackfaceVisibility { + public static var inherit : WinAppSDK.CompositionBackfaceVisibility { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionBackfaceVisibility_Inherit + } + public static var visible : WinAppSDK.CompositionBackfaceVisibility { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionBackfaceVisibility_Visible + } + public static var hidden : WinAppSDK.CompositionBackfaceVisibility { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionBackfaceVisibility_Hidden + } +} +extension WinAppSDK.CompositionBackfaceVisibility: @retroactive Hashable, @retroactive Codable {} + +extension WinAppSDK.CompositionBatchTypes { + public static var none : WinAppSDK.CompositionBatchTypes { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionBatchTypes_None + } + public static var animation : WinAppSDK.CompositionBatchTypes { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionBatchTypes_Animation + } + public static var effect : WinAppSDK.CompositionBatchTypes { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionBatchTypes_Effect + } + public static var infiniteAnimation : WinAppSDK.CompositionBatchTypes { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionBatchTypes_InfiniteAnimation + } + public static var allAnimations : WinAppSDK.CompositionBatchTypes { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionBatchTypes_AllAnimations + } +} +extension WinAppSDK.CompositionBatchTypes: @retroactive Hashable, @retroactive Codable {} + +extension WinAppSDK.CompositionBitmapInterpolationMode { + public static var nearestNeighbor : WinAppSDK.CompositionBitmapInterpolationMode { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionBitmapInterpolationMode_NearestNeighbor + } + public static var linear : WinAppSDK.CompositionBitmapInterpolationMode { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionBitmapInterpolationMode_Linear + } + public static var magLinearMinLinearMipLinear : WinAppSDK.CompositionBitmapInterpolationMode { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionBitmapInterpolationMode_MagLinearMinLinearMipLinear + } + public static var magLinearMinLinearMipNearest : WinAppSDK.CompositionBitmapInterpolationMode { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionBitmapInterpolationMode_MagLinearMinLinearMipNearest + } + public static var magLinearMinNearestMipLinear : WinAppSDK.CompositionBitmapInterpolationMode { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionBitmapInterpolationMode_MagLinearMinNearestMipLinear + } + public static var magLinearMinNearestMipNearest : WinAppSDK.CompositionBitmapInterpolationMode { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionBitmapInterpolationMode_MagLinearMinNearestMipNearest + } + public static var magNearestMinLinearMipLinear : WinAppSDK.CompositionBitmapInterpolationMode { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionBitmapInterpolationMode_MagNearestMinLinearMipLinear + } + public static var magNearestMinLinearMipNearest : WinAppSDK.CompositionBitmapInterpolationMode { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionBitmapInterpolationMode_MagNearestMinLinearMipNearest + } + public static var magNearestMinNearestMipLinear : WinAppSDK.CompositionBitmapInterpolationMode { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionBitmapInterpolationMode_MagNearestMinNearestMipLinear + } + public static var magNearestMinNearestMipNearest : WinAppSDK.CompositionBitmapInterpolationMode { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionBitmapInterpolationMode_MagNearestMinNearestMipNearest + } +} +extension WinAppSDK.CompositionBitmapInterpolationMode: @retroactive Hashable, @retroactive Codable {} + +extension WinAppSDK.CompositionBorderMode { + public static var inherit : WinAppSDK.CompositionBorderMode { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionBorderMode_Inherit + } + public static var soft : WinAppSDK.CompositionBorderMode { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionBorderMode_Soft + } + public static var hard : WinAppSDK.CompositionBorderMode { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionBorderMode_Hard + } +} +extension WinAppSDK.CompositionBorderMode: @retroactive Hashable, @retroactive Codable {} + +extension WinAppSDK.CompositionColorSpace { + public static var auto : WinAppSDK.CompositionColorSpace { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionColorSpace_Auto + } + public static var hsl : WinAppSDK.CompositionColorSpace { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionColorSpace_Hsl + } + public static var rgb : WinAppSDK.CompositionColorSpace { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionColorSpace_Rgb + } + public static var hslLinear : WinAppSDK.CompositionColorSpace { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionColorSpace_HslLinear + } + public static var rgbLinear : WinAppSDK.CompositionColorSpace { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionColorSpace_RgbLinear + } +} +extension WinAppSDK.CompositionColorSpace: @retroactive Hashable, @retroactive Codable {} + +extension WinAppSDK.CompositionCompositeMode { + public static var inherit : WinAppSDK.CompositionCompositeMode { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionCompositeMode_Inherit + } + public static var sourceOver : WinAppSDK.CompositionCompositeMode { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionCompositeMode_SourceOver + } + public static var destinationInvert : WinAppSDK.CompositionCompositeMode { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionCompositeMode_DestinationInvert + } + public static var minBlend : WinAppSDK.CompositionCompositeMode { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionCompositeMode_MinBlend + } +} +extension WinAppSDK.CompositionCompositeMode: @retroactive Hashable, @retroactive Codable {} + +extension WinAppSDK.CompositionDropShadowSourcePolicy { + public static var `default` : WinAppSDK.CompositionDropShadowSourcePolicy { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionDropShadowSourcePolicy_Default + } + public static var inheritFromVisualContent : WinAppSDK.CompositionDropShadowSourcePolicy { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionDropShadowSourcePolicy_InheritFromVisualContent + } +} +extension WinAppSDK.CompositionDropShadowSourcePolicy: @retroactive Hashable, @retroactive Codable {} + +extension WinAppSDK.CompositionEasingFunctionMode { + public static var `in` : WinAppSDK.CompositionEasingFunctionMode { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionEasingFunctionMode_In + } + public static var out : WinAppSDK.CompositionEasingFunctionMode { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionEasingFunctionMode_Out + } + public static var inOut : WinAppSDK.CompositionEasingFunctionMode { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionEasingFunctionMode_InOut + } +} +extension WinAppSDK.CompositionEasingFunctionMode: @retroactive Hashable, @retroactive Codable {} + +extension WinAppSDK.CompositionEffectFactoryLoadStatus { + public static var success : WinAppSDK.CompositionEffectFactoryLoadStatus { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionEffectFactoryLoadStatus_Success + } + public static var effectTooComplex : WinAppSDK.CompositionEffectFactoryLoadStatus { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionEffectFactoryLoadStatus_EffectTooComplex + } + public static var pending : WinAppSDK.CompositionEffectFactoryLoadStatus { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionEffectFactoryLoadStatus_Pending + } + public static var other : WinAppSDK.CompositionEffectFactoryLoadStatus { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionEffectFactoryLoadStatus_Other + } +} +extension WinAppSDK.CompositionEffectFactoryLoadStatus: @retroactive Hashable, @retroactive Codable {} + +extension WinAppSDK.CompositionGetValueStatus { + public static var succeeded : WinAppSDK.CompositionGetValueStatus { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionGetValueStatus_Succeeded + } + public static var typeMismatch : WinAppSDK.CompositionGetValueStatus { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionGetValueStatus_TypeMismatch + } + public static var notFound : WinAppSDK.CompositionGetValueStatus { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionGetValueStatus_NotFound + } +} +extension WinAppSDK.CompositionGetValueStatus: @retroactive Hashable, @retroactive Codable {} + +extension WinAppSDK.CompositionGradientExtendMode { + public static var clamp : WinAppSDK.CompositionGradientExtendMode { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionGradientExtendMode_Clamp + } + public static var wrap : WinAppSDK.CompositionGradientExtendMode { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionGradientExtendMode_Wrap + } + public static var mirror : WinAppSDK.CompositionGradientExtendMode { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionGradientExtendMode_Mirror + } +} +extension WinAppSDK.CompositionGradientExtendMode: @retroactive Hashable, @retroactive Codable {} + +extension WinAppSDK.CompositionMappingMode { + public static var absolute : WinAppSDK.CompositionMappingMode { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionMappingMode_Absolute + } + public static var relative : WinAppSDK.CompositionMappingMode { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionMappingMode_Relative + } +} +extension WinAppSDK.CompositionMappingMode: @retroactive Hashable, @retroactive Codable {} + +extension WinAppSDK.CompositionStretch { + public static var none : WinAppSDK.CompositionStretch { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionStretch_None + } + public static var fill : WinAppSDK.CompositionStretch { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionStretch_Fill + } + public static var uniform : WinAppSDK.CompositionStretch { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionStretch_Uniform + } + public static var uniformToFill : WinAppSDK.CompositionStretch { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionStretch_UniformToFill + } +} +extension WinAppSDK.CompositionStretch: @retroactive Hashable, @retroactive Codable {} + +extension WinAppSDK.CompositionStrokeCap { + public static var flat : WinAppSDK.CompositionStrokeCap { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionStrokeCap_Flat + } + public static var square : WinAppSDK.CompositionStrokeCap { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionStrokeCap_Square + } + public static var round : WinAppSDK.CompositionStrokeCap { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionStrokeCap_Round + } + public static var triangle : WinAppSDK.CompositionStrokeCap { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionStrokeCap_Triangle + } +} +extension WinAppSDK.CompositionStrokeCap: @retroactive Hashable, @retroactive Codable {} + +extension WinAppSDK.CompositionStrokeLineJoin { + public static var miter : WinAppSDK.CompositionStrokeLineJoin { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionStrokeLineJoin_Miter + } + public static var bevel : WinAppSDK.CompositionStrokeLineJoin { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionStrokeLineJoin_Bevel + } + public static var round : WinAppSDK.CompositionStrokeLineJoin { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionStrokeLineJoin_Round + } + public static var miterOrBevel : WinAppSDK.CompositionStrokeLineJoin { + __x_ABI_CMicrosoft_CUI_CComposition_CCompositionStrokeLineJoin_MiterOrBevel + } +} +extension WinAppSDK.CompositionStrokeLineJoin: @retroactive Hashable, @retroactive Codable {} + diff --git a/Sources/WinAppSDK/Microsoft.UI.Content+ABI.swift b/Sources/WinAppSDK/Microsoft.UI.Content+ABI.swift new file mode 100644 index 0000000..3386c0c --- /dev/null +++ b/Sources/WinAppSDK/Microsoft.UI.Content+ABI.swift @@ -0,0 +1,666 @@ +// WARNING: Please don't edit this file. It was generated by Swift/WinRT v0.0.1 +// swiftlint:disable all +import Foundation +@_spi(WinRTInternal) @_spi(WinRTImplements) import UWP +@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation +import CWinRT + +private var IID___x_ABI_CMicrosoft_CUI_CContent_CIContentCoordinateConverter: WindowsFoundation.IID { + .init(Data1: 0x10A11230, Data2: 0x5EB4, Data3: 0x5840, Data4: ( 0xA3,0x46,0x57,0x0F,0x4A,0x49,0x04,0x0F ))// 10A11230-5EB4-5840-A346-570F4A49040F +} + +private var IID___x_ABI_CMicrosoft_CUI_CContent_CIContentCoordinateConverterFactory: WindowsFoundation.IID { + .init(Data1: 0xA4B216EE, Data2: 0x0E26, Data3: 0x56BD, Data4: ( 0x92,0x09,0xA7,0x5C,0xF9,0xD8,0x0F,0x27 ))// A4B216EE-0E26-56BD-9209-A75CF9D80F27 +} + +private var IID___x_ABI_CMicrosoft_CUI_CContent_CIContentCoordinateConverterStatics: WindowsFoundation.IID { + .init(Data1: 0xF56374CE, Data2: 0xB6DF, Data3: 0x5B42, Data4: ( 0xA5,0x8F,0x4E,0x3B,0xB0,0x39,0xE3,0xA9 ))// F56374CE-B6DF-5B42-A58F-4E3BB039E3A9 +} + +private var IID___x_ABI_CMicrosoft_CUI_CContent_CIContentDeferral: WindowsFoundation.IID { + .init(Data1: 0x470529F5, Data2: 0xCD93, Data3: 0x599B, Data4: ( 0x96,0x8E,0xF8,0xA6,0x89,0xBC,0x3A,0x07 ))// 470529F5-CD93-599B-968E-F8A689BC3A07 +} + +private var IID___x_ABI_CMicrosoft_CUI_CContent_CIContentEnvironmentSettingChangedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x76478051, Data2: 0xFC80, Data3: 0x5EEC, Data4: ( 0xA3,0xF3,0x62,0x60,0x6A,0xBE,0x06,0xB7 ))// 76478051-FC80-5EEC-A3F3-62606ABE06B7 +} + +private var IID___x_ABI_CMicrosoft_CUI_CContent_CIContentEnvironmentStateChangedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x8970FA4F, Data2: 0x10BA, Data3: 0x5F67, Data4: ( 0x97,0x0B,0x8C,0x72,0xBC,0x00,0x9B,0x67 ))// 8970FA4F-10BA-5F67-970B-8C72BC009B67 +} + +private var IID___x_ABI_CMicrosoft_CUI_CContent_CIContentIsland: WindowsFoundation.IID { + .init(Data1: 0x5B2504BA, Data2: 0x361C, Data3: 0x50AA, Data4: ( 0xBD,0x6E,0x41,0x22,0xC6,0xD9,0x38,0x89 ))// 5B2504BA-361C-50AA-BD6E-4122C6D93889 +} + +private var IID___x_ABI_CMicrosoft_CUI_CContent_CIContentIslandAutomationProviderRequestedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x9FE24BED, Data2: 0x2B9C, Data3: 0x5137, Data4: ( 0x88,0x7F,0x40,0x3C,0x94,0x84,0x18,0x24 ))// 9FE24BED-2B9C-5137-887F-403C94841824 +} + +private var IID___x_ABI_CMicrosoft_CUI_CContent_CIContentIslandEnvironment: WindowsFoundation.IID { + .init(Data1: 0xC334236D, Data2: 0xDA88, Data3: 0x566D, Data4: ( 0x81,0x1D,0x74,0xAE,0xF2,0xEB,0xA9,0x78 ))// C334236D-DA88-566D-811D-74AEF2EBA978 +} + +private var IID___x_ABI_CMicrosoft_CUI_CContent_CIContentIslandEnvironmentFactory: WindowsFoundation.IID { + .init(Data1: 0x47A782D6, Data2: 0xB177, Data3: 0x5C1E, Data4: ( 0xBF,0x87,0x90,0x43,0x7D,0xD8,0x09,0xD0 ))// 47A782D6-B177-5C1E-BF87-90437DD809D0 +} + +private var IID___x_ABI_CMicrosoft_CUI_CContent_CIContentIslandFactory: WindowsFoundation.IID { + .init(Data1: 0x82383F52, Data2: 0xE81A, Data3: 0x5EC9, Data4: ( 0xA9,0x54,0xBA,0xC8,0xA9,0x31,0xBA,0x7D ))// 82383F52-E81A-5EC9-A954-BAC8A931BA7D +} + +private var IID___x_ABI_CMicrosoft_CUI_CContent_CIContentIslandStateChangedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xC828EEB2, Data2: 0x0C62, Data3: 0x5B40, Data4: ( 0x9D,0x48,0x77,0xC0,0x60,0x83,0xC2,0x78 ))// C828EEB2-0C62-5B40-9D48-77C06083C278 +} + +private var IID___x_ABI_CMicrosoft_CUI_CContent_CIContentIslandStatics: WindowsFoundation.IID { + .init(Data1: 0x7B9EB7CC, Data2: 0x8C43, Data3: 0x5E0A, Data4: ( 0xAB,0x23,0xAB,0x48,0x62,0x8F,0xD2,0x23 ))// 7B9EB7CC-8C43-5E0A-AB23-AB48628FD223 +} + +private var IID___x_ABI_CMicrosoft_CUI_CContent_CIContentSiteBridge: WindowsFoundation.IID { + .init(Data1: 0xFAAAB99E, Data2: 0xA42B, Data3: 0x549C, Data4: ( 0x92,0xDF,0x3B,0x6D,0x6E,0x1E,0x36,0x8B ))// FAAAB99E-A42B-549C-92DF-3B6D6E1E368B +} + +public enum __ABI_Microsoft_UI_Content { + public class IContentCoordinateConverter: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CContent_CIContentCoordinateConverter } + + internal func ConvertLocalToScreenWithPointImpl(_ localPoint: WindowsFoundation.Point) throws -> UWP.PointInt32 { + var result: __x_ABI_CWindows_CGraphics_CPointInt32 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentCoordinateConverter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ConvertLocalToScreenWithPoint(pThis, .from(swift: localPoint), &result)) + } + return .from(abi: result) + } + + internal func ConvertLocalToScreenWithRectImpl(_ localRect: WindowsFoundation.Rect) throws -> UWP.RectInt32 { + var result: __x_ABI_CWindows_CGraphics_CRectInt32 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentCoordinateConverter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ConvertLocalToScreenWithRect(pThis, .from(swift: localRect), &result)) + } + return .from(abi: result) + } + + internal func ConvertScreenToLocalWithPointImpl(_ screenPoint: UWP.PointInt32) throws -> WindowsFoundation.Point { + var result: __x_ABI_CWindows_CFoundation_CPoint = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentCoordinateConverter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ConvertScreenToLocalWithPoint(pThis, .from(swift: screenPoint), &result)) + } + return .from(abi: result) + } + + internal func ConvertScreenToLocalWithRectImpl(_ screenRect: UWP.RectInt32) throws -> WindowsFoundation.Rect { + var result: __x_ABI_CWindows_CFoundation_CRect = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentCoordinateConverter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ConvertScreenToLocalWithRect(pThis, .from(swift: screenRect), &result)) + } + return .from(abi: result) + } + + } + + public class IContentCoordinateConverterFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CContent_CIContentCoordinateConverterFactory } + + } + + public class IContentCoordinateConverterStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CContent_CIContentCoordinateConverterStatics } + + internal func CreateForWindowIdImpl(_ windowId: WinAppSDK.WindowId) throws -> WinAppSDK.ContentCoordinateConverter? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentCoordinateConverterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateForWindowId(pThis, .from(swift: windowId), &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IContentDeferral: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CContent_CIContentDeferral } + + internal func CompleteImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentDeferral.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Complete(pThis)) + } + } + + } + + public class IContentEnvironmentSettingChangedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CContent_CIContentEnvironmentSettingChangedEventArgs } + + internal func get_SettingNameImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentEnvironmentSettingChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SettingName(pThis, &value)) + } + return .init(from: value) + } + + } + + public class IContentEnvironmentStateChangedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CContent_CIContentEnvironmentStateChangedEventArgs } + + internal func get_DidAppWindowIdChangeImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentEnvironmentStateChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DidAppWindowIdChange(pThis, &value)) + } + return .init(from: value) + } + + internal func get_DidDisplayIdChangeImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentEnvironmentStateChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DidDisplayIdChange(pThis, &value)) + } + return .init(from: value) + } + + } + + public class IContentIsland: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CContent_CIContentIsland } + + internal func get_ActualSizeImpl() throws -> WindowsFoundation.Vector2 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ActualSize(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_AppDataImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AppData(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_AppDataImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_AppData(pThis, _value)) + } + } + + internal func get_CoordinateConverterImpl() throws -> WinAppSDK.ContentCoordinateConverter? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CoordinateConverter(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_CustomPropertiesImpl() throws -> WindowsFoundation.AnyIPropertySet? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CustomProperties(pThis, &valueAbi)) + } + } + return __ABI_Windows_Foundation_Collections.IPropertySetWrapper.unwrapFrom(abi: value) + } + + internal func get_DispatcherQueueImpl() throws -> WinAppSDK.DispatcherQueue? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DispatcherQueue(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_EnvironmentImpl() throws -> WinAppSDK.ContentIslandEnvironment? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Environment(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IdImpl() throws -> UInt64 { + var value: UINT64 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Id(pThis, &value)) + } + return value + } + + internal func get_IsConnectedImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsConnected(pThis, &value)) + } + return .init(from: value) + } + + internal func get_IsHitTestVisibleWhenTransparentImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsHitTestVisibleWhenTransparent(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsHitTestVisibleWhenTransparentImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsHitTestVisibleWhenTransparent(pThis, .init(from: value))) + } + } + + internal func get_IsIslandEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsIslandEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsIslandEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsIslandEnabled(pThis, .init(from: value))) + } + } + + internal func get_IsIslandVisibleImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsIslandVisible(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsIslandVisibleImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsIslandVisible(pThis, .init(from: value))) + } + } + + internal func get_IsSiteEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsSiteEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func get_IsSiteVisibleImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsSiteVisible(pThis, &value)) + } + return .init(from: value) + } + + internal func get_LayoutDirectionImpl() throws -> WinAppSDK.ContentLayoutDirection { + var value: __x_ABI_CMicrosoft_CUI_CContent_CContentLayoutDirection = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LayoutDirection(pThis, &value)) + } + return value + } + + internal func get_RasterizationScaleImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RasterizationScale(pThis, &value)) + } + return value + } + + internal func GetAutomationHostProviderImpl() throws -> Any? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAutomationHostProvider(pThis, &resultAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: result) + } + + internal func GetStateChangeDeferralImpl() throws -> WinAppSDK.ContentDeferral? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetStateChangeDeferral(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func RequestSizeImpl(_ size: WindowsFoundation.Vector2) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RequestSize(pThis, .from(swift: size))) + } + } + + internal func add_AutomationProviderRequestedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandAutomationProviderRequestedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_AutomationProviderRequested(pThis, _handler, &token)) + } + return token + } + + internal func remove_AutomationProviderRequestedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_AutomationProviderRequested(pThis, token)) + } + } + + internal func add_StateChangedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandStateChangedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_StateChanged(pThis, _handler, &token)) + } + return token + } + + internal func remove_StateChangedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_StateChanged(pThis, token)) + } + } + + } + + public class IContentIslandAutomationProviderRequestedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CContent_CIContentIslandAutomationProviderRequestedEventArgs } + + internal func get_AutomationProviderImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIslandAutomationProviderRequestedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AutomationProvider(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_AutomationProviderImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIslandAutomationProviderRequestedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_AutomationProvider(pThis, _value)) + } + } + + internal func get_HandledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIslandAutomationProviderRequestedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Handled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_HandledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIslandAutomationProviderRequestedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Handled(pThis, .init(from: value))) + } + } + + } + + public class IContentIslandEnvironment: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CContent_CIContentIslandEnvironment } + + internal func get_AppWindowIdImpl() throws -> WinAppSDK.WindowId { + var value: __x_ABI_CMicrosoft_CUI_CWindowId = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIslandEnvironment.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AppWindowId(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_DisplayIdImpl() throws -> WinAppSDK.DisplayId { + var value: __x_ABI_CMicrosoft_CUI_CDisplayId = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIslandEnvironment.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DisplayId(pThis, &value)) + } + return .from(abi: value) + } + + internal func add_SettingChangedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentSettingChangedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIslandEnvironment.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_SettingChanged(pThis, _handler, &token)) + } + return token + } + + internal func remove_SettingChangedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIslandEnvironment.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_SettingChanged(pThis, token)) + } + } + + internal func add_StateChangedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentStateChangedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIslandEnvironment.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_StateChanged(pThis, _handler, &token)) + } + return token + } + + internal func remove_StateChangedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIslandEnvironment.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_StateChanged(pThis, token)) + } + } + + } + + public class IContentIslandEnvironmentFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CContent_CIContentIslandEnvironmentFactory } + + } + + public class IContentIslandFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CContent_CIContentIslandFactory } + + } + + public class IContentIslandStateChangedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CContent_CIContentIslandStateChangedEventArgs } + + internal func get_DidActualSizeChangeImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIslandStateChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DidActualSizeChange(pThis, &value)) + } + return .init(from: value) + } + + internal func get_DidSiteEnabledChangeImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIslandStateChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DidSiteEnabledChange(pThis, &value)) + } + return .init(from: value) + } + + internal func get_DidSiteVisibleChangeImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIslandStateChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DidSiteVisibleChange(pThis, &value)) + } + return .init(from: value) + } + + internal func get_DidLayoutDirectionChangeImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIslandStateChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DidLayoutDirectionChange(pThis, &value)) + } + return .init(from: value) + } + + internal func get_DidRasterizationScaleChangeImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIslandStateChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DidRasterizationScaleChange(pThis, &value)) + } + return .init(from: value) + } + + } + + public class IContentIslandStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CContent_CIContentIslandStatics } + + internal func CreateImpl(_ Root: WinAppSDK.Visual?) throws -> WinAppSDK.ContentIsland? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIslandStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Create(pThis, RawPointer(Root), &resultAbi)) + } + } + return .from(abi: result) + } + + internal func GetByVisualImpl(_ child: WinAppSDK.Visual?) throws -> WinAppSDK.ContentIsland? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIslandStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetByVisual(pThis, RawPointer(child), &resultAbi)) + } + } + return .from(abi: result) + } + + internal func GetFromIdImpl(_ id: UInt64) throws -> WinAppSDK.ContentIsland? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIslandStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetFromId(pThis, id, &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IContentSiteBridge: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CContent_CIContentSiteBridge } + + open func get_DispatcherQueueImpl() throws -> WinAppSDK.DispatcherQueue? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentSiteBridge.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DispatcherQueue(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + open func get_LayoutDirectionOverrideImpl() throws -> WinAppSDK.ContentLayoutDirection? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentSiteBridge.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LayoutDirectionOverride(pThis, &valueAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CMicrosoft__CUI__CContent__CContentLayoutDirectionWrapper.unwrapFrom(abi: value) + } + + open func put_LayoutDirectionOverrideImpl(_ value: WinAppSDK.ContentLayoutDirection?) throws { + let valueWrapper = WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CMicrosoft__CUI__CContent__CContentLayoutDirectionWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentSiteBridge.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_LayoutDirectionOverride(pThis, _value)) + } + } + + open func get_OverrideScaleImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentSiteBridge.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OverrideScale(pThis, &value)) + } + return value + } + + open func put_OverrideScaleImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentSiteBridge.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_OverrideScale(pThis, value)) + } + } + + } + + internal static var IContentSiteBridgeVTable: __x_ABI_CMicrosoft_CUI_CContent_CIContentSiteBridgeVtbl = .init( + QueryInterface: { IContentSiteBridgeWrapper.queryInterface($0, $1, $2) }, + AddRef: { IContentSiteBridgeWrapper.addRef($0) }, + Release: { IContentSiteBridgeWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 4).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = __ABI_Microsoft_UI_Content.IContentSiteBridgeWrapper.IID + iids[3] = __ABI_Windows_Foundation.IClosableWrapper.IID + $1!.pointee = 4 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Microsoft.UI.Content.IContentSiteBridge").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + get_DispatcherQueue: { + guard let __unwrapped__instance = IContentSiteBridgeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value = __unwrapped__instance.dispatcherQueue + value?.copyTo($1) + return S_OK + }, + + get_LayoutDirectionOverride: { + guard let __unwrapped__instance = IContentSiteBridgeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value = __unwrapped__instance.layoutDirectionOverride + let valueWrapper = WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CMicrosoft__CUI__CContent__CContentLayoutDirectionWrapper(value) + valueWrapper?.copyTo($1) + return S_OK + }, + + put_LayoutDirectionOverride: { + guard let __unwrapped__instance = IContentSiteBridgeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinAppSDK.ContentLayoutDirection? = WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CMicrosoft__CUI__CContent__CContentLayoutDirectionWrapper.unwrapFrom(abi: ComPtr($1)) + __unwrapped__instance.layoutDirectionOverride = value + return S_OK + }, + + get_OverrideScale: { + guard let __unwrapped__instance = IContentSiteBridgeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value = __unwrapped__instance.overrideScale + $1?.initialize(to: value) + return S_OK + }, + + put_OverrideScale: { + guard let __unwrapped__instance = IContentSiteBridgeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: Float = $1 + __unwrapped__instance.overrideScale = value + return S_OK + } + ) + + public typealias IContentSiteBridgeWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Content.IContentSiteBridgeBridge> +} diff --git a/Sources/WinAppSDK/Microsoft.UI.Content+Impl.swift b/Sources/WinAppSDK/Microsoft.UI.Content+Impl.swift new file mode 100644 index 0000000..3773d45 --- /dev/null +++ b/Sources/WinAppSDK/Microsoft.UI.Content+Impl.swift @@ -0,0 +1,56 @@ +// WARNING: Please don't edit this file. It was generated by Swift/WinRT v0.0.1 +// swiftlint:disable all +import Foundation +@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation +import CWinRT + +public enum __IMPL_Microsoft_UI_Content { + public enum IContentSiteBridgeBridge : AbiInterfaceBridge { + public typealias CABI = __x_ABI_CMicrosoft_CUI_CContent_CIContentSiteBridge + public typealias SwiftABI = __ABI_Microsoft_UI_Content.IContentSiteBridge + public typealias SwiftProjection = AnyIContentSiteBridge + public static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return IContentSiteBridgeImpl(abi) + } + + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Content.IContentSiteBridgeVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } + } + + fileprivate class IContentSiteBridgeImpl: IContentSiteBridge, WinRTAbiImpl { + fileprivate typealias Bridge = IContentSiteBridgeBridge + fileprivate let _default: Bridge.SwiftABI + fileprivate var thisPtr: WindowsFoundation.IInspectable { _default } + fileprivate init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.icontentsitebridge.dispatcherqueue) + fileprivate var dispatcherQueue : WinAppSDK.DispatcherQueue! { + get { try! _default.get_DispatcherQueueImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.icontentsitebridge.layoutdirectionoverride) + fileprivate var layoutDirectionOverride : ContentLayoutDirection? { + get { try! _default.get_LayoutDirectionOverrideImpl() } + set { try! _default.put_LayoutDirectionOverrideImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.icontentsitebridge.overridescale) + fileprivate var overrideScale : Float { + get { try! _default.get_OverrideScaleImpl() } + set { try! _default.put_OverrideScaleImpl(newValue) } + } + + private lazy var _IClosable: __ABI_Windows_Foundation.IClosable! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.icontentsitebridge.close) + fileprivate func close() throws { + try _IClosable.CloseImpl() + } + + } + +} diff --git a/Sources/WinAppSDK/Microsoft.UI.Content.swift b/Sources/WinAppSDK/Microsoft.UI.Content.swift new file mode 100644 index 0000000..eafec87 --- /dev/null +++ b/Sources/WinAppSDK/Microsoft.UI.Content.swift @@ -0,0 +1,669 @@ +// WARNING: Please don't edit this file. It was generated by Swift/WinRT v0.0.1 +// swiftlint:disable all +import Foundation +@_spi(WinRTInternal) @_spi(WinRTImplements) import UWP +@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation +import CWinRT + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentcoordinateroundingmode) +public typealias ContentCoordinateRoundingMode = __x_ABI_CMicrosoft_CUI_CContent_CContentCoordinateRoundingMode +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentlayoutdirection) +public typealias ContentLayoutDirection = __x_ABI_CMicrosoft_CUI_CContent_CContentLayoutDirection +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentcoordinateconverter) +open class ContentCoordinateConverter : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Content.IContentCoordinateConverter + private typealias CABI = __x_ABI_CMicrosoft_CUI_CContent_CIContentCoordinateConverter + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override open func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CContent_CIContentCoordinateConverter>?) -> ContentCoordinateConverter? { + guard let abi = abi else { return nil } + return UnsealedWinRTClassWrapper.unwrapFrom(base: abi) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + @_spi(WinRTInternal) + public init( + composing: Composable.Type, + _ createCallback: (UnsealedWinRTClassWrapper?, inout WindowsFoundation.IInspectable?) -> Composable.Default.SwiftABI) + { + super.init() + MakeComposed(composing: composing, (self as! Composable.Class), createCallback) + } + override open func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + return super.queryInterface(iid) + } + private static var _IContentCoordinateConverterFactory : __ABI_Microsoft_UI_Content.IContentCoordinateConverterFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Content.ContentCoordinateConverter")) + + private static let _IContentCoordinateConverterStatics: __ABI_Microsoft_UI_Content.IContentCoordinateConverterStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Content.ContentCoordinateConverter")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentcoordinateconverter.createforwindowid) + public class func createForWindowId(_ windowId: WinAppSDK.WindowId) -> ContentCoordinateConverter! { + return try! _IContentCoordinateConverterStatics.CreateForWindowIdImpl(windowId) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentcoordinateconverter.convertlocaltoscreen) + public func convertLocalToScreen(_ localPoint: WindowsFoundation.Point) throws -> UWP.PointInt32 { + try _default.ConvertLocalToScreenWithPointImpl(localPoint) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentcoordinateconverter.convertlocaltoscreen) + public func convertLocalToScreen(_ localRect: WindowsFoundation.Rect) throws -> UWP.RectInt32 { + try _default.ConvertLocalToScreenWithRectImpl(localRect) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentcoordinateconverter.convertscreentolocal) + public func convertScreenToLocal(_ screenPoint: UWP.PointInt32) throws -> WindowsFoundation.Point { + try _default.ConvertScreenToLocalWithPointImpl(screenPoint) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentcoordinateconverter.convertscreentolocal) + public func convertScreenToLocal(_ screenRect: UWP.RectInt32) throws -> WindowsFoundation.Rect { + try _default.ConvertScreenToLocalWithRectImpl(screenRect) + } + + internal enum IContentCoordinateConverter : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = ContentCoordinateConverter + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CContent_CIContentCoordinateConverter + internal typealias SwiftABI = __ABI_Microsoft_UI_Content.IContentCoordinateConverter + } + } + internal typealias Composable = IContentCoordinateConverter + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentdeferral) +public final class ContentDeferral : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Content.IContentDeferral + private typealias CABI = __x_ABI_CMicrosoft_CUI_CContent_CIContentDeferral + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CContent_CIContentDeferral>?) -> ContentDeferral? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentdeferral.complete) + public func complete() throws { + try _default.CompleteImpl() + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentenvironmentsettingchangedeventargs) +public final class ContentEnvironmentSettingChangedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Content.IContentEnvironmentSettingChangedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CContent_CIContentEnvironmentSettingChangedEventArgs + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CContent_CIContentEnvironmentSettingChangedEventArgs>?) -> ContentEnvironmentSettingChangedEventArgs? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentenvironmentsettingchangedeventargs.settingname) + public var settingName : String { + get { try! _default.get_SettingNameImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentenvironmentstatechangedeventargs) +public final class ContentEnvironmentStateChangedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Content.IContentEnvironmentStateChangedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CContent_CIContentEnvironmentStateChangedEventArgs + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CContent_CIContentEnvironmentStateChangedEventArgs>?) -> ContentEnvironmentStateChangedEventArgs? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentenvironmentstatechangedeventargs.didappwindowidchange) + public var didAppWindowIdChange : Bool { + get { try! _default.get_DidAppWindowIdChangeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentenvironmentstatechangedeventargs.diddisplayidchange) + public var didDisplayIdChange : Bool { + get { try! _default.get_DidDisplayIdChangeImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentisland) +open class ContentIsland : WinRTClass, WindowsFoundation.IClosable, WinAppSDK.IClosableNotifier, WinAppSDK.ICompositionSupportsSystemBackdrop { + private typealias SwiftABI = __ABI_Microsoft_UI_Content.IContentIsland + private typealias CABI = __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override open func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CContent_CIContentIsland>?) -> ContentIsland? { + guard let abi = abi else { return nil } + return UnsealedWinRTClassWrapper.unwrapFrom(base: abi) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + @_spi(WinRTInternal) + public init( + composing: Composable.Type, + _ createCallback: (UnsealedWinRTClassWrapper?, inout WindowsFoundation.IInspectable?) -> Composable.Default.SwiftABI) + { + super.init() + MakeComposed(composing: composing, (self as! Composable.Class), createCallback) + } + override open func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + return super.queryInterface(iid) + } + private static var _IContentIslandFactory : __ABI_Microsoft_UI_Content.IContentIslandFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Content.ContentIsland")) + + private static let _IContentIslandStatics: __ABI_Microsoft_UI_Content.IContentIslandStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Content.ContentIsland")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentisland.create) + public class func create(_ Root: WinAppSDK.Visual!) -> ContentIsland! { + return try! _IContentIslandStatics.CreateImpl(Root) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentisland.getbyvisual) + public class func getByVisual(_ child: WinAppSDK.Visual!) -> ContentIsland! { + return try! _IContentIslandStatics.GetByVisualImpl(child) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentisland.getfromid) + public class func getFromId(_ id: UInt64) -> ContentIsland! { + return try! _IContentIslandStatics.GetFromIdImpl(id) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentisland.getautomationhostprovider) + public func getAutomationHostProvider() throws -> Any! { + try _default.GetAutomationHostProviderImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentisland.getstatechangedeferral) + public func getStateChangeDeferral() throws -> ContentDeferral! { + try _default.GetStateChangeDeferralImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentisland.requestsize) + public func requestSize(_ size: WindowsFoundation.Vector2) throws { + try _default.RequestSizeImpl(size) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentisland.actualsize) + public var actualSize : WindowsFoundation.Vector2 { + get { try! _default.get_ActualSizeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentisland.appdata) + public var appData : Any! { + get { try! _default.get_AppDataImpl() } + set { try! _default.put_AppDataImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentisland.coordinateconverter) + public var coordinateConverter : ContentCoordinateConverter! { + get { try! _default.get_CoordinateConverterImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentisland.customproperties) + public var customProperties : WindowsFoundation.AnyIPropertySet! { + get { try! _default.get_CustomPropertiesImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentisland.dispatcherqueue) + public var dispatcherQueue : WinAppSDK.DispatcherQueue! { + get { try! _default.get_DispatcherQueueImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentisland.environment) + public var environment : ContentIslandEnvironment! { + get { try! _default.get_EnvironmentImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentisland.id) + public var id : UInt64 { + get { try! _default.get_IdImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentisland.isconnected) + public var isConnected : Bool { + get { try! _default.get_IsConnectedImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentisland.ishittestvisiblewhentransparent) + public var isHitTestVisibleWhenTransparent : Bool { + get { try! _default.get_IsHitTestVisibleWhenTransparentImpl() } + set { try! _default.put_IsHitTestVisibleWhenTransparentImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentisland.isislandenabled) + public var isIslandEnabled : Bool { + get { try! _default.get_IsIslandEnabledImpl() } + set { try! _default.put_IsIslandEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentisland.isislandvisible) + public var isIslandVisible : Bool { + get { try! _default.get_IsIslandVisibleImpl() } + set { try! _default.put_IsIslandVisibleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentisland.issiteenabled) + public var isSiteEnabled : Bool { + get { try! _default.get_IsSiteEnabledImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentisland.issitevisible) + public var isSiteVisible : Bool { + get { try! _default.get_IsSiteVisibleImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentisland.layoutdirection) + public var layoutDirection : ContentLayoutDirection { + get { try! _default.get_LayoutDirectionImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentisland.rasterizationscale) + public var rasterizationScale : Float { + get { try! _default.get_RasterizationScaleImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentisland.automationproviderrequested) + public lazy var automationProviderRequested : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_AutomationProviderRequestedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_AutomationProviderRequestedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentisland.statechanged) + public lazy var stateChanged : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_StateChangedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_StateChangedImpl($0) + } + ) + }() + + private lazy var _IClosable: __ABI_Windows_Foundation.IClosable! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentisland.close) + public func close() throws { + try _IClosable.CloseImpl() + } + + private lazy var _IClosableNotifier: __ABI_Microsoft_UI.IClosableNotifier! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentisland.isclosed) + public var isClosed : Bool { + get { try! _IClosableNotifier.get_IsClosedImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentisland.closed) + public lazy var closed : Event = { + .init( + add: { [weak self] in + guard let this = self?._IClosableNotifier else { return .init() } + return try! this.add_ClosedImpl($0) + }, + remove: { [weak self] in + try? self?._IClosableNotifier.remove_ClosedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentisland.frameworkclosed) + public lazy var frameworkClosed : Event = { + .init( + add: { [weak self] in + guard let this = self?._IClosableNotifier else { return .init() } + return try! this.add_FrameworkClosedImpl($0) + }, + remove: { [weak self] in + try? self?._IClosableNotifier.remove_FrameworkClosedImpl($0) + } + ) + }() + + private lazy var _ICompositionSupportsSystemBackdrop: __ABI_Microsoft_UI_Composition.ICompositionSupportsSystemBackdrop! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentisland.systembackdrop) + public var systemBackdrop : UWP.CompositionBrush! { + get { try! _ICompositionSupportsSystemBackdrop.get_SystemBackdropImpl() } + set { try! _ICompositionSupportsSystemBackdrop.put_SystemBackdropImpl(newValue) } + } + + internal enum IContentIsland : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = ContentIsland + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland + internal typealias SwiftABI = __ABI_Microsoft_UI_Content.IContentIsland + } + } + internal typealias Composable = IContentIsland + deinit { + _default = nil + _IClosable = nil + _IClosableNotifier = nil + _ICompositionSupportsSystemBackdrop = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentislandautomationproviderrequestedeventargs) +public final class ContentIslandAutomationProviderRequestedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Content.IContentIslandAutomationProviderRequestedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CContent_CIContentIslandAutomationProviderRequestedEventArgs + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CContent_CIContentIslandAutomationProviderRequestedEventArgs>?) -> ContentIslandAutomationProviderRequestedEventArgs? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentislandautomationproviderrequestedeventargs.automationprovider) + public var automationProvider : Any! { + get { try! _default.get_AutomationProviderImpl() } + set { try! _default.put_AutomationProviderImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentislandautomationproviderrequestedeventargs.handled) + public var handled : Bool { + get { try! _default.get_HandledImpl() } + set { try! _default.put_HandledImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentislandenvironment) +open class ContentIslandEnvironment : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Content.IContentIslandEnvironment + private typealias CABI = __x_ABI_CMicrosoft_CUI_CContent_CIContentIslandEnvironment + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override open func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CContent_CIContentIslandEnvironment>?) -> ContentIslandEnvironment? { + guard let abi = abi else { return nil } + return UnsealedWinRTClassWrapper.unwrapFrom(base: abi) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + @_spi(WinRTInternal) + public init( + composing: Composable.Type, + _ createCallback: (UnsealedWinRTClassWrapper?, inout WindowsFoundation.IInspectable?) -> Composable.Default.SwiftABI) + { + super.init() + MakeComposed(composing: composing, (self as! Composable.Class), createCallback) + } + override open func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + return super.queryInterface(iid) + } + private static var _IContentIslandEnvironmentFactory : __ABI_Microsoft_UI_Content.IContentIslandEnvironmentFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Content.ContentIslandEnvironment")) + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentislandenvironment.appwindowid) + public var appWindowId : WinAppSDK.WindowId { + get { try! _default.get_AppWindowIdImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentislandenvironment.displayid) + public var displayId : WinAppSDK.DisplayId { + get { try! _default.get_DisplayIdImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentislandenvironment.settingchanged) + public lazy var settingChanged : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_SettingChangedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_SettingChangedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentislandenvironment.statechanged) + public lazy var stateChanged : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_StateChangedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_StateChangedImpl($0) + } + ) + }() + + internal enum IContentIslandEnvironment : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = ContentIslandEnvironment + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CContent_CIContentIslandEnvironment + internal typealias SwiftABI = __ABI_Microsoft_UI_Content.IContentIslandEnvironment + } + } + internal typealias Composable = IContentIslandEnvironment + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentislandstatechangedeventargs) +public final class ContentIslandStateChangedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Content.IContentIslandStateChangedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CContent_CIContentIslandStateChangedEventArgs + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CContent_CIContentIslandStateChangedEventArgs>?) -> ContentIslandStateChangedEventArgs? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentislandstatechangedeventargs.didactualsizechange) + public var didActualSizeChange : Bool { + get { try! _default.get_DidActualSizeChangeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentislandstatechangedeventargs.didlayoutdirectionchange) + public var didLayoutDirectionChange : Bool { + get { try! _default.get_DidLayoutDirectionChangeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentislandstatechangedeventargs.didrasterizationscalechange) + public var didRasterizationScaleChange : Bool { + get { try! _default.get_DidRasterizationScaleChangeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentislandstatechangedeventargs.didsiteenabledchange) + public var didSiteEnabledChange : Bool { + get { try! _default.get_DidSiteEnabledChangeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentislandstatechangedeventargs.didsitevisiblechange) + public var didSiteVisibleChange : Bool { + get { try! _default.get_DidSiteVisibleChangeImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.icontentsitebridge) +public protocol IContentSiteBridge : WindowsFoundation.IClosable { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.icontentsitebridge.dispatcherqueue) + var dispatcherQueue: WinAppSDK.DispatcherQueue! { get } + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.icontentsitebridge.layoutdirectionoverride) + var layoutDirectionOverride: WinAppSDK.ContentLayoutDirection? { get set } + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.icontentsitebridge.overridescale) + var overrideScale: Float { get set } +} + +extension IContentSiteBridge { + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + switch iid { + case __ABI_Microsoft_UI_Content.IContentSiteBridgeWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Content.IContentSiteBridgeWrapper(self) + return wrapper!.queryInterface(iid) + case __ABI_Windows_Foundation.IClosableWrapper.IID: + let wrapper = __ABI_Windows_Foundation.IClosableWrapper(self) + return wrapper!.queryInterface(iid) + default: return nil + } + } +} +public typealias AnyIContentSiteBridge = any IContentSiteBridge + +extension WinAppSDK.ContentCoordinateRoundingMode { + public static var auto : WinAppSDK.ContentCoordinateRoundingMode { + __x_ABI_CMicrosoft_CUI_CContent_CContentCoordinateRoundingMode_Auto + } + public static var floor : WinAppSDK.ContentCoordinateRoundingMode { + __x_ABI_CMicrosoft_CUI_CContent_CContentCoordinateRoundingMode_Floor + } + public static var round : WinAppSDK.ContentCoordinateRoundingMode { + __x_ABI_CMicrosoft_CUI_CContent_CContentCoordinateRoundingMode_Round + } + public static var ceiling : WinAppSDK.ContentCoordinateRoundingMode { + __x_ABI_CMicrosoft_CUI_CContent_CContentCoordinateRoundingMode_Ceiling + } +} +extension WinAppSDK.ContentCoordinateRoundingMode: @retroactive Hashable, @retroactive Codable {} + +extension WinAppSDK.ContentLayoutDirection { + public static var leftToRight : WinAppSDK.ContentLayoutDirection { + __x_ABI_CMicrosoft_CUI_CContent_CContentLayoutDirection_LeftToRight + } + public static var rightToLeft : WinAppSDK.ContentLayoutDirection { + __x_ABI_CMicrosoft_CUI_CContent_CContentLayoutDirection_RightToLeft + } +} +extension WinAppSDK.ContentLayoutDirection: @retroactive Hashable, @retroactive Codable {} + diff --git a/Sources/WinAppSDK/Microsoft.UI.Dispatching+ABI.swift b/Sources/WinAppSDK/Microsoft.UI.Dispatching+ABI.swift new file mode 100644 index 0000000..bcc0aea --- /dev/null +++ b/Sources/WinAppSDK/Microsoft.UI.Dispatching+ABI.swift @@ -0,0 +1,390 @@ +// WARNING: Please don't edit this file. It was generated by Swift/WinRT v0.0.1 +// swiftlint:disable all +import Foundation +@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation +import CWinRT + +private var IID___x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherExitDeferral: WindowsFoundation.IID { + .init(Data1: 0x910B5AAC, Data2: 0x3310, Data3: 0x563E, Data4: ( 0x84,0x18,0xF3,0x00,0x55,0x79,0x72,0x9E ))// 910B5AAC-3310-563E-8418-F3005579729E +} + +private var IID___x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueue: WindowsFoundation.IID { + .init(Data1: 0xF6EBF8FA, Data2: 0xBE1C, Data3: 0x5BF6, Data4: ( 0xA4,0x67,0x73,0xDA,0x28,0x73,0x8A,0xE8 ))// F6EBF8FA-BE1C-5BF6-A467-73DA28738AE8 +} + +private var IID___x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueue2: WindowsFoundation.IID { + .init(Data1: 0x0CF48751, Data2: 0xF1AC, Data3: 0x59B8, Data4: ( 0xBA,0x52,0x6C,0xE7,0xA1,0x44,0x4D,0x6F ))// 0CF48751-F1AC-59B8-BA52-6CE7A1444D6F +} + +private var IID___x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueue3: WindowsFoundation.IID { + .init(Data1: 0x14A7A175, Data2: 0x5C27, Data3: 0x5A35, Data4: ( 0xB0,0x79,0x21,0x96,0x0C,0xF7,0x64,0xA8 ))// 14A7A175-5C27-5A35-B079-21960CF764A8 +} + +private var IID___x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueueController: WindowsFoundation.IID { + .init(Data1: 0xBCE8178D, Data2: 0x2183, Data3: 0x584C, Data4: ( 0x9E,0x5B,0xF9,0x36,0x6F,0x6A,0xE4,0x84 ))// BCE8178D-2183-584C-9E5B-F9366F6AE484 +} + +private var IID___x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueueController2: WindowsFoundation.IID { + .init(Data1: 0x4C68EE2A, Data2: 0x1CB1, Data3: 0x5591, Data4: ( 0xA3,0xA2,0x9B,0x59,0x0B,0x8F,0x8B,0x9A ))// 4C68EE2A-1CB1-5591-A3A2-9B590B8F8B9A +} + +private var IID___x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueueControllerStatics: WindowsFoundation.IID { + .init(Data1: 0xF18D6145, Data2: 0x722B, Data3: 0x593D, Data4: ( 0xBC,0xF2,0xA6,0x1E,0x71,0x3F,0x00,0x37 ))// F18D6145-722B-593D-BCF2-A61E713F0037 +} + +private var IID___x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueueShutdownStartingEventArgs: WindowsFoundation.IID { + .init(Data1: 0x32519BE5, Data2: 0x072B, Data3: 0x5660, Data4: ( 0xA7,0x0E,0x88,0x35,0xC9,0xB8,0x15,0x7D ))// 32519BE5-072B-5660-A70E-8835C9B8157D +} + +private var IID___x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueueStatics: WindowsFoundation.IID { + .init(Data1: 0xCD3382EA, Data2: 0xA455, Data3: 0x5124, Data4: ( 0xB6,0x3A,0xCA,0x40,0xD3,0x4C,0xA2,0x3C ))// CD3382EA-A455-5124-B63A-CA40D34CA23C +} + +private var IID___x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueueTimer: WindowsFoundation.IID { + .init(Data1: 0xAD4D63FD, Data2: 0x88FE, Data3: 0x541F, Data4: ( 0xAC,0x11,0xBF,0x2D,0xC1,0xED,0x2C,0xE5 ))// AD4D63FD-88FE-541F-AC11-BF2DC1ED2CE5 +} + +private var IID___x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueueHandler: WindowsFoundation.IID { + .init(Data1: 0x2E0872A9, Data2: 0x4E29, Data3: 0x5F14, Data4: ( 0xB6,0x88,0xFB,0x96,0xD5,0xF9,0xD5,0xF8 ))// 2E0872A9-4E29-5F14-B688-FB96D5F9D5F8 +} + +public enum __ABI_Microsoft_UI_Dispatching { + public class IDispatcherExitDeferral: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherExitDeferral } + + internal func CompleteImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherExitDeferral.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Complete(pThis)) + } + } + + } + + public class IDispatcherQueue: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueue } + + internal func CreateTimerImpl() throws -> WinAppSDK.DispatcherQueueTimer? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueue.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateTimer(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func TryEnqueueImpl(_ callback: WinAppSDK.DispatcherQueueHandler?) throws -> Bool { + var result: boolean = 0 + let callbackWrapper = __ABI_Microsoft_UI_Dispatching.DispatcherQueueHandlerWrapper(callback) + let _callback = try! callbackWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueue.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.TryEnqueue(pThis, _callback, &result)) + } + return .init(from: result) + } + + internal func TryEnqueueWithPriorityImpl(_ priority: WinAppSDK.DispatcherQueuePriority, _ callback: WinAppSDK.DispatcherQueueHandler?) throws -> Bool { + var result: boolean = 0 + let callbackWrapper = __ABI_Microsoft_UI_Dispatching.DispatcherQueueHandlerWrapper(callback) + let _callback = try! callbackWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueue.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.TryEnqueueWithPriority(pThis, priority, _callback, &result)) + } + return .init(from: result) + } + + internal func add_ShutdownStartingImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueShutdownStartingEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueue.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ShutdownStarting(pThis, _handler, &token)) + } + return token + } + + internal func remove_ShutdownStartingImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueue.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ShutdownStarting(pThis, token)) + } + } + + internal func add_ShutdownCompletedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue_IInspectableWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueue.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ShutdownCompleted(pThis, _handler, &token)) + } + return token + } + + internal func remove_ShutdownCompletedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueue.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ShutdownCompleted(pThis, token)) + } + } + + } + + public class IDispatcherQueue2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueue2 } + + internal func get_HasThreadAccessImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueue2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HasThreadAccess(pThis, &value)) + } + return .init(from: value) + } + + } + + public class IDispatcherQueue3: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueue3 } + + internal func EnqueueEventLoopExitImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueue3.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.EnqueueEventLoopExit(pThis)) + } + } + + internal func EnsureSystemDispatcherQueueImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueue3.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.EnsureSystemDispatcherQueue(pThis)) + } + } + + internal func RunEventLoopImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueue3.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RunEventLoop(pThis)) + } + } + + internal func RunEventLoopWithOptionsImpl(_ options: WinAppSDK.DispatcherRunOptions, _ deferral: WinAppSDK.DispatcherExitDeferral?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueue3.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RunEventLoopWithOptions(pThis, options, RawPointer(deferral))) + } + } + + internal func add_FrameworkShutdownStartingImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueShutdownStartingEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueue3.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_FrameworkShutdownStarting(pThis, _handler, &token)) + } + return token + } + + internal func remove_FrameworkShutdownStartingImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueue3.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_FrameworkShutdownStarting(pThis, token)) + } + } + + internal func add_FrameworkShutdownCompletedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue_IInspectableWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueue3.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_FrameworkShutdownCompleted(pThis, _handler, &token)) + } + return token + } + + internal func remove_FrameworkShutdownCompletedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueue3.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_FrameworkShutdownCompleted(pThis, token)) + } + } + + } + + public class IDispatcherQueueController: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueueController } + + internal func get_DispatcherQueueImpl() throws -> WinAppSDK.DispatcherQueue? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueueController.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DispatcherQueue(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func ShutdownQueueAsyncImpl() throws -> WindowsFoundation.AnyIAsyncAction? { + let (operation) = try ComPtrs.initialize { operationAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueueController.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ShutdownQueueAsync(pThis, &operationAbi)) + } + } + return __ABI_Windows_Foundation.IAsyncActionWrapper.unwrapFrom(abi: operation) + } + + } + + public class IDispatcherQueueController2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueueController2 } + + internal func ShutdownQueueImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueueController2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ShutdownQueue(pThis)) + } + } + + } + + public class IDispatcherQueueControllerStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueueControllerStatics } + + internal func CreateOnDedicatedThreadImpl() throws -> WinAppSDK.DispatcherQueueController? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueueControllerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateOnDedicatedThread(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateOnCurrentThreadImpl() throws -> WinAppSDK.DispatcherQueueController? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueueControllerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateOnCurrentThread(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IDispatcherQueueShutdownStartingEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueueShutdownStartingEventArgs } + + internal func GetDeferralImpl() throws -> WindowsFoundation.Deferral? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueueShutdownStartingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetDeferral(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IDispatcherQueueStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueueStatics } + + internal func GetForCurrentThreadImpl() throws -> WinAppSDK.DispatcherQueue? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueueStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetForCurrentThread(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IDispatcherQueueTimer: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueueTimer } + + internal func get_IntervalImpl() throws -> WindowsFoundation.TimeSpan { + var value: __x_ABI_CWindows_CFoundation_CTimeSpan = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueueTimer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Interval(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_IntervalImpl(_ value: WindowsFoundation.TimeSpan) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueueTimer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Interval(pThis, .from(swift: value))) + } + } + + internal func get_IsRunningImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueueTimer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsRunning(pThis, &value)) + } + return .init(from: value) + } + + internal func get_IsRepeatingImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueueTimer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsRepeating(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsRepeatingImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueueTimer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsRepeating(pThis, .init(from: value))) + } + } + + internal func StartImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueueTimer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Start(pThis)) + } + } + + internal func StopImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueueTimer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Stop(pThis)) + } + } + + internal func add_TickImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueTimer_IInspectableWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueueTimer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Tick(pThis, _handler, &token)) + } + return token + } + + internal func remove_TickImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueueTimer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Tick(pThis, token)) + } + } + + } + +} +// MARK - DispatcherQueueHandler +extension __ABI_Microsoft_UI_Dispatching { + public class DispatcherQueueHandler: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueueHandler } + + open func InvokeImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueueHandler.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis)) + } + } + + } + + + typealias DispatcherQueueHandlerWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Dispatching.DispatcherQueueHandlerBridge> + internal static var DispatcherQueueHandlerVTable: __x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueueHandlerVtbl = .init( + QueryInterface: { DispatcherQueueHandlerWrapper.queryInterface($0, $1, $2) }, + AddRef: { DispatcherQueueHandlerWrapper.addRef($0) }, + Release: { DispatcherQueueHandlerWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = DispatcherQueueHandlerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + __unwrapped__instance() + return S_OK + } + ) +} +public extension WinRTDelegateBridge where CABI == __x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueueHandler { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Dispatching.DispatcherQueueHandlerVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + diff --git a/Sources/WinAppSDK/Microsoft.UI.Dispatching+Impl.swift b/Sources/WinAppSDK/Microsoft.UI.Dispatching+Impl.swift new file mode 100644 index 0000000..c816c96 --- /dev/null +++ b/Sources/WinAppSDK/Microsoft.UI.Dispatching+Impl.swift @@ -0,0 +1,22 @@ +// WARNING: Please don't edit this file. It was generated by Swift/WinRT v0.0.1 +// swiftlint:disable all +import Foundation +@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation +import CWinRT + +public enum __IMPL_Microsoft_UI_Dispatching { + public class DispatcherQueueHandlerBridge : WinRTDelegateBridge { + public typealias Handler = DispatcherQueueHandler + public typealias CABI = __x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueueHandler + public typealias SwiftABI = __ABI_Microsoft_UI_Dispatching.DispatcherQueueHandler + + public static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { () in + try! _default.InvokeImpl() + } + return handler + } + } +} diff --git a/Sources/WinAppSDK/Microsoft.UI.Dispatching.swift b/Sources/WinAppSDK/Microsoft.UI.Dispatching.swift new file mode 100644 index 0000000..cf7ca23 --- /dev/null +++ b/Sources/WinAppSDK/Microsoft.UI.Dispatching.swift @@ -0,0 +1,366 @@ +// WARNING: Please don't edit this file. It was generated by Swift/WinRT v0.0.1 +// swiftlint:disable all +import Foundation +@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation +import CWinRT + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.dispatching.dispatcherqueuepriority) +public typealias DispatcherQueuePriority = __x_ABI_CMicrosoft_CUI_CDispatching_CDispatcherQueuePriority +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.dispatching.dispatcherrunoptions) +public typealias DispatcherRunOptions = __x_ABI_CMicrosoft_CUI_CDispatching_CDispatcherRunOptions +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.dispatching.dispatcherexitdeferral) +public final class DispatcherExitDeferral : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Dispatching.IDispatcherExitDeferral + private typealias CABI = __x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherExitDeferral + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherExitDeferral>?) -> DispatcherExitDeferral? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + override public init() { + super.init(try! RoActivateInstance(HString("Microsoft.UI.Dispatching.DispatcherExitDeferral"))) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.dispatching.dispatcherexitdeferral.complete) + public func complete() throws { + try _default.CompleteImpl() + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.dispatching.dispatcherqueue) +public final class DispatcherQueue : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Dispatching.IDispatcherQueue + private typealias CABI = __x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueue + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueue>?) -> DispatcherQueue? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + private static let _IDispatcherQueueStatics: __ABI_Microsoft_UI_Dispatching.IDispatcherQueueStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Dispatching.DispatcherQueue")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.dispatching.dispatcherqueue.getforcurrentthread) + public static func getForCurrentThread() -> DispatcherQueue! { + return try! _IDispatcherQueueStatics.GetForCurrentThreadImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.dispatching.dispatcherqueue.createtimer) + public func createTimer() throws -> DispatcherQueueTimer! { + try _default.CreateTimerImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.dispatching.dispatcherqueue.tryenqueue) + public func tryEnqueue(_ callback: DispatcherQueueHandler!) throws -> Bool { + try _default.TryEnqueueImpl(callback) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.dispatching.dispatcherqueue.tryenqueue) + public func tryEnqueue(_ priority: DispatcherQueuePriority, _ callback: DispatcherQueueHandler!) throws -> Bool { + try _default.TryEnqueueWithPriorityImpl(priority, callback) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.dispatching.dispatcherqueue.shutdowncompleted) + public lazy var shutdownCompleted : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ShutdownCompletedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ShutdownCompletedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.dispatching.dispatcherqueue.shutdownstarting) + public lazy var shutdownStarting : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ShutdownStartingImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ShutdownStartingImpl($0) + } + ) + }() + + private lazy var _IDispatcherQueue2: __ABI_Microsoft_UI_Dispatching.IDispatcherQueue2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.dispatching.dispatcherqueue.hasthreadaccess) + public var hasThreadAccess : Bool { + get { try! _IDispatcherQueue2.get_HasThreadAccessImpl() } + } + + private lazy var _IDispatcherQueue3: __ABI_Microsoft_UI_Dispatching.IDispatcherQueue3! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.dispatching.dispatcherqueue.enqueueeventloopexit) + public func enqueueEventLoopExit() throws { + try _IDispatcherQueue3.EnqueueEventLoopExitImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.dispatching.dispatcherqueue.ensuresystemdispatcherqueue) + public func ensureSystemDispatcherQueue() throws { + try _IDispatcherQueue3.EnsureSystemDispatcherQueueImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.dispatching.dispatcherqueue.runeventloop) + public func runEventLoop() throws { + try _IDispatcherQueue3.RunEventLoopImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.dispatching.dispatcherqueue.runeventloop) + public func runEventLoop(_ options: DispatcherRunOptions, _ deferral: DispatcherExitDeferral!) throws { + try _IDispatcherQueue3.RunEventLoopWithOptionsImpl(options, deferral) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.dispatching.dispatcherqueue.frameworkshutdowncompleted) + public lazy var frameworkShutdownCompleted : Event> = { + .init( + add: { [weak self] in + guard let this = self?._IDispatcherQueue3 else { return .init() } + return try! this.add_FrameworkShutdownCompletedImpl($0) + }, + remove: { [weak self] in + try? self?._IDispatcherQueue3.remove_FrameworkShutdownCompletedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.dispatching.dispatcherqueue.frameworkshutdownstarting) + public lazy var frameworkShutdownStarting : Event> = { + .init( + add: { [weak self] in + guard let this = self?._IDispatcherQueue3 else { return .init() } + return try! this.add_FrameworkShutdownStartingImpl($0) + }, + remove: { [weak self] in + try? self?._IDispatcherQueue3.remove_FrameworkShutdownStartingImpl($0) + } + ) + }() + + deinit { + _default = nil + _IDispatcherQueue2 = nil + _IDispatcherQueue3 = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.dispatching.dispatcherqueuecontroller) +public final class DispatcherQueueController : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Dispatching.IDispatcherQueueController + private typealias CABI = __x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueueController + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueueController>?) -> DispatcherQueueController? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + private static let _IDispatcherQueueControllerStatics: __ABI_Microsoft_UI_Dispatching.IDispatcherQueueControllerStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Dispatching.DispatcherQueueController")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.dispatching.dispatcherqueuecontroller.createondedicatedthread) + public static func createOnDedicatedThread() -> DispatcherQueueController! { + return try! _IDispatcherQueueControllerStatics.CreateOnDedicatedThreadImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.dispatching.dispatcherqueuecontroller.createoncurrentthread) + public static func createOnCurrentThread() -> DispatcherQueueController! { + return try! _IDispatcherQueueControllerStatics.CreateOnCurrentThreadImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.dispatching.dispatcherqueuecontroller.shutdownqueueasync) + public func shutdownQueueAsync() throws -> WindowsFoundation.AnyIAsyncAction! { + try _default.ShutdownQueueAsyncImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.dispatching.dispatcherqueuecontroller.dispatcherqueue) + public var dispatcherQueue : DispatcherQueue! { + get { try! _default.get_DispatcherQueueImpl() } + } + + private lazy var _IDispatcherQueueController2: __ABI_Microsoft_UI_Dispatching.IDispatcherQueueController2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.dispatching.dispatcherqueuecontroller.shutdownqueue) + public func shutdownQueue() throws { + try _IDispatcherQueueController2.ShutdownQueueImpl() + } + + deinit { + _default = nil + _IDispatcherQueueController2 = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.dispatching.dispatcherqueueshutdownstartingeventargs) +public final class DispatcherQueueShutdownStartingEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Dispatching.IDispatcherQueueShutdownStartingEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueueShutdownStartingEventArgs + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueueShutdownStartingEventArgs>?) -> DispatcherQueueShutdownStartingEventArgs? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.dispatching.dispatcherqueueshutdownstartingeventargs.getdeferral) + public func getDeferral() throws -> WindowsFoundation.Deferral! { + try _default.GetDeferralImpl() + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.dispatching.dispatcherqueuetimer) +public final class DispatcherQueueTimer : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Dispatching.IDispatcherQueueTimer + private typealias CABI = __x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueueTimer + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueueTimer>?) -> DispatcherQueueTimer? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.dispatching.dispatcherqueuetimer.start) + public func start() throws { + try _default.StartImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.dispatching.dispatcherqueuetimer.stop) + public func stop() throws { + try _default.StopImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.dispatching.dispatcherqueuetimer.interval) + public var interval : WindowsFoundation.TimeSpan { + get { try! _default.get_IntervalImpl() } + set { try! _default.put_IntervalImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.dispatching.dispatcherqueuetimer.isrepeating) + public var isRepeating : Bool { + get { try! _default.get_IsRepeatingImpl() } + set { try! _default.put_IsRepeatingImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.dispatching.dispatcherqueuetimer.isrunning) + public var isRunning : Bool { + get { try! _default.get_IsRunningImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.dispatching.dispatcherqueuetimer.tick) + public lazy var tick : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_TickImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_TickImpl($0) + } + ) + }() + + deinit { + _default = nil + } +} + +public typealias DispatcherQueueHandler = () -> () +extension WinAppSDK.DispatcherQueuePriority { + public static var low : WinAppSDK.DispatcherQueuePriority { + __x_ABI_CMicrosoft_CUI_CDispatching_CDispatcherQueuePriority_Low + } + public static var normal : WinAppSDK.DispatcherQueuePriority { + __x_ABI_CMicrosoft_CUI_CDispatching_CDispatcherQueuePriority_Normal + } + public static var high : WinAppSDK.DispatcherQueuePriority { + __x_ABI_CMicrosoft_CUI_CDispatching_CDispatcherQueuePriority_High + } +} +extension WinAppSDK.DispatcherQueuePriority: @retroactive Hashable, @retroactive Codable {} + +extension WinAppSDK.DispatcherRunOptions { + public static var none : WinAppSDK.DispatcherRunOptions { + __x_ABI_CMicrosoft_CUI_CDispatching_CDispatcherRunOptions_None + } + public static var continueOnQuit : WinAppSDK.DispatcherRunOptions { + __x_ABI_CMicrosoft_CUI_CDispatching_CDispatcherRunOptions_ContinueOnQuit + } + public static var quitOnlyLocalLoop : WinAppSDK.DispatcherRunOptions { + __x_ABI_CMicrosoft_CUI_CDispatching_CDispatcherRunOptions_QuitOnlyLocalLoop + } +} +extension WinAppSDK.DispatcherRunOptions: @retroactive Hashable, @retroactive Codable {} + diff --git a/Sources/WinAppSDK/Microsoft.UI.Input+ABI.swift b/Sources/WinAppSDK/Microsoft.UI.Input+ABI.swift new file mode 100644 index 0000000..1a94ac4 --- /dev/null +++ b/Sources/WinAppSDK/Microsoft.UI.Input+ABI.swift @@ -0,0 +1,2722 @@ +// WARNING: Please don't edit this file. It was generated by Swift/WinRT v0.0.1 +// swiftlint:disable all +import Foundation +@_spi(WinRTInternal) @_spi(WinRTImplements) import UWP +@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation +import CWinRT + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CICharacterReceivedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x36122718, Data2: 0x9263, Data3: 0x592B, Data4: ( 0x8D,0x87,0x8F,0x86,0x54,0x3F,0xFC,0x95 ))// 36122718-9263-592B-8D87-8F86543FFC95 +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIContextMenuKeyEventArgs: WindowsFoundation.IID { + .init(Data1: 0xF6025762, Data2: 0x9426, Data3: 0x541A, Data4: ( 0xB6,0x47,0x03,0x7A,0xBD,0xBE,0xCE,0xFC ))// F6025762-9426-541A-B647-037ABDBECEFC +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CICrossSlidingEventArgs: WindowsFoundation.IID { + .init(Data1: 0x7679641F, Data2: 0xBA9F, Data3: 0x543C, Data4: ( 0xA7,0xC8,0x62,0x29,0xA9,0x8F,0x89,0xEF ))// 7679641F-BA9F-543C-A7C8-6229A98F89EF +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIDraggingEventArgs: WindowsFoundation.IID { + .init(Data1: 0x3EFB1B75, Data2: 0x3D3B, Data3: 0x550E, Data4: ( 0x96,0x3D,0x08,0x28,0xCA,0x76,0x12,0x8A ))// 3EFB1B75-3D3B-550E-963D-0828CA76128A +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIFocusChangedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xA039B115, Data2: 0xDBDF, Data3: 0x594C, Data4: ( 0x9B,0x86,0xDA,0x6A,0xA0,0x5C,0x9F,0xA2 ))// A039B115-DBDF-594C-9B86-DA6AA05C9FA2 +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIFocusNavigationRequest: WindowsFoundation.IID { + .init(Data1: 0x6D84BB83, Data2: 0x9C84, Data3: 0x5112, Data4: ( 0x85,0xE9,0x89,0x19,0xAC,0xF9,0x72,0x62 ))// 6D84BB83-9C84-5112-85E9-8919ACF97262 +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIFocusNavigationRequestEventArgs: WindowsFoundation.IID { + .init(Data1: 0x35A63426, Data2: 0xE271, Data3: 0x59F9, Data4: ( 0xA2,0x31,0x0D,0x19,0x03,0x14,0xB4,0x15 ))// 35A63426-E271-59F9-A231-0D190314B415 +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIFocusNavigationRequestStatics: WindowsFoundation.IID { + .init(Data1: 0x8C4D2ED8, Data2: 0x3A63, Data3: 0x519E, Data4: ( 0xA8,0x27,0xF5,0x7E,0x26,0x3B,0xD1,0xFF ))// 8C4D2ED8-3A63-519E-A827-F57E263BD1FF +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer: WindowsFoundation.IID { + .init(Data1: 0xCDA89AFC, Data2: 0x6BD0, Data3: 0x595C, Data4: ( 0xBA,0x37,0x54,0x5F,0xCE,0x5B,0xF0,0x16 ))// CDA89AFC-6BD0-595C-BA37-545FCE5BF016 +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIHoldingEventArgs: WindowsFoundation.IID { + .init(Data1: 0x8E449E85, Data2: 0xD223, Data3: 0x533C, Data4: ( 0xB0,0xB2,0xBF,0x7C,0x6D,0x10,0xC2,0xDB ))// 8E449E85-D223-533C-B0B2-BF7C6D10C2DB +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIInputActivationListener: WindowsFoundation.IID { + .init(Data1: 0x3B818627, Data2: 0x6CE7, Data3: 0x5E0D, Data4: ( 0xA0,0xF5,0x66,0x84,0xFD,0x1A,0xEC,0x78 ))// 3B818627-6CE7-5E0D-A0F5-6684FD1AEC78 +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIInputActivationListenerActivationChangedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x7978526B, Data2: 0x00B6, Data3: 0x5303, Data4: ( 0x8F,0x7D,0x55,0xBE,0xF3,0x6D,0xA7,0x86 ))// 7978526B-00B6-5303-8F7D-55BEF36DA786 +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIInputActivationListenerStatics: WindowsFoundation.IID { + .init(Data1: 0xC4249843, Data2: 0xF053, Data3: 0x5C99, Data4: ( 0x9D,0x51,0x72,0x0A,0xDE,0x94,0x22,0x4D ))// C4249843-F053-5C99-9D51-720ADE94224D +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIInputActivationListenerStatics2: WindowsFoundation.IID { + .init(Data1: 0x7EA26120, Data2: 0x9636, Data3: 0x5292, Data4: ( 0xA7,0xB1,0x56,0x54,0x4A,0xC5,0x1A,0x22 ))// 7EA26120-9636-5292-A7B1-56544AC51A22 +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIInputCursor: WindowsFoundation.IID { + .init(Data1: 0x359B15F9, Data2: 0x19C2, Data3: 0x5714, Data4: ( 0x84,0x32,0x75,0x17,0x68,0x26,0x40,0x6B ))// 359B15F9-19C2-5714-8432-75176826406B +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIInputCursorFactory: WindowsFoundation.IID { + .init(Data1: 0x2F47647B, Data2: 0x4BE0, Data3: 0x53E9, Data4: ( 0xBE,0x7E,0xC3,0x8D,0x54,0x59,0xDB,0x6B ))// 2F47647B-4BE0-53E9-BE7E-C38D5459DB6B +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIInputCursorStatics: WindowsFoundation.IID { + .init(Data1: 0x92F6A552, Data2: 0x099F, Data3: 0x55FB, Data4: ( 0x8C,0x31,0xE4,0x50,0x28,0x4C,0x96,0x43 ))// 92F6A552-099F-55FB-8C31-E450284C9643 +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIInputCustomCursor: WindowsFoundation.IID { + .init(Data1: 0x5486F042, Data2: 0x7E1A, Data3: 0x5DC8, Data4: ( 0x80,0x41,0xE4,0x7B,0x60,0x9A,0x5B,0xA1 ))// 5486F042-7E1A-5DC8-8041-E47B609A5BA1 +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIInputCustomCursorFactory: WindowsFoundation.IID { + .init(Data1: 0x6F402882, Data2: 0x66E0, Data3: 0x57D3, Data4: ( 0x89,0xD0,0xAA,0x5E,0x2F,0xF9,0x17,0xBC ))// 6F402882-66E0-57D3-89D0-AA5E2FF917BC +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIInputDesktopNamedResourceCursor: WindowsFoundation.IID { + .init(Data1: 0xF40EA93B, Data2: 0x0ED7, Data3: 0x5B3A, Data4: ( 0xBF,0xE2,0x14,0xE2,0xB5,0xAD,0x88,0xA3 ))// F40EA93B-0ED7-5B3A-BFE2-14E2B5AD88A3 +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIInputDesktopNamedResourceCursorStatics: WindowsFoundation.IID { + .init(Data1: 0xE8B6D5AA, Data2: 0x898B, Data3: 0x5E69, Data4: ( 0xB0,0x1F,0x38,0x3A,0x09,0x43,0xE3,0xE4 ))// E8B6D5AA-898B-5E69-B01F-383A0943E3E4 +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIInputDesktopResourceCursor: WindowsFoundation.IID { + .init(Data1: 0x1DF2777F, Data2: 0x7C90, Data3: 0x58FC, Data4: ( 0xA7,0xA3,0xD5,0x73,0x6C,0x65,0x10,0xFD ))// 1DF2777F-7C90-58FC-A7A3-D5736C6510FD +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIInputDesktopResourceCursorStatics: WindowsFoundation.IID { + .init(Data1: 0xF440DC37, Data2: 0xA0B6, Data3: 0x56EB, Data4: ( 0xBC,0xEC,0xB0,0x24,0xF2,0x23,0x3D,0x47 ))// F440DC37-A0B6-56EB-BCEC-B024F2233D47 +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIInputFocusController: WindowsFoundation.IID { + .init(Data1: 0x8DFDC26C, Data2: 0x8B8D, Data3: 0x515D, Data4: ( 0x8D,0xDD,0x46,0x85,0xB3,0xA5,0x40,0xE9 ))// 8DFDC26C-8B8D-515D-8DDD-4685B3A540E9 +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIInputFocusController2: WindowsFoundation.IID { + .init(Data1: 0x5165077C, Data2: 0xCD4B, Data3: 0x501D, Data4: ( 0xB3,0x86,0xB5,0x06,0x82,0x36,0x01,0x85 ))// 5165077C-CD4B-501D-B386-B50682360185 +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIInputFocusControllerStatics: WindowsFoundation.IID { + .init(Data1: 0xAEB311DA, Data2: 0xDA9B, Data3: 0x5A1B, Data4: ( 0x92,0xF4,0x83,0xDD,0xDE,0x93,0x3E,0x00 ))// AEB311DA-DA9B-5A1B-92F4-83DDDE933E00 +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIInputFocusNavigationHost: WindowsFoundation.IID { + .init(Data1: 0x53C2A147, Data2: 0x932C, Data3: 0x5486, Data4: ( 0xA9,0xC6,0xF6,0xC5,0xA9,0xC6,0x59,0x56 ))// 53C2A147-932C-5486-A9C6-F6C5A9C65956 +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIInputFocusNavigationHostStatics: WindowsFoundation.IID { + .init(Data1: 0xC9C62CD1, Data2: 0x73DB, Data3: 0x5AA9, Data4: ( 0xB8,0x9D,0x14,0x35,0x09,0xDB,0x8F,0x37 ))// C9C62CD1-73DB-5AA9-B89D-143509DB8F37 +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIInputKeyboardSource: WindowsFoundation.IID { + .init(Data1: 0xED61B906, Data2: 0x16AD, Data3: 0x5DF7, Data4: ( 0xA5,0x50,0x5E,0x6F,0x7D,0x22,0x29,0xF7 ))// ED61B906-16AD-5DF7-A550-5E6F7D2229F7 +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIInputKeyboardSource2: WindowsFoundation.IID { + .init(Data1: 0x79D1C9B6, Data2: 0xB3C9, Data3: 0x5EC2, Data4: ( 0x8A,0x5B,0x70,0x70,0x88,0x78,0x7F,0x78 ))// 79D1C9B6-B3C9-5EC2-8A5B-707088787F78 +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIInputKeyboardSourceStatics: WindowsFoundation.IID { + .init(Data1: 0xF4E1563D, Data2: 0x8C2E, Data3: 0x5BCD, Data4: ( 0xB7,0x84,0x47,0xAD,0xEA,0xA3,0xCD,0x7E ))// F4E1563D-8C2E-5BCD-B784-47ADEAA3CD7E +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIInputKeyboardSourceStatics2: WindowsFoundation.IID { + .init(Data1: 0x8857518C, Data2: 0x2899, Data3: 0x5F11, Data4: ( 0x9B,0x64,0x0A,0xD8,0x32,0x34,0x82,0x4B ))// 8857518C-2899-5F11-9B64-0AD83234824B +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIInputLightDismissAction: WindowsFoundation.IID { + .init(Data1: 0xE8A39502, Data2: 0xA860, Data3: 0x502F, Data4: ( 0x8C,0x10,0x36,0x46,0xD4,0x3A,0xEC,0xF1 ))// E8A39502-A860-502F-8C10-3646D43AECF1 +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIInputLightDismissActionStatics: WindowsFoundation.IID { + .init(Data1: 0xED9B8DEF, Data2: 0x6496, Data3: 0x5169, Data4: ( 0x98,0x4D,0xD4,0x4B,0x4E,0x69,0x06,0x23 ))// ED9B8DEF-6496-5169-984D-D44B4E690623 +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIInputLightDismissEventArgs: WindowsFoundation.IID { + .init(Data1: 0x078660EE, Data2: 0x07CA, Data3: 0x5808, Data4: ( 0xB9,0x82,0xE6,0xE8,0x99,0xCF,0x09,0x8C ))// 078660EE-07CA-5808-B982-E6E899CF098C +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIInputNonClientPointerSource: WindowsFoundation.IID { + .init(Data1: 0x471732B4, Data2: 0x3D07, Data3: 0x5104, Data4: ( 0xB1,0x92,0xEB,0xAC,0xF7,0x1E,0x86,0xDF ))// 471732B4-3D07-5104-B192-EBACF71E86DF +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIInputNonClientPointerSourceStatics: WindowsFoundation.IID { + .init(Data1: 0x7D0B775C, Data2: 0x1903, Data3: 0x5DC7, Data4: ( 0xBD,0x2F,0x7A,0x4B,0x31,0xF0,0xCF,0xF2 ))// 7D0B775C-1903-5DC7-BD2F-7A4B31F0CFF2 +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIInputObject: WindowsFoundation.IID { + .init(Data1: 0x42EDBC88, Data2: 0xD386, Data3: 0x544D, Data4: ( 0xB1,0xB8,0x68,0x61,0x7F,0xE6,0x82,0x82 ))// 42EDBC88-D386-544D-B1B8-68617FE68282 +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIInputObjectFactory: WindowsFoundation.IID { + .init(Data1: 0xF7786BC2, Data2: 0xB0B8, Data3: 0x5961, Data4: ( 0x9A,0x57,0xAE,0x19,0x9D,0x45,0x21,0x06 ))// F7786BC2-B0B8-5961-9A57-AE199D452106 +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIInputPointerSource: WindowsFoundation.IID { + .init(Data1: 0x6A6C2764, Data2: 0xC3F4, Data3: 0x5BE5, Data4: ( 0x84,0x47,0xC9,0xA9,0x87,0x66,0xC2,0x40 ))// 6A6C2764-C3F4-5BE5-8447-C9A98766C240 +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIInputPointerSourceStatics: WindowsFoundation.IID { + .init(Data1: 0xE8A19FD1, Data2: 0xA914, Data3: 0x533F, Data4: ( 0x9B,0x0F,0x6B,0xF0,0x06,0x5E,0x67,0x81 ))// E8A19FD1-A914-533F-9B0F-6BF0065E6781 +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIInputPreTranslateKeyboardSource: WindowsFoundation.IID { + .init(Data1: 0x2F327FEB, Data2: 0xB7E7, Data3: 0x5E37, Data4: ( 0xA0,0xCC,0x37,0xDC,0xAB,0xE7,0x65,0x88 ))// 2F327FEB-B7E7-5E37-A0CC-37DCABE76588 +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIInputPreTranslateKeyboardSourceStatics: WindowsFoundation.IID { + .init(Data1: 0x23D584D2, Data2: 0xAF8C, Data3: 0x5A8A, Data4: ( 0x80,0x6F,0x2B,0xA9,0xC5,0xB1,0xA5,0xEC ))// 23D584D2-AF8C-5A8A-806F-2BA9C5B1A5EC +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIInputSystemCursor: WindowsFoundation.IID { + .init(Data1: 0x59F538E7, Data2: 0xC500, Data3: 0x59AB, Data4: ( 0x8B,0x54,0x0B,0xC6,0x10,0x0F,0xD4,0x9E ))// 59F538E7-C500-59AB-8B54-0BC6100FD49E +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIInputSystemCursorStatics: WindowsFoundation.IID { + .init(Data1: 0xD3860BB6, Data2: 0x698A, Data3: 0x5814, Data4: ( 0xAE,0xDD,0xC2,0xFA,0x8B,0xBA,0x5A,0x02 ))// D3860BB6-698A-5814-AEDD-C2FA8BBA5A02 +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIKeyEventArgs: WindowsFoundation.IID { + .init(Data1: 0x40D5BB74, Data2: 0x977E, Data3: 0x5194, Data4: ( 0x80,0x39,0x9F,0x6C,0x44,0x42,0x7B,0xBB ))// 40D5BB74-977E-5194-8039-9F6C44427BBB +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIManipulationCompletedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x0E0249D4, Data2: 0x46E4, Data3: 0x5559, Data4: ( 0xAE,0xE3,0xFA,0x45,0xCE,0x2A,0x7F,0x56 ))// 0E0249D4-46E4-5559-AEE3-FA45CE2A7F56 +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIManipulationInertiaStartingEventArgs: WindowsFoundation.IID { + .init(Data1: 0xACF9EF71, Data2: 0x6E15, Data3: 0x56AB, Data4: ( 0x92,0x60,0xF0,0xD3,0xCE,0x5F,0x66,0xE8 ))// ACF9EF71-6E15-56AB-9260-F0D3CE5F66E8 +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIManipulationStartedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x4A616613, Data2: 0xEEF1, Data3: 0x5F1B, Data4: ( 0xA7,0x68,0x07,0x75,0x47,0x8D,0x49,0xD4 ))// 4A616613-EEF1-5F1B-A768-0775478D49D4 +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIManipulationUpdatedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x406E1961, Data2: 0x0C98, Data3: 0x5FC0, Data4: ( 0xB3,0xD8,0x11,0x64,0x92,0xEF,0x00,0x53 ))// 406E1961-0C98-5FC0-B3D8-116492EF0053 +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIMouseWheelParameters: WindowsFoundation.IID { + .init(Data1: 0x6D98BE40, Data2: 0x1D56, Data3: 0x51D1, Data4: ( 0xAA,0x0D,0xF3,0x25,0x43,0x9C,0xD0,0x09 ))// 6D98BE40-1D56-51D1-AA0D-F325439CD009 +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CINonClientCaptionTappedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x3D173531, Data2: 0x991F, Data3: 0x5753, Data4: ( 0xB7,0xE0,0x14,0xA1,0x21,0xC3,0xCD,0x2D ))// 3D173531-991F-5753-B7E0-14A121C3CD2D +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CINonClientPointerEventArgs: WindowsFoundation.IID { + .init(Data1: 0xA5B44AEC, Data2: 0xB797, Data3: 0x505A, Data4: ( 0xA1,0x29,0xAE,0x4E,0x52,0x71,0xC7,0x3C ))// A5B44AEC-B797-505A-A129-AE4E5271C73C +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CINonClientRegionsChangedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xFE97EE95, Data2: 0x1824, Data3: 0x51B2, Data4: ( 0xB8,0xEB,0x10,0xFF,0x06,0x65,0xCE,0x23 ))// FE97EE95-1824-51B2-B8EB-10FF0665CE23 +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIPointerEventArgs: WindowsFoundation.IID { + .init(Data1: 0x865B188C, Data2: 0x2ED5, Data3: 0x5DF8, Data4: ( 0x82,0x9F,0xAC,0x07,0x01,0xD5,0xC5,0x1A ))// 865B188C-2ED5-5DF8-829F-AC0701D5C51A +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIPointerPoint: WindowsFoundation.IID { + .init(Data1: 0x0D430EE6, Data2: 0x252C, Data3: 0x59A4, Data4: ( 0xB2,0xA2,0xD4,0x42,0x64,0xDC,0x6A,0x40 ))// 0D430EE6-252C-59A4-B2A2-D44264DC6A40 +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIPointerPointProperties: WindowsFoundation.IID { + .init(Data1: 0xD760ED77, Data2: 0x4B10, Data3: 0x57A5, Data4: ( 0xB3,0xCC,0xD9,0xBF,0x34,0x13,0xE9,0x96 ))// D760ED77-4B10-57A5-B3CC-D9BF3413E996 +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIPointerPointTransform: WindowsFoundation.IID { + .init(Data1: 0xDB4791BC, Data2: 0x994D, Data3: 0x54C7, Data4: ( 0x92,0xEF,0x66,0xEA,0x1D,0xE9,0xB4,0x3C ))// DB4791BC-994D-54C7-92EF-66EA1DE9B43C +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIPointerPredictor: WindowsFoundation.IID { + .init(Data1: 0x12C100EC, Data2: 0x2100, Data3: 0x565F, Data4: ( 0xA6,0x0C,0xF1,0x18,0x7F,0x43,0x88,0x28 ))// 12C100EC-2100-565F-A60C-F1187F438828 +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIPointerPredictorStatics: WindowsFoundation.IID { + .init(Data1: 0x78A8EF30, Data2: 0x3E5C, Data3: 0x55CD, Data4: ( 0x8F,0x85,0x65,0xAC,0x09,0xB1,0xA9,0x87 ))// 78A8EF30-3E5C-55CD-8F85-65AC09B1A987 +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CIRightTappedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x8FF73B39, Data2: 0x887E, Data3: 0x50A4, Data4: ( 0x85,0x00,0x77,0x95,0x30,0x39,0xDC,0xB4 ))// 8FF73B39-887E-50A4-8500-77953039DCB4 +} + +private var IID___x_ABI_CMicrosoft_CUI_CInput_CITappedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xC3A01BB5, Data2: 0x6076, Data3: 0x5E0F, Data4: ( 0x87,0x1A,0x9D,0x94,0xA6,0xA8,0xF8,0x2B ))// C3A01BB5-6076-5E0F-871A-9D94A6A8F82B +} + +public enum __ABI_Microsoft_UI_Input { + public class ICharacterReceivedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CICharacterReceivedEventArgs } + + internal func get_HandledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CICharacterReceivedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Handled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_HandledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CICharacterReceivedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Handled(pThis, .init(from: value))) + } + } + + internal func get_KeyCodeImpl() throws -> UInt32 { + var value: UINT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CICharacterReceivedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyCode(pThis, &value)) + } + return value + } + + internal func get_KeyStatusImpl() throws -> WinAppSDK.PhysicalKeyStatus { + var value: __x_ABI_CMicrosoft_CUI_CInput_CPhysicalKeyStatus = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CICharacterReceivedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyStatus(pThis, &value)) + } + return .from(abi: value) + } + + } + + public class IContextMenuKeyEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIContextMenuKeyEventArgs } + + internal func get_HandledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIContextMenuKeyEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Handled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_HandledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIContextMenuKeyEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Handled(pThis, .init(from: value))) + } + } + + } + + public class ICrossSlidingEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CICrossSlidingEventArgs } + + internal func get_CrossSlidingStateImpl() throws -> WinAppSDK.CrossSlidingState { + var value: __x_ABI_CMicrosoft_CUI_CInput_CCrossSlidingState = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CICrossSlidingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CrossSlidingState(pThis, &value)) + } + return value + } + + internal func get_PointerDeviceTypeImpl() throws -> WinAppSDK.PointerDeviceType { + var value: __x_ABI_CMicrosoft_CUI_CInput_CPointerDeviceType = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CICrossSlidingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PointerDeviceType(pThis, &value)) + } + return value + } + + internal func get_PositionImpl() throws -> WindowsFoundation.Point { + var value: __x_ABI_CWindows_CFoundation_CPoint = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CICrossSlidingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Position(pThis, &value)) + } + return .from(abi: value) + } + + } + + public class IDraggingEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIDraggingEventArgs } + + internal func get_DraggingStateImpl() throws -> WinAppSDK.DraggingState { + var value: __x_ABI_CMicrosoft_CUI_CInput_CDraggingState = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIDraggingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DraggingState(pThis, &value)) + } + return value + } + + internal func get_PointerDeviceTypeImpl() throws -> WinAppSDK.PointerDeviceType { + var value: __x_ABI_CMicrosoft_CUI_CInput_CPointerDeviceType = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIDraggingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PointerDeviceType(pThis, &value)) + } + return value + } + + internal func get_PositionImpl() throws -> WindowsFoundation.Point { + var value: __x_ABI_CWindows_CFoundation_CPoint = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIDraggingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Position(pThis, &value)) + } + return .from(abi: value) + } + + } + + public class IFocusChangedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIFocusChangedEventArgs } + + internal func get_HandledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIFocusChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Handled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_HandledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIFocusChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Handled(pThis, .init(from: value))) + } + } + + } + + public class IFocusNavigationRequest: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIFocusNavigationRequest } + + internal func get_CorrelationIdImpl() throws -> Foundation.UUID { + var value: WindowsFoundation.GUID = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIFocusNavigationRequest.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CorrelationId(pThis, &value)) + } + return .init(from: value) + } + + internal func get_HintRectImpl() throws -> WindowsFoundation.Rect? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIFocusNavigationRequest.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HintRect(pThis, &valueAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CRectWrapper.unwrapFrom(abi: value) + } + + internal func get_ReasonImpl() throws -> WinAppSDK.FocusNavigationReason { + var value: __x_ABI_CMicrosoft_CUI_CInput_CFocusNavigationReason = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIFocusNavigationRequest.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Reason(pThis, &value)) + } + return value + } + + } + + public class IFocusNavigationRequestEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIFocusNavigationRequestEventArgs } + + internal func get_RequestImpl() throws -> WinAppSDK.FocusNavigationRequest? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIFocusNavigationRequestEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Request(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ResultImpl() throws -> WinAppSDK.FocusNavigationResult { + var value: __x_ABI_CMicrosoft_CUI_CInput_CFocusNavigationResult = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIFocusNavigationRequestEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Result(pThis, &value)) + } + return value + } + + internal func put_ResultImpl(_ value: WinAppSDK.FocusNavigationResult) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIFocusNavigationRequestEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Result(pThis, value)) + } + } + + } + + public class IFocusNavigationRequestStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIFocusNavigationRequestStatics } + + internal func CreateImpl(_ reason: WinAppSDK.FocusNavigationReason) throws -> WinAppSDK.FocusNavigationRequest? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIFocusNavigationRequestStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Create(pThis, reason, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateWithHintRectImpl(_ reason: WinAppSDK.FocusNavigationReason, _ hintRect: WindowsFoundation.Rect) throws -> WinAppSDK.FocusNavigationRequest? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIFocusNavigationRequestStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateWithHintRect(pThis, reason, .from(swift: hintRect), &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateWithHintRectAndIdImpl(_ reason: WinAppSDK.FocusNavigationReason, _ hintRect: WindowsFoundation.Rect, _ correlationId: Foundation.UUID) throws -> WinAppSDK.FocusNavigationRequest? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIFocusNavigationRequestStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateWithHintRectAndId(pThis, reason, .from(swift: hintRect), .init(from: correlationId), &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IGestureRecognizer: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer } + + internal func get_AutoProcessInertiaImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AutoProcessInertia(pThis, &value)) + } + return .init(from: value) + } + + internal func put_AutoProcessInertiaImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_AutoProcessInertia(pThis, .init(from: value))) + } + } + + internal func get_CrossSlideExactImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CrossSlideExact(pThis, &value)) + } + return .init(from: value) + } + + internal func put_CrossSlideExactImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CrossSlideExact(pThis, .init(from: value))) + } + } + + internal func get_CrossSlideHorizontallyImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CrossSlideHorizontally(pThis, &value)) + } + return .init(from: value) + } + + internal func put_CrossSlideHorizontallyImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CrossSlideHorizontally(pThis, .init(from: value))) + } + } + + internal func get_CrossSlideThresholdsImpl() throws -> WinAppSDK.CrossSlideThresholds { + var value: __x_ABI_CMicrosoft_CUI_CInput_CCrossSlideThresholds = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CrossSlideThresholds(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_CrossSlideThresholdsImpl(_ value: WinAppSDK.CrossSlideThresholds) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CrossSlideThresholds(pThis, .from(swift: value))) + } + } + + internal func get_GestureSettingsImpl() throws -> WinAppSDK.GestureSettings { + var value: __x_ABI_CMicrosoft_CUI_CInput_CGestureSettings = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_GestureSettings(pThis, &value)) + } + return value + } + + internal func put_GestureSettingsImpl(_ value: WinAppSDK.GestureSettings) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_GestureSettings(pThis, value)) + } + } + + internal func get_IsActiveImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsActive(pThis, &value)) + } + return .init(from: value) + } + + internal func get_IsInertialImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsInertial(pThis, &value)) + } + return .init(from: value) + } + + internal func get_PivotCenterImpl() throws -> WindowsFoundation.Point { + var value: __x_ABI_CWindows_CFoundation_CPoint = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PivotCenter(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_PivotCenterImpl(_ value: WindowsFoundation.Point) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_PivotCenter(pThis, .from(swift: value))) + } + } + + internal func get_PivotRadiusImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PivotRadius(pThis, &value)) + } + return value + } + + internal func put_PivotRadiusImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_PivotRadius(pThis, value)) + } + } + + internal func get_InertiaExpansionDecelerationImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_InertiaExpansionDeceleration(pThis, &value)) + } + return value + } + + internal func put_InertiaExpansionDecelerationImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_InertiaExpansionDeceleration(pThis, value)) + } + } + + internal func get_InertiaExpansionImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_InertiaExpansion(pThis, &value)) + } + return value + } + + internal func put_InertiaExpansionImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_InertiaExpansion(pThis, value)) + } + } + + internal func get_InertiaRotationAngleImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_InertiaRotationAngle(pThis, &value)) + } + return value + } + + internal func put_InertiaRotationAngleImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_InertiaRotationAngle(pThis, value)) + } + } + + internal func get_InertiaRotationDecelerationImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_InertiaRotationDeceleration(pThis, &value)) + } + return value + } + + internal func put_InertiaRotationDecelerationImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_InertiaRotationDeceleration(pThis, value)) + } + } + + internal func get_InertiaTranslationDecelerationImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_InertiaTranslationDeceleration(pThis, &value)) + } + return value + } + + internal func put_InertiaTranslationDecelerationImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_InertiaTranslationDeceleration(pThis, value)) + } + } + + internal func get_InertiaTranslationDisplacementImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_InertiaTranslationDisplacement(pThis, &value)) + } + return value + } + + internal func put_InertiaTranslationDisplacementImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_InertiaTranslationDisplacement(pThis, value)) + } + } + + internal func get_ManipulationExactImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ManipulationExact(pThis, &value)) + } + return .init(from: value) + } + + internal func put_ManipulationExactImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ManipulationExact(pThis, .init(from: value))) + } + } + + internal func get_MouseWheelParametersImpl() throws -> WinAppSDK.MouseWheelParameters? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MouseWheelParameters(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ShowGestureFeedbackImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ShowGestureFeedback(pThis, &value)) + } + return .init(from: value) + } + + internal func put_ShowGestureFeedbackImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ShowGestureFeedback(pThis, .init(from: value))) + } + } + + internal func CanBeDoubleTapImpl(_ value: WinAppSDK.PointerPoint?) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CanBeDoubleTap(pThis, RawPointer(value), &result)) + } + return .init(from: result) + } + + internal func CompleteGestureImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CompleteGesture(pThis)) + } + } + + internal func ProcessDownEventImpl(_ value: WinAppSDK.PointerPoint?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ProcessDownEvent(pThis, RawPointer(value))) + } + } + + internal func ProcessMoveEventsImpl(_ value: WindowsFoundation.AnyIVector?) throws { + let valueWrapper = WinAppSDK.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ProcessMoveEvents(pThis, _value)) + } + } + + internal func ProcessMouseWheelEventImpl(_ value: WinAppSDK.PointerPoint?, _ isShiftKeyDown: Bool, _ isControlKeyDown: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ProcessMouseWheelEvent(pThis, RawPointer(value), .init(from: isShiftKeyDown), .init(from: isControlKeyDown))) + } + } + + internal func ProcessInertiaImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ProcessInertia(pThis)) + } + } + + internal func ProcessUpEventImpl(_ value: WinAppSDK.PointerPoint?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ProcessUpEvent(pThis, RawPointer(value))) + } + } + + internal func add_TappedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CTappedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Tapped(pThis, _handler, &token)) + } + return token + } + + internal func remove_TappedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Tapped(pThis, token)) + } + } + + internal func add_RightTappedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CRightTappedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_RightTapped(pThis, _handler, &token)) + } + return token + } + + internal func remove_RightTappedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_RightTapped(pThis, token)) + } + } + + internal func add_HoldingImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CHoldingEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Holding(pThis, _handler, &token)) + } + return token + } + + internal func remove_HoldingImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Holding(pThis, token)) + } + } + + internal func add_DraggingImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CDraggingEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Dragging(pThis, _handler, &token)) + } + return token + } + + internal func remove_DraggingImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Dragging(pThis, token)) + } + } + + internal func add_ManipulationStartedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationStartedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ManipulationStarted(pThis, _handler, &token)) + } + return token + } + + internal func remove_ManipulationStartedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ManipulationStarted(pThis, token)) + } + } + + internal func add_ManipulationUpdatedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationUpdatedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ManipulationUpdated(pThis, _handler, &token)) + } + return token + } + + internal func remove_ManipulationUpdatedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ManipulationUpdated(pThis, token)) + } + } + + internal func add_ManipulationInertiaStartingImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationInertiaStartingEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ManipulationInertiaStarting(pThis, _handler, &token)) + } + return token + } + + internal func remove_ManipulationInertiaStartingImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ManipulationInertiaStarting(pThis, token)) + } + } + + internal func add_ManipulationCompletedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationCompletedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ManipulationCompleted(pThis, _handler, &token)) + } + return token + } + + internal func remove_ManipulationCompletedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ManipulationCompleted(pThis, token)) + } + } + + internal func add_CrossSlidingImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CCrossSlidingEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_CrossSliding(pThis, _handler, &token)) + } + return token + } + + internal func remove_CrossSlidingImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_CrossSliding(pThis, token)) + } + } + + } + + public class IHoldingEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIHoldingEventArgs } + + internal func get_HoldingStateImpl() throws -> WinAppSDK.HoldingState { + var value: __x_ABI_CMicrosoft_CUI_CInput_CHoldingState = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIHoldingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HoldingState(pThis, &value)) + } + return value + } + + internal func get_PointerDeviceTypeImpl() throws -> WinAppSDK.PointerDeviceType { + var value: __x_ABI_CMicrosoft_CUI_CInput_CPointerDeviceType = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIHoldingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PointerDeviceType(pThis, &value)) + } + return value + } + + internal func get_PositionImpl() throws -> WindowsFoundation.Point { + var value: __x_ABI_CWindows_CFoundation_CPoint = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIHoldingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Position(pThis, &value)) + } + return .from(abi: value) + } + + } + + public class IInputActivationListener: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIInputActivationListener } + + internal func get_StateImpl() throws -> WinAppSDK.InputActivationState { + var value: __x_ABI_CMicrosoft_CUI_CInput_CInputActivationState = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputActivationListener.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_State(pThis, &value)) + } + return value + } + + internal func add_InputActivationChangedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListener___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListenerActivationChangedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputActivationListener.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_InputActivationChanged(pThis, _handler, &token)) + } + return token + } + + internal func remove_InputActivationChangedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputActivationListener.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_InputActivationChanged(pThis, token)) + } + } + + } + + public class IInputActivationListenerActivationChangedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIInputActivationListenerActivationChangedEventArgs } + + } + + public class IInputActivationListenerStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIInputActivationListenerStatics } + + internal func GetForWindowIdImpl(_ windowId: WinAppSDK.WindowId) throws -> WinAppSDK.InputActivationListener? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputActivationListenerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetForWindowId(pThis, .from(swift: windowId), &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IInputActivationListenerStatics2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIInputActivationListenerStatics2 } + + internal func GetForIslandImpl(_ island: WinAppSDK.ContentIsland?) throws -> WinAppSDK.InputActivationListener? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputActivationListenerStatics2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetForIsland(pThis, RawPointer(island), &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IInputCursor: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIInputCursor } + + } + + public class IInputCursorFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIInputCursorFactory } + + } + + public class IInputCursorStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIInputCursorStatics } + + internal func CreateFromCoreCursorImpl(_ cursor: UWP.CoreCursor?) throws -> WinAppSDK.InputCursor? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputCursorStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateFromCoreCursor(pThis, RawPointer(cursor), &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IInputCustomCursor: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIInputCustomCursor } + + } + + public class IInputCustomCursorFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIInputCustomCursorFactory } + + } + + public class IInputDesktopNamedResourceCursor: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIInputDesktopNamedResourceCursor } + + internal func get_ModuleNameImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputDesktopNamedResourceCursor.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ModuleName(pThis, &value)) + } + return .init(from: value) + } + + internal func get_ResourceNameImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputDesktopNamedResourceCursor.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ResourceName(pThis, &value)) + } + return .init(from: value) + } + + } + + public class IInputDesktopNamedResourceCursorStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIInputDesktopNamedResourceCursorStatics } + + internal func CreateImpl(_ resourceName: String) throws -> WinAppSDK.InputDesktopNamedResourceCursor? { + let (result) = try ComPtrs.initialize { resultAbi in + let _resourceName = try! HString(resourceName) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputDesktopNamedResourceCursorStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Create(pThis, _resourceName.get(), &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateFromModuleImpl(_ moduleName: String, _ resourceName: String) throws -> WinAppSDK.InputDesktopNamedResourceCursor? { + let (result) = try ComPtrs.initialize { resultAbi in + let _moduleName = try! HString(moduleName) + let _resourceName = try! HString(resourceName) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputDesktopNamedResourceCursorStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateFromModule(pThis, _moduleName.get(), _resourceName.get(), &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IInputDesktopResourceCursor: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIInputDesktopResourceCursor } + + internal func get_ModuleNameImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputDesktopResourceCursor.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ModuleName(pThis, &value)) + } + return .init(from: value) + } + + internal func get_ResourceIdImpl() throws -> UInt32 { + var value: UINT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputDesktopResourceCursor.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ResourceId(pThis, &value)) + } + return value + } + + } + + public class IInputDesktopResourceCursorStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIInputDesktopResourceCursorStatics } + + internal func CreateImpl(_ resourceId: UInt32) throws -> WinAppSDK.InputDesktopResourceCursor? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputDesktopResourceCursorStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Create(pThis, resourceId, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateFromModuleImpl(_ moduleName: String, _ resourceId: UInt32) throws -> WinAppSDK.InputDesktopResourceCursor? { + let (result) = try ComPtrs.initialize { resultAbi in + let _moduleName = try! HString(moduleName) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputDesktopResourceCursorStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateFromModule(pThis, _moduleName.get(), resourceId, &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IInputFocusController: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIInputFocusController } + + internal func get_HasFocusImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputFocusController.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HasFocus(pThis, &value)) + } + return .init(from: value) + } + + internal func TrySetFocusImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputFocusController.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.TrySetFocus(pThis, &result)) + } + return .init(from: result) + } + + internal func add_GotFocusImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusChangedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputFocusController.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_GotFocus(pThis, _handler, &token)) + } + return token + } + + internal func remove_GotFocusImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputFocusController.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_GotFocus(pThis, token)) + } + } + + internal func add_LostFocusImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusChangedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputFocusController.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_LostFocus(pThis, _handler, &token)) + } + return token + } + + internal func remove_LostFocusImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputFocusController.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_LostFocus(pThis, token)) + } + } + + } + + public class IInputFocusController2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIInputFocusController2 } + + internal func DepartFocusImpl(_ request: WinAppSDK.FocusNavigationRequest?) throws -> WinAppSDK.FocusNavigationResult { + var result: __x_ABI_CMicrosoft_CUI_CInput_CFocusNavigationResult = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputFocusController2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.DepartFocus(pThis, RawPointer(request), &result)) + } + return result + } + + internal func add_NavigateFocusRequestedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputFocusController2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_NavigateFocusRequested(pThis, _handler, &token)) + } + return token + } + + internal func remove_NavigateFocusRequestedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputFocusController2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_NavigateFocusRequested(pThis, token)) + } + } + + } + + public class IInputFocusControllerStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIInputFocusControllerStatics } + + internal func GetForIslandImpl(_ island: WinAppSDK.ContentIsland?) throws -> WinAppSDK.InputFocusController? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputFocusControllerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetForIsland(pThis, RawPointer(island), &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IInputFocusNavigationHost: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIInputFocusNavigationHost } + + internal func get_ContainsFocusImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputFocusNavigationHost.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContainsFocus(pThis, &value)) + } + return .init(from: value) + } + + internal func NavigateFocusImpl(_ request: WinAppSDK.FocusNavigationRequest?) throws -> WinAppSDK.FocusNavigationResult { + var result: __x_ABI_CMicrosoft_CUI_CInput_CFocusNavigationResult = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputFocusNavigationHost.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.NavigateFocus(pThis, RawPointer(request), &result)) + } + return result + } + + internal func add_DepartFocusRequestedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusNavigationHost___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputFocusNavigationHost.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_DepartFocusRequested(pThis, _handler, &token)) + } + return token + } + + internal func remove_DepartFocusRequestedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputFocusNavigationHost.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_DepartFocusRequested(pThis, token)) + } + } + + } + + public class IInputFocusNavigationHostStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIInputFocusNavigationHostStatics } + + internal func GetForSiteBridgeImpl(_ site: WinAppSDK.AnyIContentSiteBridge?) throws -> WinAppSDK.InputFocusNavigationHost? { + let (result) = try ComPtrs.initialize { resultAbi in + let siteWrapper = __ABI_Microsoft_UI_Content.IContentSiteBridgeWrapper(site) + let _site = try! siteWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputFocusNavigationHostStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetForSiteBridge(pThis, _site, &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IInputKeyboardSource: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIInputKeyboardSource } + + } + + public class IInputKeyboardSource2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIInputKeyboardSource2 } + + internal func GetCurrentKeyStateImpl(_ virtualKey: UWP.VirtualKey) throws -> WinAppSDK.VirtualKeyStates { + var result: __x_ABI_CMicrosoft_CUI_CInput_CVirtualKeyStates = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputKeyboardSource2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetCurrentKeyState(pThis, virtualKey, &result)) + } + return result + } + + internal func GetKeyStateImpl(_ virtualKey: UWP.VirtualKey) throws -> WinAppSDK.VirtualKeyStates { + var result: __x_ABI_CMicrosoft_CUI_CInput_CVirtualKeyStates = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputKeyboardSource2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetKeyState(pThis, virtualKey, &result)) + } + return result + } + + internal func add_CharacterReceivedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CCharacterReceivedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputKeyboardSource2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_CharacterReceived(pThis, _handler, &token)) + } + return token + } + + internal func remove_CharacterReceivedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputKeyboardSource2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_CharacterReceived(pThis, token)) + } + } + + internal func add_ContextMenuKeyImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CContextMenuKeyEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputKeyboardSource2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ContextMenuKey(pThis, _handler, &token)) + } + return token + } + + internal func remove_ContextMenuKeyImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputKeyboardSource2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ContextMenuKey(pThis, token)) + } + } + + internal func add_KeyDownImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CKeyEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputKeyboardSource2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_KeyDown(pThis, _handler, &token)) + } + return token + } + + internal func remove_KeyDownImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputKeyboardSource2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_KeyDown(pThis, token)) + } + } + + internal func add_KeyUpImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CKeyEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputKeyboardSource2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_KeyUp(pThis, _handler, &token)) + } + return token + } + + internal func remove_KeyUpImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputKeyboardSource2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_KeyUp(pThis, token)) + } + } + + internal func add_SystemKeyDownImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CKeyEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputKeyboardSource2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_SystemKeyDown(pThis, _handler, &token)) + } + return token + } + + internal func remove_SystemKeyDownImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputKeyboardSource2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_SystemKeyDown(pThis, token)) + } + } + + internal func add_SystemKeyUpImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CKeyEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputKeyboardSource2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_SystemKeyUp(pThis, _handler, &token)) + } + return token + } + + internal func remove_SystemKeyUpImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputKeyboardSource2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_SystemKeyUp(pThis, token)) + } + } + + } + + public class IInputKeyboardSourceStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIInputKeyboardSourceStatics } + + internal func GetKeyStateForCurrentThreadImpl(_ virtualKey: UWP.VirtualKey) throws -> UWP.CoreVirtualKeyStates { + var result: __x_ABI_CWindows_CUI_CCore_CCoreVirtualKeyStates = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputKeyboardSourceStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetKeyStateForCurrentThread(pThis, virtualKey, &result)) + } + return result + } + + } + + public class IInputKeyboardSourceStatics2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIInputKeyboardSourceStatics2 } + + internal func GetForIslandImpl(_ island: WinAppSDK.ContentIsland?) throws -> WinAppSDK.InputKeyboardSource? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputKeyboardSourceStatics2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetForIsland(pThis, RawPointer(island), &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IInputLightDismissAction: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIInputLightDismissAction } + + internal func add_DismissedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissAction___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputLightDismissAction.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Dismissed(pThis, _handler, &token)) + } + return token + } + + internal func remove_DismissedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputLightDismissAction.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Dismissed(pThis, token)) + } + } + + } + + public class IInputLightDismissActionStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIInputLightDismissActionStatics } + + internal func GetForWindowIdImpl(_ windowId: WinAppSDK.WindowId) throws -> WinAppSDK.InputLightDismissAction? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputLightDismissActionStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetForWindowId(pThis, .from(swift: windowId), &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IInputLightDismissEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIInputLightDismissEventArgs } + + } + + public class IInputNonClientPointerSource: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIInputNonClientPointerSource } + + internal func get_DispatcherQueueImpl() throws -> WinAppSDK.DispatcherQueue? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputNonClientPointerSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DispatcherQueue(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func ClearAllRegionRectsImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputNonClientPointerSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ClearAllRegionRects(pThis)) + } + } + + internal func ClearRegionRectsImpl(_ region: WinAppSDK.NonClientRegionKind) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputNonClientPointerSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ClearRegionRects(pThis, region)) + } + } + + internal func add_CaptionTappedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientCaptionTappedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputNonClientPointerSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_CaptionTapped(pThis, _handler, &token)) + } + return token + } + + internal func remove_CaptionTappedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputNonClientPointerSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_CaptionTapped(pThis, token)) + } + } + + internal func add_PointerEnteredImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientPointerEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputNonClientPointerSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_PointerEntered(pThis, _handler, &token)) + } + return token + } + + internal func remove_PointerEnteredImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputNonClientPointerSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_PointerEntered(pThis, token)) + } + } + + internal func add_PointerExitedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientPointerEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputNonClientPointerSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_PointerExited(pThis, _handler, &token)) + } + return token + } + + internal func remove_PointerExitedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputNonClientPointerSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_PointerExited(pThis, token)) + } + } + + internal func add_PointerMovedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientPointerEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputNonClientPointerSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_PointerMoved(pThis, _handler, &token)) + } + return token + } + + internal func remove_PointerMovedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputNonClientPointerSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_PointerMoved(pThis, token)) + } + } + + internal func add_PointerPressedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientPointerEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputNonClientPointerSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_PointerPressed(pThis, _handler, &token)) + } + return token + } + + internal func remove_PointerPressedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputNonClientPointerSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_PointerPressed(pThis, token)) + } + } + + internal func add_PointerReleasedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientPointerEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputNonClientPointerSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_PointerReleased(pThis, _handler, &token)) + } + return token + } + + internal func remove_PointerReleasedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputNonClientPointerSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_PointerReleased(pThis, token)) + } + } + + internal func add_RegionsChangedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientRegionsChangedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputNonClientPointerSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_RegionsChanged(pThis, _handler, &token)) + } + return token + } + + internal func remove_RegionsChangedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputNonClientPointerSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_RegionsChanged(pThis, token)) + } + } + + } + + public class IInputNonClientPointerSourceStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIInputNonClientPointerSourceStatics } + + internal func GetForWindowIdImpl(_ windowId: WinAppSDK.WindowId) throws -> WinAppSDK.InputNonClientPointerSource? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputNonClientPointerSourceStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetForWindowId(pThis, .from(swift: windowId), &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IInputObject: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIInputObject } + + internal func get_DispatcherQueueImpl() throws -> WinAppSDK.DispatcherQueue? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputObject.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DispatcherQueue(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IInputObjectFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIInputObjectFactory } + + } + + public class IInputPointerSource: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIInputPointerSource } + + internal func get_CursorImpl() throws -> WinAppSDK.InputCursor? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputPointerSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Cursor(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_CursorImpl(_ value: WinAppSDK.InputCursor?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputPointerSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Cursor(pThis, RawPointer(value))) + } + } + + internal func get_DeviceKindsImpl() throws -> WinAppSDK.InputPointerSourceDeviceKinds { + var value: __x_ABI_CMicrosoft_CUI_CInput_CInputPointerSourceDeviceKinds = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputPointerSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DeviceKinds(pThis, &value)) + } + return value + } + + internal func add_PointerCaptureLostImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputPointerSource___x_ABI_CMicrosoft__CUI__CInput__CPointerEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputPointerSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_PointerCaptureLost(pThis, _handler, &token)) + } + return token + } + + internal func remove_PointerCaptureLostImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputPointerSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_PointerCaptureLost(pThis, token)) + } + } + + internal func add_PointerEnteredImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputPointerSource___x_ABI_CMicrosoft__CUI__CInput__CPointerEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputPointerSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_PointerEntered(pThis, _handler, &token)) + } + return token + } + + internal func remove_PointerEnteredImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputPointerSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_PointerEntered(pThis, token)) + } + } + + internal func add_PointerExitedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputPointerSource___x_ABI_CMicrosoft__CUI__CInput__CPointerEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputPointerSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_PointerExited(pThis, _handler, &token)) + } + return token + } + + internal func remove_PointerExitedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputPointerSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_PointerExited(pThis, token)) + } + } + + internal func add_PointerMovedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputPointerSource___x_ABI_CMicrosoft__CUI__CInput__CPointerEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputPointerSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_PointerMoved(pThis, _handler, &token)) + } + return token + } + + internal func remove_PointerMovedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputPointerSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_PointerMoved(pThis, token)) + } + } + + internal func add_PointerPressedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputPointerSource___x_ABI_CMicrosoft__CUI__CInput__CPointerEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputPointerSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_PointerPressed(pThis, _handler, &token)) + } + return token + } + + internal func remove_PointerPressedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputPointerSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_PointerPressed(pThis, token)) + } + } + + internal func add_PointerReleasedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputPointerSource___x_ABI_CMicrosoft__CUI__CInput__CPointerEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputPointerSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_PointerReleased(pThis, _handler, &token)) + } + return token + } + + internal func remove_PointerReleasedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputPointerSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_PointerReleased(pThis, token)) + } + } + + internal func add_PointerRoutedAwayImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputPointerSource___x_ABI_CMicrosoft__CUI__CInput__CPointerEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputPointerSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_PointerRoutedAway(pThis, _handler, &token)) + } + return token + } + + internal func remove_PointerRoutedAwayImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputPointerSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_PointerRoutedAway(pThis, token)) + } + } + + internal func add_PointerRoutedReleasedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputPointerSource___x_ABI_CMicrosoft__CUI__CInput__CPointerEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputPointerSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_PointerRoutedReleased(pThis, _handler, &token)) + } + return token + } + + internal func remove_PointerRoutedReleasedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputPointerSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_PointerRoutedReleased(pThis, token)) + } + } + + internal func add_PointerRoutedToImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputPointerSource___x_ABI_CMicrosoft__CUI__CInput__CPointerEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputPointerSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_PointerRoutedTo(pThis, _handler, &token)) + } + return token + } + + internal func remove_PointerRoutedToImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputPointerSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_PointerRoutedTo(pThis, token)) + } + } + + internal func add_PointerWheelChangedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputPointerSource___x_ABI_CMicrosoft__CUI__CInput__CPointerEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputPointerSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_PointerWheelChanged(pThis, _handler, &token)) + } + return token + } + + internal func remove_PointerWheelChangedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputPointerSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_PointerWheelChanged(pThis, token)) + } + } + + } + + public class IInputPointerSourceStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIInputPointerSourceStatics } + + internal func GetForIslandImpl(_ island: WinAppSDK.ContentIsland?) throws -> WinAppSDK.InputPointerSource? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputPointerSourceStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetForIsland(pThis, RawPointer(island), &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IInputPreTranslateKeyboardSource: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIInputPreTranslateKeyboardSource } + + } + + public class IInputPreTranslateKeyboardSourceStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIInputPreTranslateKeyboardSourceStatics } + + internal func GetForIslandImpl(_ island: WinAppSDK.ContentIsland?) throws -> WinAppSDK.InputPreTranslateKeyboardSource? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputPreTranslateKeyboardSourceStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetForIsland(pThis, RawPointer(island), &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IInputSystemCursor: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIInputSystemCursor } + + internal func get_CursorShapeImpl() throws -> WinAppSDK.InputSystemCursorShape { + var value: __x_ABI_CMicrosoft_CUI_CInput_CInputSystemCursorShape = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputSystemCursor.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CursorShape(pThis, &value)) + } + return value + } + + } + + public class IInputSystemCursorStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIInputSystemCursorStatics } + + internal func CreateImpl(_ type: WinAppSDK.InputSystemCursorShape) throws -> WinAppSDK.InputSystemCursor? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIInputSystemCursorStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Create(pThis, type, &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IKeyEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIKeyEventArgs } + + internal func get_HandledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIKeyEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Handled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_HandledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIKeyEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Handled(pThis, .init(from: value))) + } + } + + internal func get_KeyStatusImpl() throws -> WinAppSDK.PhysicalKeyStatus { + var value: __x_ABI_CMicrosoft_CUI_CInput_CPhysicalKeyStatus = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIKeyEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyStatus(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_TimestampImpl() throws -> UInt64 { + var value: UINT64 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIKeyEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Timestamp(pThis, &value)) + } + return value + } + + internal func get_VirtualKeyImpl() throws -> UWP.VirtualKey { + var value: __x_ABI_CWindows_CSystem_CVirtualKey = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIKeyEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VirtualKey(pThis, &value)) + } + return value + } + + } + + public class IManipulationCompletedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIManipulationCompletedEventArgs } + + internal func get_CumulativeImpl() throws -> WinAppSDK.ManipulationDelta { + var value: __x_ABI_CMicrosoft_CUI_CInput_CManipulationDelta = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIManipulationCompletedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Cumulative(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_PointerDeviceTypeImpl() throws -> WinAppSDK.PointerDeviceType { + var value: __x_ABI_CMicrosoft_CUI_CInput_CPointerDeviceType = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIManipulationCompletedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PointerDeviceType(pThis, &value)) + } + return value + } + + internal func get_PositionImpl() throws -> WindowsFoundation.Point { + var value: __x_ABI_CWindows_CFoundation_CPoint = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIManipulationCompletedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Position(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_VelocitiesImpl() throws -> WinAppSDK.ManipulationVelocities { + var value: __x_ABI_CMicrosoft_CUI_CInput_CManipulationVelocities = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIManipulationCompletedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Velocities(pThis, &value)) + } + return .from(abi: value) + } + + } + + public class IManipulationInertiaStartingEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIManipulationInertiaStartingEventArgs } + + internal func get_CumulativeImpl() throws -> WinAppSDK.ManipulationDelta { + var value: __x_ABI_CMicrosoft_CUI_CInput_CManipulationDelta = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIManipulationInertiaStartingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Cumulative(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_DeltaImpl() throws -> WinAppSDK.ManipulationDelta { + var value: __x_ABI_CMicrosoft_CUI_CInput_CManipulationDelta = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIManipulationInertiaStartingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Delta(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_PointerDeviceTypeImpl() throws -> WinAppSDK.PointerDeviceType { + var value: __x_ABI_CMicrosoft_CUI_CInput_CPointerDeviceType = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIManipulationInertiaStartingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PointerDeviceType(pThis, &value)) + } + return value + } + + internal func get_PositionImpl() throws -> WindowsFoundation.Point { + var value: __x_ABI_CWindows_CFoundation_CPoint = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIManipulationInertiaStartingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Position(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_VelocitiesImpl() throws -> WinAppSDK.ManipulationVelocities { + var value: __x_ABI_CMicrosoft_CUI_CInput_CManipulationVelocities = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIManipulationInertiaStartingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Velocities(pThis, &value)) + } + return .from(abi: value) + } + + } + + public class IManipulationStartedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIManipulationStartedEventArgs } + + internal func get_CumulativeImpl() throws -> WinAppSDK.ManipulationDelta { + var value: __x_ABI_CMicrosoft_CUI_CInput_CManipulationDelta = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIManipulationStartedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Cumulative(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_PointerDeviceTypeImpl() throws -> WinAppSDK.PointerDeviceType { + var value: __x_ABI_CMicrosoft_CUI_CInput_CPointerDeviceType = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIManipulationStartedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PointerDeviceType(pThis, &value)) + } + return value + } + + internal func get_PositionImpl() throws -> WindowsFoundation.Point { + var value: __x_ABI_CWindows_CFoundation_CPoint = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIManipulationStartedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Position(pThis, &value)) + } + return .from(abi: value) + } + + } + + public class IManipulationUpdatedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIManipulationUpdatedEventArgs } + + internal func get_CumulativeImpl() throws -> WinAppSDK.ManipulationDelta { + var value: __x_ABI_CMicrosoft_CUI_CInput_CManipulationDelta = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIManipulationUpdatedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Cumulative(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_DeltaImpl() throws -> WinAppSDK.ManipulationDelta { + var value: __x_ABI_CMicrosoft_CUI_CInput_CManipulationDelta = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIManipulationUpdatedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Delta(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_PointerDeviceTypeImpl() throws -> WinAppSDK.PointerDeviceType { + var value: __x_ABI_CMicrosoft_CUI_CInput_CPointerDeviceType = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIManipulationUpdatedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PointerDeviceType(pThis, &value)) + } + return value + } + + internal func get_PositionImpl() throws -> WindowsFoundation.Point { + var value: __x_ABI_CWindows_CFoundation_CPoint = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIManipulationUpdatedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Position(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_VelocitiesImpl() throws -> WinAppSDK.ManipulationVelocities { + var value: __x_ABI_CMicrosoft_CUI_CInput_CManipulationVelocities = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIManipulationUpdatedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Velocities(pThis, &value)) + } + return .from(abi: value) + } + + } + + public class IMouseWheelParameters: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIMouseWheelParameters } + + internal func get_CharTranslationImpl() throws -> WindowsFoundation.Point { + var value: __x_ABI_CWindows_CFoundation_CPoint = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIMouseWheelParameters.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CharTranslation(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_CharTranslationImpl(_ value: WindowsFoundation.Point) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIMouseWheelParameters.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CharTranslation(pThis, .from(swift: value))) + } + } + + internal func get_DeltaScaleImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIMouseWheelParameters.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DeltaScale(pThis, &value)) + } + return value + } + + internal func put_DeltaScaleImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIMouseWheelParameters.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_DeltaScale(pThis, value)) + } + } + + internal func get_DeltaRotationAngleImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIMouseWheelParameters.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DeltaRotationAngle(pThis, &value)) + } + return value + } + + internal func put_DeltaRotationAngleImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIMouseWheelParameters.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_DeltaRotationAngle(pThis, value)) + } + } + + internal func get_PageTranslationImpl() throws -> WindowsFoundation.Point { + var value: __x_ABI_CWindows_CFoundation_CPoint = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIMouseWheelParameters.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PageTranslation(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_PageTranslationImpl(_ value: WindowsFoundation.Point) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIMouseWheelParameters.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_PageTranslation(pThis, .from(swift: value))) + } + } + + } + + public class INonClientCaptionTappedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CINonClientCaptionTappedEventArgs } + + internal func get_PointImpl() throws -> WindowsFoundation.Point { + var value: __x_ABI_CWindows_CFoundation_CPoint = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CINonClientCaptionTappedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Point(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_PointerDeviceTypeImpl() throws -> WinAppSDK.PointerDeviceType { + var value: __x_ABI_CMicrosoft_CUI_CInput_CPointerDeviceType = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CINonClientCaptionTappedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PointerDeviceType(pThis, &value)) + } + return value + } + + } + + public class INonClientPointerEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CINonClientPointerEventArgs } + + internal func get_PointImpl() throws -> WindowsFoundation.Point { + var value: __x_ABI_CWindows_CFoundation_CPoint = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CINonClientPointerEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Point(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_PointerDeviceTypeImpl() throws -> WinAppSDK.PointerDeviceType { + var value: __x_ABI_CMicrosoft_CUI_CInput_CPointerDeviceType = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CINonClientPointerEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PointerDeviceType(pThis, &value)) + } + return value + } + + internal func get_RegionKindImpl() throws -> WinAppSDK.NonClientRegionKind { + var value: __x_ABI_CMicrosoft_CUI_CInput_CNonClientRegionKind = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CINonClientPointerEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RegionKind(pThis, &value)) + } + return value + } + + internal func get_IsPointInRegionImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CINonClientPointerEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsPointInRegion(pThis, &value)) + } + return .init(from: value) + } + + } + + public class INonClientRegionsChangedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CINonClientRegionsChangedEventArgs } + + } + + public class IPointerEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIPointerEventArgs } + + internal func get_CurrentPointImpl() throws -> WinAppSDK.PointerPoint? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIPointerEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CurrentPoint(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_HandledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIPointerEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Handled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_HandledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIPointerEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Handled(pThis, .init(from: value))) + } + } + + internal func get_KeyModifiersImpl() throws -> UWP.VirtualKeyModifiers { + var value: __x_ABI_CWindows_CSystem_CVirtualKeyModifiers = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIPointerEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyModifiers(pThis, &value)) + } + return value + } + + internal func GetIntermediatePointsImpl() throws -> WindowsFoundation.AnyIVector? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIPointerEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetIntermediatePoints(pThis, &resultAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.unwrapFrom(abi: result) + } + + internal func GetIntermediateTransformedPointsImpl(_ transform: WinAppSDK.AnyIPointerPointTransform?) throws -> WindowsFoundation.AnyIVector? { + let (result) = try ComPtrs.initialize { resultAbi in + let transformWrapper = __ABI_Microsoft_UI_Input.IPointerPointTransformWrapper(transform) + let _transform = try! transformWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIPointerEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetIntermediateTransformedPoints(pThis, _transform, &resultAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.unwrapFrom(abi: result) + } + + } + + public class IPointerPoint: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIPointerPoint } + + internal func get_FrameIdImpl() throws -> UInt32 { + var value: UINT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIPointerPoint.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FrameId(pThis, &value)) + } + return value + } + + internal func get_IsInContactImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIPointerPoint.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsInContact(pThis, &value)) + } + return .init(from: value) + } + + internal func get_PointerDeviceTypeImpl() throws -> WinAppSDK.PointerDeviceType { + var value: __x_ABI_CMicrosoft_CUI_CInput_CPointerDeviceType = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIPointerPoint.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PointerDeviceType(pThis, &value)) + } + return value + } + + internal func get_PointerIdImpl() throws -> UInt32 { + var value: UINT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIPointerPoint.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PointerId(pThis, &value)) + } + return value + } + + internal func get_PositionImpl() throws -> WindowsFoundation.Point { + var value: __x_ABI_CWindows_CFoundation_CPoint = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIPointerPoint.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Position(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_PropertiesImpl() throws -> WinAppSDK.PointerPointProperties? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIPointerPoint.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Properties(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_TimestampImpl() throws -> UInt64 { + var value: UINT64 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIPointerPoint.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Timestamp(pThis, &value)) + } + return value + } + + internal func GetTransformedPointImpl(_ transform: WinAppSDK.AnyIPointerPointTransform?) throws -> WinAppSDK.PointerPoint? { + let (result) = try ComPtrs.initialize { resultAbi in + let transformWrapper = __ABI_Microsoft_UI_Input.IPointerPointTransformWrapper(transform) + let _transform = try! transformWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIPointerPoint.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetTransformedPoint(pThis, _transform, &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IPointerPointProperties: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIPointerPointProperties } + + internal func get_ContactRectImpl() throws -> WindowsFoundation.Rect { + var value: __x_ABI_CWindows_CFoundation_CRect = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIPointerPointProperties.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContactRect(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_IsBarrelButtonPressedImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIPointerPointProperties.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsBarrelButtonPressed(pThis, &value)) + } + return .init(from: value) + } + + internal func get_IsCanceledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIPointerPointProperties.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsCanceled(pThis, &value)) + } + return .init(from: value) + } + + internal func get_IsEraserImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIPointerPointProperties.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsEraser(pThis, &value)) + } + return .init(from: value) + } + + internal func get_IsHorizontalMouseWheelImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIPointerPointProperties.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsHorizontalMouseWheel(pThis, &value)) + } + return .init(from: value) + } + + internal func get_IsInRangeImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIPointerPointProperties.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsInRange(pThis, &value)) + } + return .init(from: value) + } + + internal func get_IsInvertedImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIPointerPointProperties.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsInverted(pThis, &value)) + } + return .init(from: value) + } + + internal func get_IsLeftButtonPressedImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIPointerPointProperties.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsLeftButtonPressed(pThis, &value)) + } + return .init(from: value) + } + + internal func get_IsMiddleButtonPressedImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIPointerPointProperties.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsMiddleButtonPressed(pThis, &value)) + } + return .init(from: value) + } + + internal func get_IsPrimaryImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIPointerPointProperties.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsPrimary(pThis, &value)) + } + return .init(from: value) + } + + internal func get_IsRightButtonPressedImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIPointerPointProperties.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsRightButtonPressed(pThis, &value)) + } + return .init(from: value) + } + + internal func get_IsXButton1PressedImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIPointerPointProperties.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsXButton1Pressed(pThis, &value)) + } + return .init(from: value) + } + + internal func get_IsXButton2PressedImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIPointerPointProperties.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsXButton2Pressed(pThis, &value)) + } + return .init(from: value) + } + + internal func get_MouseWheelDeltaImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIPointerPointProperties.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MouseWheelDelta(pThis, &value)) + } + return value + } + + internal func get_OrientationImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIPointerPointProperties.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Orientation(pThis, &value)) + } + return value + } + + internal func get_PointerUpdateKindImpl() throws -> WinAppSDK.PointerUpdateKind { + var value: __x_ABI_CMicrosoft_CUI_CInput_CPointerUpdateKind = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIPointerPointProperties.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PointerUpdateKind(pThis, &value)) + } + return value + } + + internal func get_PressureImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIPointerPointProperties.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Pressure(pThis, &value)) + } + return value + } + + internal func get_TouchConfidenceImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIPointerPointProperties.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TouchConfidence(pThis, &value)) + } + return .init(from: value) + } + + internal func get_TwistImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIPointerPointProperties.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Twist(pThis, &value)) + } + return value + } + + internal func get_XTiltImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIPointerPointProperties.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_XTilt(pThis, &value)) + } + return value + } + + internal func get_YTiltImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIPointerPointProperties.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_YTilt(pThis, &value)) + } + return value + } + + } + + public class IPointerPointTransform: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIPointerPointTransform } + + open func get_InverseImpl() throws -> WinAppSDK.AnyIPointerPointTransform? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIPointerPointTransform.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Inverse(pThis, &valueAbi)) + } + } + return __ABI_Microsoft_UI_Input.IPointerPointTransformWrapper.unwrapFrom(abi: value) + } + + open func TryTransformImpl(_ inPoint: WindowsFoundation.Point, _ outPoint: inout WindowsFoundation.Point) throws -> Bool { + var result: boolean = 0 + var _outPoint: __x_ABI_CWindows_CFoundation_CPoint = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIPointerPointTransform.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.TryTransform(pThis, .from(swift: inPoint), &_outPoint, &result)) + } + outPoint = .from(abi: _outPoint) + return .init(from: result) + } + + open func TryTransformBoundsImpl(_ inRect: WindowsFoundation.Rect, _ outRect: inout WindowsFoundation.Rect) throws -> Bool { + var result: boolean = 0 + var _outRect: __x_ABI_CWindows_CFoundation_CRect = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIPointerPointTransform.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.TryTransformBounds(pThis, .from(swift: inRect), &_outRect, &result)) + } + outRect = .from(abi: _outRect) + return .init(from: result) + } + + } + + internal static var IPointerPointTransformVTable: __x_ABI_CMicrosoft_CUI_CInput_CIPointerPointTransformVtbl = .init( + QueryInterface: { IPointerPointTransformWrapper.queryInterface($0, $1, $2) }, + AddRef: { IPointerPointTransformWrapper.addRef($0) }, + Release: { IPointerPointTransformWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = __ABI_Microsoft_UI_Input.IPointerPointTransformWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Microsoft.UI.Input.IPointerPointTransform").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + get_Inverse: { + guard let __unwrapped__instance = IPointerPointTransformWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value = __unwrapped__instance.inverse + let valueWrapper = __ABI_Microsoft_UI_Input.IPointerPointTransformWrapper(value) + valueWrapper?.copyTo($1) + return S_OK + }, + + TryTransform: { + do { + guard let __unwrapped__instance = IPointerPointTransformWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let inPoint: WindowsFoundation.Point = .from(abi: $1) + var outPoint: WindowsFoundation.Point = .init() + let result = try __unwrapped__instance.tryTransform(inPoint, &outPoint) + $2?.initialize(to: .from(swift: outPoint)) + $3?.initialize(to: .init(from: result)) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + TryTransformBounds: { + do { + guard let __unwrapped__instance = IPointerPointTransformWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let inRect: WindowsFoundation.Rect = .from(abi: $1) + var outRect: WindowsFoundation.Rect = .init() + let result = try __unwrapped__instance.tryTransformBounds(inRect, &outRect) + $2?.initialize(to: .from(swift: outRect)) + $3?.initialize(to: .init(from: result)) + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) + + public typealias IPointerPointTransformWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Input.IPointerPointTransformBridge> + public class IPointerPredictor: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIPointerPredictor } + + internal func get_PredictionTimeImpl() throws -> WindowsFoundation.TimeSpan { + var value: __x_ABI_CWindows_CFoundation_CTimeSpan = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIPointerPredictor.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PredictionTime(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_PredictionTimeImpl(_ value: WindowsFoundation.TimeSpan) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIPointerPredictor.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_PredictionTime(pThis, .from(swift: value))) + } + } + + } + + public class IPointerPredictorStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIPointerPredictorStatics } + + internal func CreateForInputPointerSourceImpl(_ inputPointerSource: WinAppSDK.InputPointerSource?) throws -> WinAppSDK.PointerPredictor? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIPointerPredictorStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateForInputPointerSource(pThis, RawPointer(inputPointerSource), &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IRightTappedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CIRightTappedEventArgs } + + internal func get_PointerDeviceTypeImpl() throws -> WinAppSDK.PointerDeviceType { + var value: __x_ABI_CMicrosoft_CUI_CInput_CPointerDeviceType = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIRightTappedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PointerDeviceType(pThis, &value)) + } + return value + } + + internal func get_PositionImpl() throws -> WindowsFoundation.Point { + var value: __x_ABI_CWindows_CFoundation_CPoint = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CIRightTappedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Position(pThis, &value)) + } + return .from(abi: value) + } + + } + + public class ITappedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CInput_CITappedEventArgs } + + internal func get_PointerDeviceTypeImpl() throws -> WinAppSDK.PointerDeviceType { + var value: __x_ABI_CMicrosoft_CUI_CInput_CPointerDeviceType = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CITappedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PointerDeviceType(pThis, &value)) + } + return value + } + + internal func get_PositionImpl() throws -> WindowsFoundation.Point { + var value: __x_ABI_CWindows_CFoundation_CPoint = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CITappedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Position(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_TapCountImpl() throws -> UInt32 { + var value: UINT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CInput_CITappedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TapCount(pThis, &value)) + } + return value + } + + } + + public class _ABI_PhysicalKeyStatus { + public var val: __x_ABI_CMicrosoft_CUI_CInput_CPhysicalKeyStatus = .init() + public init() { } + public init(from swift: WinAppSDK.PhysicalKeyStatus) { + val.RepeatCount = swift.repeatCount + val.ScanCode = swift.scanCode + val.IsExtendedKey = .init(from: swift.isExtendedKey) + val.IsMenuKeyDown = .init(from: swift.isMenuKeyDown) + val.WasKeyDown = .init(from: swift.wasKeyDown) + val.IsKeyReleased = .init(from: swift.isKeyReleased) + } + + public func detach() -> __x_ABI_CMicrosoft_CUI_CInput_CPhysicalKeyStatus { + let result = val + return result + } + + deinit { + } + } +} +extension __x_ABI_CMicrosoft_CUI_CInput_CCrossSlideThresholds { + public static func from(swift: WinAppSDK.CrossSlideThresholds) -> __x_ABI_CMicrosoft_CUI_CInput_CCrossSlideThresholds { + .init(SelectionStart: swift.selectionStart, SpeedBumpStart: swift.speedBumpStart, SpeedBumpEnd: swift.speedBumpEnd, RearrangeStart: swift.rearrangeStart) + } + } + extension __x_ABI_CMicrosoft_CUI_CInput_CManipulationDelta { + public static func from(swift: WinAppSDK.ManipulationDelta) -> __x_ABI_CMicrosoft_CUI_CInput_CManipulationDelta { + .init(Translation: .from(swift: swift.translation), Scale: swift.scale, Rotation: swift.rotation, Expansion: swift.expansion) + } + } + extension __x_ABI_CMicrosoft_CUI_CInput_CManipulationVelocities { + public static func from(swift: WinAppSDK.ManipulationVelocities) -> __x_ABI_CMicrosoft_CUI_CInput_CManipulationVelocities { + .init(Linear: .from(swift: swift.linear), Angular: swift.angular, Expansion: swift.expansion) + } + } + \ No newline at end of file diff --git a/Sources/WinAppSDK/Microsoft.UI.Input+Impl.swift b/Sources/WinAppSDK/Microsoft.UI.Input+Impl.swift new file mode 100644 index 0000000..09f333b --- /dev/null +++ b/Sources/WinAppSDK/Microsoft.UI.Input+Impl.swift @@ -0,0 +1,48 @@ +// WARNING: Please don't edit this file. It was generated by Swift/WinRT v0.0.1 +// swiftlint:disable all +import Foundation +@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation +import CWinRT + +public enum __IMPL_Microsoft_UI_Input { + public enum IPointerPointTransformBridge : AbiInterfaceBridge { + public typealias CABI = __x_ABI_CMicrosoft_CUI_CInput_CIPointerPointTransform + public typealias SwiftABI = __ABI_Microsoft_UI_Input.IPointerPointTransform + public typealias SwiftProjection = AnyIPointerPointTransform + public static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return IPointerPointTransformImpl(abi) + } + + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Input.IPointerPointTransformVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } + } + + fileprivate class IPointerPointTransformImpl: IPointerPointTransform, WinRTAbiImpl { + fileprivate typealias Bridge = IPointerPointTransformBridge + fileprivate let _default: Bridge.SwiftABI + fileprivate var thisPtr: WindowsFoundation.IInspectable { _default } + fileprivate init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.ipointerpointtransform.trytransform) + fileprivate func tryTransform(_ inPoint: WindowsFoundation.Point, _ outPoint: inout WindowsFoundation.Point) throws -> Bool { + try _default.TryTransformImpl(inPoint, &outPoint) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.ipointerpointtransform.trytransformbounds) + fileprivate func tryTransformBounds(_ inRect: WindowsFoundation.Rect, _ outRect: inout WindowsFoundation.Rect) throws -> Bool { + try _default.TryTransformBoundsImpl(inRect, &outRect) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.ipointerpointtransform.inverse) + fileprivate var inverse : AnyIPointerPointTransform! { + get { try! _default.get_InverseImpl() } + } + + } + +} diff --git a/Sources/WinAppSDK/Microsoft.UI.Input.swift b/Sources/WinAppSDK/Microsoft.UI.Input.swift new file mode 100644 index 0000000..d1b5b5f --- /dev/null +++ b/Sources/WinAppSDK/Microsoft.UI.Input.swift @@ -0,0 +1,3040 @@ +// WARNING: Please don't edit this file. It was generated by Swift/WinRT v0.0.1 +// swiftlint:disable all +import Foundation +@_spi(WinRTInternal) @_spi(WinRTImplements) import UWP +@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation +import CWinRT + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.crossslidingstate) +public typealias CrossSlidingState = __x_ABI_CMicrosoft_CUI_CInput_CCrossSlidingState +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.draggingstate) +public typealias DraggingState = __x_ABI_CMicrosoft_CUI_CInput_CDraggingState +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.focusnavigationreason) +public typealias FocusNavigationReason = __x_ABI_CMicrosoft_CUI_CInput_CFocusNavigationReason +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.focusnavigationresult) +public typealias FocusNavigationResult = __x_ABI_CMicrosoft_CUI_CInput_CFocusNavigationResult +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.gesturesettings) +public typealias GestureSettings = __x_ABI_CMicrosoft_CUI_CInput_CGestureSettings +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.holdingstate) +public typealias HoldingState = __x_ABI_CMicrosoft_CUI_CInput_CHoldingState +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputactivationstate) +public typealias InputActivationState = __x_ABI_CMicrosoft_CUI_CInput_CInputActivationState +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputpointersourcedevicekinds) +public typealias InputPointerSourceDeviceKinds = __x_ABI_CMicrosoft_CUI_CInput_CInputPointerSourceDeviceKinds +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputsystemcursorshape) +public typealias InputSystemCursorShape = __x_ABI_CMicrosoft_CUI_CInput_CInputSystemCursorShape +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.nonclientregionkind) +public typealias NonClientRegionKind = __x_ABI_CMicrosoft_CUI_CInput_CNonClientRegionKind +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.pointerdevicetype) +public typealias PointerDeviceType = __x_ABI_CMicrosoft_CUI_CInput_CPointerDeviceType +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.pointerupdatekind) +public typealias PointerUpdateKind = __x_ABI_CMicrosoft_CUI_CInput_CPointerUpdateKind +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.virtualkeystates) +public typealias VirtualKeyStates = __x_ABI_CMicrosoft_CUI_CInput_CVirtualKeyStates +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.characterreceivedeventargs) +public final class CharacterReceivedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Input.ICharacterReceivedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CInput_CICharacterReceivedEventArgs + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CInput_CICharacterReceivedEventArgs>?) -> CharacterReceivedEventArgs? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.characterreceivedeventargs.handled) + public var handled : Bool { + get { try! _default.get_HandledImpl() } + set { try! _default.put_HandledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.characterreceivedeventargs.keycode) + public var keyCode : UInt32 { + get { try! _default.get_KeyCodeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.characterreceivedeventargs.keystatus) + public var keyStatus : PhysicalKeyStatus { + get { try! _default.get_KeyStatusImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.contextmenukeyeventargs) +public final class ContextMenuKeyEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Input.IContextMenuKeyEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CInput_CIContextMenuKeyEventArgs + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CInput_CIContextMenuKeyEventArgs>?) -> ContextMenuKeyEventArgs? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.contextmenukeyeventargs.handled) + public var handled : Bool { + get { try! _default.get_HandledImpl() } + set { try! _default.put_HandledImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.crossslidingeventargs) +public final class CrossSlidingEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Input.ICrossSlidingEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CInput_CICrossSlidingEventArgs + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CInput_CICrossSlidingEventArgs>?) -> CrossSlidingEventArgs? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.crossslidingeventargs.crossslidingstate) + public var crossSlidingState : CrossSlidingState { + get { try! _default.get_CrossSlidingStateImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.crossslidingeventargs.pointerdevicetype) + public var pointerDeviceType : PointerDeviceType { + get { try! _default.get_PointerDeviceTypeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.crossslidingeventargs.position) + public var position : WindowsFoundation.Point { + get { try! _default.get_PositionImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.draggingeventargs) +public final class DraggingEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Input.IDraggingEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CInput_CIDraggingEventArgs + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CInput_CIDraggingEventArgs>?) -> DraggingEventArgs? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.draggingeventargs.draggingstate) + public var draggingState : DraggingState { + get { try! _default.get_DraggingStateImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.draggingeventargs.pointerdevicetype) + public var pointerDeviceType : PointerDeviceType { + get { try! _default.get_PointerDeviceTypeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.draggingeventargs.position) + public var position : WindowsFoundation.Point { + get { try! _default.get_PositionImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.focuschangedeventargs) +public final class FocusChangedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Input.IFocusChangedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CInput_CIFocusChangedEventArgs + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CInput_CIFocusChangedEventArgs>?) -> FocusChangedEventArgs? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.focuschangedeventargs.handled) + public var handled : Bool { + get { try! _default.get_HandledImpl() } + set { try! _default.put_HandledImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.focusnavigationrequest) +public final class FocusNavigationRequest : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Input.IFocusNavigationRequest + private typealias CABI = __x_ABI_CMicrosoft_CUI_CInput_CIFocusNavigationRequest + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CInput_CIFocusNavigationRequest>?) -> FocusNavigationRequest? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + private static let _IFocusNavigationRequestStatics: __ABI_Microsoft_UI_Input.IFocusNavigationRequestStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Input.FocusNavigationRequest")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.focusnavigationrequest.create) + public static func create(_ reason: FocusNavigationReason) -> FocusNavigationRequest! { + return try! _IFocusNavigationRequestStatics.CreateImpl(reason) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.focusnavigationrequest.create) + public static func create(_ reason: FocusNavigationReason, _ hintRect: WindowsFoundation.Rect) -> FocusNavigationRequest! { + return try! _IFocusNavigationRequestStatics.CreateWithHintRectImpl(reason, hintRect) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.focusnavigationrequest.create) + public static func create(_ reason: FocusNavigationReason, _ hintRect: WindowsFoundation.Rect, _ correlationId: Foundation.UUID) -> FocusNavigationRequest! { + return try! _IFocusNavigationRequestStatics.CreateWithHintRectAndIdImpl(reason, hintRect, correlationId) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.focusnavigationrequest.correlationid) + public var correlationId : Foundation.UUID { + get { try! _default.get_CorrelationIdImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.focusnavigationrequest.hintrect) + public var hintRect : WindowsFoundation.Rect? { + get { try! _default.get_HintRectImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.focusnavigationrequest.reason) + public var reason : FocusNavigationReason { + get { try! _default.get_ReasonImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.focusnavigationrequesteventargs) +public final class FocusNavigationRequestEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Input.IFocusNavigationRequestEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CInput_CIFocusNavigationRequestEventArgs + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CInput_CIFocusNavigationRequestEventArgs>?) -> FocusNavigationRequestEventArgs? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.focusnavigationrequesteventargs.request) + public var request : FocusNavigationRequest! { + get { try! _default.get_RequestImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.focusnavigationrequesteventargs.result) + public var result : FocusNavigationResult { + get { try! _default.get_ResultImpl() } + set { try! _default.put_ResultImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.gesturerecognizer) +public final class GestureRecognizer : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Input.IGestureRecognizer + private typealias CABI = __x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CInput_CIGestureRecognizer>?) -> GestureRecognizer? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + override public init() { + super.init(try! RoActivateInstance(HString("Microsoft.UI.Input.GestureRecognizer"))) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.gesturerecognizer.canbedoubletap) + public func canBeDoubleTap(_ value: PointerPoint!) throws -> Bool { + try _default.CanBeDoubleTapImpl(value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.gesturerecognizer.completegesture) + public func completeGesture() throws { + try _default.CompleteGestureImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.gesturerecognizer.processdownevent) + public func processDownEvent(_ value: PointerPoint!) throws { + try _default.ProcessDownEventImpl(value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.gesturerecognizer.processmoveevents) + public func processMoveEvents(_ value: WindowsFoundation.AnyIVector!) throws { + try _default.ProcessMoveEventsImpl(value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.gesturerecognizer.processmousewheelevent) + public func processMouseWheelEvent(_ value: PointerPoint!, _ isShiftKeyDown: Bool, _ isControlKeyDown: Bool) throws { + try _default.ProcessMouseWheelEventImpl(value, isShiftKeyDown, isControlKeyDown) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.gesturerecognizer.processinertia) + public func processInertia() throws { + try _default.ProcessInertiaImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.gesturerecognizer.processupevent) + public func processUpEvent(_ value: PointerPoint!) throws { + try _default.ProcessUpEventImpl(value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.gesturerecognizer.autoprocessinertia) + public var autoProcessInertia : Bool { + get { try! _default.get_AutoProcessInertiaImpl() } + set { try! _default.put_AutoProcessInertiaImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.gesturerecognizer.crossslideexact) + public var crossSlideExact : Bool { + get { try! _default.get_CrossSlideExactImpl() } + set { try! _default.put_CrossSlideExactImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.gesturerecognizer.crossslidehorizontally) + public var crossSlideHorizontally : Bool { + get { try! _default.get_CrossSlideHorizontallyImpl() } + set { try! _default.put_CrossSlideHorizontallyImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.gesturerecognizer.crossslidethresholds) + public var crossSlideThresholds : CrossSlideThresholds { + get { try! _default.get_CrossSlideThresholdsImpl() } + set { try! _default.put_CrossSlideThresholdsImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.gesturerecognizer.gesturesettings) + public var gestureSettings : GestureSettings { + get { try! _default.get_GestureSettingsImpl() } + set { try! _default.put_GestureSettingsImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.gesturerecognizer.inertiaexpansion) + public var inertiaExpansion : Float { + get { try! _default.get_InertiaExpansionImpl() } + set { try! _default.put_InertiaExpansionImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.gesturerecognizer.inertiaexpansiondeceleration) + public var inertiaExpansionDeceleration : Float { + get { try! _default.get_InertiaExpansionDecelerationImpl() } + set { try! _default.put_InertiaExpansionDecelerationImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.gesturerecognizer.inertiarotationangle) + public var inertiaRotationAngle : Float { + get { try! _default.get_InertiaRotationAngleImpl() } + set { try! _default.put_InertiaRotationAngleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.gesturerecognizer.inertiarotationdeceleration) + public var inertiaRotationDeceleration : Float { + get { try! _default.get_InertiaRotationDecelerationImpl() } + set { try! _default.put_InertiaRotationDecelerationImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.gesturerecognizer.inertiatranslationdeceleration) + public var inertiaTranslationDeceleration : Float { + get { try! _default.get_InertiaTranslationDecelerationImpl() } + set { try! _default.put_InertiaTranslationDecelerationImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.gesturerecognizer.inertiatranslationdisplacement) + public var inertiaTranslationDisplacement : Float { + get { try! _default.get_InertiaTranslationDisplacementImpl() } + set { try! _default.put_InertiaTranslationDisplacementImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.gesturerecognizer.isactive) + public var isActive : Bool { + get { try! _default.get_IsActiveImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.gesturerecognizer.isinertial) + public var isInertial : Bool { + get { try! _default.get_IsInertialImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.gesturerecognizer.manipulationexact) + public var manipulationExact : Bool { + get { try! _default.get_ManipulationExactImpl() } + set { try! _default.put_ManipulationExactImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.gesturerecognizer.mousewheelparameters) + public var mouseWheelParameters : MouseWheelParameters! { + get { try! _default.get_MouseWheelParametersImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.gesturerecognizer.pivotcenter) + public var pivotCenter : WindowsFoundation.Point { + get { try! _default.get_PivotCenterImpl() } + set { try! _default.put_PivotCenterImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.gesturerecognizer.pivotradius) + public var pivotRadius : Float { + get { try! _default.get_PivotRadiusImpl() } + set { try! _default.put_PivotRadiusImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.gesturerecognizer.showgesturefeedback) + public var showGestureFeedback : Bool { + get { try! _default.get_ShowGestureFeedbackImpl() } + set { try! _default.put_ShowGestureFeedbackImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.gesturerecognizer.crosssliding) + public lazy var crossSliding : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_CrossSlidingImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_CrossSlidingImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.gesturerecognizer.dragging) + public lazy var dragging : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_DraggingImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_DraggingImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.gesturerecognizer.holding) + public lazy var holding : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_HoldingImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_HoldingImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.gesturerecognizer.manipulationcompleted) + public lazy var manipulationCompleted : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ManipulationCompletedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ManipulationCompletedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.gesturerecognizer.manipulationinertiastarting) + public lazy var manipulationInertiaStarting : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ManipulationInertiaStartingImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ManipulationInertiaStartingImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.gesturerecognizer.manipulationstarted) + public lazy var manipulationStarted : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ManipulationStartedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ManipulationStartedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.gesturerecognizer.manipulationupdated) + public lazy var manipulationUpdated : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ManipulationUpdatedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ManipulationUpdatedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.gesturerecognizer.righttapped) + public lazy var rightTapped : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_RightTappedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_RightTappedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.gesturerecognizer.tapped) + public lazy var tapped : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_TappedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_TappedImpl($0) + } + ) + }() + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.holdingeventargs) +public final class HoldingEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Input.IHoldingEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CInput_CIHoldingEventArgs + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CInput_CIHoldingEventArgs>?) -> HoldingEventArgs? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.holdingeventargs.holdingstate) + public var holdingState : HoldingState { + get { try! _default.get_HoldingStateImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.holdingeventargs.pointerdevicetype) + public var pointerDeviceType : PointerDeviceType { + get { try! _default.get_PointerDeviceTypeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.holdingeventargs.position) + public var position : WindowsFoundation.Point { + get { try! _default.get_PositionImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputactivationlistener) +public final class InputActivationListener : WinAppSDK.InputObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Input.IInputActivationListener + private typealias CABI = __x_ABI_CMicrosoft_CUI_CInput_CIInputActivationListener + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CInput_CIInputActivationListener>?) -> InputActivationListener? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + private static let _IInputActivationListenerStatics: __ABI_Microsoft_UI_Input.IInputActivationListenerStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Input.InputActivationListener")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputactivationlistener.getforwindowid) + public static func getForWindowId(_ windowId: WinAppSDK.WindowId) -> InputActivationListener! { + return try! _IInputActivationListenerStatics.GetForWindowIdImpl(windowId) + } + + private static let _IInputActivationListenerStatics2: __ABI_Microsoft_UI_Input.IInputActivationListenerStatics2 = try! RoGetActivationFactory(HString("Microsoft.UI.Input.InputActivationListener")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputactivationlistener.getforisland) + public static func getForIsland(_ island: WinAppSDK.ContentIsland!) -> InputActivationListener! { + return try! _IInputActivationListenerStatics2.GetForIslandImpl(island) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputactivationlistener.state) + public var state : InputActivationState { + get { try! _default.get_StateImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputactivationlistener.inputactivationchanged) + public lazy var inputActivationChanged : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_InputActivationChangedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_InputActivationChangedImpl($0) + } + ) + }() + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputactivationlisteneractivationchangedeventargs) +public final class InputActivationListenerActivationChangedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Input.IInputActivationListenerActivationChangedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CInput_CIInputActivationListenerActivationChangedEventArgs + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CInput_CIInputActivationListenerActivationChangedEventArgs>?) -> InputActivationListenerActivationChangedEventArgs? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputcursor) +open class InputCursor : WinRTClass, WindowsFoundation.IClosable { + private typealias SwiftABI = __ABI_Microsoft_UI_Input.IInputCursor + private typealias CABI = __x_ABI_CMicrosoft_CUI_CInput_CIInputCursor + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override open func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CInput_CIInputCursor>?) -> InputCursor? { + guard let abi = abi else { return nil } + return UnsealedWinRTClassWrapper.unwrapFrom(base: abi) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + @_spi(WinRTInternal) + public init( + composing: Composable.Type, + _ createCallback: (UnsealedWinRTClassWrapper?, inout WindowsFoundation.IInspectable?) -> Composable.Default.SwiftABI) + { + super.init() + MakeComposed(composing: composing, (self as! Composable.Class), createCallback) + } + override open func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + return super.queryInterface(iid) + } + private static var _IInputCursorFactory : __ABI_Microsoft_UI_Input.IInputCursorFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Input.InputCursor")) + + private static let _IInputCursorStatics: __ABI_Microsoft_UI_Input.IInputCursorStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Input.InputCursor")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputcursor.createfromcorecursor) + public class func createFromCoreCursor(_ cursor: UWP.CoreCursor!) -> InputCursor! { + return try! _IInputCursorStatics.CreateFromCoreCursorImpl(cursor) + } + + private lazy var _IClosable: __ABI_Windows_Foundation.IClosable! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputcursor.close) + public func close() throws { + try _IClosable.CloseImpl() + } + + internal enum IInputCursor : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = InputCursor + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CInput_CIInputCursor + internal typealias SwiftABI = __ABI_Microsoft_UI_Input.IInputCursor + } + } + internal typealias Composable = IInputCursor + deinit { + _default = nil + _IClosable = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputcustomcursor) +open class InputCustomCursor : WinAppSDK.InputCursor { + private typealias SwiftABI = __ABI_Microsoft_UI_Input.IInputCustomCursor + private typealias CABI = __x_ABI_CMicrosoft_CUI_CInput_CIInputCustomCursor + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override open func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CInput_CIInputCustomCursor>?) -> InputCustomCursor? { + guard let abi = abi else { return nil } + return UnsealedWinRTClassWrapper.unwrapFrom(base: abi) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + @_spi(WinRTInternal) + override public init( + composing: Composable.Type, + _ createCallback: (UnsealedWinRTClassWrapper?, inout WindowsFoundation.IInspectable?) -> Composable.Default.SwiftABI) + { + super.init(composing: composing, createCallback) + } + override open func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + return super.queryInterface(iid) + } + private static var _IInputCustomCursorFactory : __ABI_Microsoft_UI_Input.IInputCustomCursorFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Input.InputCustomCursor")) + + internal enum IInputCustomCursor : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = InputCustomCursor + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CInput_CIInputCustomCursor + internal typealias SwiftABI = __ABI_Microsoft_UI_Input.IInputCustomCursor + } + } + internal typealias Composable = IInputCustomCursor + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputdesktopnamedresourcecursor) +public final class InputDesktopNamedResourceCursor : WinAppSDK.InputCursor { + private typealias SwiftABI = __ABI_Microsoft_UI_Input.IInputDesktopNamedResourceCursor + private typealias CABI = __x_ABI_CMicrosoft_CUI_CInput_CIInputDesktopNamedResourceCursor + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CInput_CIInputDesktopNamedResourceCursor>?) -> InputDesktopNamedResourceCursor? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + private static let _IInputDesktopNamedResourceCursorStatics: __ABI_Microsoft_UI_Input.IInputDesktopNamedResourceCursorStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Input.InputDesktopNamedResourceCursor")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputdesktopnamedresourcecursor.create) + public static func create(_ resourceName: String) -> InputDesktopNamedResourceCursor! { + return try! _IInputDesktopNamedResourceCursorStatics.CreateImpl(resourceName) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputdesktopnamedresourcecursor.createfrommodule) + public static func createFromModule(_ moduleName: String, _ resourceName: String) -> InputDesktopNamedResourceCursor! { + return try! _IInputDesktopNamedResourceCursorStatics.CreateFromModuleImpl(moduleName, resourceName) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputdesktopnamedresourcecursor.modulename) + public var moduleName : String { + get { try! _default.get_ModuleNameImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputdesktopnamedresourcecursor.resourcename) + public var resourceName : String { + get { try! _default.get_ResourceNameImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputdesktopresourcecursor) +public final class InputDesktopResourceCursor : WinAppSDK.InputCursor { + private typealias SwiftABI = __ABI_Microsoft_UI_Input.IInputDesktopResourceCursor + private typealias CABI = __x_ABI_CMicrosoft_CUI_CInput_CIInputDesktopResourceCursor + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CInput_CIInputDesktopResourceCursor>?) -> InputDesktopResourceCursor? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + private static let _IInputDesktopResourceCursorStatics: __ABI_Microsoft_UI_Input.IInputDesktopResourceCursorStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Input.InputDesktopResourceCursor")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputdesktopresourcecursor.create) + public static func create(_ resourceId: UInt32) -> InputDesktopResourceCursor! { + return try! _IInputDesktopResourceCursorStatics.CreateImpl(resourceId) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputdesktopresourcecursor.createfrommodule) + public static func createFromModule(_ moduleName: String, _ resourceId: UInt32) -> InputDesktopResourceCursor! { + return try! _IInputDesktopResourceCursorStatics.CreateFromModuleImpl(moduleName, resourceId) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputdesktopresourcecursor.modulename) + public var moduleName : String { + get { try! _default.get_ModuleNameImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputdesktopresourcecursor.resourceid) + public var resourceId : UInt32 { + get { try! _default.get_ResourceIdImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputfocuscontroller) +public final class InputFocusController : WinAppSDK.InputObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Input.IInputFocusController + private typealias CABI = __x_ABI_CMicrosoft_CUI_CInput_CIInputFocusController + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CInput_CIInputFocusController>?) -> InputFocusController? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + private static let _IInputFocusControllerStatics: __ABI_Microsoft_UI_Input.IInputFocusControllerStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Input.InputFocusController")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputfocuscontroller.getforisland) + public static func getForIsland(_ island: WinAppSDK.ContentIsland!) -> InputFocusController! { + return try! _IInputFocusControllerStatics.GetForIslandImpl(island) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputfocuscontroller.trysetfocus) + public func trySetFocus() throws -> Bool { + try _default.TrySetFocusImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputfocuscontroller.hasfocus) + public var hasFocus : Bool { + get { try! _default.get_HasFocusImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputfocuscontroller.gotfocus) + public lazy var gotFocus : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_GotFocusImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_GotFocusImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputfocuscontroller.lostfocus) + public lazy var lostFocus : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_LostFocusImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_LostFocusImpl($0) + } + ) + }() + + private lazy var _IInputFocusController2: __ABI_Microsoft_UI_Input.IInputFocusController2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputfocuscontroller.departfocus) + public func departFocus(_ request: FocusNavigationRequest!) throws -> FocusNavigationResult { + try _IInputFocusController2.DepartFocusImpl(request) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputfocuscontroller.navigatefocusrequested) + public lazy var navigateFocusRequested : Event> = { + .init( + add: { [weak self] in + guard let this = self?._IInputFocusController2 else { return .init() } + return try! this.add_NavigateFocusRequestedImpl($0) + }, + remove: { [weak self] in + try? self?._IInputFocusController2.remove_NavigateFocusRequestedImpl($0) + } + ) + }() + + deinit { + _default = nil + _IInputFocusController2 = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputfocusnavigationhost) +public final class InputFocusNavigationHost : WinAppSDK.InputObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Input.IInputFocusNavigationHost + private typealias CABI = __x_ABI_CMicrosoft_CUI_CInput_CIInputFocusNavigationHost + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CInput_CIInputFocusNavigationHost>?) -> InputFocusNavigationHost? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + private static let _IInputFocusNavigationHostStatics: __ABI_Microsoft_UI_Input.IInputFocusNavigationHostStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Input.InputFocusNavigationHost")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputfocusnavigationhost.getforsitebridge) + public static func getForSiteBridge(_ site: WinAppSDK.AnyIContentSiteBridge!) -> InputFocusNavigationHost! { + return try! _IInputFocusNavigationHostStatics.GetForSiteBridgeImpl(site) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputfocusnavigationhost.navigatefocus) + public func navigateFocus(_ request: FocusNavigationRequest!) throws -> FocusNavigationResult { + try _default.NavigateFocusImpl(request) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputfocusnavigationhost.containsfocus) + public var containsFocus : Bool { + get { try! _default.get_ContainsFocusImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputfocusnavigationhost.departfocusrequested) + public lazy var departFocusRequested : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_DepartFocusRequestedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_DepartFocusRequestedImpl($0) + } + ) + }() + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputkeyboardsource) +public final class InputKeyboardSource : WinAppSDK.InputObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Input.IInputKeyboardSource + private typealias CABI = __x_ABI_CMicrosoft_CUI_CInput_CIInputKeyboardSource + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CInput_CIInputKeyboardSource>?) -> InputKeyboardSource? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + private static let _IInputKeyboardSourceStatics: __ABI_Microsoft_UI_Input.IInputKeyboardSourceStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Input.InputKeyboardSource")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputkeyboardsource.getkeystateforcurrentthread) + public static func getKeyStateForCurrentThread(_ virtualKey: UWP.VirtualKey) -> UWP.CoreVirtualKeyStates { + return try! _IInputKeyboardSourceStatics.GetKeyStateForCurrentThreadImpl(virtualKey) + } + + private static let _IInputKeyboardSourceStatics2: __ABI_Microsoft_UI_Input.IInputKeyboardSourceStatics2 = try! RoGetActivationFactory(HString("Microsoft.UI.Input.InputKeyboardSource")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputkeyboardsource.getforisland) + public static func getForIsland(_ island: WinAppSDK.ContentIsland!) -> InputKeyboardSource! { + return try! _IInputKeyboardSourceStatics2.GetForIslandImpl(island) + } + + private lazy var _IInputKeyboardSource2: __ABI_Microsoft_UI_Input.IInputKeyboardSource2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputkeyboardsource.getcurrentkeystate) + public func getCurrentKeyState(_ virtualKey: UWP.VirtualKey) throws -> VirtualKeyStates { + try _IInputKeyboardSource2.GetCurrentKeyStateImpl(virtualKey) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputkeyboardsource.getkeystate) + public func getKeyState(_ virtualKey: UWP.VirtualKey) throws -> VirtualKeyStates { + try _IInputKeyboardSource2.GetKeyStateImpl(virtualKey) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputkeyboardsource.characterreceived) + public lazy var characterReceived : Event> = { + .init( + add: { [weak self] in + guard let this = self?._IInputKeyboardSource2 else { return .init() } + return try! this.add_CharacterReceivedImpl($0) + }, + remove: { [weak self] in + try? self?._IInputKeyboardSource2.remove_CharacterReceivedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputkeyboardsource.contextmenukey) + public lazy var contextMenuKey : Event> = { + .init( + add: { [weak self] in + guard let this = self?._IInputKeyboardSource2 else { return .init() } + return try! this.add_ContextMenuKeyImpl($0) + }, + remove: { [weak self] in + try? self?._IInputKeyboardSource2.remove_ContextMenuKeyImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputkeyboardsource.keydown) + public lazy var keyDown : Event> = { + .init( + add: { [weak self] in + guard let this = self?._IInputKeyboardSource2 else { return .init() } + return try! this.add_KeyDownImpl($0) + }, + remove: { [weak self] in + try? self?._IInputKeyboardSource2.remove_KeyDownImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputkeyboardsource.keyup) + public lazy var keyUp : Event> = { + .init( + add: { [weak self] in + guard let this = self?._IInputKeyboardSource2 else { return .init() } + return try! this.add_KeyUpImpl($0) + }, + remove: { [weak self] in + try? self?._IInputKeyboardSource2.remove_KeyUpImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputkeyboardsource.systemkeydown) + public lazy var systemKeyDown : Event> = { + .init( + add: { [weak self] in + guard let this = self?._IInputKeyboardSource2 else { return .init() } + return try! this.add_SystemKeyDownImpl($0) + }, + remove: { [weak self] in + try? self?._IInputKeyboardSource2.remove_SystemKeyDownImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputkeyboardsource.systemkeyup) + public lazy var systemKeyUp : Event> = { + .init( + add: { [weak self] in + guard let this = self?._IInputKeyboardSource2 else { return .init() } + return try! this.add_SystemKeyUpImpl($0) + }, + remove: { [weak self] in + try? self?._IInputKeyboardSource2.remove_SystemKeyUpImpl($0) + } + ) + }() + + deinit { + _default = nil + _IInputKeyboardSource2 = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputlightdismissaction) +public final class InputLightDismissAction : WinAppSDK.InputObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Input.IInputLightDismissAction + private typealias CABI = __x_ABI_CMicrosoft_CUI_CInput_CIInputLightDismissAction + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CInput_CIInputLightDismissAction>?) -> InputLightDismissAction? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + private static let _IInputLightDismissActionStatics: __ABI_Microsoft_UI_Input.IInputLightDismissActionStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Input.InputLightDismissAction")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputlightdismissaction.getforwindowid) + public static func getForWindowId(_ windowId: WinAppSDK.WindowId) -> InputLightDismissAction! { + return try! _IInputLightDismissActionStatics.GetForWindowIdImpl(windowId) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputlightdismissaction.dismissed) + public lazy var dismissed : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_DismissedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_DismissedImpl($0) + } + ) + }() + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputlightdismisseventargs) +public final class InputLightDismissEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Input.IInputLightDismissEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CInput_CIInputLightDismissEventArgs + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CInput_CIInputLightDismissEventArgs>?) -> InputLightDismissEventArgs? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputnonclientpointersource) +public final class InputNonClientPointerSource : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Input.IInputNonClientPointerSource + private typealias CABI = __x_ABI_CMicrosoft_CUI_CInput_CIInputNonClientPointerSource + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CInput_CIInputNonClientPointerSource>?) -> InputNonClientPointerSource? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + private static let _IInputNonClientPointerSourceStatics: __ABI_Microsoft_UI_Input.IInputNonClientPointerSourceStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Input.InputNonClientPointerSource")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputnonclientpointersource.getforwindowid) + public static func getForWindowId(_ windowId: WinAppSDK.WindowId) -> InputNonClientPointerSource! { + return try! _IInputNonClientPointerSourceStatics.GetForWindowIdImpl(windowId) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputnonclientpointersource.clearallregionrects) + public func clearAllRegionRects() throws { + try _default.ClearAllRegionRectsImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputnonclientpointersource.clearregionrects) + public func clearRegionRects(_ region: NonClientRegionKind) throws { + try _default.ClearRegionRectsImpl(region) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputnonclientpointersource.dispatcherqueue) + public var dispatcherQueue : WinAppSDK.DispatcherQueue! { + get { try! _default.get_DispatcherQueueImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputnonclientpointersource.captiontapped) + public lazy var captionTapped : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_CaptionTappedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_CaptionTappedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputnonclientpointersource.pointerentered) + public lazy var pointerEntered : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_PointerEnteredImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_PointerEnteredImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputnonclientpointersource.pointerexited) + public lazy var pointerExited : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_PointerExitedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_PointerExitedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputnonclientpointersource.pointermoved) + public lazy var pointerMoved : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_PointerMovedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_PointerMovedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputnonclientpointersource.pointerpressed) + public lazy var pointerPressed : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_PointerPressedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_PointerPressedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputnonclientpointersource.pointerreleased) + public lazy var pointerReleased : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_PointerReleasedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_PointerReleasedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputnonclientpointersource.regionschanged) + public lazy var regionsChanged : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_RegionsChangedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_RegionsChangedImpl($0) + } + ) + }() + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputobject) +open class InputObject : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Input.IInputObject + private typealias CABI = __x_ABI_CMicrosoft_CUI_CInput_CIInputObject + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override open func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CInput_CIInputObject>?) -> InputObject? { + guard let abi = abi else { return nil } + return UnsealedWinRTClassWrapper.unwrapFrom(base: abi) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + @_spi(WinRTInternal) + public init( + composing: Composable.Type, + _ createCallback: (UnsealedWinRTClassWrapper?, inout WindowsFoundation.IInspectable?) -> Composable.Default.SwiftABI) + { + super.init() + MakeComposed(composing: composing, (self as! Composable.Class), createCallback) + } + override open func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + return super.queryInterface(iid) + } + private static var _IInputObjectFactory : __ABI_Microsoft_UI_Input.IInputObjectFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Input.InputObject")) + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputobject.dispatcherqueue) + public var dispatcherQueue : WinAppSDK.DispatcherQueue! { + get { try! _default.get_DispatcherQueueImpl() } + } + + internal enum IInputObject : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = InputObject + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CInput_CIInputObject + internal typealias SwiftABI = __ABI_Microsoft_UI_Input.IInputObject + } + } + internal typealias Composable = IInputObject + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputpointersource) +public final class InputPointerSource : WinAppSDK.InputObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Input.IInputPointerSource + private typealias CABI = __x_ABI_CMicrosoft_CUI_CInput_CIInputPointerSource + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CInput_CIInputPointerSource>?) -> InputPointerSource? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + private static let _IInputPointerSourceStatics: __ABI_Microsoft_UI_Input.IInputPointerSourceStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Input.InputPointerSource")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputpointersource.getforisland) + public static func getForIsland(_ island: WinAppSDK.ContentIsland!) -> InputPointerSource! { + return try! _IInputPointerSourceStatics.GetForIslandImpl(island) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputpointersource.cursor) + public var cursor : InputCursor! { + get { try! _default.get_CursorImpl() } + set { try! _default.put_CursorImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputpointersource.devicekinds) + public var deviceKinds : InputPointerSourceDeviceKinds { + get { try! _default.get_DeviceKindsImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputpointersource.pointercapturelost) + public lazy var pointerCaptureLost : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_PointerCaptureLostImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_PointerCaptureLostImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputpointersource.pointerentered) + public lazy var pointerEntered : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_PointerEnteredImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_PointerEnteredImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputpointersource.pointerexited) + public lazy var pointerExited : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_PointerExitedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_PointerExitedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputpointersource.pointermoved) + public lazy var pointerMoved : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_PointerMovedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_PointerMovedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputpointersource.pointerpressed) + public lazy var pointerPressed : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_PointerPressedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_PointerPressedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputpointersource.pointerreleased) + public lazy var pointerReleased : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_PointerReleasedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_PointerReleasedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputpointersource.pointerroutedaway) + public lazy var pointerRoutedAway : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_PointerRoutedAwayImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_PointerRoutedAwayImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputpointersource.pointerroutedreleased) + public lazy var pointerRoutedReleased : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_PointerRoutedReleasedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_PointerRoutedReleasedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputpointersource.pointerroutedto) + public lazy var pointerRoutedTo : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_PointerRoutedToImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_PointerRoutedToImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputpointersource.pointerwheelchanged) + public lazy var pointerWheelChanged : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_PointerWheelChangedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_PointerWheelChangedImpl($0) + } + ) + }() + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputpretranslatekeyboardsource) +public final class InputPreTranslateKeyboardSource : WinAppSDK.InputObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Input.IInputPreTranslateKeyboardSource + private typealias CABI = __x_ABI_CMicrosoft_CUI_CInput_CIInputPreTranslateKeyboardSource + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CInput_CIInputPreTranslateKeyboardSource>?) -> InputPreTranslateKeyboardSource? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + private static let _IInputPreTranslateKeyboardSourceStatics: __ABI_Microsoft_UI_Input.IInputPreTranslateKeyboardSourceStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Input.InputPreTranslateKeyboardSource")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputpretranslatekeyboardsource.getforisland) + public static func getForIsland(_ island: WinAppSDK.ContentIsland!) -> InputPreTranslateKeyboardSource! { + return try! _IInputPreTranslateKeyboardSourceStatics.GetForIslandImpl(island) + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputsystemcursor) +public final class InputSystemCursor : WinAppSDK.InputCursor { + private typealias SwiftABI = __ABI_Microsoft_UI_Input.IInputSystemCursor + private typealias CABI = __x_ABI_CMicrosoft_CUI_CInput_CIInputSystemCursor + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CInput_CIInputSystemCursor>?) -> InputSystemCursor? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + private static let _IInputSystemCursorStatics: __ABI_Microsoft_UI_Input.IInputSystemCursorStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Input.InputSystemCursor")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputsystemcursor.create) + public static func create(_ type: InputSystemCursorShape) -> InputSystemCursor! { + return try! _IInputSystemCursorStatics.CreateImpl(type) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputsystemcursor.cursorshape) + public var cursorShape : InputSystemCursorShape { + get { try! _default.get_CursorShapeImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.keyeventargs) +public final class KeyEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Input.IKeyEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CInput_CIKeyEventArgs + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CInput_CIKeyEventArgs>?) -> KeyEventArgs? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.keyeventargs.handled) + public var handled : Bool { + get { try! _default.get_HandledImpl() } + set { try! _default.put_HandledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.keyeventargs.keystatus) + public var keyStatus : PhysicalKeyStatus { + get { try! _default.get_KeyStatusImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.keyeventargs.timestamp) + public var timestamp : UInt64 { + get { try! _default.get_TimestampImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.keyeventargs.virtualkey) + public var virtualKey : UWP.VirtualKey { + get { try! _default.get_VirtualKeyImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.manipulationcompletedeventargs) +public final class ManipulationCompletedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Input.IManipulationCompletedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CInput_CIManipulationCompletedEventArgs + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CInput_CIManipulationCompletedEventArgs>?) -> ManipulationCompletedEventArgs? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.manipulationcompletedeventargs.cumulative) + public var cumulative : ManipulationDelta { + get { try! _default.get_CumulativeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.manipulationcompletedeventargs.pointerdevicetype) + public var pointerDeviceType : PointerDeviceType { + get { try! _default.get_PointerDeviceTypeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.manipulationcompletedeventargs.position) + public var position : WindowsFoundation.Point { + get { try! _default.get_PositionImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.manipulationcompletedeventargs.velocities) + public var velocities : ManipulationVelocities { + get { try! _default.get_VelocitiesImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.manipulationinertiastartingeventargs) +public final class ManipulationInertiaStartingEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Input.IManipulationInertiaStartingEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CInput_CIManipulationInertiaStartingEventArgs + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CInput_CIManipulationInertiaStartingEventArgs>?) -> ManipulationInertiaStartingEventArgs? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.manipulationinertiastartingeventargs.cumulative) + public var cumulative : ManipulationDelta { + get { try! _default.get_CumulativeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.manipulationinertiastartingeventargs.delta) + public var delta : ManipulationDelta { + get { try! _default.get_DeltaImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.manipulationinertiastartingeventargs.pointerdevicetype) + public var pointerDeviceType : PointerDeviceType { + get { try! _default.get_PointerDeviceTypeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.manipulationinertiastartingeventargs.position) + public var position : WindowsFoundation.Point { + get { try! _default.get_PositionImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.manipulationinertiastartingeventargs.velocities) + public var velocities : ManipulationVelocities { + get { try! _default.get_VelocitiesImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.manipulationstartedeventargs) +public final class ManipulationStartedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Input.IManipulationStartedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CInput_CIManipulationStartedEventArgs + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CInput_CIManipulationStartedEventArgs>?) -> ManipulationStartedEventArgs? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.manipulationstartedeventargs.cumulative) + public var cumulative : ManipulationDelta { + get { try! _default.get_CumulativeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.manipulationstartedeventargs.pointerdevicetype) + public var pointerDeviceType : PointerDeviceType { + get { try! _default.get_PointerDeviceTypeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.manipulationstartedeventargs.position) + public var position : WindowsFoundation.Point { + get { try! _default.get_PositionImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.manipulationupdatedeventargs) +public final class ManipulationUpdatedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Input.IManipulationUpdatedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CInput_CIManipulationUpdatedEventArgs + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CInput_CIManipulationUpdatedEventArgs>?) -> ManipulationUpdatedEventArgs? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.manipulationupdatedeventargs.cumulative) + public var cumulative : ManipulationDelta { + get { try! _default.get_CumulativeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.manipulationupdatedeventargs.delta) + public var delta : ManipulationDelta { + get { try! _default.get_DeltaImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.manipulationupdatedeventargs.pointerdevicetype) + public var pointerDeviceType : PointerDeviceType { + get { try! _default.get_PointerDeviceTypeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.manipulationupdatedeventargs.position) + public var position : WindowsFoundation.Point { + get { try! _default.get_PositionImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.manipulationupdatedeventargs.velocities) + public var velocities : ManipulationVelocities { + get { try! _default.get_VelocitiesImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.mousewheelparameters) +public final class MouseWheelParameters : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Input.IMouseWheelParameters + private typealias CABI = __x_ABI_CMicrosoft_CUI_CInput_CIMouseWheelParameters + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CInput_CIMouseWheelParameters>?) -> MouseWheelParameters? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.mousewheelparameters.chartranslation) + public var charTranslation : WindowsFoundation.Point { + get { try! _default.get_CharTranslationImpl() } + set { try! _default.put_CharTranslationImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.mousewheelparameters.deltarotationangle) + public var deltaRotationAngle : Float { + get { try! _default.get_DeltaRotationAngleImpl() } + set { try! _default.put_DeltaRotationAngleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.mousewheelparameters.deltascale) + public var deltaScale : Float { + get { try! _default.get_DeltaScaleImpl() } + set { try! _default.put_DeltaScaleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.mousewheelparameters.pagetranslation) + public var pageTranslation : WindowsFoundation.Point { + get { try! _default.get_PageTranslationImpl() } + set { try! _default.put_PageTranslationImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.nonclientcaptiontappedeventargs) +public final class NonClientCaptionTappedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Input.INonClientCaptionTappedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CInput_CINonClientCaptionTappedEventArgs + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CInput_CINonClientCaptionTappedEventArgs>?) -> NonClientCaptionTappedEventArgs? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.nonclientcaptiontappedeventargs.point) + public var point : WindowsFoundation.Point { + get { try! _default.get_PointImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.nonclientcaptiontappedeventargs.pointerdevicetype) + public var pointerDeviceType : PointerDeviceType { + get { try! _default.get_PointerDeviceTypeImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.nonclientpointereventargs) +public final class NonClientPointerEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Input.INonClientPointerEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CInput_CINonClientPointerEventArgs + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CInput_CINonClientPointerEventArgs>?) -> NonClientPointerEventArgs? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.nonclientpointereventargs.ispointinregion) + public var isPointInRegion : Bool { + get { try! _default.get_IsPointInRegionImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.nonclientpointereventargs.point) + public var point : WindowsFoundation.Point { + get { try! _default.get_PointImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.nonclientpointereventargs.pointerdevicetype) + public var pointerDeviceType : PointerDeviceType { + get { try! _default.get_PointerDeviceTypeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.nonclientpointereventargs.regionkind) + public var regionKind : NonClientRegionKind { + get { try! _default.get_RegionKindImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.nonclientregionschangedeventargs) +public final class NonClientRegionsChangedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Input.INonClientRegionsChangedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CInput_CINonClientRegionsChangedEventArgs + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CInput_CINonClientRegionsChangedEventArgs>?) -> NonClientRegionsChangedEventArgs? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.pointereventargs) +public final class PointerEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Input.IPointerEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CInput_CIPointerEventArgs + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CInput_CIPointerEventArgs>?) -> PointerEventArgs? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.pointereventargs.getintermediatepoints) + public func getIntermediatePoints() throws -> WindowsFoundation.AnyIVector! { + try _default.GetIntermediatePointsImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.pointereventargs.getintermediatetransformedpoints) + public func getIntermediateTransformedPoints(_ transform: AnyIPointerPointTransform!) throws -> WindowsFoundation.AnyIVector! { + try _default.GetIntermediateTransformedPointsImpl(transform) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.pointereventargs.currentpoint) + public var currentPoint : PointerPoint! { + get { try! _default.get_CurrentPointImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.pointereventargs.handled) + public var handled : Bool { + get { try! _default.get_HandledImpl() } + set { try! _default.put_HandledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.pointereventargs.keymodifiers) + public var keyModifiers : UWP.VirtualKeyModifiers { + get { try! _default.get_KeyModifiersImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.pointerpoint) +public final class PointerPoint : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Input.IPointerPoint + private typealias CABI = __x_ABI_CMicrosoft_CUI_CInput_CIPointerPoint + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CInput_CIPointerPoint>?) -> PointerPoint? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.pointerpoint.gettransformedpoint) + public func getTransformedPoint(_ transform: AnyIPointerPointTransform!) throws -> PointerPoint! { + try _default.GetTransformedPointImpl(transform) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.pointerpoint.frameid) + public var frameId : UInt32 { + get { try! _default.get_FrameIdImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.pointerpoint.isincontact) + public var isInContact : Bool { + get { try! _default.get_IsInContactImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.pointerpoint.pointerdevicetype) + public var pointerDeviceType : PointerDeviceType { + get { try! _default.get_PointerDeviceTypeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.pointerpoint.pointerid) + public var pointerId : UInt32 { + get { try! _default.get_PointerIdImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.pointerpoint.position) + public var position : WindowsFoundation.Point { + get { try! _default.get_PositionImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.pointerpoint.properties) + public var properties : PointerPointProperties! { + get { try! _default.get_PropertiesImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.pointerpoint.timestamp) + public var timestamp : UInt64 { + get { try! _default.get_TimestampImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.pointerpointproperties) +public final class PointerPointProperties : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Input.IPointerPointProperties + private typealias CABI = __x_ABI_CMicrosoft_CUI_CInput_CIPointerPointProperties + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CInput_CIPointerPointProperties>?) -> PointerPointProperties? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.pointerpointproperties.contactrect) + public var contactRect : WindowsFoundation.Rect { + get { try! _default.get_ContactRectImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.pointerpointproperties.isbarrelbuttonpressed) + public var isBarrelButtonPressed : Bool { + get { try! _default.get_IsBarrelButtonPressedImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.pointerpointproperties.iscanceled) + public var isCanceled : Bool { + get { try! _default.get_IsCanceledImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.pointerpointproperties.iseraser) + public var isEraser : Bool { + get { try! _default.get_IsEraserImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.pointerpointproperties.ishorizontalmousewheel) + public var isHorizontalMouseWheel : Bool { + get { try! _default.get_IsHorizontalMouseWheelImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.pointerpointproperties.isinrange) + public var isInRange : Bool { + get { try! _default.get_IsInRangeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.pointerpointproperties.isinverted) + public var isInverted : Bool { + get { try! _default.get_IsInvertedImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.pointerpointproperties.isleftbuttonpressed) + public var isLeftButtonPressed : Bool { + get { try! _default.get_IsLeftButtonPressedImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.pointerpointproperties.ismiddlebuttonpressed) + public var isMiddleButtonPressed : Bool { + get { try! _default.get_IsMiddleButtonPressedImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.pointerpointproperties.isprimary) + public var isPrimary : Bool { + get { try! _default.get_IsPrimaryImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.pointerpointproperties.isrightbuttonpressed) + public var isRightButtonPressed : Bool { + get { try! _default.get_IsRightButtonPressedImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.pointerpointproperties.isxbutton1pressed) + public var isXButton1Pressed : Bool { + get { try! _default.get_IsXButton1PressedImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.pointerpointproperties.isxbutton2pressed) + public var isXButton2Pressed : Bool { + get { try! _default.get_IsXButton2PressedImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.pointerpointproperties.mousewheeldelta) + public var mouseWheelDelta : Int32 { + get { try! _default.get_MouseWheelDeltaImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.pointerpointproperties.orientation) + public var orientation : Float { + get { try! _default.get_OrientationImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.pointerpointproperties.pointerupdatekind) + public var pointerUpdateKind : PointerUpdateKind { + get { try! _default.get_PointerUpdateKindImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.pointerpointproperties.pressure) + public var pressure : Float { + get { try! _default.get_PressureImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.pointerpointproperties.touchconfidence) + public var touchConfidence : Bool { + get { try! _default.get_TouchConfidenceImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.pointerpointproperties.twist) + public var twist : Float { + get { try! _default.get_TwistImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.pointerpointproperties.xtilt) + public var xtilt : Float { + get { try! _default.get_XTiltImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.pointerpointproperties.ytilt) + public var ytilt : Float { + get { try! _default.get_YTiltImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.pointerpredictor) +public final class PointerPredictor : WinRTClass, WindowsFoundation.IClosable { + private typealias SwiftABI = __ABI_Microsoft_UI_Input.IPointerPredictor + private typealias CABI = __x_ABI_CMicrosoft_CUI_CInput_CIPointerPredictor + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CInput_CIPointerPredictor>?) -> PointerPredictor? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + override public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + return super.queryInterface(iid) + } + private static let _IPointerPredictorStatics: __ABI_Microsoft_UI_Input.IPointerPredictorStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Input.PointerPredictor")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.pointerpredictor.createforinputpointersource) + public static func createForInputPointerSource(_ inputPointerSource: InputPointerSource!) -> PointerPredictor! { + return try! _IPointerPredictorStatics.CreateForInputPointerSourceImpl(inputPointerSource) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.pointerpredictor.predictiontime) + public var predictionTime : WindowsFoundation.TimeSpan { + get { try! _default.get_PredictionTimeImpl() } + set { try! _default.put_PredictionTimeImpl(newValue) } + } + + private lazy var _IClosable: __ABI_Windows_Foundation.IClosable! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.pointerpredictor.close) + public func close() throws { + try _IClosable.CloseImpl() + } + + deinit { + _default = nil + _IClosable = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.righttappedeventargs) +public final class RightTappedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Input.IRightTappedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CInput_CIRightTappedEventArgs + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CInput_CIRightTappedEventArgs>?) -> RightTappedEventArgs? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.righttappedeventargs.pointerdevicetype) + public var pointerDeviceType : PointerDeviceType { + get { try! _default.get_PointerDeviceTypeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.righttappedeventargs.position) + public var position : WindowsFoundation.Point { + get { try! _default.get_PositionImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.tappedeventargs) +public final class TappedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Input.ITappedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CInput_CITappedEventArgs + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CInput_CITappedEventArgs>?) -> TappedEventArgs? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.tappedeventargs.pointerdevicetype) + public var pointerDeviceType : PointerDeviceType { + get { try! _default.get_PointerDeviceTypeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.tappedeventargs.position) + public var position : WindowsFoundation.Point { + get { try! _default.get_PositionImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.tappedeventargs.tapcount) + public var tapCount : UInt32 { + get { try! _default.get_TapCountImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.crossslidethresholds) +public struct CrossSlideThresholds: Hashable, Codable { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.crossslidethresholds.selectionstart) + public var selectionStart: Float = 0.0 + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.crossslidethresholds.speedbumpstart) + public var speedBumpStart: Float = 0.0 + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.crossslidethresholds.speedbumpend) + public var speedBumpEnd: Float = 0.0 + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.crossslidethresholds.rearrangestart) + public var rearrangeStart: Float = 0.0 + public init() {} + public init(selectionStart: Float, speedBumpStart: Float, speedBumpEnd: Float, rearrangeStart: Float) { + self.selectionStart = selectionStart + self.speedBumpStart = speedBumpStart + self.speedBumpEnd = speedBumpEnd + self.rearrangeStart = rearrangeStart + } + public static func from(abi: __x_ABI_CMicrosoft_CUI_CInput_CCrossSlideThresholds) -> CrossSlideThresholds { + .init(selectionStart: abi.SelectionStart, speedBumpStart: abi.SpeedBumpStart, speedBumpEnd: abi.SpeedBumpEnd, rearrangeStart: abi.RearrangeStart) + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.manipulationdelta) +public struct ManipulationDelta: Hashable, Codable { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.manipulationdelta.translation) + public var translation: WindowsFoundation.Point = .init() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.manipulationdelta.scale) + public var scale: Float = 0.0 + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.manipulationdelta.rotation) + public var rotation: Float = 0.0 + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.manipulationdelta.expansion) + public var expansion: Float = 0.0 + public init() {} + public init(translation: WindowsFoundation.Point, scale: Float, rotation: Float, expansion: Float) { + self.translation = translation + self.scale = scale + self.rotation = rotation + self.expansion = expansion + } + public static func from(abi: __x_ABI_CMicrosoft_CUI_CInput_CManipulationDelta) -> ManipulationDelta { + .init(translation: .from(abi: abi.Translation), scale: abi.Scale, rotation: abi.Rotation, expansion: abi.Expansion) + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.manipulationvelocities) +public struct ManipulationVelocities: Hashable, Codable { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.manipulationvelocities.linear) + public var linear: WindowsFoundation.Point = .init() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.manipulationvelocities.angular) + public var angular: Float = 0.0 + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.manipulationvelocities.expansion) + public var expansion: Float = 0.0 + public init() {} + public init(linear: WindowsFoundation.Point, angular: Float, expansion: Float) { + self.linear = linear + self.angular = angular + self.expansion = expansion + } + public static func from(abi: __x_ABI_CMicrosoft_CUI_CInput_CManipulationVelocities) -> ManipulationVelocities { + .init(linear: .from(abi: abi.Linear), angular: abi.Angular, expansion: abi.Expansion) + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.physicalkeystatus) +public struct PhysicalKeyStatus: Hashable, Codable { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.physicalkeystatus.repeatcount) + public var repeatCount: UInt32 = 0 + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.physicalkeystatus.scancode) + public var scanCode: UInt32 = 0 + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.physicalkeystatus.isextendedkey) + public var isExtendedKey: Bool = false + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.physicalkeystatus.ismenukeydown) + public var isMenuKeyDown: Bool = false + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.physicalkeystatus.waskeydown) + public var wasKeyDown: Bool = false + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.physicalkeystatus.iskeyreleased) + public var isKeyReleased: Bool = false + public init() {} + public init(repeatCount: UInt32, scanCode: UInt32, isExtendedKey: Bool, isMenuKeyDown: Bool, wasKeyDown: Bool, isKeyReleased: Bool) { + self.repeatCount = repeatCount + self.scanCode = scanCode + self.isExtendedKey = isExtendedKey + self.isMenuKeyDown = isMenuKeyDown + self.wasKeyDown = wasKeyDown + self.isKeyReleased = isKeyReleased + } + public static func from(abi: __x_ABI_CMicrosoft_CUI_CInput_CPhysicalKeyStatus) -> PhysicalKeyStatus { + .init(repeatCount: abi.RepeatCount, scanCode: abi.ScanCode, isExtendedKey: .init(from: abi.IsExtendedKey), isMenuKeyDown: .init(from: abi.IsMenuKeyDown), wasKeyDown: .init(from: abi.WasKeyDown), isKeyReleased: .init(from: abi.IsKeyReleased)) + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.ipointerpointtransform) +public protocol IPointerPointTransform : WinRTInterface { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.ipointerpointtransform.trytransform) + func tryTransform(_ inPoint: WindowsFoundation.Point, _ outPoint: inout WindowsFoundation.Point) throws -> Bool + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.ipointerpointtransform.trytransformbounds) + func tryTransformBounds(_ inRect: WindowsFoundation.Rect, _ outRect: inout WindowsFoundation.Rect) throws -> Bool + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.ipointerpointtransform.inverse) + var inverse: WinAppSDK.AnyIPointerPointTransform! { get } +} + +extension IPointerPointTransform { + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + switch iid { + case __ABI_Microsoft_UI_Input.IPointerPointTransformWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Input.IPointerPointTransformWrapper(self) + return wrapper!.queryInterface(iid) + default: return nil + } + } +} +public typealias AnyIPointerPointTransform = any IPointerPointTransform + +extension WinAppSDK.CrossSlidingState { + public static var started : WinAppSDK.CrossSlidingState { + __x_ABI_CMicrosoft_CUI_CInput_CCrossSlidingState_Started + } + public static var dragging : WinAppSDK.CrossSlidingState { + __x_ABI_CMicrosoft_CUI_CInput_CCrossSlidingState_Dragging + } + public static var selecting : WinAppSDK.CrossSlidingState { + __x_ABI_CMicrosoft_CUI_CInput_CCrossSlidingState_Selecting + } + public static var selectSpeedBumping : WinAppSDK.CrossSlidingState { + __x_ABI_CMicrosoft_CUI_CInput_CCrossSlidingState_SelectSpeedBumping + } + public static var speedBumping : WinAppSDK.CrossSlidingState { + __x_ABI_CMicrosoft_CUI_CInput_CCrossSlidingState_SpeedBumping + } + public static var rearranging : WinAppSDK.CrossSlidingState { + __x_ABI_CMicrosoft_CUI_CInput_CCrossSlidingState_Rearranging + } + public static var completed : WinAppSDK.CrossSlidingState { + __x_ABI_CMicrosoft_CUI_CInput_CCrossSlidingState_Completed + } +} +extension WinAppSDK.CrossSlidingState: @retroactive Hashable, @retroactive Codable {} + +extension WinAppSDK.DraggingState { + public static var started : WinAppSDK.DraggingState { + __x_ABI_CMicrosoft_CUI_CInput_CDraggingState_Started + } + public static var continuing : WinAppSDK.DraggingState { + __x_ABI_CMicrosoft_CUI_CInput_CDraggingState_Continuing + } + public static var completed : WinAppSDK.DraggingState { + __x_ABI_CMicrosoft_CUI_CInput_CDraggingState_Completed + } +} +extension WinAppSDK.DraggingState: @retroactive Hashable, @retroactive Codable {} + +extension WinAppSDK.FocusNavigationReason { + public static var programmatic : WinAppSDK.FocusNavigationReason { + __x_ABI_CMicrosoft_CUI_CInput_CFocusNavigationReason_Programmatic + } + public static var restore : WinAppSDK.FocusNavigationReason { + __x_ABI_CMicrosoft_CUI_CInput_CFocusNavigationReason_Restore + } + public static var first : WinAppSDK.FocusNavigationReason { + __x_ABI_CMicrosoft_CUI_CInput_CFocusNavigationReason_First + } + public static var last : WinAppSDK.FocusNavigationReason { + __x_ABI_CMicrosoft_CUI_CInput_CFocusNavigationReason_Last + } + public static var left : WinAppSDK.FocusNavigationReason { + __x_ABI_CMicrosoft_CUI_CInput_CFocusNavigationReason_Left + } + public static var up : WinAppSDK.FocusNavigationReason { + __x_ABI_CMicrosoft_CUI_CInput_CFocusNavigationReason_Up + } + public static var right : WinAppSDK.FocusNavigationReason { + __x_ABI_CMicrosoft_CUI_CInput_CFocusNavigationReason_Right + } + public static var down : WinAppSDK.FocusNavigationReason { + __x_ABI_CMicrosoft_CUI_CInput_CFocusNavigationReason_Down + } +} +extension WinAppSDK.FocusNavigationReason: @retroactive Hashable, @retroactive Codable {} + +extension WinAppSDK.FocusNavigationResult { + public static var notMoved : WinAppSDK.FocusNavigationResult { + __x_ABI_CMicrosoft_CUI_CInput_CFocusNavigationResult_NotMoved + } + public static var moved : WinAppSDK.FocusNavigationResult { + __x_ABI_CMicrosoft_CUI_CInput_CFocusNavigationResult_Moved + } + public static var noFocusableElements : WinAppSDK.FocusNavigationResult { + __x_ABI_CMicrosoft_CUI_CInput_CFocusNavigationResult_NoFocusableElements + } +} +extension WinAppSDK.FocusNavigationResult: @retroactive Hashable, @retroactive Codable {} + +extension WinAppSDK.GestureSettings { + public static var none : WinAppSDK.GestureSettings { + __x_ABI_CMicrosoft_CUI_CInput_CGestureSettings_None + } + public static var tap : WinAppSDK.GestureSettings { + __x_ABI_CMicrosoft_CUI_CInput_CGestureSettings_Tap + } + public static var doubleTap : WinAppSDK.GestureSettings { + __x_ABI_CMicrosoft_CUI_CInput_CGestureSettings_DoubleTap + } + public static var hold : WinAppSDK.GestureSettings { + __x_ABI_CMicrosoft_CUI_CInput_CGestureSettings_Hold + } + public static var holdWithMouse : WinAppSDK.GestureSettings { + __x_ABI_CMicrosoft_CUI_CInput_CGestureSettings_HoldWithMouse + } + public static var rightTap : WinAppSDK.GestureSettings { + __x_ABI_CMicrosoft_CUI_CInput_CGestureSettings_RightTap + } + public static var drag : WinAppSDK.GestureSettings { + __x_ABI_CMicrosoft_CUI_CInput_CGestureSettings_Drag + } + public static var manipulationTranslateX : WinAppSDK.GestureSettings { + __x_ABI_CMicrosoft_CUI_CInput_CGestureSettings_ManipulationTranslateX + } + public static var manipulationTranslateY : WinAppSDK.GestureSettings { + __x_ABI_CMicrosoft_CUI_CInput_CGestureSettings_ManipulationTranslateY + } + public static var manipulationTranslateRailsX : WinAppSDK.GestureSettings { + __x_ABI_CMicrosoft_CUI_CInput_CGestureSettings_ManipulationTranslateRailsX + } + public static var manipulationTranslateRailsY : WinAppSDK.GestureSettings { + __x_ABI_CMicrosoft_CUI_CInput_CGestureSettings_ManipulationTranslateRailsY + } + public static var manipulationRotate : WinAppSDK.GestureSettings { + __x_ABI_CMicrosoft_CUI_CInput_CGestureSettings_ManipulationRotate + } + public static var manipulationScale : WinAppSDK.GestureSettings { + __x_ABI_CMicrosoft_CUI_CInput_CGestureSettings_ManipulationScale + } + public static var manipulationTranslateInertia : WinAppSDK.GestureSettings { + __x_ABI_CMicrosoft_CUI_CInput_CGestureSettings_ManipulationTranslateInertia + } + public static var manipulationRotateInertia : WinAppSDK.GestureSettings { + __x_ABI_CMicrosoft_CUI_CInput_CGestureSettings_ManipulationRotateInertia + } + public static var manipulationScaleInertia : WinAppSDK.GestureSettings { + __x_ABI_CMicrosoft_CUI_CInput_CGestureSettings_ManipulationScaleInertia + } + public static var crossSlide : WinAppSDK.GestureSettings { + __x_ABI_CMicrosoft_CUI_CInput_CGestureSettings_CrossSlide + } + public static var manipulationMultipleFingerPanning : WinAppSDK.GestureSettings { + __x_ABI_CMicrosoft_CUI_CInput_CGestureSettings_ManipulationMultipleFingerPanning + } +} +extension WinAppSDK.GestureSettings: @retroactive Hashable, @retroactive Codable {} + +extension WinAppSDK.HoldingState { + public static var started : WinAppSDK.HoldingState { + __x_ABI_CMicrosoft_CUI_CInput_CHoldingState_Started + } + public static var completed : WinAppSDK.HoldingState { + __x_ABI_CMicrosoft_CUI_CInput_CHoldingState_Completed + } + public static var canceled : WinAppSDK.HoldingState { + __x_ABI_CMicrosoft_CUI_CInput_CHoldingState_Canceled + } +} +extension WinAppSDK.HoldingState: @retroactive Hashable, @retroactive Codable {} + +extension WinAppSDK.InputActivationState { + public static var none : WinAppSDK.InputActivationState { + __x_ABI_CMicrosoft_CUI_CInput_CInputActivationState_None + } + public static var deactivated : WinAppSDK.InputActivationState { + __x_ABI_CMicrosoft_CUI_CInput_CInputActivationState_Deactivated + } + public static var activated : WinAppSDK.InputActivationState { + __x_ABI_CMicrosoft_CUI_CInput_CInputActivationState_Activated + } +} +extension WinAppSDK.InputActivationState: @retroactive Hashable, @retroactive Codable {} + +extension WinAppSDK.InputPointerSourceDeviceKinds { + public static var none : WinAppSDK.InputPointerSourceDeviceKinds { + __x_ABI_CMicrosoft_CUI_CInput_CInputPointerSourceDeviceKinds_None + } + public static var touch : WinAppSDK.InputPointerSourceDeviceKinds { + __x_ABI_CMicrosoft_CUI_CInput_CInputPointerSourceDeviceKinds_Touch + } + public static var pen : WinAppSDK.InputPointerSourceDeviceKinds { + __x_ABI_CMicrosoft_CUI_CInput_CInputPointerSourceDeviceKinds_Pen + } + public static var mouse : WinAppSDK.InputPointerSourceDeviceKinds { + __x_ABI_CMicrosoft_CUI_CInput_CInputPointerSourceDeviceKinds_Mouse + } +} +extension WinAppSDK.InputPointerSourceDeviceKinds: @retroactive Hashable, @retroactive Codable {} + +extension WinAppSDK.InputSystemCursorShape { + public static var arrow : WinAppSDK.InputSystemCursorShape { + __x_ABI_CMicrosoft_CUI_CInput_CInputSystemCursorShape_Arrow + } + public static var cross : WinAppSDK.InputSystemCursorShape { + __x_ABI_CMicrosoft_CUI_CInput_CInputSystemCursorShape_Cross + } + public static var hand : WinAppSDK.InputSystemCursorShape { + __x_ABI_CMicrosoft_CUI_CInput_CInputSystemCursorShape_Hand + } + public static var help : WinAppSDK.InputSystemCursorShape { + __x_ABI_CMicrosoft_CUI_CInput_CInputSystemCursorShape_Help + } + public static var ibeam : WinAppSDK.InputSystemCursorShape { + __x_ABI_CMicrosoft_CUI_CInput_CInputSystemCursorShape_IBeam + } + public static var sizeAll : WinAppSDK.InputSystemCursorShape { + __x_ABI_CMicrosoft_CUI_CInput_CInputSystemCursorShape_SizeAll + } + public static var sizeNortheastSouthwest : WinAppSDK.InputSystemCursorShape { + __x_ABI_CMicrosoft_CUI_CInput_CInputSystemCursorShape_SizeNortheastSouthwest + } + public static var sizeNorthSouth : WinAppSDK.InputSystemCursorShape { + __x_ABI_CMicrosoft_CUI_CInput_CInputSystemCursorShape_SizeNorthSouth + } + public static var sizeNorthwestSoutheast : WinAppSDK.InputSystemCursorShape { + __x_ABI_CMicrosoft_CUI_CInput_CInputSystemCursorShape_SizeNorthwestSoutheast + } + public static var sizeWestEast : WinAppSDK.InputSystemCursorShape { + __x_ABI_CMicrosoft_CUI_CInput_CInputSystemCursorShape_SizeWestEast + } + public static var universalNo : WinAppSDK.InputSystemCursorShape { + __x_ABI_CMicrosoft_CUI_CInput_CInputSystemCursorShape_UniversalNo + } + public static var upArrow : WinAppSDK.InputSystemCursorShape { + __x_ABI_CMicrosoft_CUI_CInput_CInputSystemCursorShape_UpArrow + } + public static var wait : WinAppSDK.InputSystemCursorShape { + __x_ABI_CMicrosoft_CUI_CInput_CInputSystemCursorShape_Wait + } + public static var pin : WinAppSDK.InputSystemCursorShape { + __x_ABI_CMicrosoft_CUI_CInput_CInputSystemCursorShape_Pin + } + public static var person : WinAppSDK.InputSystemCursorShape { + __x_ABI_CMicrosoft_CUI_CInput_CInputSystemCursorShape_Person + } + public static var appStarting : WinAppSDK.InputSystemCursorShape { + __x_ABI_CMicrosoft_CUI_CInput_CInputSystemCursorShape_AppStarting + } +} +extension WinAppSDK.InputSystemCursorShape: @retroactive Hashable, @retroactive Codable {} + +extension WinAppSDK.NonClientRegionKind { + public static var close : WinAppSDK.NonClientRegionKind { + __x_ABI_CMicrosoft_CUI_CInput_CNonClientRegionKind_Close + } + public static var maximize : WinAppSDK.NonClientRegionKind { + __x_ABI_CMicrosoft_CUI_CInput_CNonClientRegionKind_Maximize + } + public static var minimize : WinAppSDK.NonClientRegionKind { + __x_ABI_CMicrosoft_CUI_CInput_CNonClientRegionKind_Minimize + } + public static var icon : WinAppSDK.NonClientRegionKind { + __x_ABI_CMicrosoft_CUI_CInput_CNonClientRegionKind_Icon + } + public static var caption : WinAppSDK.NonClientRegionKind { + __x_ABI_CMicrosoft_CUI_CInput_CNonClientRegionKind_Caption + } + public static var topBorder : WinAppSDK.NonClientRegionKind { + __x_ABI_CMicrosoft_CUI_CInput_CNonClientRegionKind_TopBorder + } + public static var leftBorder : WinAppSDK.NonClientRegionKind { + __x_ABI_CMicrosoft_CUI_CInput_CNonClientRegionKind_LeftBorder + } + public static var bottomBorder : WinAppSDK.NonClientRegionKind { + __x_ABI_CMicrosoft_CUI_CInput_CNonClientRegionKind_BottomBorder + } + public static var rightBorder : WinAppSDK.NonClientRegionKind { + __x_ABI_CMicrosoft_CUI_CInput_CNonClientRegionKind_RightBorder + } + public static var passthrough : WinAppSDK.NonClientRegionKind { + __x_ABI_CMicrosoft_CUI_CInput_CNonClientRegionKind_Passthrough + } +} +extension WinAppSDK.NonClientRegionKind: @retroactive Hashable, @retroactive Codable {} + +extension WinAppSDK.PointerDeviceType { + public static var touch : WinAppSDK.PointerDeviceType { + __x_ABI_CMicrosoft_CUI_CInput_CPointerDeviceType_Touch + } + public static var pen : WinAppSDK.PointerDeviceType { + __x_ABI_CMicrosoft_CUI_CInput_CPointerDeviceType_Pen + } + public static var mouse : WinAppSDK.PointerDeviceType { + __x_ABI_CMicrosoft_CUI_CInput_CPointerDeviceType_Mouse + } + public static var touchpad : WinAppSDK.PointerDeviceType { + __x_ABI_CMicrosoft_CUI_CInput_CPointerDeviceType_Touchpad + } +} +extension WinAppSDK.PointerDeviceType: @retroactive Hashable, @retroactive Codable {} + +extension WinAppSDK.PointerUpdateKind { + public static var other : WinAppSDK.PointerUpdateKind { + __x_ABI_CMicrosoft_CUI_CInput_CPointerUpdateKind_Other + } + public static var leftButtonPressed : WinAppSDK.PointerUpdateKind { + __x_ABI_CMicrosoft_CUI_CInput_CPointerUpdateKind_LeftButtonPressed + } + public static var leftButtonReleased : WinAppSDK.PointerUpdateKind { + __x_ABI_CMicrosoft_CUI_CInput_CPointerUpdateKind_LeftButtonReleased + } + public static var rightButtonPressed : WinAppSDK.PointerUpdateKind { + __x_ABI_CMicrosoft_CUI_CInput_CPointerUpdateKind_RightButtonPressed + } + public static var rightButtonReleased : WinAppSDK.PointerUpdateKind { + __x_ABI_CMicrosoft_CUI_CInput_CPointerUpdateKind_RightButtonReleased + } + public static var middleButtonPressed : WinAppSDK.PointerUpdateKind { + __x_ABI_CMicrosoft_CUI_CInput_CPointerUpdateKind_MiddleButtonPressed + } + public static var middleButtonReleased : WinAppSDK.PointerUpdateKind { + __x_ABI_CMicrosoft_CUI_CInput_CPointerUpdateKind_MiddleButtonReleased + } + public static var xbutton1Pressed : WinAppSDK.PointerUpdateKind { + __x_ABI_CMicrosoft_CUI_CInput_CPointerUpdateKind_XButton1Pressed + } + public static var xbutton1Released : WinAppSDK.PointerUpdateKind { + __x_ABI_CMicrosoft_CUI_CInput_CPointerUpdateKind_XButton1Released + } + public static var xbutton2Pressed : WinAppSDK.PointerUpdateKind { + __x_ABI_CMicrosoft_CUI_CInput_CPointerUpdateKind_XButton2Pressed + } + public static var xbutton2Released : WinAppSDK.PointerUpdateKind { + __x_ABI_CMicrosoft_CUI_CInput_CPointerUpdateKind_XButton2Released + } +} +extension WinAppSDK.PointerUpdateKind: @retroactive Hashable, @retroactive Codable {} + +extension WinAppSDK.VirtualKeyStates { + public static var none : WinAppSDK.VirtualKeyStates { + __x_ABI_CMicrosoft_CUI_CInput_CVirtualKeyStates_None + } + public static var down : WinAppSDK.VirtualKeyStates { + __x_ABI_CMicrosoft_CUI_CInput_CVirtualKeyStates_Down + } + public static var locked : WinAppSDK.VirtualKeyStates { + __x_ABI_CMicrosoft_CUI_CInput_CVirtualKeyStates_Locked + } +} +extension WinAppSDK.VirtualKeyStates: @retroactive Hashable, @retroactive Codable {} + diff --git a/Sources/WinAppSDK/Microsoft.UI.Windowing+ABI.swift b/Sources/WinAppSDK/Microsoft.UI.Windowing+ABI.swift new file mode 100644 index 0000000..f39cf7c --- /dev/null +++ b/Sources/WinAppSDK/Microsoft.UI.Windowing+ABI.swift @@ -0,0 +1,1270 @@ +// WARNING: Please don't edit this file. It was generated by Swift/WinRT v0.0.1 +// swiftlint:disable all +import Foundation +@_spi(WinRTInternal) @_spi(WinRTImplements) import UWP +@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation +import CWinRT + +private var IID___x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindow: WindowsFoundation.IID { + .init(Data1: 0xCFA788B3, Data2: 0x643B, Data3: 0x5C5E, Data4: ( 0xAD,0x4E,0x32,0x1D,0x48,0xA8,0x2A,0xCD ))// CFA788B3-643B-5C5E-AD4E-321D48A82ACD +} + +private var IID___x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindow2: WindowsFoundation.IID { + .init(Data1: 0x6CD41292, Data2: 0x794C, Data3: 0x5CAC, Data4: ( 0x89,0x61,0x21,0x0D,0x01,0x2C,0x6E,0xBC ))// 6CD41292-794C-5CAC-8961-210D012C6EBC +} + +private var IID___x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindow3: WindowsFoundation.IID { + .init(Data1: 0x2F260CEA, Data2: 0x193D, Data3: 0x5DD6, Data4: ( 0xA9,0x04,0xD7,0x64,0x9A,0x60,0x8D,0x2F ))// 2F260CEA-193D-5DD6-A904-D7649A608D2F +} + +private var IID___x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowChangedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x2182BC5D, Data2: 0xFDAC, Data3: 0x5C3E, Data4: ( 0xBF,0x37,0x7D,0x8D,0x68,0x4E,0x9D,0x1D ))// 2182BC5D-FDAC-5C3E-BF37-7D8D684E9D1D +} + +private var IID___x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowChangedEventArgs2: WindowsFoundation.IID { + .init(Data1: 0xA773AB4C, Data2: 0xA5EC, Data3: 0x50E8, Data4: ( 0x98,0xAC,0x24,0x7F,0xE6,0xCD,0x42,0x27 ))// A773AB4C-A5EC-50E8-98AC-247FE6CD4227 +} + +private var IID___x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowClosingEventArgs: WindowsFoundation.IID { + .init(Data1: 0x0E09D90B, Data2: 0x2261, Data3: 0x590B, Data4: ( 0x9A,0xD1,0x85,0x04,0x99,0x1D,0x87,0x54 ))// 0E09D90B-2261-590B-9AD1-8504991D8754 +} + +private var IID___x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowPresenter: WindowsFoundation.IID { + .init(Data1: 0xBC3042C2, Data2: 0xC6C6, Data3: 0x5632, Data4: ( 0x89,0x89,0xFF,0x0E,0xC6,0xD3,0xB4,0x0D ))// BC3042C2-C6C6-5632-8989-FF0EC6D3B40D +} + +private var IID___x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowPresenterFactory: WindowsFoundation.IID { + .init(Data1: 0x62082E3C, Data2: 0x1368, Data3: 0x5238, Data4: ( 0x90,0xD1,0xE9,0x32,0xDC,0x71,0x8A,0x82 ))// 62082E3C-1368-5238-90D1-E932DC718A82 +} + +private var IID___x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowStatics: WindowsFoundation.IID { + .init(Data1: 0x3C315C24, Data2: 0xD540, Data3: 0x5D72, Data4: ( 0xB5,0x18,0xB2,0x26,0xB8,0x36,0x27,0xCB ))// 3C315C24-D540-5D72-B518-B226B83627CB +} + +private var IID___x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowStatics2: WindowsFoundation.IID { + .init(Data1: 0xCABC23DB, Data2: 0x4606, Data3: 0x5D6E, Data4: ( 0x89,0xA5,0x06,0xDE,0x1D,0x8B,0xD3,0xE2 ))// CABC23DB-4606-5D6E-89A5-06DE1D8BD3E2 +} + +private var IID___x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowTitleBar: WindowsFoundation.IID { + .init(Data1: 0x5574EFA2, Data2: 0xC91C, Data3: 0x5700, Data4: ( 0xA3,0x63,0x53,0x9C,0x71,0xA7,0xAA,0xF4 ))// 5574EFA2-C91C-5700-A363-539C71A7AAF4 +} + +private var IID___x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowTitleBar2: WindowsFoundation.IID { + .init(Data1: 0x86FAED38, Data2: 0x748A, Data3: 0x5B4B, Data4: ( 0x9C,0xCF,0x3B,0xA0,0x49,0x6C,0x90,0x41 ))// 86FAED38-748A-5B4B-9CCF-3BA0496C9041 +} + +private var IID___x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowTitleBarStatics: WindowsFoundation.IID { + .init(Data1: 0x9E1DA52E, Data2: 0x8B15, Data3: 0x54D6, Data4: ( 0xA8,0x86,0xF7,0xB9,0xF9,0xD9,0x30,0xB2 ))// 9E1DA52E-8B15-54D6-A886-F7B9F9D930B2 +} + +private var IID___x_ABI_CMicrosoft_CUI_CWindowing_CIDisplayArea: WindowsFoundation.IID { + .init(Data1: 0x5C7E0537, Data2: 0xB621, Data3: 0x5579, Data4: ( 0xBC,0xAE,0xA8,0x4A,0xA8,0x74,0x61,0x67 ))// 5C7E0537-B621-5579-BCAE-A84AA8746167 +} + +private var IID___x_ABI_CMicrosoft_CUI_CWindowing_CIDisplayAreaStatics: WindowsFoundation.IID { + .init(Data1: 0x02AB4926, Data2: 0x211E, Data3: 0x5D49, Data4: ( 0x8E,0x4B,0x2A,0xF1,0x93,0xDA,0xED,0x09 ))// 02AB4926-211E-5D49-8E4B-2AF193DAED09 +} + +private var IID___x_ABI_CMicrosoft_CUI_CWindowing_CIDisplayAreaStatics2: WindowsFoundation.IID { + .init(Data1: 0x7207AD4B, Data2: 0x890D, Data3: 0x5DD7, Data4: ( 0xBC,0x18,0x78,0xFF,0xD9,0x54,0x4D,0x8F ))// 7207AD4B-890D-5DD7-BC18-78FFD9544D8F +} + +private var IID___x_ABI_CMicrosoft_CUI_CWindowing_CIDisplayAreaWatcher: WindowsFoundation.IID { + .init(Data1: 0x83F6562F, Data2: 0xD3A0, Data3: 0x548B, Data4: ( 0x8E,0x4F,0xA9,0x9B,0xE3,0xD9,0x5C,0x9C ))// 83F6562F-D3A0-548B-8E4F-A99BE3D95C9C +} + +private var IID___x_ABI_CMicrosoft_CUI_CWindowing_CIFullScreenPresenter: WindowsFoundation.IID { + .init(Data1: 0xFA9141FD, Data2: 0xB8DD, Data3: 0x5DA1, Data4: ( 0x8B,0x2B,0x7C,0xDA,0xDB,0x76,0xF5,0x93 ))// FA9141FD-B8DD-5DA1-8B2B-7CDADB76F593 +} + +private var IID___x_ABI_CMicrosoft_CUI_CWindowing_CIFullScreenPresenterStatics: WindowsFoundation.IID { + .init(Data1: 0x2EC0D2C1, Data2: 0xE086, Data3: 0x55BB, Data4: ( 0xA3,0xB2,0x44,0x94,0x2E,0x23,0x1C,0x67 ))// 2EC0D2C1-E086-55BB-A3B2-44942E231C67 +} + +private var IID___x_ABI_CMicrosoft_CUI_CWindowing_CIOverlappedPresenter: WindowsFoundation.IID { + .init(Data1: 0x21693970, Data2: 0x4F4C, Data3: 0x5172, Data4: ( 0x9E,0x9D,0x68,0x2A,0x2D,0x17,0x48,0x84 ))// 21693970-4F4C-5172-9E9D-682A2D174884 +} + +private var IID___x_ABI_CMicrosoft_CUI_CWindowing_CIOverlappedPresenter2: WindowsFoundation.IID { + .init(Data1: 0x5C6CCD93, Data2: 0x4244, Data3: 0x5CD2, Data4: ( 0xB3,0x55,0xED,0x5E,0xA3,0x4D,0xF7,0x30 ))// 5C6CCD93-4244-5CD2-B355-ED5EA34DF730 +} + +private var IID___x_ABI_CMicrosoft_CUI_CWindowing_CIOverlappedPresenterStatics: WindowsFoundation.IID { + .init(Data1: 0x997225E4, Data2: 0x7B00, Data3: 0x5AEE, Data4: ( 0xA4,0xBE,0xD4,0x06,0x8D,0x19,0x99,0xE2 ))// 997225E4-7B00-5AEE-A4BE-D4068D1999E2 +} + +private var IID___x_ABI_CMicrosoft_CUI_CWindowing_CIOverlappedPresenterStatics2: WindowsFoundation.IID { + .init(Data1: 0xED5C4F92, Data2: 0x32F4, Data3: 0x5D15, Data4: ( 0x80,0xD0,0xB2,0xA5,0xEF,0xA0,0x4D,0x39 ))// ED5C4F92-32F4-5D15-80D0-B2A5EFA04D39 +} + +public enum __ABI_Microsoft_UI_Windowing { + public class IAppWindow: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindow } + + internal func get_IdImpl() throws -> WinAppSDK.WindowId { + var value: __x_ABI_CMicrosoft_CUI_CWindowId = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Id(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_IsShownInSwitchersImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsShownInSwitchers(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsShownInSwitchersImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsShownInSwitchers(pThis, .init(from: value))) + } + } + + internal func get_IsVisibleImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsVisible(pThis, &value)) + } + return .init(from: value) + } + + internal func get_OwnerWindowIdImpl() throws -> WinAppSDK.WindowId { + var value: __x_ABI_CMicrosoft_CUI_CWindowId = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OwnerWindowId(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_PositionImpl() throws -> UWP.PointInt32 { + var value: __x_ABI_CWindows_CGraphics_CPointInt32 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Position(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_PresenterImpl() throws -> WinAppSDK.AppWindowPresenter? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Presenter(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_SizeImpl() throws -> UWP.SizeInt32 { + var value: __x_ABI_CWindows_CGraphics_CSizeInt32 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_TitleImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Title(pThis, &value)) + } + return .init(from: value) + } + + internal func put_TitleImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Title(pThis, _value.get())) + } + } + + internal func get_TitleBarImpl() throws -> WinAppSDK.AppWindowTitleBar? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TitleBar(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func DestroyImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Destroy(pThis)) + } + } + + internal func HideImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Hide(pThis)) + } + } + + internal func MoveImpl(_ position: UWP.PointInt32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Move(pThis, .from(swift: position))) + } + } + + internal func MoveAndResizeImpl(_ rect: UWP.RectInt32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.MoveAndResize(pThis, .from(swift: rect))) + } + } + + internal func MoveAndResizeRelativeToDisplayAreaImpl(_ rect: UWP.RectInt32, _ displayarea: WinAppSDK.DisplayArea?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.MoveAndResizeRelativeToDisplayArea(pThis, .from(swift: rect), RawPointer(displayarea))) + } + } + + internal func ResizeImpl(_ size: UWP.SizeInt32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Resize(pThis, .from(swift: size))) + } + } + + internal func SetIconImpl(_ iconPath: String) throws { + let _iconPath = try! HString(iconPath) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetIcon(pThis, _iconPath.get())) + } + } + + internal func SetIconWithIconIdImpl(_ iconId: WinAppSDK.IconId) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetIconWithIconId(pThis, .from(swift: iconId))) + } + } + + internal func SetPresenterImpl(_ appWindowPresenter: WinAppSDK.AppWindowPresenter?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetPresenter(pThis, RawPointer(appWindowPresenter))) + } + } + + internal func SetPresenterByKindImpl(_ appWindowPresenterKind: WinAppSDK.AppWindowPresenterKind) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetPresenterByKind(pThis, appWindowPresenterKind)) + } + } + + internal func ShowImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Show(pThis)) + } + } + + internal func ShowWithActivationImpl(_ activateWindow: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ShowWithActivation(pThis, .init(from: activateWindow))) + } + } + + internal func add_ChangedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowChangedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Changed(pThis, _handler, &token)) + } + return token + } + + internal func remove_ChangedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Changed(pThis, token)) + } + } + + internal func add_ClosingImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowClosingEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Closing(pThis, _handler, &token)) + } + return token + } + + internal func remove_ClosingImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Closing(pThis, token)) + } + } + + internal func add_DestroyingImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow_IInspectableWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Destroying(pThis, _handler, &token)) + } + return token + } + + internal func remove_DestroyingImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Destroying(pThis, token)) + } + } + + } + + public class IAppWindow2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindow2 } + + internal func get_ClientSizeImpl() throws -> UWP.SizeInt32 { + var value: __x_ABI_CWindows_CGraphics_CSizeInt32 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindow2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ClientSize(pThis, &value)) + } + return .from(abi: value) + } + + internal func MoveInZOrderAtBottomImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindow2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.MoveInZOrderAtBottom(pThis)) + } + } + + internal func MoveInZOrderAtTopImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindow2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.MoveInZOrderAtTop(pThis)) + } + } + + internal func MoveInZOrderBelowImpl(_ windowId: WinAppSDK.WindowId) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindow2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.MoveInZOrderBelow(pThis, .from(swift: windowId))) + } + } + + internal func ResizeClientImpl(_ size: UWP.SizeInt32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindow2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ResizeClient(pThis, .from(swift: size))) + } + } + + internal func ShowOnceWithRequestedStartupStateImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindow2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ShowOnceWithRequestedStartupState(pThis)) + } + } + + } + + public class IAppWindow3: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindow3 } + + internal func AssociateWithDispatcherQueueImpl(_ dispatcherQueue: WinAppSDK.DispatcherQueue?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindow3.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.AssociateWithDispatcherQueue(pThis, RawPointer(dispatcherQueue))) + } + } + + internal func get_DispatcherQueueImpl() throws -> WinAppSDK.DispatcherQueue? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindow3.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DispatcherQueue(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IAppWindowChangedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowChangedEventArgs } + + internal func get_DidPositionChangeImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DidPositionChange(pThis, &value)) + } + return .init(from: value) + } + + internal func get_DidPresenterChangeImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DidPresenterChange(pThis, &value)) + } + return .init(from: value) + } + + internal func get_DidSizeChangeImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DidSizeChange(pThis, &value)) + } + return .init(from: value) + } + + internal func get_DidVisibilityChangeImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DidVisibilityChange(pThis, &value)) + } + return .init(from: value) + } + + } + + public class IAppWindowChangedEventArgs2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowChangedEventArgs2 } + + internal func get_DidZOrderChangeImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowChangedEventArgs2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DidZOrderChange(pThis, &value)) + } + return .init(from: value) + } + + internal func get_IsZOrderAtBottomImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowChangedEventArgs2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsZOrderAtBottom(pThis, &value)) + } + return .init(from: value) + } + + internal func get_IsZOrderAtTopImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowChangedEventArgs2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsZOrderAtTop(pThis, &value)) + } + return .init(from: value) + } + + internal func get_ZOrderBelowWindowIdImpl() throws -> WinAppSDK.WindowId { + var value: __x_ABI_CMicrosoft_CUI_CWindowId = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowChangedEventArgs2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ZOrderBelowWindowId(pThis, &value)) + } + return .from(abi: value) + } + + } + + public class IAppWindowClosingEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowClosingEventArgs } + + internal func get_CancelImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowClosingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Cancel(pThis, &value)) + } + return .init(from: value) + } + + internal func put_CancelImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowClosingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Cancel(pThis, .init(from: value))) + } + } + + } + + public class IAppWindowPresenter: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowPresenter } + + internal func get_KindImpl() throws -> WinAppSDK.AppWindowPresenterKind { + var value: __x_ABI_CMicrosoft_CUI_CWindowing_CAppWindowPresenterKind = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Kind(pThis, &value)) + } + return value + } + + } + + public class IAppWindowPresenterFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowPresenterFactory } + + } + + public class IAppWindowStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowStatics } + + internal func CreateImpl() throws -> WinAppSDK.AppWindow? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Create(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateWithPresenterImpl(_ appWindowPresenter: WinAppSDK.AppWindowPresenter?) throws -> WinAppSDK.AppWindow? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateWithPresenter(pThis, RawPointer(appWindowPresenter), &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateWithPresenterAndOwnerImpl(_ appWindowPresenter: WinAppSDK.AppWindowPresenter?, _ ownerWindowId: WinAppSDK.WindowId) throws -> WinAppSDK.AppWindow? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateWithPresenterAndOwner(pThis, RawPointer(appWindowPresenter), .from(swift: ownerWindowId), &resultAbi)) + } + } + return .from(abi: result) + } + + internal func GetFromWindowIdImpl(_ windowId: WinAppSDK.WindowId) throws -> WinAppSDK.AppWindow? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetFromWindowId(pThis, .from(swift: windowId), &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IAppWindowStatics2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowStatics2 } + + internal func CreateWithDispatcherQueueImpl(_ appWindowPresenter: WinAppSDK.AppWindowPresenter?, _ ownerWindowId: WinAppSDK.WindowId, _ DispatcherQueue: WinAppSDK.DispatcherQueue?) throws -> WinAppSDK.AppWindow? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowStatics2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateWithDispatcherQueue(pThis, RawPointer(appWindowPresenter), .from(swift: ownerWindowId), RawPointer(DispatcherQueue), &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IAppWindowTitleBar: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowTitleBar } + + internal func get_BackgroundColorImpl() throws -> UWP.Color? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowTitleBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BackgroundColor(pThis, &valueAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColorWrapper.unwrapFrom(abi: value) + } + + internal func put_BackgroundColorImpl(_ value: UWP.Color?) throws { + let valueWrapper = WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColorWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowTitleBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_BackgroundColor(pThis, _value)) + } + } + + internal func get_ButtonBackgroundColorImpl() throws -> UWP.Color? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowTitleBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ButtonBackgroundColor(pThis, &valueAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColorWrapper.unwrapFrom(abi: value) + } + + internal func put_ButtonBackgroundColorImpl(_ value: UWP.Color?) throws { + let valueWrapper = WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColorWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowTitleBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ButtonBackgroundColor(pThis, _value)) + } + } + + internal func get_ButtonForegroundColorImpl() throws -> UWP.Color? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowTitleBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ButtonForegroundColor(pThis, &valueAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColorWrapper.unwrapFrom(abi: value) + } + + internal func put_ButtonForegroundColorImpl(_ value: UWP.Color?) throws { + let valueWrapper = WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColorWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowTitleBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ButtonForegroundColor(pThis, _value)) + } + } + + internal func get_ButtonHoverBackgroundColorImpl() throws -> UWP.Color? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowTitleBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ButtonHoverBackgroundColor(pThis, &valueAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColorWrapper.unwrapFrom(abi: value) + } + + internal func put_ButtonHoverBackgroundColorImpl(_ value: UWP.Color?) throws { + let valueWrapper = WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColorWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowTitleBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ButtonHoverBackgroundColor(pThis, _value)) + } + } + + internal func get_ButtonHoverForegroundColorImpl() throws -> UWP.Color? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowTitleBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ButtonHoverForegroundColor(pThis, &valueAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColorWrapper.unwrapFrom(abi: value) + } + + internal func put_ButtonHoverForegroundColorImpl(_ value: UWP.Color?) throws { + let valueWrapper = WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColorWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowTitleBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ButtonHoverForegroundColor(pThis, _value)) + } + } + + internal func get_ButtonInactiveBackgroundColorImpl() throws -> UWP.Color? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowTitleBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ButtonInactiveBackgroundColor(pThis, &valueAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColorWrapper.unwrapFrom(abi: value) + } + + internal func put_ButtonInactiveBackgroundColorImpl(_ value: UWP.Color?) throws { + let valueWrapper = WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColorWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowTitleBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ButtonInactiveBackgroundColor(pThis, _value)) + } + } + + internal func get_ButtonInactiveForegroundColorImpl() throws -> UWP.Color? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowTitleBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ButtonInactiveForegroundColor(pThis, &valueAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColorWrapper.unwrapFrom(abi: value) + } + + internal func put_ButtonInactiveForegroundColorImpl(_ value: UWP.Color?) throws { + let valueWrapper = WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColorWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowTitleBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ButtonInactiveForegroundColor(pThis, _value)) + } + } + + internal func get_ButtonPressedBackgroundColorImpl() throws -> UWP.Color? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowTitleBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ButtonPressedBackgroundColor(pThis, &valueAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColorWrapper.unwrapFrom(abi: value) + } + + internal func put_ButtonPressedBackgroundColorImpl(_ value: UWP.Color?) throws { + let valueWrapper = WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColorWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowTitleBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ButtonPressedBackgroundColor(pThis, _value)) + } + } + + internal func get_ButtonPressedForegroundColorImpl() throws -> UWP.Color? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowTitleBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ButtonPressedForegroundColor(pThis, &valueAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColorWrapper.unwrapFrom(abi: value) + } + + internal func put_ButtonPressedForegroundColorImpl(_ value: UWP.Color?) throws { + let valueWrapper = WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColorWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowTitleBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ButtonPressedForegroundColor(pThis, _value)) + } + } + + internal func get_ExtendsContentIntoTitleBarImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowTitleBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ExtendsContentIntoTitleBar(pThis, &value)) + } + return .init(from: value) + } + + internal func put_ExtendsContentIntoTitleBarImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowTitleBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ExtendsContentIntoTitleBar(pThis, .init(from: value))) + } + } + + internal func get_ForegroundColorImpl() throws -> UWP.Color? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowTitleBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ForegroundColor(pThis, &valueAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColorWrapper.unwrapFrom(abi: value) + } + + internal func put_ForegroundColorImpl(_ value: UWP.Color?) throws { + let valueWrapper = WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColorWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowTitleBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ForegroundColor(pThis, _value)) + } + } + + internal func get_HeightImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowTitleBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Height(pThis, &value)) + } + return value + } + + internal func get_IconShowOptionsImpl() throws -> WinAppSDK.IconShowOptions { + var value: __x_ABI_CMicrosoft_CUI_CWindowing_CIconShowOptions = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowTitleBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IconShowOptions(pThis, &value)) + } + return value + } + + internal func put_IconShowOptionsImpl(_ value: WinAppSDK.IconShowOptions) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowTitleBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IconShowOptions(pThis, value)) + } + } + + internal func get_InactiveBackgroundColorImpl() throws -> UWP.Color? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowTitleBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_InactiveBackgroundColor(pThis, &valueAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColorWrapper.unwrapFrom(abi: value) + } + + internal func put_InactiveBackgroundColorImpl(_ value: UWP.Color?) throws { + let valueWrapper = WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColorWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowTitleBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_InactiveBackgroundColor(pThis, _value)) + } + } + + internal func get_InactiveForegroundColorImpl() throws -> UWP.Color? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowTitleBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_InactiveForegroundColor(pThis, &valueAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColorWrapper.unwrapFrom(abi: value) + } + + internal func put_InactiveForegroundColorImpl(_ value: UWP.Color?) throws { + let valueWrapper = WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColorWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowTitleBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_InactiveForegroundColor(pThis, _value)) + } + } + + internal func get_LeftInsetImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowTitleBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LeftInset(pThis, &value)) + } + return value + } + + internal func get_RightInsetImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowTitleBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RightInset(pThis, &value)) + } + return value + } + + internal func ResetToDefaultImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowTitleBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ResetToDefault(pThis)) + } + } + + } + + public class IAppWindowTitleBar2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowTitleBar2 } + + internal func get_PreferredHeightOptionImpl() throws -> WinAppSDK.TitleBarHeightOption { + var value: __x_ABI_CMicrosoft_CUI_CWindowing_CTitleBarHeightOption = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowTitleBar2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PreferredHeightOption(pThis, &value)) + } + return value + } + + internal func put_PreferredHeightOptionImpl(_ value: WinAppSDK.TitleBarHeightOption) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowTitleBar2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_PreferredHeightOption(pThis, value)) + } + } + + } + + public class IAppWindowTitleBarStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowTitleBarStatics } + + internal func IsCustomizationSupportedImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowTitleBarStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.IsCustomizationSupported(pThis, &result)) + } + return .init(from: result) + } + + } + + public class IDisplayArea: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CWindowing_CIDisplayArea } + + internal func get_DisplayIdImpl() throws -> WinAppSDK.DisplayId { + var value: __x_ABI_CMicrosoft_CUI_CDisplayId = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIDisplayArea.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DisplayId(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_IsPrimaryImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIDisplayArea.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsPrimary(pThis, &value)) + } + return .init(from: value) + } + + internal func get_OuterBoundsImpl() throws -> UWP.RectInt32 { + var value: __x_ABI_CWindows_CGraphics_CRectInt32 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIDisplayArea.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OuterBounds(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_WorkAreaImpl() throws -> UWP.RectInt32 { + var value: __x_ABI_CWindows_CGraphics_CRectInt32 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIDisplayArea.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_WorkArea(pThis, &value)) + } + return .from(abi: value) + } + + } + + public class IDisplayAreaStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CWindowing_CIDisplayAreaStatics } + + internal func get_PrimaryImpl() throws -> WinAppSDK.DisplayArea? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIDisplayAreaStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Primary(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func CreateWatcherImpl() throws -> WinAppSDK.DisplayAreaWatcher? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIDisplayAreaStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateWatcher(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func FindAllImpl() throws -> WindowsFoundation.AnyIVectorView? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIDisplayAreaStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.FindAll(pThis, &resultAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper.unwrapFrom(abi: result) + } + + internal func GetFromWindowIdImpl(_ windowId: WinAppSDK.WindowId, _ displayAreaFallback: WinAppSDK.DisplayAreaFallback) throws -> WinAppSDK.DisplayArea? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIDisplayAreaStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetFromWindowId(pThis, .from(swift: windowId), displayAreaFallback, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func GetFromPointImpl(_ point: UWP.PointInt32, _ displayAreaFallback: WinAppSDK.DisplayAreaFallback) throws -> WinAppSDK.DisplayArea? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIDisplayAreaStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetFromPoint(pThis, .from(swift: point), displayAreaFallback, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func GetFromRectImpl(_ rect: UWP.RectInt32, _ displayAreaFallback: WinAppSDK.DisplayAreaFallback) throws -> WinAppSDK.DisplayArea? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIDisplayAreaStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetFromRect(pThis, .from(swift: rect), displayAreaFallback, &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IDisplayAreaStatics2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CWindowing_CIDisplayAreaStatics2 } + + internal func GetFromDisplayIdImpl(_ displayId: WinAppSDK.DisplayId) throws -> WinAppSDK.DisplayArea? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIDisplayAreaStatics2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetFromDisplayId(pThis, .from(swift: displayId), &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IDisplayAreaWatcher: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CWindowing_CIDisplayAreaWatcher } + + internal func get_StatusImpl() throws -> WinAppSDK.DisplayAreaWatcherStatus { + var value: __x_ABI_CMicrosoft_CUI_CWindowing_CDisplayAreaWatcherStatus = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIDisplayAreaWatcher.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Status(pThis, &value)) + } + return value + } + + internal func StartImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIDisplayAreaWatcher.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Start(pThis)) + } + } + + internal func StopImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIDisplayAreaWatcher.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Stop(pThis)) + } + } + + internal func add_AddedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIDisplayAreaWatcher.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Added(pThis, _handler, &token)) + } + return token + } + + internal func remove_AddedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIDisplayAreaWatcher.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Added(pThis, token)) + } + } + + internal func add_EnumerationCompletedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher_IInspectableWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIDisplayAreaWatcher.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_EnumerationCompleted(pThis, _handler, &token)) + } + return token + } + + internal func remove_EnumerationCompletedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIDisplayAreaWatcher.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_EnumerationCompleted(pThis, token)) + } + } + + internal func add_RemovedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIDisplayAreaWatcher.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Removed(pThis, _handler, &token)) + } + return token + } + + internal func remove_RemovedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIDisplayAreaWatcher.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Removed(pThis, token)) + } + } + + internal func add_StoppedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher_IInspectableWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIDisplayAreaWatcher.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Stopped(pThis, _handler, &token)) + } + return token + } + + internal func remove_StoppedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIDisplayAreaWatcher.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Stopped(pThis, token)) + } + } + + internal func add_UpdatedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIDisplayAreaWatcher.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Updated(pThis, _handler, &token)) + } + return token + } + + internal func remove_UpdatedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIDisplayAreaWatcher.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Updated(pThis, token)) + } + } + + } + + public class IFullScreenPresenter: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CWindowing_CIFullScreenPresenter } + + } + + public class IFullScreenPresenterStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CWindowing_CIFullScreenPresenterStatics } + + internal func CreateImpl() throws -> WinAppSDK.FullScreenPresenter? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIFullScreenPresenterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Create(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IOverlappedPresenter: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CWindowing_CIOverlappedPresenter } + + internal func get_HasBorderImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIOverlappedPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HasBorder(pThis, &value)) + } + return .init(from: value) + } + + internal func get_HasTitleBarImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIOverlappedPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HasTitleBar(pThis, &value)) + } + return .init(from: value) + } + + internal func get_IsAlwaysOnTopImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIOverlappedPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsAlwaysOnTop(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsAlwaysOnTopImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIOverlappedPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsAlwaysOnTop(pThis, .init(from: value))) + } + } + + internal func get_IsMaximizableImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIOverlappedPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsMaximizable(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsMaximizableImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIOverlappedPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsMaximizable(pThis, .init(from: value))) + } + } + + internal func get_IsMinimizableImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIOverlappedPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsMinimizable(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsMinimizableImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIOverlappedPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsMinimizable(pThis, .init(from: value))) + } + } + + internal func get_IsModalImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIOverlappedPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsModal(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsModalImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIOverlappedPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsModal(pThis, .init(from: value))) + } + } + + internal func get_IsResizableImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIOverlappedPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsResizable(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsResizableImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIOverlappedPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsResizable(pThis, .init(from: value))) + } + } + + internal func get_StateImpl() throws -> WinAppSDK.OverlappedPresenterState { + var value: __x_ABI_CMicrosoft_CUI_CWindowing_COverlappedPresenterState = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIOverlappedPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_State(pThis, &value)) + } + return value + } + + internal func MaximizeImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIOverlappedPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Maximize(pThis)) + } + } + + internal func MinimizeImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIOverlappedPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Minimize(pThis)) + } + } + + internal func RestoreImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIOverlappedPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Restore(pThis)) + } + } + + internal func SetBorderAndTitleBarImpl(_ hasBorder: Bool, _ hasTitleBar: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIOverlappedPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetBorderAndTitleBar(pThis, .init(from: hasBorder), .init(from: hasTitleBar))) + } + } + + } + + public class IOverlappedPresenter2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CWindowing_CIOverlappedPresenter2 } + + internal func MinimizeWithActivationImpl(_ activateWindow: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIOverlappedPresenter2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.MinimizeWithActivation(pThis, .init(from: activateWindow))) + } + } + + internal func RestoreWithActivationImpl(_ activateWindow: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIOverlappedPresenter2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RestoreWithActivation(pThis, .init(from: activateWindow))) + } + } + + } + + public class IOverlappedPresenterStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CWindowing_CIOverlappedPresenterStatics } + + internal func CreateImpl() throws -> WinAppSDK.OverlappedPresenter? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIOverlappedPresenterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Create(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateForContextMenuImpl() throws -> WinAppSDK.OverlappedPresenter? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIOverlappedPresenterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateForContextMenu(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateForDialogImpl() throws -> WinAppSDK.OverlappedPresenter? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIOverlappedPresenterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateForDialog(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateForToolWindowImpl() throws -> WinAppSDK.OverlappedPresenter? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIOverlappedPresenterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateForToolWindow(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IOverlappedPresenterStatics2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CWindowing_CIOverlappedPresenterStatics2 } + + internal func get_RequestedStartupStateImpl() throws -> WinAppSDK.OverlappedPresenterState { + var value: __x_ABI_CMicrosoft_CUI_CWindowing_COverlappedPresenterState = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CWindowing_CIOverlappedPresenterStatics2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RequestedStartupState(pThis, &value)) + } + return value + } + + } + +} diff --git a/Sources/WinAppSDK/Microsoft.UI.Windowing+Impl.swift b/Sources/WinAppSDK/Microsoft.UI.Windowing+Impl.swift new file mode 100644 index 0000000..38fecf9 --- /dev/null +++ b/Sources/WinAppSDK/Microsoft.UI.Windowing+Impl.swift @@ -0,0 +1,8 @@ +// WARNING: Please don't edit this file. It was generated by Swift/WinRT v0.0.1 +// swiftlint:disable all +import Foundation +@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation +import CWinRT + +public enum __IMPL_Microsoft_UI_Windowing { +} diff --git a/Sources/WinAppSDK/Microsoft.UI.Windowing.swift b/Sources/WinAppSDK/Microsoft.UI.Windowing.swift new file mode 100644 index 0000000..a48c6a5 --- /dev/null +++ b/Sources/WinAppSDK/Microsoft.UI.Windowing.swift @@ -0,0 +1,1026 @@ +// WARNING: Please don't edit this file. It was generated by Swift/WinRT v0.0.1 +// swiftlint:disable all +import Foundation +@_spi(WinRTInternal) @_spi(WinRTImplements) import UWP +@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation +import CWinRT + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindowpresenterkind) +public typealias AppWindowPresenterKind = __x_ABI_CMicrosoft_CUI_CWindowing_CAppWindowPresenterKind +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.displayareafallback) +public typealias DisplayAreaFallback = __x_ABI_CMicrosoft_CUI_CWindowing_CDisplayAreaFallback +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.displayareawatcherstatus) +public typealias DisplayAreaWatcherStatus = __x_ABI_CMicrosoft_CUI_CWindowing_CDisplayAreaWatcherStatus +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.iconshowoptions) +public typealias IconShowOptions = __x_ABI_CMicrosoft_CUI_CWindowing_CIconShowOptions +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.overlappedpresenterstate) +public typealias OverlappedPresenterState = __x_ABI_CMicrosoft_CUI_CWindowing_COverlappedPresenterState +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.titlebarheightoption) +public typealias TitleBarHeightOption = __x_ABI_CMicrosoft_CUI_CWindowing_CTitleBarHeightOption +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindow) +public final class AppWindow : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Windowing.IAppWindow + private typealias CABI = __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindow + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindow>?) -> AppWindow? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + private static let _IAppWindowStatics: __ABI_Microsoft_UI_Windowing.IAppWindowStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Windowing.AppWindow")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindow.create) + public static func create() -> AppWindow! { + return try! _IAppWindowStatics.CreateImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindow.create) + public static func create(_ appWindowPresenter: AppWindowPresenter!) -> AppWindow! { + return try! _IAppWindowStatics.CreateWithPresenterImpl(appWindowPresenter) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindow.create) + public static func create(_ appWindowPresenter: AppWindowPresenter!, _ ownerWindowId: WinAppSDK.WindowId) -> AppWindow! { + return try! _IAppWindowStatics.CreateWithPresenterAndOwnerImpl(appWindowPresenter, ownerWindowId) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindow.getfromwindowid) + public static func getFromWindowId(_ windowId: WinAppSDK.WindowId) -> AppWindow! { + return try! _IAppWindowStatics.GetFromWindowIdImpl(windowId) + } + + private static let _IAppWindowStatics2: __ABI_Microsoft_UI_Windowing.IAppWindowStatics2 = try! RoGetActivationFactory(HString("Microsoft.UI.Windowing.AppWindow")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindow.create) + public static func create(_ appWindowPresenter: AppWindowPresenter!, _ ownerWindowId: WinAppSDK.WindowId, _ DispatcherQueue: WinAppSDK.DispatcherQueue!) -> AppWindow! { + return try! _IAppWindowStatics2.CreateWithDispatcherQueueImpl(appWindowPresenter, ownerWindowId, DispatcherQueue) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindow.destroy) + public func destroy() throws { + try _default.DestroyImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindow.hide) + public func hide() throws { + try _default.HideImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindow.move) + public func move(_ position: UWP.PointInt32) throws { + try _default.MoveImpl(position) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindow.moveandresize) + public func moveAndResize(_ rect: UWP.RectInt32) throws { + try _default.MoveAndResizeImpl(rect) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindow.moveandresize) + public func moveAndResize(_ rect: UWP.RectInt32, _ displayarea: DisplayArea!) throws { + try _default.MoveAndResizeRelativeToDisplayAreaImpl(rect, displayarea) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindow.resize) + public func resize(_ size: UWP.SizeInt32) throws { + try _default.ResizeImpl(size) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindow.seticon) + public func setIcon(_ iconPath: String) throws { + try _default.SetIconImpl(iconPath) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindow.seticon) + public func setIcon(_ iconId: WinAppSDK.IconId) throws { + try _default.SetIconWithIconIdImpl(iconId) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindow.setpresenter) + public func setPresenter(_ appWindowPresenter: AppWindowPresenter!) throws { + try _default.SetPresenterImpl(appWindowPresenter) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindow.setpresenter) + public func setPresenter(_ appWindowPresenterKind: AppWindowPresenterKind) throws { + try _default.SetPresenterByKindImpl(appWindowPresenterKind) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindow.show) + public func show() throws { + try _default.ShowImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindow.show) + public func show(_ activateWindow: Bool) throws { + try _default.ShowWithActivationImpl(activateWindow) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindow.id) + public var id : WinAppSDK.WindowId { + get { try! _default.get_IdImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindow.isshowninswitchers) + public var isShownInSwitchers : Bool { + get { try! _default.get_IsShownInSwitchersImpl() } + set { try! _default.put_IsShownInSwitchersImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindow.isvisible) + public var isVisible : Bool { + get { try! _default.get_IsVisibleImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindow.ownerwindowid) + public var ownerWindowId : WinAppSDK.WindowId { + get { try! _default.get_OwnerWindowIdImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindow.position) + public var position : UWP.PointInt32 { + get { try! _default.get_PositionImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindow.presenter) + public var presenter : AppWindowPresenter! { + get { try! _default.get_PresenterImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindow.size) + public var size : UWP.SizeInt32 { + get { try! _default.get_SizeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindow.title) + public var title : String { + get { try! _default.get_TitleImpl() } + set { try! _default.put_TitleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindow.titlebar) + public var titleBar : AppWindowTitleBar! { + get { try! _default.get_TitleBarImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindow.changed) + public lazy var changed : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ChangedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ChangedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindow.closing) + public lazy var closing : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ClosingImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ClosingImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindow.destroying) + public lazy var destroying : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_DestroyingImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_DestroyingImpl($0) + } + ) + }() + + private lazy var _IAppWindow2: __ABI_Microsoft_UI_Windowing.IAppWindow2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindow.moveinzorderatbottom) + public func moveInZOrderAtBottom() throws { + try _IAppWindow2.MoveInZOrderAtBottomImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindow.moveinzorderattop) + public func moveInZOrderAtTop() throws { + try _IAppWindow2.MoveInZOrderAtTopImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindow.moveinzorderbelow) + public func moveInZOrderBelow(_ windowId: WinAppSDK.WindowId) throws { + try _IAppWindow2.MoveInZOrderBelowImpl(windowId) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindow.resizeclient) + public func resizeClient(_ size: UWP.SizeInt32) throws { + try _IAppWindow2.ResizeClientImpl(size) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindow.showoncewithrequestedstartupstate) + public func showOnceWithRequestedStartupState() throws { + try _IAppWindow2.ShowOnceWithRequestedStartupStateImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindow.clientsize) + public var clientSize : UWP.SizeInt32 { + get { try! _IAppWindow2.get_ClientSizeImpl() } + } + + private lazy var _IAppWindow3: __ABI_Microsoft_UI_Windowing.IAppWindow3! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindow.associatewithdispatcherqueue) + public func associateWithDispatcherQueue(_ dispatcherQueue: WinAppSDK.DispatcherQueue!) throws { + try _IAppWindow3.AssociateWithDispatcherQueueImpl(dispatcherQueue) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindow.dispatcherqueue) + public var dispatcherQueue : WinAppSDK.DispatcherQueue! { + get { try! _IAppWindow3.get_DispatcherQueueImpl() } + } + + deinit { + _default = nil + _IAppWindow2 = nil + _IAppWindow3 = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindowchangedeventargs) +public final class AppWindowChangedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Windowing.IAppWindowChangedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowChangedEventArgs + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowChangedEventArgs>?) -> AppWindowChangedEventArgs? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindowchangedeventargs.didpositionchange) + public var didPositionChange : Bool { + get { try! _default.get_DidPositionChangeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindowchangedeventargs.didpresenterchange) + public var didPresenterChange : Bool { + get { try! _default.get_DidPresenterChangeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindowchangedeventargs.didsizechange) + public var didSizeChange : Bool { + get { try! _default.get_DidSizeChangeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindowchangedeventargs.didvisibilitychange) + public var didVisibilityChange : Bool { + get { try! _default.get_DidVisibilityChangeImpl() } + } + + private lazy var _IAppWindowChangedEventArgs2: __ABI_Microsoft_UI_Windowing.IAppWindowChangedEventArgs2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindowchangedeventargs.didzorderchange) + public var didZOrderChange : Bool { + get { try! _IAppWindowChangedEventArgs2.get_DidZOrderChangeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindowchangedeventargs.iszorderatbottom) + public var isZOrderAtBottom : Bool { + get { try! _IAppWindowChangedEventArgs2.get_IsZOrderAtBottomImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindowchangedeventargs.iszorderattop) + public var isZOrderAtTop : Bool { + get { try! _IAppWindowChangedEventArgs2.get_IsZOrderAtTopImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindowchangedeventargs.zorderbelowwindowid) + public var zorderBelowWindowId : WinAppSDK.WindowId { + get { try! _IAppWindowChangedEventArgs2.get_ZOrderBelowWindowIdImpl() } + } + + deinit { + _default = nil + _IAppWindowChangedEventArgs2 = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindowclosingeventargs) +public final class AppWindowClosingEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Windowing.IAppWindowClosingEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowClosingEventArgs + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowClosingEventArgs>?) -> AppWindowClosingEventArgs? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindowclosingeventargs.cancel) + public var cancel : Bool { + get { try! _default.get_CancelImpl() } + set { try! _default.put_CancelImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindowpresenter) +open class AppWindowPresenter : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Windowing.IAppWindowPresenter + private typealias CABI = __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowPresenter + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override open func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowPresenter>?) -> AppWindowPresenter? { + guard let abi = abi else { return nil } + return UnsealedWinRTClassWrapper.unwrapFrom(base: abi) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + @_spi(WinRTInternal) + public init( + composing: Composable.Type, + _ createCallback: (UnsealedWinRTClassWrapper?, inout WindowsFoundation.IInspectable?) -> Composable.Default.SwiftABI) + { + super.init() + MakeComposed(composing: composing, (self as! Composable.Class), createCallback) + } + override open func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + return super.queryInterface(iid) + } + private static var _IAppWindowPresenterFactory : __ABI_Microsoft_UI_Windowing.IAppWindowPresenterFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Windowing.AppWindowPresenter")) + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindowpresenter.kind) + public var kind : AppWindowPresenterKind { + get { try! _default.get_KindImpl() } + } + + internal enum IAppWindowPresenter : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = AppWindowPresenter + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowPresenter + internal typealias SwiftABI = __ABI_Microsoft_UI_Windowing.IAppWindowPresenter + } + } + internal typealias Composable = IAppWindowPresenter + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindowtitlebar) +public final class AppWindowTitleBar : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Windowing.IAppWindowTitleBar + private typealias CABI = __x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowTitleBar + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CWindowing_CIAppWindowTitleBar>?) -> AppWindowTitleBar? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + private static let _IAppWindowTitleBarStatics: __ABI_Microsoft_UI_Windowing.IAppWindowTitleBarStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Windowing.AppWindowTitleBar")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindowtitlebar.iscustomizationsupported) + public static func isCustomizationSupported() -> Bool { + return try! _IAppWindowTitleBarStatics.IsCustomizationSupportedImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindowtitlebar.resettodefault) + public func resetToDefault() throws { + try _default.ResetToDefaultImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindowtitlebar.backgroundcolor) + public var backgroundColor : UWP.Color? { + get { try! _default.get_BackgroundColorImpl() } + set { try! _default.put_BackgroundColorImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindowtitlebar.buttonbackgroundcolor) + public var buttonBackgroundColor : UWP.Color? { + get { try! _default.get_ButtonBackgroundColorImpl() } + set { try! _default.put_ButtonBackgroundColorImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindowtitlebar.buttonforegroundcolor) + public var buttonForegroundColor : UWP.Color? { + get { try! _default.get_ButtonForegroundColorImpl() } + set { try! _default.put_ButtonForegroundColorImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindowtitlebar.buttonhoverbackgroundcolor) + public var buttonHoverBackgroundColor : UWP.Color? { + get { try! _default.get_ButtonHoverBackgroundColorImpl() } + set { try! _default.put_ButtonHoverBackgroundColorImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindowtitlebar.buttonhoverforegroundcolor) + public var buttonHoverForegroundColor : UWP.Color? { + get { try! _default.get_ButtonHoverForegroundColorImpl() } + set { try! _default.put_ButtonHoverForegroundColorImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindowtitlebar.buttoninactivebackgroundcolor) + public var buttonInactiveBackgroundColor : UWP.Color? { + get { try! _default.get_ButtonInactiveBackgroundColorImpl() } + set { try! _default.put_ButtonInactiveBackgroundColorImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindowtitlebar.buttoninactiveforegroundcolor) + public var buttonInactiveForegroundColor : UWP.Color? { + get { try! _default.get_ButtonInactiveForegroundColorImpl() } + set { try! _default.put_ButtonInactiveForegroundColorImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindowtitlebar.buttonpressedbackgroundcolor) + public var buttonPressedBackgroundColor : UWP.Color? { + get { try! _default.get_ButtonPressedBackgroundColorImpl() } + set { try! _default.put_ButtonPressedBackgroundColorImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindowtitlebar.buttonpressedforegroundcolor) + public var buttonPressedForegroundColor : UWP.Color? { + get { try! _default.get_ButtonPressedForegroundColorImpl() } + set { try! _default.put_ButtonPressedForegroundColorImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindowtitlebar.extendscontentintotitlebar) + public var extendsContentIntoTitleBar : Bool { + get { try! _default.get_ExtendsContentIntoTitleBarImpl() } + set { try! _default.put_ExtendsContentIntoTitleBarImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindowtitlebar.foregroundcolor) + public var foregroundColor : UWP.Color? { + get { try! _default.get_ForegroundColorImpl() } + set { try! _default.put_ForegroundColorImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindowtitlebar.height) + public var height : Int32 { + get { try! _default.get_HeightImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindowtitlebar.iconshowoptions) + public var iconShowOptions : IconShowOptions { + get { try! _default.get_IconShowOptionsImpl() } + set { try! _default.put_IconShowOptionsImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindowtitlebar.inactivebackgroundcolor) + public var inactiveBackgroundColor : UWP.Color? { + get { try! _default.get_InactiveBackgroundColorImpl() } + set { try! _default.put_InactiveBackgroundColorImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindowtitlebar.inactiveforegroundcolor) + public var inactiveForegroundColor : UWP.Color? { + get { try! _default.get_InactiveForegroundColorImpl() } + set { try! _default.put_InactiveForegroundColorImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindowtitlebar.leftinset) + public var leftInset : Int32 { + get { try! _default.get_LeftInsetImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindowtitlebar.rightinset) + public var rightInset : Int32 { + get { try! _default.get_RightInsetImpl() } + } + + private lazy var _IAppWindowTitleBar2: __ABI_Microsoft_UI_Windowing.IAppWindowTitleBar2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindowtitlebar.preferredheightoption) + public var preferredHeightOption : TitleBarHeightOption { + get { try! _IAppWindowTitleBar2.get_PreferredHeightOptionImpl() } + set { try! _IAppWindowTitleBar2.put_PreferredHeightOptionImpl(newValue) } + } + + deinit { + _default = nil + _IAppWindowTitleBar2 = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.displayarea) +public final class DisplayArea : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Windowing.IDisplayArea + private typealias CABI = __x_ABI_CMicrosoft_CUI_CWindowing_CIDisplayArea + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CWindowing_CIDisplayArea>?) -> DisplayArea? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + private static let _IDisplayAreaStatics: __ABI_Microsoft_UI_Windowing.IDisplayAreaStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Windowing.DisplayArea")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.displayarea.createwatcher) + public static func createWatcher() -> DisplayAreaWatcher! { + return try! _IDisplayAreaStatics.CreateWatcherImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.displayarea.findall) + public static func findAll() -> WindowsFoundation.AnyIVectorView! { + return try! _IDisplayAreaStatics.FindAllImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.displayarea.getfromwindowid) + public static func getFromWindowId(_ windowId: WinAppSDK.WindowId, _ displayAreaFallback: DisplayAreaFallback) -> DisplayArea! { + return try! _IDisplayAreaStatics.GetFromWindowIdImpl(windowId, displayAreaFallback) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.displayarea.getfrompoint) + public static func getFromPoint(_ point: UWP.PointInt32, _ displayAreaFallback: DisplayAreaFallback) -> DisplayArea! { + return try! _IDisplayAreaStatics.GetFromPointImpl(point, displayAreaFallback) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.displayarea.getfromrect) + public static func getFromRect(_ rect: UWP.RectInt32, _ displayAreaFallback: DisplayAreaFallback) -> DisplayArea! { + return try! _IDisplayAreaStatics.GetFromRectImpl(rect, displayAreaFallback) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.displayarea.primary) + public static var primary : DisplayArea! { + get { try! _IDisplayAreaStatics.get_PrimaryImpl() } + } + + private static let _IDisplayAreaStatics2: __ABI_Microsoft_UI_Windowing.IDisplayAreaStatics2 = try! RoGetActivationFactory(HString("Microsoft.UI.Windowing.DisplayArea")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.displayarea.getfromdisplayid) + public static func getFromDisplayId(_ displayId: WinAppSDK.DisplayId) -> DisplayArea! { + return try! _IDisplayAreaStatics2.GetFromDisplayIdImpl(displayId) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.displayarea.displayid) + public var displayId : WinAppSDK.DisplayId { + get { try! _default.get_DisplayIdImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.displayarea.isprimary) + public var isPrimary : Bool { + get { try! _default.get_IsPrimaryImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.displayarea.outerbounds) + public var outerBounds : UWP.RectInt32 { + get { try! _default.get_OuterBoundsImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.displayarea.workarea) + public var workArea : UWP.RectInt32 { + get { try! _default.get_WorkAreaImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.displayareawatcher) +public final class DisplayAreaWatcher : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Windowing.IDisplayAreaWatcher + private typealias CABI = __x_ABI_CMicrosoft_CUI_CWindowing_CIDisplayAreaWatcher + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CWindowing_CIDisplayAreaWatcher>?) -> DisplayAreaWatcher? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.displayareawatcher.start) + public func start() throws { + try _default.StartImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.displayareawatcher.stop) + public func stop() throws { + try _default.StopImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.displayareawatcher.status) + public var status : DisplayAreaWatcherStatus { + get { try! _default.get_StatusImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.displayareawatcher.added) + public lazy var added : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_AddedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_AddedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.displayareawatcher.enumerationcompleted) + public lazy var enumerationCompleted : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_EnumerationCompletedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_EnumerationCompletedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.displayareawatcher.removed) + public lazy var removed : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_RemovedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_RemovedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.displayareawatcher.stopped) + public lazy var stopped : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_StoppedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_StoppedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.displayareawatcher.updated) + public lazy var updated : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_UpdatedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_UpdatedImpl($0) + } + ) + }() + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.fullscreenpresenter) +public final class FullScreenPresenter : WinAppSDK.AppWindowPresenter { + private typealias SwiftABI = __ABI_Microsoft_UI_Windowing.IFullScreenPresenter + private typealias CABI = __x_ABI_CMicrosoft_CUI_CWindowing_CIFullScreenPresenter + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CWindowing_CIFullScreenPresenter>?) -> FullScreenPresenter? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + private static let _IFullScreenPresenterStatics: __ABI_Microsoft_UI_Windowing.IFullScreenPresenterStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Windowing.FullScreenPresenter")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.fullscreenpresenter.create) + public static func create() -> FullScreenPresenter! { + return try! _IFullScreenPresenterStatics.CreateImpl() + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.overlappedpresenter) +public final class OverlappedPresenter : WinAppSDK.AppWindowPresenter { + private typealias SwiftABI = __ABI_Microsoft_UI_Windowing.IOverlappedPresenter + private typealias CABI = __x_ABI_CMicrosoft_CUI_CWindowing_CIOverlappedPresenter + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CWindowing_CIOverlappedPresenter>?) -> OverlappedPresenter? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + override public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi: fromAbi) + } + + private static let _IOverlappedPresenterStatics: __ABI_Microsoft_UI_Windowing.IOverlappedPresenterStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Windowing.OverlappedPresenter")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.overlappedpresenter.create) + public static func create() -> OverlappedPresenter! { + return try! _IOverlappedPresenterStatics.CreateImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.overlappedpresenter.createforcontextmenu) + public static func createForContextMenu() -> OverlappedPresenter! { + return try! _IOverlappedPresenterStatics.CreateForContextMenuImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.overlappedpresenter.createfordialog) + public static func createForDialog() -> OverlappedPresenter! { + return try! _IOverlappedPresenterStatics.CreateForDialogImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.overlappedpresenter.createfortoolwindow) + public static func createForToolWindow() -> OverlappedPresenter! { + return try! _IOverlappedPresenterStatics.CreateForToolWindowImpl() + } + + private static let _IOverlappedPresenterStatics2: __ABI_Microsoft_UI_Windowing.IOverlappedPresenterStatics2 = try! RoGetActivationFactory(HString("Microsoft.UI.Windowing.OverlappedPresenter")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.overlappedpresenter.requestedstartupstate) + public static var requestedStartupState : OverlappedPresenterState { + get { try! _IOverlappedPresenterStatics2.get_RequestedStartupStateImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.overlappedpresenter.maximize) + public func maximize() throws { + try _default.MaximizeImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.overlappedpresenter.minimize) + public func minimize() throws { + try _default.MinimizeImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.overlappedpresenter.restore) + public func restore() throws { + try _default.RestoreImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.overlappedpresenter.setborderandtitlebar) + public func setBorderAndTitleBar(_ hasBorder: Bool, _ hasTitleBar: Bool) throws { + try _default.SetBorderAndTitleBarImpl(hasBorder, hasTitleBar) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.overlappedpresenter.hasborder) + public var hasBorder : Bool { + get { try! _default.get_HasBorderImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.overlappedpresenter.hastitlebar) + public var hasTitleBar : Bool { + get { try! _default.get_HasTitleBarImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.overlappedpresenter.isalwaysontop) + public var isAlwaysOnTop : Bool { + get { try! _default.get_IsAlwaysOnTopImpl() } + set { try! _default.put_IsAlwaysOnTopImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.overlappedpresenter.ismaximizable) + public var isMaximizable : Bool { + get { try! _default.get_IsMaximizableImpl() } + set { try! _default.put_IsMaximizableImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.overlappedpresenter.isminimizable) + public var isMinimizable : Bool { + get { try! _default.get_IsMinimizableImpl() } + set { try! _default.put_IsMinimizableImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.overlappedpresenter.ismodal) + public var isModal : Bool { + get { try! _default.get_IsModalImpl() } + set { try! _default.put_IsModalImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.overlappedpresenter.isresizable) + public var isResizable : Bool { + get { try! _default.get_IsResizableImpl() } + set { try! _default.put_IsResizableImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.overlappedpresenter.state) + public var state : OverlappedPresenterState { + get { try! _default.get_StateImpl() } + } + + private lazy var _IOverlappedPresenter2: __ABI_Microsoft_UI_Windowing.IOverlappedPresenter2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.overlappedpresenter.minimize) + public func minimize(_ activateWindow: Bool) throws { + try _IOverlappedPresenter2.MinimizeWithActivationImpl(activateWindow) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.overlappedpresenter.restore) + public func restore(_ activateWindow: Bool) throws { + try _IOverlappedPresenter2.RestoreWithActivationImpl(activateWindow) + } + + deinit { + _default = nil + _IOverlappedPresenter2 = nil + } +} + +extension WinAppSDK.AppWindowPresenterKind { + public static var `default` : WinAppSDK.AppWindowPresenterKind { + __x_ABI_CMicrosoft_CUI_CWindowing_CAppWindowPresenterKind_Default + } + public static var compactOverlay : WinAppSDK.AppWindowPresenterKind { + __x_ABI_CMicrosoft_CUI_CWindowing_CAppWindowPresenterKind_CompactOverlay + } + public static var fullScreen : WinAppSDK.AppWindowPresenterKind { + __x_ABI_CMicrosoft_CUI_CWindowing_CAppWindowPresenterKind_FullScreen + } + public static var overlapped : WinAppSDK.AppWindowPresenterKind { + __x_ABI_CMicrosoft_CUI_CWindowing_CAppWindowPresenterKind_Overlapped + } +} +extension WinAppSDK.AppWindowPresenterKind: @retroactive Hashable, @retroactive Codable {} + +extension WinAppSDK.DisplayAreaFallback { + public static var none : WinAppSDK.DisplayAreaFallback { + __x_ABI_CMicrosoft_CUI_CWindowing_CDisplayAreaFallback_None + } + public static var primary : WinAppSDK.DisplayAreaFallback { + __x_ABI_CMicrosoft_CUI_CWindowing_CDisplayAreaFallback_Primary + } + public static var nearest : WinAppSDK.DisplayAreaFallback { + __x_ABI_CMicrosoft_CUI_CWindowing_CDisplayAreaFallback_Nearest + } +} +extension WinAppSDK.DisplayAreaFallback: @retroactive Hashable, @retroactive Codable {} + +extension WinAppSDK.DisplayAreaWatcherStatus { + public static var created : WinAppSDK.DisplayAreaWatcherStatus { + __x_ABI_CMicrosoft_CUI_CWindowing_CDisplayAreaWatcherStatus_Created + } + public static var started : WinAppSDK.DisplayAreaWatcherStatus { + __x_ABI_CMicrosoft_CUI_CWindowing_CDisplayAreaWatcherStatus_Started + } + public static var enumerationCompleted : WinAppSDK.DisplayAreaWatcherStatus { + __x_ABI_CMicrosoft_CUI_CWindowing_CDisplayAreaWatcherStatus_EnumerationCompleted + } + public static var stopping : WinAppSDK.DisplayAreaWatcherStatus { + __x_ABI_CMicrosoft_CUI_CWindowing_CDisplayAreaWatcherStatus_Stopping + } + public static var stopped : WinAppSDK.DisplayAreaWatcherStatus { + __x_ABI_CMicrosoft_CUI_CWindowing_CDisplayAreaWatcherStatus_Stopped + } + public static var aborted : WinAppSDK.DisplayAreaWatcherStatus { + __x_ABI_CMicrosoft_CUI_CWindowing_CDisplayAreaWatcherStatus_Aborted + } +} +extension WinAppSDK.DisplayAreaWatcherStatus: @retroactive Hashable, @retroactive Codable {} + +extension WinAppSDK.IconShowOptions { + public static var showIconAndSystemMenu : WinAppSDK.IconShowOptions { + __x_ABI_CMicrosoft_CUI_CWindowing_CIconShowOptions_ShowIconAndSystemMenu + } + public static var hideIconAndSystemMenu : WinAppSDK.IconShowOptions { + __x_ABI_CMicrosoft_CUI_CWindowing_CIconShowOptions_HideIconAndSystemMenu + } +} +extension WinAppSDK.IconShowOptions: @retroactive Hashable, @retroactive Codable {} + +extension WinAppSDK.OverlappedPresenterState { + public static var maximized : WinAppSDK.OverlappedPresenterState { + __x_ABI_CMicrosoft_CUI_CWindowing_COverlappedPresenterState_Maximized + } + public static var minimized : WinAppSDK.OverlappedPresenterState { + __x_ABI_CMicrosoft_CUI_CWindowing_COverlappedPresenterState_Minimized + } + public static var restored : WinAppSDK.OverlappedPresenterState { + __x_ABI_CMicrosoft_CUI_CWindowing_COverlappedPresenterState_Restored + } +} +extension WinAppSDK.OverlappedPresenterState: @retroactive Hashable, @retroactive Codable {} + +extension WinAppSDK.TitleBarHeightOption { + public static var standard : WinAppSDK.TitleBarHeightOption { + __x_ABI_CMicrosoft_CUI_CWindowing_CTitleBarHeightOption_Standard + } + public static var tall : WinAppSDK.TitleBarHeightOption { + __x_ABI_CMicrosoft_CUI_CWindowing_CTitleBarHeightOption_Tall + } + public static var collapsed : WinAppSDK.TitleBarHeightOption { + __x_ABI_CMicrosoft_CUI_CWindowing_CTitleBarHeightOption_Collapsed + } +} +extension WinAppSDK.TitleBarHeightOption: @retroactive Hashable, @retroactive Codable {} + diff --git a/Sources/WinAppSDK/Microsoft.UI.swift b/Sources/WinAppSDK/Microsoft.UI.swift new file mode 100644 index 0000000..659f919 --- /dev/null +++ b/Sources/WinAppSDK/Microsoft.UI.swift @@ -0,0 +1,76 @@ +// WARNING: Please don't edit this file. It was generated by Swift/WinRT v0.0.1 +// swiftlint:disable all +import Foundation +@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation +import CWinRT + +public typealias ClosableNotifierHandler = () -> () +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.displayid) +public struct DisplayId: Hashable, Codable { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.displayid.value) + public var value: UInt64 = 0 + public init() {} + public init(value: UInt64) { + self.value = value + } + public static func from(abi: __x_ABI_CMicrosoft_CUI_CDisplayId) -> DisplayId { + .init(value: abi.Value) + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.iconid) +public struct IconId: Hashable, Codable { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.iconid.value) + public var value: UInt64 = 0 + public init() {} + public init(value: UInt64) { + self.value = value + } + public static func from(abi: __x_ABI_CMicrosoft_CUI_CIconId) -> IconId { + .init(value: abi.Value) + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowid) +public struct WindowId: Hashable, Codable { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowid.value) + public var value: UInt64 = 0 + public init() {} + public init(value: UInt64) { + self.value = value + } + public static func from(abi: __x_ABI_CMicrosoft_CUI_CWindowId) -> WindowId { + .init(value: abi.Value) + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.iclosablenotifier) +public protocol IClosableNotifier : WinRTInterface { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.iclosablenotifier.isclosed) + var isClosed: Bool { get } + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.iclosablenotifier.closed) + var closed: Event { get } + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.iclosablenotifier.frameworkclosed) + var frameworkClosed: Event { get } +} + +public extension EventSource where Handler == ClosableNotifierHandler { + func invoke() { + for handler in getInvocationList() { + handler() + } + } +} + +extension IClosableNotifier { + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + switch iid { + case __ABI_Microsoft_UI.IClosableNotifierWrapper.IID: + let wrapper = __ABI_Microsoft_UI.IClosableNotifierWrapper(self) + return wrapper!.queryInterface(iid) + default: return nil + } + } +} +public typealias AnyIClosableNotifier = any IClosableNotifier + diff --git a/Sources/WinAppSDK/Microsoft.Windows.AppLifecycle+ABI.swift b/Sources/WinAppSDK/Microsoft.Windows.AppLifecycle+ABI.swift new file mode 100644 index 0000000..47c24bb --- /dev/null +++ b/Sources/WinAppSDK/Microsoft.Windows.AppLifecycle+ABI.swift @@ -0,0 +1,205 @@ +// WARNING: Please don't edit this file. It was generated by Swift/WinRT v0.0.1 +// swiftlint:disable all +import Foundation +@_spi(WinRTInternal) @_spi(WinRTImplements) import UWP +@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation +import CWinRT + +private var IID___x_ABI_CMicrosoft_CWindows_CAppLifecycle_CIActivationRegistrationManagerStatics: WindowsFoundation.IID { + .init(Data1: 0x5AC4E92E, Data2: 0x017B, Data3: 0x5D68, Data4: ( 0x81,0x98,0xF6,0x86,0x36,0xAB,0x99,0xD3 ))// 5AC4E92E-017B-5D68-8198-F68636AB99D3 +} + +private var IID___x_ABI_CMicrosoft_CWindows_CAppLifecycle_CIAppActivationArguments: WindowsFoundation.IID { + .init(Data1: 0x14F99EAF, Data2: 0x1580, Data3: 0x5062, Data4: ( 0xBD,0xC8,0xD5,0xD1,0xC3,0x11,0x38,0xFB ))// 14F99EAF-1580-5062-BDC8-D5D1C31138FB +} + +private var IID___x_ABI_CMicrosoft_CWindows_CAppLifecycle_CIAppInstance: WindowsFoundation.IID { + .init(Data1: 0x75766AE4, Data2: 0x0239, Data3: 0x5A26, Data4: ( 0xB9,0xDA,0xD5,0xBF,0xC7,0x5A,0x48,0x66 ))// 75766AE4-0239-5A26-B9DA-D5BFC75A4866 +} + +private var IID___x_ABI_CMicrosoft_CWindows_CAppLifecycle_CIAppInstanceStatics: WindowsFoundation.IID { + .init(Data1: 0x4F414B25, Data2: 0x8330, Data3: 0x5A9B, Data4: ( 0xBB,0xC1,0x82,0x29,0xD4,0x79,0x64,0x9D ))// 4F414B25-8330-5A9B-BBC1-8229D479649D +} + +private var IID___x_ABI_CMicrosoft_CWindows_CAppLifecycle_CIAppInstanceStatics2: WindowsFoundation.IID { + .init(Data1: 0xFE9F1885, Data2: 0x7160, Data3: 0x5397, Data4: ( 0xBA,0x9B,0x58,0x90,0xB2,0x4F,0xDC,0x04 ))// FE9F1885-7160-5397-BA9B-5890B24FDC04 +} + +public enum __ABI_Microsoft_Windows_AppLifecycle { + public class IActivationRegistrationManagerStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CWindows_CAppLifecycle_CIActivationRegistrationManagerStatics } + + internal func RegisterForProtocolActivationImpl(_ scheme: String, _ logo: String, _ displayName: String, _ exePath: String) throws { + let _scheme = try! HString(scheme) + let _logo = try! HString(logo) + let _displayName = try! HString(displayName) + let _exePath = try! HString(exePath) + _ = try perform(as: __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CIActivationRegistrationManagerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RegisterForProtocolActivation(pThis, _scheme.get(), _logo.get(), _displayName.get(), _exePath.get())) + } + } + + internal func RegisterForStartupActivationImpl(_ taskId: String, _ exePath: String) throws { + let _taskId = try! HString(taskId) + let _exePath = try! HString(exePath) + _ = try perform(as: __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CIActivationRegistrationManagerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RegisterForStartupActivation(pThis, _taskId.get(), _exePath.get())) + } + } + + internal func UnregisterForProtocolActivationImpl(_ scheme: String, _ exePath: String) throws { + let _scheme = try! HString(scheme) + let _exePath = try! HString(exePath) + _ = try perform(as: __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CIActivationRegistrationManagerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.UnregisterForProtocolActivation(pThis, _scheme.get(), _exePath.get())) + } + } + + internal func UnregisterForStartupActivationImpl(_ taskId: String) throws { + let _taskId = try! HString(taskId) + _ = try perform(as: __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CIActivationRegistrationManagerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.UnregisterForStartupActivation(pThis, _taskId.get())) + } + } + + } + + public class IAppActivationArguments: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CWindows_CAppLifecycle_CIAppActivationArguments } + + internal func get_KindImpl() throws -> WinAppSDK.ExtendedActivationKind { + var value: __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CExtendedActivationKind = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CIAppActivationArguments.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Kind(pThis, &value)) + } + return value + } + + internal func get_DataImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CIAppActivationArguments.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Data(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + } + + public class IAppInstance: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CWindows_CAppLifecycle_CIAppInstance } + + internal func UnregisterKeyImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CIAppInstance.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.UnregisterKey(pThis)) + } + } + + internal func RedirectActivationToAsyncImpl(_ args: WinAppSDK.AppActivationArguments?) throws -> WindowsFoundation.AnyIAsyncAction? { + let (operation) = try ComPtrs.initialize { operationAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CIAppInstance.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RedirectActivationToAsync(pThis, RawPointer(args), &operationAbi)) + } + } + return __ABI_Windows_Foundation.IAsyncActionWrapper.unwrapFrom(abi: operation) + } + + internal func GetActivatedEventArgsImpl() throws -> WinAppSDK.AppActivationArguments? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CIAppInstance.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetActivatedEventArgs(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func add_ActivatedImpl(_ handler: EventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppActivationArgumentsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CIAppInstance.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Activated(pThis, _handler, &token)) + } + return token + } + + internal func remove_ActivatedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CIAppInstance.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Activated(pThis, token)) + } + } + + internal func get_KeyImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CIAppInstance.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Key(pThis, &value)) + } + return .init(from: value) + } + + internal func get_IsCurrentImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CIAppInstance.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsCurrent(pThis, &value)) + } + return .init(from: value) + } + + internal func get_ProcessIdImpl() throws -> UInt32 { + var value: UINT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CIAppInstance.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ProcessId(pThis, &value)) + } + return value + } + + } + + public class IAppInstanceStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CWindows_CAppLifecycle_CIAppInstanceStatics } + + internal func GetCurrentImpl() throws -> WinAppSDK.AppInstance? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CIAppInstanceStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetCurrent(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func GetInstancesImpl() throws -> WindowsFoundation.AnyIVector? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CIAppInstanceStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetInstances(pThis, &resultAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.unwrapFrom(abi: result) + } + + internal func FindOrRegisterForKeyImpl(_ key: String) throws -> WinAppSDK.AppInstance? { + let (result) = try ComPtrs.initialize { resultAbi in + let _key = try! HString(key) + _ = try perform(as: __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CIAppInstanceStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.FindOrRegisterForKey(pThis, _key.get(), &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IAppInstanceStatics2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CWindows_CAppLifecycle_CIAppInstanceStatics2 } + + internal func RestartImpl(_ arguments: String) throws -> UWP.AppRestartFailureReason { + var result: __x_ABI_CWindows_CApplicationModel_CCore_CAppRestartFailureReason = .init(0) + let _arguments = try! HString(arguments) + _ = try perform(as: __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CIAppInstanceStatics2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Restart(pThis, _arguments.get(), &result)) + } + return result + } + + } + +} diff --git a/Sources/WinAppSDK/Microsoft.Windows.AppLifecycle+Impl.swift b/Sources/WinAppSDK/Microsoft.Windows.AppLifecycle+Impl.swift new file mode 100644 index 0000000..cc744c6 --- /dev/null +++ b/Sources/WinAppSDK/Microsoft.Windows.AppLifecycle+Impl.swift @@ -0,0 +1,8 @@ +// WARNING: Please don't edit this file. It was generated by Swift/WinRT v0.0.1 +// swiftlint:disable all +import Foundation +@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation +import CWinRT + +public enum __IMPL_Microsoft_Windows_AppLifecycle { +} diff --git a/Sources/WinAppSDK/Microsoft.Windows.AppLifecycle.swift b/Sources/WinAppSDK/Microsoft.Windows.AppLifecycle.swift new file mode 100644 index 0000000..6227581 --- /dev/null +++ b/Sources/WinAppSDK/Microsoft.Windows.AppLifecycle.swift @@ -0,0 +1,309 @@ +// WARNING: Please don't edit this file. It was generated by Swift/WinRT v0.0.1 +// swiftlint:disable all +import Foundation +@_spi(WinRTInternal) @_spi(WinRTImplements) import UWP +@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation +import CWinRT + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applifecycle.extendedactivationkind) +public typealias ExtendedActivationKind = __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CExtendedActivationKind +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applifecycle.activationregistrationmanager) +public final class ActivationRegistrationManager { + private static let _IActivationRegistrationManagerStatics: __ABI_Microsoft_Windows_AppLifecycle.IActivationRegistrationManagerStatics = try! RoGetActivationFactory(HString("Microsoft.Windows.AppLifecycle.ActivationRegistrationManager")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applifecycle.activationregistrationmanager.registerforprotocolactivation) + public static func registerForProtocolActivation(_ scheme: String, _ logo: String, _ displayName: String, _ exePath: String) { + try! _IActivationRegistrationManagerStatics.RegisterForProtocolActivationImpl(scheme, logo, displayName, exePath) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applifecycle.activationregistrationmanager.registerforstartupactivation) + public static func registerForStartupActivation(_ taskId: String, _ exePath: String) { + try! _IActivationRegistrationManagerStatics.RegisterForStartupActivationImpl(taskId, exePath) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applifecycle.activationregistrationmanager.unregisterforprotocolactivation) + public static func unregisterForProtocolActivation(_ scheme: String, _ exePath: String) { + try! _IActivationRegistrationManagerStatics.UnregisterForProtocolActivationImpl(scheme, exePath) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applifecycle.activationregistrationmanager.unregisterforstartupactivation) + public static func unregisterForStartupActivation(_ taskId: String) { + try! _IActivationRegistrationManagerStatics.UnregisterForStartupActivationImpl(taskId) + } + +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applifecycle.appactivationarguments) +public final class AppActivationArguments : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_Windows_AppLifecycle.IAppActivationArguments + private typealias CABI = __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CIAppActivationArguments + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CWindows_CAppLifecycle_CIAppActivationArguments>?) -> AppActivationArguments? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applifecycle.appactivationarguments.data) + public var data : Any! { + get { try! _default.get_DataImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applifecycle.appactivationarguments.kind) + public var kind : ExtendedActivationKind { + get { try! _default.get_KindImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applifecycle.appinstance) +public final class AppInstance : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_Windows_AppLifecycle.IAppInstance + private typealias CABI = __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CIAppInstance + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CWindows_CAppLifecycle_CIAppInstance>?) -> AppInstance? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + private static let _IAppInstanceStatics: __ABI_Microsoft_Windows_AppLifecycle.IAppInstanceStatics = try! RoGetActivationFactory(HString("Microsoft.Windows.AppLifecycle.AppInstance")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applifecycle.appinstance.getcurrent) + public static func getCurrent() -> AppInstance! { + return try! _IAppInstanceStatics.GetCurrentImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applifecycle.appinstance.getinstances) + public static func getInstances() -> WindowsFoundation.AnyIVector! { + return try! _IAppInstanceStatics.GetInstancesImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applifecycle.appinstance.findorregisterforkey) + public static func findOrRegisterForKey(_ key: String) -> AppInstance! { + return try! _IAppInstanceStatics.FindOrRegisterForKeyImpl(key) + } + + private static let _IAppInstanceStatics2: __ABI_Microsoft_Windows_AppLifecycle.IAppInstanceStatics2 = try! RoGetActivationFactory(HString("Microsoft.Windows.AppLifecycle.AppInstance")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applifecycle.appinstance.restart) + public static func restart(_ arguments: String) -> UWP.AppRestartFailureReason { + return try! _IAppInstanceStatics2.RestartImpl(arguments) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applifecycle.appinstance.unregisterkey) + public func unregisterKey() throws { + try _default.UnregisterKeyImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applifecycle.appinstance.redirectactivationtoasync) + public func redirectActivationToAsync(_ args: AppActivationArguments!) throws -> WindowsFoundation.AnyIAsyncAction! { + try _default.RedirectActivationToAsyncImpl(args) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applifecycle.appinstance.getactivatedeventargs) + public func getActivatedEventArgs() throws -> AppActivationArguments! { + try _default.GetActivatedEventArgsImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applifecycle.appinstance.iscurrent) + public var isCurrent : Bool { + get { try! _default.get_IsCurrentImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applifecycle.appinstance.key) + public var key : String { + get { try! _default.get_KeyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applifecycle.appinstance.processid) + public var processId : UInt32 { + get { try! _default.get_ProcessIdImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applifecycle.appinstance.activated) + public lazy var activated : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ActivatedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ActivatedImpl($0) + } + ) + }() + + deinit { + _default = nil + } +} + +extension WinAppSDK.ExtendedActivationKind { + public static var launch : WinAppSDK.ExtendedActivationKind { + __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CExtendedActivationKind_Launch + } + public static var search : WinAppSDK.ExtendedActivationKind { + __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CExtendedActivationKind_Search + } + public static var shareTarget : WinAppSDK.ExtendedActivationKind { + __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CExtendedActivationKind_ShareTarget + } + public static var file : WinAppSDK.ExtendedActivationKind { + __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CExtendedActivationKind_File + } + public static var `protocol` : WinAppSDK.ExtendedActivationKind { + __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CExtendedActivationKind_Protocol + } + public static var fileOpenPicker : WinAppSDK.ExtendedActivationKind { + __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CExtendedActivationKind_FileOpenPicker + } + public static var fileSavePicker : WinAppSDK.ExtendedActivationKind { + __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CExtendedActivationKind_FileSavePicker + } + public static var cachedFileUpdater : WinAppSDK.ExtendedActivationKind { + __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CExtendedActivationKind_CachedFileUpdater + } + public static var contactPicker : WinAppSDK.ExtendedActivationKind { + __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CExtendedActivationKind_ContactPicker + } + public static var device : WinAppSDK.ExtendedActivationKind { + __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CExtendedActivationKind_Device + } + public static var printTaskSettings : WinAppSDK.ExtendedActivationKind { + __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CExtendedActivationKind_PrintTaskSettings + } + public static var cameraSettings : WinAppSDK.ExtendedActivationKind { + __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CExtendedActivationKind_CameraSettings + } + public static var restrictedLaunch : WinAppSDK.ExtendedActivationKind { + __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CExtendedActivationKind_RestrictedLaunch + } + public static var appointmentsProvider : WinAppSDK.ExtendedActivationKind { + __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CExtendedActivationKind_AppointmentsProvider + } + public static var contact : WinAppSDK.ExtendedActivationKind { + __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CExtendedActivationKind_Contact + } + public static var lockScreenCall : WinAppSDK.ExtendedActivationKind { + __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CExtendedActivationKind_LockScreenCall + } + public static var voiceCommand : WinAppSDK.ExtendedActivationKind { + __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CExtendedActivationKind_VoiceCommand + } + public static var lockScreen : WinAppSDK.ExtendedActivationKind { + __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CExtendedActivationKind_LockScreen + } + public static var pickerReturned : WinAppSDK.ExtendedActivationKind { + __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CExtendedActivationKind_PickerReturned + } + public static var walletAction : WinAppSDK.ExtendedActivationKind { + __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CExtendedActivationKind_WalletAction + } + public static var pickFileContinuation : WinAppSDK.ExtendedActivationKind { + __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CExtendedActivationKind_PickFileContinuation + } + public static var pickSaveFileContinuation : WinAppSDK.ExtendedActivationKind { + __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CExtendedActivationKind_PickSaveFileContinuation + } + public static var pickFolderContinuation : WinAppSDK.ExtendedActivationKind { + __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CExtendedActivationKind_PickFolderContinuation + } + public static var webAuthenticationBrokerContinuation : WinAppSDK.ExtendedActivationKind { + __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CExtendedActivationKind_WebAuthenticationBrokerContinuation + } + public static var webAccountProvider : WinAppSDK.ExtendedActivationKind { + __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CExtendedActivationKind_WebAccountProvider + } + public static var componentUI : WinAppSDK.ExtendedActivationKind { + __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CExtendedActivationKind_ComponentUI + } + public static var protocolForResults : WinAppSDK.ExtendedActivationKind { + __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CExtendedActivationKind_ProtocolForResults + } + public static var toastNotification : WinAppSDK.ExtendedActivationKind { + __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CExtendedActivationKind_ToastNotification + } + public static var print3DWorkflow : WinAppSDK.ExtendedActivationKind { + __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CExtendedActivationKind_Print3DWorkflow + } + public static var dialReceiver : WinAppSDK.ExtendedActivationKind { + __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CExtendedActivationKind_DialReceiver + } + public static var devicePairing : WinAppSDK.ExtendedActivationKind { + __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CExtendedActivationKind_DevicePairing + } + public static var userDataAccountsProvider : WinAppSDK.ExtendedActivationKind { + __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CExtendedActivationKind_UserDataAccountsProvider + } + public static var filePickerExperience : WinAppSDK.ExtendedActivationKind { + __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CExtendedActivationKind_FilePickerExperience + } + public static var lockScreenComponent : WinAppSDK.ExtendedActivationKind { + __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CExtendedActivationKind_LockScreenComponent + } + public static var contactPanel : WinAppSDK.ExtendedActivationKind { + __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CExtendedActivationKind_ContactPanel + } + public static var printWorkflowForegroundTask : WinAppSDK.ExtendedActivationKind { + __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CExtendedActivationKind_PrintWorkflowForegroundTask + } + public static var gameUIProvider : WinAppSDK.ExtendedActivationKind { + __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CExtendedActivationKind_GameUIProvider + } + public static var startupTask : WinAppSDK.ExtendedActivationKind { + __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CExtendedActivationKind_StartupTask + } + public static var commandLineLaunch : WinAppSDK.ExtendedActivationKind { + __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CExtendedActivationKind_CommandLineLaunch + } + public static var barcodeScannerProvider : WinAppSDK.ExtendedActivationKind { + __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CExtendedActivationKind_BarcodeScannerProvider + } + public static var printSupportJobUI : WinAppSDK.ExtendedActivationKind { + __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CExtendedActivationKind_PrintSupportJobUI + } + public static var printSupportSettingsUI : WinAppSDK.ExtendedActivationKind { + __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CExtendedActivationKind_PrintSupportSettingsUI + } + public static var phoneCallActivation : WinAppSDK.ExtendedActivationKind { + __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CExtendedActivationKind_PhoneCallActivation + } + public static var vpnForeground : WinAppSDK.ExtendedActivationKind { + __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CExtendedActivationKind_VpnForeground + } + public static var push : WinAppSDK.ExtendedActivationKind { + __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CExtendedActivationKind_Push + } + public static var appNotification : WinAppSDK.ExtendedActivationKind { + __x_ABI_CMicrosoft_CWindows_CAppLifecycle_CExtendedActivationKind_AppNotification + } +} +extension WinAppSDK.ExtendedActivationKind: @retroactive Hashable, @retroactive Codable {} + diff --git a/Sources/WinAppSDK/Microsoft.Windows.ApplicationModel.Resources+ABI.swift b/Sources/WinAppSDK/Microsoft.Windows.ApplicationModel.Resources+ABI.swift new file mode 100644 index 0000000..7d1edec --- /dev/null +++ b/Sources/WinAppSDK/Microsoft.Windows.ApplicationModel.Resources+ABI.swift @@ -0,0 +1,385 @@ +// WARNING: Please don't edit this file. It was generated by Swift/WinRT v0.0.1 +// swiftlint:disable all +import Foundation +@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation +import CWinRT + +private var IID___x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceCandidate: WindowsFoundation.IID { + .init(Data1: 0x6C54BC0C, Data2: 0xEF1E, Data3: 0x57B8, Data4: ( 0xB4,0x78,0x34,0xFE,0xCE,0x73,0x73,0x56 ))// 6C54BC0C-EF1E-57B8-B478-34FECE737356 +} + +private var IID___x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceCandidateFactory: WindowsFoundation.IID { + .init(Data1: 0xBB2B30F8, Data2: 0xC19B, Data3: 0x5F43, Data4: ( 0x88,0xD9,0x69,0xAD,0x72,0x8A,0x32,0xF4 ))// BB2B30F8-C19B-5F43-88D9-69AD728A32F4 +} + +private var IID___x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceContext: WindowsFoundation.IID { + .init(Data1: 0x96FB48DC, Data2: 0xF77D, Data3: 0x55FF, Data4: ( 0xAF,0x12,0x34,0x86,0x1E,0x3D,0x49,0x39 ))// 96FB48DC-F77D-55FF-AF12-34861E3D4939 +} + +private var IID___x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceContext2: WindowsFoundation.IID { + .init(Data1: 0x7A3B1158, Data2: 0x798C, Data3: 0x5949, Data4: ( 0x96,0x9D,0x03,0x51,0x0B,0x9C,0xE6,0xCA ))// 7A3B1158-798C-5949-969D-03510B9CE6CA +} + +private var IID___x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceManager: WindowsFoundation.IID { + .init(Data1: 0xAC2291EF, Data2: 0x81BE, Data3: 0x5C99, Data4: ( 0xA0,0xAE,0xBC,0xEE,0x01,0x80,0xB8,0xA8 ))// AC2291EF-81BE-5C99-A0AE-BCEE0180B8A8 +} + +private var IID___x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceManager2: WindowsFoundation.IID { + .init(Data1: 0x7EC10160, Data2: 0xA154, Data3: 0x5C42, Data4: ( 0x82,0x68,0x30,0xE3,0x06,0xB1,0xF5,0x85 ))// 7EC10160-A154-5C42-8268-30E306B1F585 +} + +private var IID___x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceManagerFactory: WindowsFoundation.IID { + .init(Data1: 0xD6ACF18F, Data2: 0x458A, Data3: 0x535B, Data4: ( 0xA5,0xC4,0xAC,0x2D,0xC4,0xE4,0x90,0x99 ))// D6ACF18F-458A-535B-A5C4-AC2DC4E49099 +} + +private var IID___x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceMap: WindowsFoundation.IID { + .init(Data1: 0x4ABBD9BC, Data2: 0xDF4E, Data3: 0x5C7B, Data4: ( 0x81,0x2C,0x7E,0x7B,0xB0,0xC2,0x23,0x77 ))// 4ABBD9BC-DF4E-5C7B-812C-7E7BB0C22377 +} + +private var IID___x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceNotFoundEventArgs: WindowsFoundation.IID { + .init(Data1: 0x64ABB08B, Data2: 0xE77D, Data3: 0x5B26, Data4: ( 0x83,0x0F,0x15,0x94,0x1E,0x0E,0x82,0x00 ))// 64ABB08B-E77D-5B26-830F-15941E0E8200 +} + +public enum __ABI_Microsoft_Windows_ApplicationModel_Resources { + public class IResourceCandidate: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceCandidate } + + internal func get_ValueAsStringImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceCandidate.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ValueAsString(pThis, &value)) + } + return .init(from: value) + } + + internal func get_KindImpl() throws -> WinAppSDK.ResourceCandidateKind { + var value: __x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CResourceCandidateKind = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceCandidate.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Kind(pThis, &value)) + } + return value + } + + internal func get_QualifierValuesImpl() throws -> WindowsFoundation.AnyIMapView? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceCandidate.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_QualifierValues(pThis, &valueAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIMapView_2_HSTRING_HSTRINGWrapper.unwrapFrom(abi: value) + } + + } + + public class IResourceCandidateFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceCandidateFactory } + + internal func CreateInstanceImpl(_ kind: WinAppSDK.ResourceCandidateKind, _ data: String) throws -> IResourceCandidate { + let (value) = try ComPtrs.initialize { valueAbi in + let _data = try! HString(data) + _ = try perform(as: __x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceCandidateFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, kind, _data.get(), &valueAbi)) + } + } + return IResourceCandidate(value!) + } + + } + + public class IResourceContext: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceContext } + + open func get_QualifierValuesImpl() throws -> WindowsFoundation.AnyIMap? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceContext.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_QualifierValues(pThis, &valueAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIMap_2_HSTRING_HSTRINGWrapper.unwrapFrom(abi: value) + } + + } + + internal static var IResourceContextVTable: __x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceContextVtbl = .init( + QueryInterface: { IResourceContextWrapper.queryInterface($0, $1, $2) }, + AddRef: { IResourceContextWrapper.addRef($0) }, + Release: { IResourceContextWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = __ABI_Microsoft_Windows_ApplicationModel_Resources.IResourceContextWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Microsoft.Windows.ApplicationModel.Resources.IResourceContext").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + get_QualifierValues: { + guard let __unwrapped__instance = IResourceContextWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value = __unwrapped__instance.qualifierValues + let valueWrapper = WinAppSDK.__x_ABI_C__FIMap_2_HSTRING_HSTRINGWrapper(value) + valueWrapper?.copyTo($1) + return S_OK + } + ) + + public typealias IResourceContextWrapper = InterfaceWrapperBase<__IMPL_Microsoft_Windows_ApplicationModel_Resources.IResourceContextBridge> + public class IResourceContext2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceContext2 } + + } + + public class IResourceManager: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceManager } + + open func get_MainResourceMapImpl() throws -> WinAppSDK.ResourceMap? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceManager.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MainResourceMap(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + open func CreateResourceContextImpl() throws -> WinAppSDK.ResourceContext? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceManager.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateResourceContext(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + open func add_ResourceNotFoundImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceManager___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceNotFoundEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceManager.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ResourceNotFound(pThis, _handler, &token)) + } + return token + } + + open func remove_ResourceNotFoundImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceManager.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ResourceNotFound(pThis, token)) + } + } + + } + + internal static var IResourceManagerVTable: __x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceManagerVtbl = .init( + QueryInterface: { IResourceManagerWrapper.queryInterface($0, $1, $2) }, + AddRef: { IResourceManagerWrapper.addRef($0) }, + Release: { IResourceManagerWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = __ABI_Microsoft_Windows_ApplicationModel_Resources.IResourceManagerWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Microsoft.Windows.ApplicationModel.Resources.IResourceManager").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + get_MainResourceMap: { + guard let __unwrapped__instance = IResourceManagerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value = __unwrapped__instance.mainResourceMap + value?.copyTo($1) + return S_OK + }, + + CreateResourceContext: { + do { + guard let __unwrapped__instance = IResourceManagerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.createResourceContext() + result?.copyTo($1) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + add_ResourceNotFound: { + guard let __unwrapped__instance = IResourceManagerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + guard let handler = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceManager___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceNotFoundEventArgsWrapper.unwrapFrom(abi: ComPtr($1)) else { return E_INVALIDARG } + let token = __unwrapped__instance.resourceNotFound.addHandler(handler) + $2?.initialize(to: .from(swift: token)) + return S_OK + }, + + remove_ResourceNotFound: { + guard let __unwrapped__instance = IResourceManagerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let token: EventRegistrationToken = $1 + __unwrapped__instance.resourceNotFound.removeHandler(token) + return S_OK + } + ) + + public typealias IResourceManagerWrapper = InterfaceWrapperBase<__IMPL_Microsoft_Windows_ApplicationModel_Resources.IResourceManagerBridge> + public class IResourceManager2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceManager2 } + + } + + public class IResourceManagerFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceManagerFactory } + + internal func CreateInstanceImpl(_ fileName: String) throws -> IResourceManager { + let (value) = try ComPtrs.initialize { valueAbi in + let _fileName = try! HString(fileName) + _ = try perform(as: __x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceManagerFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _fileName.get(), &valueAbi)) + } + } + return IResourceManager(value!) + } + + } + + public class IResourceMap: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceMap } + + internal func get_ResourceCountImpl() throws -> UInt32 { + var value: UINT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceMap.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ResourceCount(pThis, &value)) + } + return value + } + + internal func GetSubtreeImpl(_ reference: String) throws -> WinAppSDK.ResourceMap? { + let (result) = try ComPtrs.initialize { resultAbi in + let _reference = try! HString(reference) + _ = try perform(as: __x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceMap.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetSubtree(pThis, _reference.get(), &resultAbi)) + } + } + return .from(abi: result) + } + + internal func TryGetSubtreeImpl(_ reference: String) throws -> WinAppSDK.ResourceMap? { + let (result) = try ComPtrs.initialize { resultAbi in + let _reference = try! HString(reference) + _ = try perform(as: __x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceMap.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.TryGetSubtree(pThis, _reference.get(), &resultAbi)) + } + } + return .from(abi: result) + } + + internal func GetValueImpl(_ resource: String) throws -> WinAppSDK.ResourceCandidate? { + let (result) = try ComPtrs.initialize { resultAbi in + let _resource = try! HString(resource) + _ = try perform(as: __x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceMap.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetValue(pThis, _resource.get(), &resultAbi)) + } + } + return .from(abi: result) + } + + internal func GetValueWithContextImpl(_ resource: String, _ context: WinAppSDK.ResourceContext?) throws -> WinAppSDK.ResourceCandidate? { + let (result) = try ComPtrs.initialize { resultAbi in + let _resource = try! HString(resource) + _ = try perform(as: __x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceMap.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetValueWithContext(pThis, _resource.get(), RawPointer(context), &resultAbi)) + } + } + return .from(abi: result) + } + + internal func GetValueByIndexImpl(_ index: UInt32) throws -> WindowsFoundation.AnyIKeyValuePair? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceMap.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetValueByIndex(pThis, index, &resultAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceCandidateWrapper.unwrapFrom(abi: result) + } + + internal func GetValueByIndexWithContextImpl(_ index: UInt32, _ context: WinAppSDK.ResourceContext?) throws -> WindowsFoundation.AnyIKeyValuePair? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceMap.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetValueByIndexWithContext(pThis, index, RawPointer(context), &resultAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceCandidateWrapper.unwrapFrom(abi: result) + } + + internal func TryGetValueImpl(_ resource: String) throws -> WinAppSDK.ResourceCandidate? { + let (result) = try ComPtrs.initialize { resultAbi in + let _resource = try! HString(resource) + _ = try perform(as: __x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceMap.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.TryGetValue(pThis, _resource.get(), &resultAbi)) + } + } + return .from(abi: result) + } + + internal func TryGetValueWithContextImpl(_ resource: String, _ context: WinAppSDK.ResourceContext?) throws -> WinAppSDK.ResourceCandidate? { + let (result) = try ComPtrs.initialize { resultAbi in + let _resource = try! HString(resource) + _ = try perform(as: __x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceMap.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.TryGetValueWithContext(pThis, _resource.get(), RawPointer(context), &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IResourceNotFoundEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceNotFoundEventArgs } + + internal func get_ContextImpl() throws -> WinAppSDK.ResourceContext? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceNotFoundEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Context(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_NameImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceNotFoundEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Name(pThis, &value)) + } + return .init(from: value) + } + + internal func SetResolvedCandidateImpl(_ candidate: WinAppSDK.ResourceCandidate?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceNotFoundEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetResolvedCandidate(pThis, RawPointer(candidate))) + } + } + + } + +} diff --git a/Sources/WinAppSDK/Microsoft.Windows.ApplicationModel.Resources+Impl.swift b/Sources/WinAppSDK/Microsoft.Windows.ApplicationModel.Resources+Impl.swift new file mode 100644 index 0000000..68c388a --- /dev/null +++ b/Sources/WinAppSDK/Microsoft.Windows.ApplicationModel.Resources+Impl.swift @@ -0,0 +1,86 @@ +// WARNING: Please don't edit this file. It was generated by Swift/WinRT v0.0.1 +// swiftlint:disable all +import Foundation +@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation +import CWinRT + +public enum __IMPL_Microsoft_Windows_ApplicationModel_Resources { + public enum IResourceContextBridge : AbiInterfaceBridge { + public typealias CABI = __x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceContext + public typealias SwiftABI = __ABI_Microsoft_Windows_ApplicationModel_Resources.IResourceContext + public typealias SwiftProjection = AnyIResourceContext + public static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return IResourceContextImpl(abi) + } + + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_Windows_ApplicationModel_Resources.IResourceContextVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } + } + + fileprivate class IResourceContextImpl: IResourceContext, WinRTAbiImpl { + fileprivate typealias Bridge = IResourceContextBridge + fileprivate let _default: Bridge.SwiftABI + fileprivate var thisPtr: WindowsFoundation.IInspectable { _default } + fileprivate init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applicationmodel.resources.iresourcecontext.qualifiervalues) + fileprivate var qualifierValues : WindowsFoundation.AnyIMap! { + get { try! _default.get_QualifierValuesImpl() } + } + + } + + public enum IResourceManagerBridge : AbiInterfaceBridge { + public typealias CABI = __x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceManager + public typealias SwiftABI = __ABI_Microsoft_Windows_ApplicationModel_Resources.IResourceManager + public typealias SwiftProjection = AnyIResourceManager + public static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return IResourceManagerImpl(abi) + } + + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_Windows_ApplicationModel_Resources.IResourceManagerVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } + } + + fileprivate class IResourceManagerImpl: IResourceManager, WinRTAbiImpl { + fileprivate typealias Bridge = IResourceManagerBridge + fileprivate let _default: Bridge.SwiftABI + fileprivate var thisPtr: WindowsFoundation.IInspectable { _default } + fileprivate init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applicationmodel.resources.iresourcemanager.createresourcecontext) + fileprivate func createResourceContext() throws -> ResourceContext! { + try _default.CreateResourceContextImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applicationmodel.resources.iresourcemanager.mainresourcemap) + fileprivate var mainResourceMap : ResourceMap! { + get { try! _default.get_MainResourceMapImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applicationmodel.resources.iresourcemanager.resourcenotfound) + fileprivate lazy var resourceNotFound : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ResourceNotFoundImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ResourceNotFoundImpl($0) + } + ) + }() + + } + +} diff --git a/Sources/WinAppSDK/Microsoft.Windows.ApplicationModel.Resources.swift b/Sources/WinAppSDK/Microsoft.Windows.ApplicationModel.Resources.swift new file mode 100644 index 0000000..ede00c8 --- /dev/null +++ b/Sources/WinAppSDK/Microsoft.Windows.ApplicationModel.Resources.swift @@ -0,0 +1,336 @@ +// WARNING: Please don't edit this file. It was generated by Swift/WinRT v0.0.1 +// swiftlint:disable all +import Foundation +@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation +import CWinRT + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applicationmodel.resources.resourcecandidatekind) +public typealias ResourceCandidateKind = __x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CResourceCandidateKind +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applicationmodel.resources.resourcecandidate) +public final class ResourceCandidate : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_Windows_ApplicationModel_Resources.IResourceCandidate + private typealias CABI = __x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceCandidate + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceCandidate>?) -> ResourceCandidate? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + private static let _IResourceCandidateFactory: __ABI_Microsoft_Windows_ApplicationModel_Resources.IResourceCandidateFactory = try! RoGetActivationFactory(HString("Microsoft.Windows.ApplicationModel.Resources.ResourceCandidate")) + public init(_ kind: ResourceCandidateKind, _ data: String) { + super.init(try! Self._IResourceCandidateFactory.CreateInstanceImpl(kind, data)) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applicationmodel.resources.resourcecandidate.kind) + public var kind : ResourceCandidateKind { + get { try! _default.get_KindImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applicationmodel.resources.resourcecandidate.qualifiervalues) + public var qualifierValues : WindowsFoundation.AnyIMapView! { + get { try! _default.get_QualifierValuesImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applicationmodel.resources.resourcecandidate.valueasstring) + public var valueAsString : String { + get { try! _default.get_ValueAsStringImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applicationmodel.resources.resourcecontext) +public final class ResourceContext : WinRTClass, IResourceContext { + private typealias SwiftABI = __ABI_Microsoft_Windows_ApplicationModel_Resources.IResourceContext + private typealias CABI = __x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceContext + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceContext>?) -> ResourceContext? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + override public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + return super.queryInterface(iid) + } + private lazy var _IResourceContext2: __ABI_Microsoft_Windows_ApplicationModel_Resources.IResourceContext2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applicationmodel.resources.resourcecontext.qualifiervalues) + public var qualifierValues : WindowsFoundation.AnyIMap! { + get { try! _default.get_QualifierValuesImpl() } + } + + deinit { + _IResourceContext2 = nil + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applicationmodel.resources.resourcemanager) +public final class ResourceManager : WinRTClass, IResourceManager { + private typealias SwiftABI = __ABI_Microsoft_Windows_ApplicationModel_Resources.IResourceManager + private typealias CABI = __x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceManager + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceManager>?) -> ResourceManager? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + override public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + return super.queryInterface(iid) + } + override public init() { + super.init(try! RoActivateInstance(HString("Microsoft.Windows.ApplicationModel.Resources.ResourceManager"))) + } + + private static let _IResourceManagerFactory: __ABI_Microsoft_Windows_ApplicationModel_Resources.IResourceManagerFactory = try! RoGetActivationFactory(HString("Microsoft.Windows.ApplicationModel.Resources.ResourceManager")) + public init(_ fileName: String) { + super.init(try! Self._IResourceManagerFactory.CreateInstanceImpl(fileName)) + } + + private lazy var _IResourceManager2: __ABI_Microsoft_Windows_ApplicationModel_Resources.IResourceManager2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applicationmodel.resources.resourcemanager.createresourcecontext) + public func createResourceContext() throws -> ResourceContext! { + try _default.CreateResourceContextImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applicationmodel.resources.resourcemanager.mainresourcemap) + public var mainResourceMap : ResourceMap! { + get { try! _default.get_MainResourceMapImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applicationmodel.resources.resourcemanager.resourcenotfound) + public lazy var resourceNotFound : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ResourceNotFoundImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ResourceNotFoundImpl($0) + } + ) + }() + + deinit { + _IResourceManager2 = nil + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applicationmodel.resources.resourcemap) +public final class ResourceMap : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_Windows_ApplicationModel_Resources.IResourceMap + private typealias CABI = __x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceMap + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceMap>?) -> ResourceMap? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applicationmodel.resources.resourcemap.getsubtree) + public func getSubtree(_ reference: String) throws -> ResourceMap! { + try _default.GetSubtreeImpl(reference) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applicationmodel.resources.resourcemap.trygetsubtree) + public func tryGetSubtree(_ reference: String) throws -> ResourceMap! { + try _default.TryGetSubtreeImpl(reference) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applicationmodel.resources.resourcemap.getvalue) + public func getValue(_ resource: String) throws -> ResourceCandidate! { + try _default.GetValueImpl(resource) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applicationmodel.resources.resourcemap.getvalue) + public func getValue(_ resource: String, _ context: ResourceContext!) throws -> ResourceCandidate! { + try _default.GetValueWithContextImpl(resource, context) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applicationmodel.resources.resourcemap.getvaluebyindex) + public func getValueByIndex(_ index: UInt32) throws -> WindowsFoundation.AnyIKeyValuePair! { + try _default.GetValueByIndexImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applicationmodel.resources.resourcemap.getvaluebyindex) + public func getValueByIndex(_ index: UInt32, _ context: ResourceContext!) throws -> WindowsFoundation.AnyIKeyValuePair! { + try _default.GetValueByIndexWithContextImpl(index, context) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applicationmodel.resources.resourcemap.trygetvalue) + public func tryGetValue(_ resource: String) throws -> ResourceCandidate! { + try _default.TryGetValueImpl(resource) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applicationmodel.resources.resourcemap.trygetvalue) + public func tryGetValue(_ resource: String, _ context: ResourceContext!) throws -> ResourceCandidate! { + try _default.TryGetValueWithContextImpl(resource, context) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applicationmodel.resources.resourcemap.resourcecount) + public var resourceCount : UInt32 { + get { try! _default.get_ResourceCountImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applicationmodel.resources.resourcenotfoundeventargs) +public final class ResourceNotFoundEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_Windows_ApplicationModel_Resources.IResourceNotFoundEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceNotFoundEventArgs + private lazy var _default: SwiftABI! = getInterfaceForCaching() + @_spi(WinRTInternal) + override public func _getABI() -> UnsafeMutablePointer? { + if T.self == CABI.self { + return RawPointer(_default) + } + return super._getABI() + } + + @_spi(WinRTInternal) + public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CIResourceNotFoundEventArgs>?) -> ResourceNotFoundEventArgs? { + guard let abi = abi else { return nil } + return .init(fromAbi: WindowsFoundation.IInspectable(abi)) + } + + @_spi(WinRTInternal) + public init(fromAbi: WindowsFoundation.IInspectable) { + super.init(fromAbi) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applicationmodel.resources.resourcenotfoundeventargs.setresolvedcandidate) + public func setResolvedCandidate(_ candidate: ResourceCandidate!) throws { + try _default.SetResolvedCandidateImpl(candidate) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applicationmodel.resources.resourcenotfoundeventargs.context) + public var context : ResourceContext! { + get { try! _default.get_ContextImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applicationmodel.resources.resourcenotfoundeventargs.name) + public var name : String { + get { try! _default.get_NameImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applicationmodel.resources.iresourcecontext) +public protocol IResourceContext : WinRTInterface { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applicationmodel.resources.iresourcecontext.qualifiervalues) + var qualifierValues: WindowsFoundation.AnyIMap! { get } +} + +extension IResourceContext { + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + switch iid { + case __ABI_Microsoft_Windows_ApplicationModel_Resources.IResourceContextWrapper.IID: + let wrapper = __ABI_Microsoft_Windows_ApplicationModel_Resources.IResourceContextWrapper(self) + return wrapper!.queryInterface(iid) + default: return nil + } + } +} +public typealias AnyIResourceContext = any IResourceContext + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applicationmodel.resources.iresourcemanager) +public protocol IResourceManager : WinRTInterface { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applicationmodel.resources.iresourcemanager.createresourcecontext) + func createResourceContext() throws -> WinAppSDK.ResourceContext! + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applicationmodel.resources.iresourcemanager.mainresourcemap) + var mainResourceMap: WinAppSDK.ResourceMap! { get } + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.windows.applicationmodel.resources.iresourcemanager.resourcenotfound) + var resourceNotFound: Event> { get } +} + +extension IResourceManager { + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + switch iid { + case __ABI_Microsoft_Windows_ApplicationModel_Resources.IResourceManagerWrapper.IID: + let wrapper = __ABI_Microsoft_Windows_ApplicationModel_Resources.IResourceManagerWrapper(self) + return wrapper!.queryInterface(iid) + default: return nil + } + } +} +public typealias AnyIResourceManager = any IResourceManager + +extension WinAppSDK.ResourceCandidateKind { + public static var unknown : WinAppSDK.ResourceCandidateKind { + __x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CResourceCandidateKind_Unknown + } + public static var string : WinAppSDK.ResourceCandidateKind { + __x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CResourceCandidateKind_String + } + public static var filePath : WinAppSDK.ResourceCandidateKind { + __x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CResourceCandidateKind_FilePath + } + public static var embeddedData : WinAppSDK.ResourceCandidateKind { + __x_ABI_CMicrosoft_CWindows_CApplicationModel_CResources_CResourceCandidateKind_EmbeddedData + } +} +extension WinAppSDK.ResourceCandidateKind: @retroactive Hashable, @retroactive Codable {} + diff --git a/Sources/WinAppSDK/NativeBinaries/Microsoft.WindowsAppRuntime.Bootstrap.dll b/Sources/WinAppSDK/NativeBinaries/Microsoft.WindowsAppRuntime.Bootstrap.dll new file mode 100644 index 0000000..ee43880 Binary files /dev/null and b/Sources/WinAppSDK/NativeBinaries/Microsoft.WindowsAppRuntime.Bootstrap.dll differ diff --git a/Sources/WinAppSDK/WinAppSDK+Generics.swift b/Sources/WinAppSDK/WinAppSDK+Generics.swift new file mode 100644 index 0000000..f6fff05 --- /dev/null +++ b/Sources/WinAppSDK/WinAppSDK+Generics.swift @@ -0,0 +1,9720 @@ +// WARNING: Please don't edit this file. It was generated by Swift/WinRT v0.0.1 +// swiftlint:disable all +import Foundation +@_spi(WinRTInternal) @_spi(WinRTImplements) import UWP +@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation +import CWinRT + +private var IID___x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurface: WindowsFoundation.IID { + .init(Data1: 0xc89efa6d, Data2: 0x6f22, Data3: 0x5e04, Data4: ( 0x80,0x59,0xb5,0x62,0x8e,0x3f,0x01,0x80 ))// c89efa6d-6f22-5e04-8059-b5628e3f0180 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurface { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceVTable: __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceVtbl = .init( + QueryInterface: { __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceWrapper.addRef($0) }, + Release: { __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let asyncInfo: WindowsFoundation.AnyIAsyncOperation? = WinAppSDK.__x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceWrapper.unwrapFrom(abi: ComPtr($1)) + let asyncStatus: WindowsFoundation.AsyncStatus = $2 + __unwrapped__instance(asyncInfo, asyncStatus) + return S_OK + } +) +typealias __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceWrapper = InterfaceWrapperBase +internal class AsyncOperationCompletedHandlerICompositionSurface: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurface } + + internal func InvokeImpl(_ asyncInfo: WindowsFoundation.AnyIAsyncOperation?, _ asyncStatus: WindowsFoundation.AsyncStatus) throws { + let asyncInfoWrapper = WinAppSDK.__x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceWrapper(asyncInfo) + let _asyncInfo = try! asyncInfoWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurface.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _asyncInfo, asyncStatus)) + } + } + +} + +internal class __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.AsyncOperationCompletedHandler + internal typealias CABI = __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurface + internal typealias SwiftABI = WinAppSDK.AsyncOperationCompletedHandlerICompositionSurface + + internal static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (asyncInfo, asyncStatus) in + try! _default.InvokeImpl(asyncInfo, asyncStatus) + } + return handler + } +} +private var IID___x_ABI_C__FIIterable_1_float: WindowsFoundation.IID { + .init(Data1: 0xb01bee51, Data2: 0x063a, Data3: 0x5fda, Data4: ( 0xbd,0x72,0xd7,0x66,0x37,0xbb,0x8c,0xb8 ))// b01bee51-063a-5fda-bd72-d76637bb8cb8 +} + +internal var __x_ABI_C__FIIterable_1_floatVTable: __x_ABI_C__FIIterable_1_floatVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1_floatWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1_floatWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1_floatWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIIterable_1_floatWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IIterable`1").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + First: { + guard let __unwrapped__instance = __x_ABI_C__FIIterable_1_floatWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinAppSDK.__x_ABI_C__FIIterator_1_floatWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1_floatWrapper = InterfaceWrapperBase +internal class IIterableFloat: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1_float } + + internal func FirstImpl() throws -> WindowsFoundation.AnyIIterator? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterable_1_float.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIIterator_1_floatWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1_floatBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1_float + internal typealias SwiftABI = IIterableFloat + internal typealias SwiftProjection = WindowsFoundation.AnyIIterable + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIIterable_1_floatImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1_floatVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1_floatImpl : IIterable, AbiInterfaceImpl { + typealias T = Float + typealias Bridge = __x_ABI_C__FIIterable_1_floatBridge + let _default: Bridge.SwiftABI + init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterable-1.first) + fileprivate func first() -> WindowsFoundation.AnyIIterator? { + try! _default.FirstImpl() + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimation: WindowsFoundation.IID { + .init(Data1: 0x1def86ce, Data2: 0x4be1, Data3: 0x5ccc, Data4: ( 0xba,0x28,0x05,0xd7,0x46,0xd9,0xbb,0x8d ))// 1def86ce-4be1-5ccc-ba28-05d746d9bb8d +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IIterable`1").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + First: { + guard let __unwrapped__instance = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationWrapper = InterfaceWrapperBase +internal class IIterableCompositionAnimation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimation } + + internal func FirstImpl() throws -> WindowsFoundation.AnyIIterator? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimation + internal typealias SwiftABI = IIterableCompositionAnimation + internal typealias SwiftProjection = WindowsFoundation.AnyIIterable + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationImpl : IIterable, AbiInterfaceImpl { + typealias T = WinAppSDK.CompositionAnimation? + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationBridge + let _default: Bridge.SwiftABI + init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterable-1.first) + fileprivate func first() -> WindowsFoundation.AnyIIterator? { + try! _default.FirstImpl() + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop: WindowsFoundation.IID { + .init(Data1: 0x0a1f6ff8, Data2: 0x2211, Data3: 0x5f18, Data4: ( 0xb9,0x59,0x2b,0xc4,0x04,0x31,0xfd,0x37 ))// 0a1f6ff8-2211-5f18-b959-2bc40431fd37 +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IIterable`1").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + First: { + guard let __unwrapped__instance = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper = InterfaceWrapperBase +internal class IIterableCompositionColorGradientStop: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop } + + internal func FirstImpl() throws -> WindowsFoundation.AnyIIterator? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop + internal typealias SwiftABI = IIterableCompositionColorGradientStop + internal typealias SwiftProjection = WindowsFoundation.AnyIIterable + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopImpl : IIterable, AbiInterfaceImpl { + typealias T = WinAppSDK.CompositionColorGradientStop? + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopBridge + let _default: Bridge.SwiftABI + init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterable-1.first) + fileprivate func first() -> WindowsFoundation.AnyIIterator? { + try! _default.FirstImpl() + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCaster: WindowsFoundation.IID { + .init(Data1: 0x7cc33343, Data2: 0x15e6, Data3: 0x5a20, Data4: ( 0xac,0xbd,0xa2,0xaf,0x4c,0xb2,0x16,0xa3 ))// 7cc33343-15e6-5a20-acbd-a2af4cb216a3 +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IIterable`1").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + First: { + guard let __unwrapped__instance = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterWrapper = InterfaceWrapperBase +internal class IIterableCompositionProjectedShadowCaster: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCaster } + + internal func FirstImpl() throws -> WindowsFoundation.AnyIIterator? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCaster.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCaster + internal typealias SwiftABI = IIterableCompositionProjectedShadowCaster + internal typealias SwiftProjection = WindowsFoundation.AnyIIterable + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterImpl : IIterable, AbiInterfaceImpl { + typealias T = WinAppSDK.CompositionProjectedShadowCaster? + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterBridge + let _default: Bridge.SwiftABI + init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterable-1.first) + fileprivate func first() -> WindowsFoundation.AnyIIterator? { + try! _default.FirstImpl() + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiver: WindowsFoundation.IID { + .init(Data1: 0x89fadb12, Data2: 0xce6b, Data3: 0x5056, Data4: ( 0xb3,0x4b,0x42,0xcf,0x64,0x63,0xa8,0x7b ))// 89fadb12-ce6b-5056-b34b-42cf6463a87b +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IIterable`1").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + First: { + guard let __unwrapped__instance = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverWrapper = InterfaceWrapperBase +internal class IIterableCompositionProjectedShadowReceiver: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiver } + + internal func FirstImpl() throws -> WindowsFoundation.AnyIIterator? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiver.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiver + internal typealias SwiftABI = IIterableCompositionProjectedShadowReceiver + internal typealias SwiftProjection = WindowsFoundation.AnyIIterable + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverImpl : IIterable, AbiInterfaceImpl { + typealias T = WinAppSDK.CompositionProjectedShadowReceiver? + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverBridge + let _default: Bridge.SwiftABI + init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterable-1.first) + fileprivate func first() -> WindowsFoundation.AnyIIterator? { + try! _default.FirstImpl() + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape: WindowsFoundation.IID { + .init(Data1: 0xc9e6839b, Data2: 0x5066, Data3: 0x5658, Data4: ( 0xaf,0xc8,0x57,0xd5,0x0f,0x1b,0xde,0x3f ))// c9e6839b-5066-5658-afc8-57d50f1bde3f +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IIterable`1").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + First: { + guard let __unwrapped__instance = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper = InterfaceWrapperBase +internal class IIterableCompositionShape: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape } + + internal func FirstImpl() throws -> WindowsFoundation.AnyIIterator? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape + internal typealias SwiftABI = IIterableCompositionShape + internal typealias SwiftProjection = WindowsFoundation.AnyIIterable + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeImpl : IIterable, AbiInterfaceImpl { + typealias T = WinAppSDK.CompositionShape? + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeBridge + let _default: Bridge.SwiftABI + init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterable-1.first) + fileprivate func first() -> WindowsFoundation.AnyIIterator? { + try! _default.FirstImpl() + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValue: WindowsFoundation.IID { + .init(Data1: 0xbfe6e6f0, Data2: 0x29d3, Data3: 0x5d7b, Data4: ( 0xac,0x52,0x9f,0xf2,0xf2,0xfa,0xa5,0xc1 ))// bfe6e6f0-29d3-5d7b-ac52-9ff2f2faa5c1 +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IIterable`1").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + First: { + guard let __unwrapped__instance = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueWrapper = InterfaceWrapperBase +internal class IIterableCompositionConditionalValue: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValue } + + internal func FirstImpl() throws -> WindowsFoundation.AnyIIterator? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValue.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValue + internal typealias SwiftABI = IIterableCompositionConditionalValue + internal typealias SwiftProjection = WindowsFoundation.AnyIIterable + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueImpl : IIterable, AbiInterfaceImpl { + typealias T = WinAppSDK.CompositionConditionalValue? + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueBridge + let _default: Bridge.SwiftABI + init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterable-1.first) + fileprivate func first() -> WindowsFoundation.AnyIIterator? { + try! _default.FirstImpl() + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSource: WindowsFoundation.IID { + .init(Data1: 0xef893131, Data2: 0x12b4, Data3: 0x5e2d, Data4: ( 0x9a,0x98,0xb0,0x83,0xab,0x21,0x89,0x18 ))// ef893131-12b4-5e2d-9a98-b083ab218918 +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IIterable`1").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + First: { + guard let __unwrapped__instance = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceWrapper = InterfaceWrapperBase +internal class IIterableICompositionInteractionSource: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSource } + + internal func FirstImpl() throws -> WindowsFoundation.AnyIIterator? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSource + internal typealias SwiftABI = IIterableICompositionInteractionSource + internal typealias SwiftProjection = WindowsFoundation.AnyIIterable + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceImpl : IIterable, AbiInterfaceImpl { + typealias T = WinAppSDK.AnyICompositionInteractionSource? + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceBridge + let _default: Bridge.SwiftABI + init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterable-1.first) + fileprivate func first() -> WindowsFoundation.AnyIIterator? { + try! _default.FirstImpl() + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifier: WindowsFoundation.IID { + .init(Data1: 0xc2ab0a9f, Data2: 0x2518, Data3: 0x5c81, Data4: ( 0x9a,0xda,0x72,0x16,0x9f,0x0f,0x00,0xa3 ))// c2ab0a9f-2518-5c81-9ada-72169f0f00a3 +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IIterable`1").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + First: { + guard let __unwrapped__instance = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierWrapper = InterfaceWrapperBase +internal class IIterableInteractionTrackerInertiaModifier: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifier } + + internal func FirstImpl() throws -> WindowsFoundation.AnyIIterator? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifier.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifier + internal typealias SwiftABI = IIterableInteractionTrackerInertiaModifier + internal typealias SwiftProjection = WindowsFoundation.AnyIIterable + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierImpl : IIterable, AbiInterfaceImpl { + typealias T = WinAppSDK.InteractionTrackerInertiaModifier? + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierBridge + let _default: Bridge.SwiftABI + init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterable-1.first) + fileprivate func first() -> WindowsFoundation.AnyIIterator? { + try! _default.FirstImpl() + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifier: WindowsFoundation.IID { + .init(Data1: 0x6a242990, Data2: 0x7db7, Data3: 0x57bd, Data4: ( 0x8d,0x01,0xe2,0x0b,0x65,0x81,0x32,0x0a ))// 6a242990-7db7-57bd-8d01-e20b6581320a +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IIterable`1").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + First: { + guard let __unwrapped__instance = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierWrapper = InterfaceWrapperBase +internal class IIterableInteractionTrackerVector2InertiaModifier: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifier } + + internal func FirstImpl() throws -> WindowsFoundation.AnyIIterator? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifier.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifier + internal typealias SwiftABI = IIterableInteractionTrackerVector2InertiaModifier + internal typealias SwiftProjection = WindowsFoundation.AnyIIterable + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierImpl : IIterable, AbiInterfaceImpl { + typealias T = WinAppSDK.InteractionTrackerVector2InertiaModifier? + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierBridge + let _default: Bridge.SwiftABI + init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterable-1.first) + fileprivate func first() -> WindowsFoundation.AnyIIterator? { + try! _default.FirstImpl() + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CVisual: WindowsFoundation.IID { + .init(Data1: 0x1d4a1b0e, Data2: 0xa493, Data3: 0x58b9, Data4: ( 0x80,0xf4,0x20,0x0c,0xd0,0x44,0x00,0xf9 ))// 1d4a1b0e-a493-58b9-80f4-200cd04400f9 +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IIterable`1").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + First: { + guard let __unwrapped__instance = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualWrapper = InterfaceWrapperBase +internal class IIterableVisual: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CVisual } + + internal func FirstImpl() throws -> WindowsFoundation.AnyIIterator? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CVisual.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CVisual + internal typealias SwiftABI = IIterableVisual + internal typealias SwiftProjection = WindowsFoundation.AnyIIterable + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualImpl : IIterable, AbiInterfaceImpl { + typealias T = WinAppSDK.Visual? + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualBridge + let _default: Bridge.SwiftABI + init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterable-1.first) + fileprivate func first() -> WindowsFoundation.AnyIIterator? { + try! _default.FirstImpl() + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint: WindowsFoundation.IID { + .init(Data1: 0x645acc33, Data2: 0xffce, Data3: 0x5ad3, Data4: ( 0xbe,0x2b,0xc4,0x9b,0x9c,0x27,0xc3,0x5d ))// 645acc33-ffce-5ad3-be2b-c49b9c27c35d +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IIterable`1").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + First: { + guard let __unwrapped__instance = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper = InterfaceWrapperBase +internal class IIterablePointerPoint: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint } + + internal func FirstImpl() throws -> WindowsFoundation.AnyIIterator? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint + internal typealias SwiftABI = IIterablePointerPoint + internal typealias SwiftProjection = WindowsFoundation.AnyIIterable + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointImpl : IIterable, AbiInterfaceImpl { + typealias T = WinAppSDK.PointerPoint? + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointBridge + let _default: Bridge.SwiftABI + init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterable-1.first) + fileprivate func first() -> WindowsFoundation.AnyIIterator? { + try! _default.FirstImpl() + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayArea: WindowsFoundation.IID { + .init(Data1: 0xfb253085, Data2: 0x6cfc, Data3: 0x5fa6, Data4: ( 0x94,0x8e,0x97,0x38,0x3f,0x5b,0xe3,0x6c ))// fb253085-6cfc-5fa6-948e-97383f5be36c +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IIterable`1").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + First: { + guard let __unwrapped__instance = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper = InterfaceWrapperBase +internal class IIterableDisplayArea: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayArea } + + internal func FirstImpl() throws -> WindowsFoundation.AnyIIterator? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayArea.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayArea + internal typealias SwiftABI = IIterableDisplayArea + internal typealias SwiftProjection = WindowsFoundation.AnyIIterable + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaImpl : IIterable, AbiInterfaceImpl { + typealias T = WinAppSDK.DisplayArea? + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaBridge + let _default: Bridge.SwiftABI + init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterable-1.first) + fileprivate func first() -> WindowsFoundation.AnyIIterator? { + try! _default.FirstImpl() + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance: WindowsFoundation.IID { + .init(Data1: 0x46dd4ef2, Data2: 0xc3a5, Data3: 0x5a9f, Data4: ( 0xb7,0x2d,0x8f,0x08,0x36,0xbe,0x42,0x4a ))// 46dd4ef2-c3a5-5a9f-b72d-8f0836be424a +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IIterable`1").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + First: { + guard let __unwrapped__instance = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper = InterfaceWrapperBase +internal class IIterableAppInstance: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance } + + internal func FirstImpl() throws -> WindowsFoundation.AnyIIterator? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance + internal typealias SwiftABI = IIterableAppInstance + internal typealias SwiftProjection = WindowsFoundation.AnyIIterable + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceImpl : IIterable, AbiInterfaceImpl { + typealias T = WinAppSDK.AppInstance? + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceBridge + let _default: Bridge.SwiftABI + init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterable-1.first) + fileprivate func first() -> WindowsFoundation.AnyIIterator? { + try! _default.FirstImpl() + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIIterable_1_HSTRING: WindowsFoundation.IID { + .init(Data1: 0xe2fcc7c1, Data2: 0x3bfc, Data3: 0x5a0b, Data4: ( 0xb2,0xb0,0x72,0xe7,0x69,0xd1,0xcb,0x7e ))// e2fcc7c1-3bfc-5a0b-b2b0-72e769d1cb7e +} + +internal var __x_ABI_C__FIIterable_1_HSTRINGVTable: __x_ABI_C__FIIterable_1_HSTRINGVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1_HSTRINGWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1_HSTRINGWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1_HSTRINGWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIIterable_1_HSTRINGWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IIterable`1").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + First: { + guard let __unwrapped__instance = __x_ABI_C__FIIterable_1_HSTRINGWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinAppSDK.__x_ABI_C__FIIterator_1_HSTRINGWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1_HSTRINGWrapper = InterfaceWrapperBase +internal class IIterableString: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1_HSTRING } + + internal func FirstImpl() throws -> WindowsFoundation.AnyIIterator? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterable_1_HSTRING.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIIterator_1_HSTRINGWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1_HSTRINGBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1_HSTRING + internal typealias SwiftABI = IIterableString + internal typealias SwiftProjection = WindowsFoundation.AnyIIterable + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIIterable_1_HSTRINGImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1_HSTRINGVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1_HSTRINGImpl : IIterable, AbiInterfaceImpl { + typealias T = String + typealias Bridge = __x_ABI_C__FIIterable_1_HSTRINGBridge + let _default: Bridge.SwiftABI + init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterable-1.first) + fileprivate func first() -> WindowsFoundation.AnyIIterator? { + try! _default.FirstImpl() + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase: WindowsFoundation.IID { + .init(Data1: 0x999d6f68, Data2: 0xb74e, Data3: 0x5e06, Data4: ( 0xa7,0x98,0xd2,0x54,0xc4,0x89,0x56,0x70 ))// 999d6f68-b74e-5e06-a798-d254c4895670 +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseVTable: __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IIterable`1>").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + First: { + guard let __unwrapped__instance = __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper = InterfaceWrapperBase +internal class IIterableIKeyValuePairString_ICompositionAnimationBase: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase } + + internal func FirstImpl() throws -> WindowsFoundation.AnyIIterator?>? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase + internal typealias SwiftABI = IIterableIKeyValuePairString_ICompositionAnimationBase + internal typealias SwiftProjection = WindowsFoundation.AnyIIterable?> + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseImpl : IIterable, AbiInterfaceImpl { + typealias T = WindowsFoundation.AnyIKeyValuePair? + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseBridge + let _default: Bridge.SwiftABI + init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterable-1.first) + fileprivate func first() -> WindowsFoundation.AnyIIterator?>? { + try! _default.FirstImpl() + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRING: WindowsFoundation.IID { + .init(Data1: 0xe9bdaaf0, Data2: 0xcbf6, Data3: 0x5c72, Data4: ( 0xbe,0x90,0x29,0xcb,0xf3,0xa1,0x31,0x9b ))// e9bdaaf0-cbf6-5c72-be90-29cbf3a1319b +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGVTable: __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IIterable`1>").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + First: { + guard let __unwrapped__instance = __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper = InterfaceWrapperBase +internal class IIterableIKeyValuePairString_String: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRING } + + internal func FirstImpl() throws -> WindowsFoundation.AnyIIterator?>? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRING.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRING + internal typealias SwiftABI = IIterableIKeyValuePairString_String + internal typealias SwiftProjection = WindowsFoundation.AnyIIterable?> + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGImpl : IIterable, AbiInterfaceImpl { + typealias T = WindowsFoundation.AnyIKeyValuePair? + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGBridge + let _default: Bridge.SwiftABI + init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterable-1.first) + fileprivate func first() -> WindowsFoundation.AnyIIterator?>? { + try! _default.FirstImpl() + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIIterator_1_float: WindowsFoundation.IID { + .init(Data1: 0x42614e61, Data2: 0xb0aa, Data3: 0x5e72, Data4: ( 0x93,0x54,0x27,0x71,0xdb,0x20,0xb7,0xa8 ))// 42614e61-b0aa-5e72-9354-2771db20b7a8 +} + +internal var __x_ABI_C__FIIterator_1_floatVTable: __x_ABI_C__FIIterator_1_floatVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1_floatWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1_floatWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1_floatWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIIterator_1_floatWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IIterator`1").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + get_Current: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1_floatWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.current + $1?.initialize(to: result) + return S_OK + }, + + get_HasCurrent: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1_floatWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.hasCurrent + $1?.initialize(to: .init(from: result)) + return S_OK + }, + + MoveNext: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1_floatWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.moveNext() + $1?.initialize(to: .init(from: result)) + return S_OK + }, + + GetMany: { _, _, _, _ in return failWith(err: E_NOTIMPL) } +) +typealias __x_ABI_C__FIIterator_1_floatWrapper = InterfaceWrapperBase +internal class IIteratorFloat: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1_float } + + internal func get_CurrentImpl() throws -> Float { + var result: FLOAT = 0.0 + _ = try perform(as: __x_ABI_C__FIIterator_1_float.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Current(pThis, &result)) + } + return result + } + + internal func get_HasCurrentImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIIterator_1_float.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HasCurrent(pThis, &result)) + } + return .init(from: result) + } + + internal func MoveNextImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIIterator_1_float.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.MoveNext(pThis, &result)) + } + return .init(from: result) + } + +} + +internal enum __x_ABI_C__FIIterator_1_floatBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1_float + internal typealias SwiftABI = IIteratorFloat + internal typealias SwiftProjection = WindowsFoundation.AnyIIterator + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIIterator_1_floatImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1_floatVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1_floatImpl : IIterator, AbiInterfaceImpl { + typealias T = Float + typealias Bridge = __x_ABI_C__FIIterator_1_floatBridge + let _default: Bridge.SwiftABI + init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.movenext) + fileprivate func moveNext() -> Bool { + try! _default.MoveNextImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.current) + fileprivate var current : Float { + get { try! _default.get_CurrentImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.hascurrent) + fileprivate var hasCurrent : Bool { + get { try! _default.get_HasCurrentImpl() } + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimation: WindowsFoundation.IID { + .init(Data1: 0x3094fcbe, Data2: 0x7d8f, Data3: 0x5bb0, Data4: ( 0xbf,0x52,0x08,0x5b,0xce,0xe7,0x64,0x96 ))// 3094fcbe-7d8f-5bb0-bf52-085bcee76496 +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IIterator`1").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + get_Current: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.current + result?.copyTo($1) + return S_OK + }, + + get_HasCurrent: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.hasCurrent + $1?.initialize(to: .init(from: result)) + return S_OK + }, + + MoveNext: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.moveNext() + $1?.initialize(to: .init(from: result)) + return S_OK + }, + + GetMany: { _, _, _, _ in return failWith(err: E_NOTIMPL) } +) +typealias __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationWrapper = InterfaceWrapperBase +internal class IIteratorCompositionAnimation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimation } + + internal func get_CurrentImpl() throws -> WinAppSDK.CompositionAnimation? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Current(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func get_HasCurrentImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HasCurrent(pThis, &result)) + } + return .init(from: result) + } + + internal func MoveNextImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.MoveNext(pThis, &result)) + } + return .init(from: result) + } + +} + +internal enum __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimation + internal typealias SwiftABI = IIteratorCompositionAnimation + internal typealias SwiftProjection = WindowsFoundation.AnyIIterator + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationImpl : IIterator, AbiInterfaceImpl { + typealias T = WinAppSDK.CompositionAnimation? + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationBridge + let _default: Bridge.SwiftABI + init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.movenext) + fileprivate func moveNext() -> Bool { + try! _default.MoveNextImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.current) + fileprivate var current : WinAppSDK.CompositionAnimation? { + get { try! _default.get_CurrentImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.hascurrent) + fileprivate var hasCurrent : Bool { + get { try! _default.get_HasCurrentImpl() } + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop: WindowsFoundation.IID { + .init(Data1: 0x5865f61c, Data2: 0x2bca, Data3: 0x5f80, Data4: ( 0x96,0x8a,0x8e,0x06,0xbd,0xc2,0x8c,0xb0 ))// 5865f61c-2bca-5f80-968a-8e06bdc28cb0 +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IIterator`1").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + get_Current: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.current + result?.copyTo($1) + return S_OK + }, + + get_HasCurrent: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.hasCurrent + $1?.initialize(to: .init(from: result)) + return S_OK + }, + + MoveNext: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.moveNext() + $1?.initialize(to: .init(from: result)) + return S_OK + }, + + GetMany: { _, _, _, _ in return failWith(err: E_NOTIMPL) } +) +typealias __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper = InterfaceWrapperBase +internal class IIteratorCompositionColorGradientStop: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop } + + internal func get_CurrentImpl() throws -> WinAppSDK.CompositionColorGradientStop? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Current(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func get_HasCurrentImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HasCurrent(pThis, &result)) + } + return .init(from: result) + } + + internal func MoveNextImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.MoveNext(pThis, &result)) + } + return .init(from: result) + } + +} + +internal enum __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop + internal typealias SwiftABI = IIteratorCompositionColorGradientStop + internal typealias SwiftProjection = WindowsFoundation.AnyIIterator + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopImpl : IIterator, AbiInterfaceImpl { + typealias T = WinAppSDK.CompositionColorGradientStop? + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopBridge + let _default: Bridge.SwiftABI + init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.movenext) + fileprivate func moveNext() -> Bool { + try! _default.MoveNextImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.current) + fileprivate var current : WinAppSDK.CompositionColorGradientStop? { + get { try! _default.get_CurrentImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.hascurrent) + fileprivate var hasCurrent : Bool { + get { try! _default.get_HasCurrentImpl() } + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCaster: WindowsFoundation.IID { + .init(Data1: 0x1ac58905, Data2: 0x0d81, Data3: 0x581d, Data4: ( 0xb7,0x18,0x80,0x12,0x97,0x56,0x8e,0xc1 ))// 1ac58905-0d81-581d-b718-801297568ec1 +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IIterator`1").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + get_Current: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.current + result?.copyTo($1) + return S_OK + }, + + get_HasCurrent: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.hasCurrent + $1?.initialize(to: .init(from: result)) + return S_OK + }, + + MoveNext: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.moveNext() + $1?.initialize(to: .init(from: result)) + return S_OK + }, + + GetMany: { _, _, _, _ in return failWith(err: E_NOTIMPL) } +) +typealias __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterWrapper = InterfaceWrapperBase +internal class IIteratorCompositionProjectedShadowCaster: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCaster } + + internal func get_CurrentImpl() throws -> WinAppSDK.CompositionProjectedShadowCaster? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCaster.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Current(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func get_HasCurrentImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCaster.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HasCurrent(pThis, &result)) + } + return .init(from: result) + } + + internal func MoveNextImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCaster.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.MoveNext(pThis, &result)) + } + return .init(from: result) + } + +} + +internal enum __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCaster + internal typealias SwiftABI = IIteratorCompositionProjectedShadowCaster + internal typealias SwiftProjection = WindowsFoundation.AnyIIterator + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterImpl : IIterator, AbiInterfaceImpl { + typealias T = WinAppSDK.CompositionProjectedShadowCaster? + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterBridge + let _default: Bridge.SwiftABI + init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.movenext) + fileprivate func moveNext() -> Bool { + try! _default.MoveNextImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.current) + fileprivate var current : WinAppSDK.CompositionProjectedShadowCaster? { + get { try! _default.get_CurrentImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.hascurrent) + fileprivate var hasCurrent : Bool { + get { try! _default.get_HasCurrentImpl() } + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiver: WindowsFoundation.IID { + .init(Data1: 0xd0a7e89f, Data2: 0xa01e, Data3: 0x5c64, Data4: ( 0xbf,0x5e,0x37,0xd0,0x3e,0xae,0xa3,0x20 ))// d0a7e89f-a01e-5c64-bf5e-37d03eaea320 +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IIterator`1").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + get_Current: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.current + result?.copyTo($1) + return S_OK + }, + + get_HasCurrent: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.hasCurrent + $1?.initialize(to: .init(from: result)) + return S_OK + }, + + MoveNext: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.moveNext() + $1?.initialize(to: .init(from: result)) + return S_OK + }, + + GetMany: { _, _, _, _ in return failWith(err: E_NOTIMPL) } +) +typealias __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverWrapper = InterfaceWrapperBase +internal class IIteratorCompositionProjectedShadowReceiver: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiver } + + internal func get_CurrentImpl() throws -> WinAppSDK.CompositionProjectedShadowReceiver? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiver.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Current(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func get_HasCurrentImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiver.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HasCurrent(pThis, &result)) + } + return .init(from: result) + } + + internal func MoveNextImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiver.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.MoveNext(pThis, &result)) + } + return .init(from: result) + } + +} + +internal enum __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiver + internal typealias SwiftABI = IIteratorCompositionProjectedShadowReceiver + internal typealias SwiftProjection = WindowsFoundation.AnyIIterator + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverImpl : IIterator, AbiInterfaceImpl { + typealias T = WinAppSDK.CompositionProjectedShadowReceiver? + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverBridge + let _default: Bridge.SwiftABI + init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.movenext) + fileprivate func moveNext() -> Bool { + try! _default.MoveNextImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.current) + fileprivate var current : WinAppSDK.CompositionProjectedShadowReceiver? { + get { try! _default.get_CurrentImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.hascurrent) + fileprivate var hasCurrent : Bool { + get { try! _default.get_HasCurrentImpl() } + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape: WindowsFoundation.IID { + .init(Data1: 0x4ec94e18, Data2: 0xf15c, Data3: 0x5432, Data4: ( 0x9b,0xb3,0x77,0xbd,0xcd,0x96,0xdc,0x04 ))// 4ec94e18-f15c-5432-9bb3-77bdcd96dc04 +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IIterator`1").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + get_Current: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.current + result?.copyTo($1) + return S_OK + }, + + get_HasCurrent: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.hasCurrent + $1?.initialize(to: .init(from: result)) + return S_OK + }, + + MoveNext: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.moveNext() + $1?.initialize(to: .init(from: result)) + return S_OK + }, + + GetMany: { _, _, _, _ in return failWith(err: E_NOTIMPL) } +) +typealias __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper = InterfaceWrapperBase +internal class IIteratorCompositionShape: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape } + + internal func get_CurrentImpl() throws -> WinAppSDK.CompositionShape? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Current(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func get_HasCurrentImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HasCurrent(pThis, &result)) + } + return .init(from: result) + } + + internal func MoveNextImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.MoveNext(pThis, &result)) + } + return .init(from: result) + } + +} + +internal enum __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape + internal typealias SwiftABI = IIteratorCompositionShape + internal typealias SwiftProjection = WindowsFoundation.AnyIIterator + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeImpl : IIterator, AbiInterfaceImpl { + typealias T = WinAppSDK.CompositionShape? + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeBridge + let _default: Bridge.SwiftABI + init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.movenext) + fileprivate func moveNext() -> Bool { + try! _default.MoveNextImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.current) + fileprivate var current : WinAppSDK.CompositionShape? { + get { try! _default.get_CurrentImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.hascurrent) + fileprivate var hasCurrent : Bool { + get { try! _default.get_HasCurrentImpl() } + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValue: WindowsFoundation.IID { + .init(Data1: 0x1bf57a13, Data2: 0xc5b6, Data3: 0x5d31, Data4: ( 0x80,0x5b,0x6f,0x00,0x9b,0x24,0xe3,0x60 ))// 1bf57a13-c5b6-5d31-805b-6f009b24e360 +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IIterator`1").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + get_Current: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.current + result?.copyTo($1) + return S_OK + }, + + get_HasCurrent: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.hasCurrent + $1?.initialize(to: .init(from: result)) + return S_OK + }, + + MoveNext: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.moveNext() + $1?.initialize(to: .init(from: result)) + return S_OK + }, + + GetMany: { _, _, _, _ in return failWith(err: E_NOTIMPL) } +) +typealias __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueWrapper = InterfaceWrapperBase +internal class IIteratorCompositionConditionalValue: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValue } + + internal func get_CurrentImpl() throws -> WinAppSDK.CompositionConditionalValue? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValue.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Current(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func get_HasCurrentImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValue.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HasCurrent(pThis, &result)) + } + return .init(from: result) + } + + internal func MoveNextImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValue.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.MoveNext(pThis, &result)) + } + return .init(from: result) + } + +} + +internal enum __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValue + internal typealias SwiftABI = IIteratorCompositionConditionalValue + internal typealias SwiftProjection = WindowsFoundation.AnyIIterator + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueImpl : IIterator, AbiInterfaceImpl { + typealias T = WinAppSDK.CompositionConditionalValue? + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueBridge + let _default: Bridge.SwiftABI + init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.movenext) + fileprivate func moveNext() -> Bool { + try! _default.MoveNextImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.current) + fileprivate var current : WinAppSDK.CompositionConditionalValue? { + get { try! _default.get_CurrentImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.hascurrent) + fileprivate var hasCurrent : Bool { + get { try! _default.get_HasCurrentImpl() } + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSource: WindowsFoundation.IID { + .init(Data1: 0xf21f2a85, Data2: 0xe3f0, Data3: 0x557c, Data4: ( 0x8c,0xff,0x6c,0xfb,0xc3,0x97,0x54,0xbb ))// f21f2a85-e3f0-557c-8cff-6cfbc39754bb +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IIterator`1").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + get_Current: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.current + let resultWrapper = __ABI_Microsoft_UI_Composition_Interactions.ICompositionInteractionSourceWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + get_HasCurrent: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.hasCurrent + $1?.initialize(to: .init(from: result)) + return S_OK + }, + + MoveNext: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.moveNext() + $1?.initialize(to: .init(from: result)) + return S_OK + }, + + GetMany: { _, _, _, _ in return failWith(err: E_NOTIMPL) } +) +typealias __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceWrapper = InterfaceWrapperBase +internal class IIteratorICompositionInteractionSource: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSource } + + internal func get_CurrentImpl() throws -> WinAppSDK.AnyICompositionInteractionSource? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Current(pThis, &resultAbi)) + } + } + return __ABI_Microsoft_UI_Composition_Interactions.ICompositionInteractionSourceWrapper.unwrapFrom(abi: result) + } + + internal func get_HasCurrentImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HasCurrent(pThis, &result)) + } + return .init(from: result) + } + + internal func MoveNextImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.MoveNext(pThis, &result)) + } + return .init(from: result) + } + +} + +internal enum __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSource + internal typealias SwiftABI = IIteratorICompositionInteractionSource + internal typealias SwiftProjection = WindowsFoundation.AnyIIterator + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceImpl : IIterator, AbiInterfaceImpl { + typealias T = WinAppSDK.AnyICompositionInteractionSource? + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceBridge + let _default: Bridge.SwiftABI + init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.movenext) + fileprivate func moveNext() -> Bool { + try! _default.MoveNextImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.current) + fileprivate var current : WinAppSDK.AnyICompositionInteractionSource? { + get { try! _default.get_CurrentImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.hascurrent) + fileprivate var hasCurrent : Bool { + get { try! _default.get_HasCurrentImpl() } + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifier: WindowsFoundation.IID { + .init(Data1: 0xad8bcabc, Data2: 0x22a3, Data3: 0x5fea, Data4: ( 0x9e,0xdc,0x20,0xe8,0xc4,0xfa,0x39,0x05 ))// ad8bcabc-22a3-5fea-9edc-20e8c4fa3905 +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IIterator`1").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + get_Current: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.current + result?.copyTo($1) + return S_OK + }, + + get_HasCurrent: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.hasCurrent + $1?.initialize(to: .init(from: result)) + return S_OK + }, + + MoveNext: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.moveNext() + $1?.initialize(to: .init(from: result)) + return S_OK + }, + + GetMany: { _, _, _, _ in return failWith(err: E_NOTIMPL) } +) +typealias __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierWrapper = InterfaceWrapperBase +internal class IIteratorInteractionTrackerInertiaModifier: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifier } + + internal func get_CurrentImpl() throws -> WinAppSDK.InteractionTrackerInertiaModifier? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifier.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Current(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func get_HasCurrentImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifier.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HasCurrent(pThis, &result)) + } + return .init(from: result) + } + + internal func MoveNextImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifier.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.MoveNext(pThis, &result)) + } + return .init(from: result) + } + +} + +internal enum __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifier + internal typealias SwiftABI = IIteratorInteractionTrackerInertiaModifier + internal typealias SwiftProjection = WindowsFoundation.AnyIIterator + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierImpl : IIterator, AbiInterfaceImpl { + typealias T = WinAppSDK.InteractionTrackerInertiaModifier? + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierBridge + let _default: Bridge.SwiftABI + init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.movenext) + fileprivate func moveNext() -> Bool { + try! _default.MoveNextImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.current) + fileprivate var current : WinAppSDK.InteractionTrackerInertiaModifier? { + get { try! _default.get_CurrentImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.hascurrent) + fileprivate var hasCurrent : Bool { + get { try! _default.get_HasCurrentImpl() } + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifier: WindowsFoundation.IID { + .init(Data1: 0xe666655f, Data2: 0x2a16, Data3: 0x5a78, Data4: ( 0xbd,0x73,0x7f,0x81,0xbb,0xa7,0xc2,0xc4 ))// e666655f-2a16-5a78-bd73-7f81bba7c2c4 +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IIterator`1").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + get_Current: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.current + result?.copyTo($1) + return S_OK + }, + + get_HasCurrent: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.hasCurrent + $1?.initialize(to: .init(from: result)) + return S_OK + }, + + MoveNext: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.moveNext() + $1?.initialize(to: .init(from: result)) + return S_OK + }, + + GetMany: { _, _, _, _ in return failWith(err: E_NOTIMPL) } +) +typealias __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierWrapper = InterfaceWrapperBase +internal class IIteratorInteractionTrackerVector2InertiaModifier: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifier } + + internal func get_CurrentImpl() throws -> WinAppSDK.InteractionTrackerVector2InertiaModifier? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifier.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Current(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func get_HasCurrentImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifier.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HasCurrent(pThis, &result)) + } + return .init(from: result) + } + + internal func MoveNextImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifier.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.MoveNext(pThis, &result)) + } + return .init(from: result) + } + +} + +internal enum __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifier + internal typealias SwiftABI = IIteratorInteractionTrackerVector2InertiaModifier + internal typealias SwiftProjection = WindowsFoundation.AnyIIterator + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierImpl : IIterator, AbiInterfaceImpl { + typealias T = WinAppSDK.InteractionTrackerVector2InertiaModifier? + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierBridge + let _default: Bridge.SwiftABI + init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.movenext) + fileprivate func moveNext() -> Bool { + try! _default.MoveNextImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.current) + fileprivate var current : WinAppSDK.InteractionTrackerVector2InertiaModifier? { + get { try! _default.get_CurrentImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.hascurrent) + fileprivate var hasCurrent : Bool { + get { try! _default.get_HasCurrentImpl() } + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CVisual: WindowsFoundation.IID { + .init(Data1: 0x44b22f94, Data2: 0x798f, Data3: 0x5841, Data4: ( 0xbb,0x05,0x0d,0x1a,0xaa,0x22,0xf6,0x68 ))// 44b22f94-798f-5841-bb05-0d1aaa22f668 +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IIterator`1").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + get_Current: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.current + result?.copyTo($1) + return S_OK + }, + + get_HasCurrent: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.hasCurrent + $1?.initialize(to: .init(from: result)) + return S_OK + }, + + MoveNext: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.moveNext() + $1?.initialize(to: .init(from: result)) + return S_OK + }, + + GetMany: { _, _, _, _ in return failWith(err: E_NOTIMPL) } +) +typealias __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualWrapper = InterfaceWrapperBase +internal class IIteratorVisual: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CVisual } + + internal func get_CurrentImpl() throws -> WinAppSDK.Visual? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CVisual.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Current(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func get_HasCurrentImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CVisual.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HasCurrent(pThis, &result)) + } + return .init(from: result) + } + + internal func MoveNextImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CVisual.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.MoveNext(pThis, &result)) + } + return .init(from: result) + } + +} + +internal enum __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CVisual + internal typealias SwiftABI = IIteratorVisual + internal typealias SwiftProjection = WindowsFoundation.AnyIIterator + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualImpl : IIterator, AbiInterfaceImpl { + typealias T = WinAppSDK.Visual? + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualBridge + let _default: Bridge.SwiftABI + init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.movenext) + fileprivate func moveNext() -> Bool { + try! _default.MoveNextImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.current) + fileprivate var current : WinAppSDK.Visual? { + get { try! _default.get_CurrentImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.hascurrent) + fileprivate var hasCurrent : Bool { + get { try! _default.get_HasCurrentImpl() } + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint: WindowsFoundation.IID { + .init(Data1: 0x5b63939d, Data2: 0x11cf, Data3: 0x56c4, Data4: ( 0xb0,0xd0,0x11,0xdf,0x9d,0xc4,0x87,0xd1 ))// 5b63939d-11cf-56c4-b0d0-11df9dc487d1 +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IIterator`1").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + get_Current: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.current + result?.copyTo($1) + return S_OK + }, + + get_HasCurrent: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.hasCurrent + $1?.initialize(to: .init(from: result)) + return S_OK + }, + + MoveNext: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.moveNext() + $1?.initialize(to: .init(from: result)) + return S_OK + }, + + GetMany: { _, _, _, _ in return failWith(err: E_NOTIMPL) } +) +typealias __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper = InterfaceWrapperBase +internal class IIteratorPointerPoint: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint } + + internal func get_CurrentImpl() throws -> WinAppSDK.PointerPoint? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Current(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func get_HasCurrentImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HasCurrent(pThis, &result)) + } + return .init(from: result) + } + + internal func MoveNextImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.MoveNext(pThis, &result)) + } + return .init(from: result) + } + +} + +internal enum __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint + internal typealias SwiftABI = IIteratorPointerPoint + internal typealias SwiftProjection = WindowsFoundation.AnyIIterator + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointImpl : IIterator, AbiInterfaceImpl { + typealias T = WinAppSDK.PointerPoint? + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointBridge + let _default: Bridge.SwiftABI + init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.movenext) + fileprivate func moveNext() -> Bool { + try! _default.MoveNextImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.current) + fileprivate var current : WinAppSDK.PointerPoint? { + get { try! _default.get_CurrentImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.hascurrent) + fileprivate var hasCurrent : Bool { + get { try! _default.get_HasCurrentImpl() } + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayArea: WindowsFoundation.IID { + .init(Data1: 0x3d833884, Data2: 0x2258, Data3: 0x5c48, Data4: ( 0x8d,0x45,0x36,0x42,0xfe,0x8c,0x67,0x55 ))// 3d833884-2258-5c48-8d45-3642fe8c6755 +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IIterator`1").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + get_Current: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.current + result?.copyTo($1) + return S_OK + }, + + get_HasCurrent: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.hasCurrent + $1?.initialize(to: .init(from: result)) + return S_OK + }, + + MoveNext: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.moveNext() + $1?.initialize(to: .init(from: result)) + return S_OK + }, + + GetMany: { _, _, _, _ in return failWith(err: E_NOTIMPL) } +) +typealias __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper = InterfaceWrapperBase +internal class IIteratorDisplayArea: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayArea } + + internal func get_CurrentImpl() throws -> WinAppSDK.DisplayArea? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayArea.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Current(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func get_HasCurrentImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayArea.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HasCurrent(pThis, &result)) + } + return .init(from: result) + } + + internal func MoveNextImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayArea.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.MoveNext(pThis, &result)) + } + return .init(from: result) + } + +} + +internal enum __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayArea + internal typealias SwiftABI = IIteratorDisplayArea + internal typealias SwiftProjection = WindowsFoundation.AnyIIterator + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaImpl : IIterator, AbiInterfaceImpl { + typealias T = WinAppSDK.DisplayArea? + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaBridge + let _default: Bridge.SwiftABI + init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.movenext) + fileprivate func moveNext() -> Bool { + try! _default.MoveNextImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.current) + fileprivate var current : WinAppSDK.DisplayArea? { + get { try! _default.get_CurrentImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.hascurrent) + fileprivate var hasCurrent : Bool { + get { try! _default.get_HasCurrentImpl() } + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance: WindowsFoundation.IID { + .init(Data1: 0x58c4b850, Data2: 0xcfd3, Data3: 0x54c7, Data4: ( 0x95,0x68,0xcf,0x76,0xa0,0x17,0xaf,0xae ))// 58c4b850-cfd3-54c7-9568-cf76a017afae +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IIterator`1").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + get_Current: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.current + result?.copyTo($1) + return S_OK + }, + + get_HasCurrent: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.hasCurrent + $1?.initialize(to: .init(from: result)) + return S_OK + }, + + MoveNext: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.moveNext() + $1?.initialize(to: .init(from: result)) + return S_OK + }, + + GetMany: { _, _, _, _ in return failWith(err: E_NOTIMPL) } +) +typealias __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper = InterfaceWrapperBase +internal class IIteratorAppInstance: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance } + + internal func get_CurrentImpl() throws -> WinAppSDK.AppInstance? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Current(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func get_HasCurrentImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HasCurrent(pThis, &result)) + } + return .init(from: result) + } + + internal func MoveNextImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.MoveNext(pThis, &result)) + } + return .init(from: result) + } + +} + +internal enum __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance + internal typealias SwiftABI = IIteratorAppInstance + internal typealias SwiftProjection = WindowsFoundation.AnyIIterator + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceImpl : IIterator, AbiInterfaceImpl { + typealias T = WinAppSDK.AppInstance? + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceBridge + let _default: Bridge.SwiftABI + init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.movenext) + fileprivate func moveNext() -> Bool { + try! _default.MoveNextImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.current) + fileprivate var current : WinAppSDK.AppInstance? { + get { try! _default.get_CurrentImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.hascurrent) + fileprivate var hasCurrent : Bool { + get { try! _default.get_HasCurrentImpl() } + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIIterator_1_HSTRING: WindowsFoundation.IID { + .init(Data1: 0x8c304ebb, Data2: 0x6615, Data3: 0x50a4, Data4: ( 0x88,0x29,0x87,0x9e,0xcd,0x44,0x32,0x36 ))// 8c304ebb-6615-50a4-8829-879ecd443236 +} + +internal var __x_ABI_C__FIIterator_1_HSTRINGVTable: __x_ABI_C__FIIterator_1_HSTRINGVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1_HSTRINGWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1_HSTRINGWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1_HSTRINGWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIIterator_1_HSTRINGWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IIterator`1").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + get_Current: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1_HSTRINGWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.current + $1?.initialize(to: try! HString(result).detach()) + return S_OK + }, + + get_HasCurrent: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1_HSTRINGWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.hasCurrent + $1?.initialize(to: .init(from: result)) + return S_OK + }, + + MoveNext: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1_HSTRINGWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.moveNext() + $1?.initialize(to: .init(from: result)) + return S_OK + }, + + GetMany: { _, _, _, _ in return failWith(err: E_NOTIMPL) } +) +typealias __x_ABI_C__FIIterator_1_HSTRINGWrapper = InterfaceWrapperBase +internal class IIteratorString: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1_HSTRING } + + internal func get_CurrentImpl() throws -> String { + var result: HSTRING? + _ = try perform(as: __x_ABI_C__FIIterator_1_HSTRING.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Current(pThis, &result)) + } + return .init(from: result) + } + + internal func get_HasCurrentImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIIterator_1_HSTRING.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HasCurrent(pThis, &result)) + } + return .init(from: result) + } + + internal func MoveNextImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIIterator_1_HSTRING.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.MoveNext(pThis, &result)) + } + return .init(from: result) + } + +} + +internal enum __x_ABI_C__FIIterator_1_HSTRINGBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1_HSTRING + internal typealias SwiftABI = IIteratorString + internal typealias SwiftProjection = WindowsFoundation.AnyIIterator + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIIterator_1_HSTRINGImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1_HSTRINGVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1_HSTRINGImpl : IIterator, AbiInterfaceImpl { + typealias T = String + typealias Bridge = __x_ABI_C__FIIterator_1_HSTRINGBridge + let _default: Bridge.SwiftABI + init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.movenext) + fileprivate func moveNext() -> Bool { + try! _default.MoveNextImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.current) + fileprivate var current : String { + get { try! _default.get_CurrentImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.hascurrent) + fileprivate var hasCurrent : Bool { + get { try! _default.get_HasCurrentImpl() } + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase: WindowsFoundation.IID { + .init(Data1: 0xd7585c8c, Data2: 0x8ac4, Data3: 0x575f, Data4: ( 0x8a,0x96,0x0d,0xe9,0xc3,0x15,0x9e,0xa9 ))// d7585c8c-8ac4-575f-8a96-0de9c3159ea9 +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseVTable: __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IIterator`1>").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + get_Current: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.current + let resultWrapper = WinAppSDK.__x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + get_HasCurrent: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.hasCurrent + $1?.initialize(to: .init(from: result)) + return S_OK + }, + + MoveNext: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.moveNext() + $1?.initialize(to: .init(from: result)) + return S_OK + }, + + GetMany: { _, _, _, _ in return failWith(err: E_NOTIMPL) } +) +typealias __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper = InterfaceWrapperBase +internal class IIteratorIKeyValuePairString_ICompositionAnimationBase: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase } + + internal func get_CurrentImpl() throws -> WindowsFoundation.AnyIKeyValuePair? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Current(pThis, &resultAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.unwrapFrom(abi: result) + } + + internal func get_HasCurrentImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HasCurrent(pThis, &result)) + } + return .init(from: result) + } + + internal func MoveNextImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.MoveNext(pThis, &result)) + } + return .init(from: result) + } + +} + +internal enum __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase + internal typealias SwiftABI = IIteratorIKeyValuePairString_ICompositionAnimationBase + internal typealias SwiftProjection = WindowsFoundation.AnyIIterator?> + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseImpl : IIterator, AbiInterfaceImpl { + typealias T = WindowsFoundation.AnyIKeyValuePair? + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseBridge + let _default: Bridge.SwiftABI + init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.movenext) + fileprivate func moveNext() -> Bool { + try! _default.MoveNextImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.current) + fileprivate var current : WindowsFoundation.AnyIKeyValuePair? { + get { try! _default.get_CurrentImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.hascurrent) + fileprivate var hasCurrent : Bool { + get { try! _default.get_HasCurrentImpl() } + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRING: WindowsFoundation.IID { + .init(Data1: 0x05eb86f1, Data2: 0x7140, Data3: 0x5517, Data4: ( 0xb8,0x8d,0xcb,0xae,0xbe,0x57,0xe6,0xb1 ))// 05eb86f1-7140-5517-b88d-cbaebe57e6b1 +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGVTable: __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IIterator`1>").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + get_Current: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.current + let resultWrapper = WinAppSDK.__x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + get_HasCurrent: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.hasCurrent + $1?.initialize(to: .init(from: result)) + return S_OK + }, + + MoveNext: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.moveNext() + $1?.initialize(to: .init(from: result)) + return S_OK + }, + + GetMany: { _, _, _, _ in return failWith(err: E_NOTIMPL) } +) +typealias __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper = InterfaceWrapperBase +internal class IIteratorIKeyValuePairString_String: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRING } + + internal func get_CurrentImpl() throws -> WindowsFoundation.AnyIKeyValuePair? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRING.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Current(pThis, &resultAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper.unwrapFrom(abi: result) + } + + internal func get_HasCurrentImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRING.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HasCurrent(pThis, &result)) + } + return .init(from: result) + } + + internal func MoveNextImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRING.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.MoveNext(pThis, &result)) + } + return .init(from: result) + } + +} + +internal enum __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRING + internal typealias SwiftABI = IIteratorIKeyValuePairString_String + internal typealias SwiftProjection = WindowsFoundation.AnyIIterator?> + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGImpl : IIterator, AbiInterfaceImpl { + typealias T = WindowsFoundation.AnyIKeyValuePair? + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGBridge + let _default: Bridge.SwiftABI + init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.movenext) + fileprivate func moveNext() -> Bool { + try! _default.MoveNextImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.current) + fileprivate var current : WindowsFoundation.AnyIKeyValuePair? { + get { try! _default.get_CurrentImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.hascurrent) + fileprivate var hasCurrent : Bool { + get { try! _default.get_HasCurrentImpl() } + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase: WindowsFoundation.IID { + .init(Data1: 0xe1ea9d61, Data2: 0x0e9e, Data3: 0x5375, Data4: ( 0xac,0x74,0x50,0x2e,0x67,0xf9,0xed,0xe1 ))// e1ea9d61-0e9e-5375-ac74-502e67f9ede1 +} + +internal var __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseVTable: __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseVtbl = .init( + QueryInterface: { __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.addRef($0) }, + Release: { __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IKeyValuePair`2").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + get_Key: { + guard let __unwrapped__instance = __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.key + $1?.initialize(to: try! HString(result).detach()) + return S_OK + }, + + get_Value: { + guard let __unwrapped__instance = __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.value + let resultWrapper = __ABI_Microsoft_UI_Composition.ICompositionAnimationBaseWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper = InterfaceWrapperBase +internal class IKeyValuePairString_ICompositionAnimationBase: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase } + + internal func get_KeyImpl() throws -> String { + var result: HSTRING? + _ = try perform(as: __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Key(pThis, &result)) + } + return .init(from: result) + } + + internal func get_ValueImpl() throws -> WinAppSDK.AnyICompositionAnimationBase? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Value(pThis, &resultAbi)) + } + } + return __ABI_Microsoft_UI_Composition.ICompositionAnimationBaseWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase + internal typealias SwiftABI = IKeyValuePairString_ICompositionAnimationBase + internal typealias SwiftProjection = WindowsFoundation.AnyIKeyValuePair + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseImpl : IKeyValuePair, AbiInterfaceImpl { + typealias K = String + typealias V = WinAppSDK.AnyICompositionAnimationBase? + typealias Bridge = __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseBridge + let _default: Bridge.SwiftABI + init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ikeyvaluepair-2.key) + fileprivate var key : String { + get { try! _default.get_KeyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ikeyvaluepair-2.value) + fileprivate var value : WinAppSDK.AnyICompositionAnimationBase? { + get { try! _default.get_ValueImpl() } + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceCandidate: WindowsFoundation.IID { + .init(Data1: 0x6a46de21, Data2: 0x86a6, Data3: 0x536a, Data4: ( 0x93,0x7b,0x1e,0xdf,0xa3,0xe1,0x64,0x74 ))// 6a46de21-86a6-536a-937b-1edfa3e16474 +} + +internal var __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceCandidateVTable: __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceCandidateVtbl = .init( + QueryInterface: { __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceCandidateWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceCandidateWrapper.addRef($0) }, + Release: { __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceCandidateWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceCandidateWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IKeyValuePair`2").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + get_Key: { + guard let __unwrapped__instance = __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceCandidateWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.key + $1?.initialize(to: try! HString(result).detach()) + return S_OK + }, + + get_Value: { + guard let __unwrapped__instance = __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceCandidateWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.value + result?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceCandidateWrapper = InterfaceWrapperBase +internal class IKeyValuePairString_ResourceCandidate: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceCandidate } + + internal func get_KeyImpl() throws -> String { + var result: HSTRING? + _ = try perform(as: __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceCandidate.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Key(pThis, &result)) + } + return .init(from: result) + } + + internal func get_ValueImpl() throws -> WinAppSDK.ResourceCandidate? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceCandidate.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Value(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + +} + +internal enum __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceCandidateBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceCandidate + internal typealias SwiftABI = IKeyValuePairString_ResourceCandidate + internal typealias SwiftProjection = WindowsFoundation.AnyIKeyValuePair + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceCandidateImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceCandidateVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceCandidateImpl : IKeyValuePair, AbiInterfaceImpl { + typealias K = String + typealias V = WinAppSDK.ResourceCandidate? + typealias Bridge = __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceCandidateBridge + let _default: Bridge.SwiftABI + init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ikeyvaluepair-2.key) + fileprivate var key : String { + get { try! _default.get_KeyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ikeyvaluepair-2.value) + fileprivate var value : WinAppSDK.ResourceCandidate? { + get { try! _default.get_ValueImpl() } + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRING: WindowsFoundation.IID { + .init(Data1: 0x60310303, Data2: 0x49c5, Data3: 0x52e6, Data4: ( 0xab,0xc6,0xa9,0xb3,0x6e,0xcc,0xc7,0x16 ))// 60310303-49c5-52e6-abc6-a9b36eccc716 +} + +internal var __x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGVTable: __x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGVtbl = .init( + QueryInterface: { __x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper.addRef($0) }, + Release: { __x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IKeyValuePair`2").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + get_Key: { + guard let __unwrapped__instance = __x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.key + $1?.initialize(to: try! HString(result).detach()) + return S_OK + }, + + get_Value: { + guard let __unwrapped__instance = __x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.value + $1?.initialize(to: try! HString(result).detach()) + return S_OK + } +) +typealias __x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper = InterfaceWrapperBase +internal class IKeyValuePairString_String: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRING } + + internal func get_KeyImpl() throws -> String { + var result: HSTRING? + _ = try perform(as: __x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRING.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Key(pThis, &result)) + } + return .init(from: result) + } + + internal func get_ValueImpl() throws -> String { + var result: HSTRING? + _ = try perform(as: __x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRING.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Value(pThis, &result)) + } + return .init(from: result) + } + +} + +internal enum __x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRING + internal typealias SwiftABI = IKeyValuePairString_String + internal typealias SwiftProjection = WindowsFoundation.AnyIKeyValuePair + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGImpl : IKeyValuePair, AbiInterfaceImpl { + typealias K = String + typealias V = String + typealias Bridge = __x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGBridge + let _default: Bridge.SwiftABI + init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ikeyvaluepair-2.key) + fileprivate var key : String { + get { try! _default.get_KeyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ikeyvaluepair-2.value) + fileprivate var value : String { + get { try! _default.get_ValueImpl() } + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase: WindowsFoundation.IID { + .init(Data1: 0x60d8d804, Data2: 0xd025, Data3: 0x5b6e, Data4: ( 0x80,0x0c,0xb0,0x38,0xcd,0xed,0xba,0xb4 ))// 60d8d804-d025-5b6e-800c-b038cdedbab4 +} + +internal var __x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseVTable: __x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseVtbl = .init( + QueryInterface: { __x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.addRef($0) }, + Release: { __x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 4).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.IID + iids[3] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.IID + $1!.pointee = 4 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IMapView`2").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + Lookup: { + guard let __unwrapped__instance = __x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let key: String = .init(from: $1) + let result = __unwrapped__instance.lookup(key) + let resultWrapper = __ABI_Microsoft_UI_Composition.ICompositionAnimationBaseWrapper(result) + resultWrapper?.copyTo($2) + return S_OK + }, + + get_Size: { + guard let __unwrapped__instance = __x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.size + $1?.initialize(to: result) + return S_OK + }, + + HasKey: { + guard let __unwrapped__instance = __x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let key: String = .init(from: $1) + let result = __unwrapped__instance.hasKey(key) + $2?.initialize(to: .init(from: result)) + return S_OK + }, + + Split: { + guard let __unwrapped__instance = __x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + var first: WindowsFoundation.AnyIMapView? + var second: WindowsFoundation.AnyIMapView? + __unwrapped__instance.split(&first, &second) + let firstWrapper = WinAppSDK.__x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper(first) + firstWrapper?.copyTo($1) + let secondWrapper = WinAppSDK.__x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper(second) + secondWrapper?.copyTo($2) + return S_OK + } +) +typealias __x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper = InterfaceWrapperBase +internal class IMapViewString_ICompositionAnimationBase: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase } + + internal func LookupImpl(_ key: String) throws -> WinAppSDK.AnyICompositionAnimationBase? { + let (result) = try ComPtrs.initialize { resultAbi in + let _key = try! HString(key) + _ = try perform(as: __x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Lookup(pThis, _key.get(), &resultAbi)) + } + } + return __ABI_Microsoft_UI_Composition.ICompositionAnimationBaseWrapper.unwrapFrom(abi: result) + } + + internal func get_SizeImpl() throws -> UInt32 { + var result: UINT32 = 0 + _ = try perform(as: __x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func HasKeyImpl(_ key: String) throws -> Bool { + var result: boolean = 0 + let _key = try! HString(key) + _ = try perform(as: __x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.HasKey(pThis, _key.get(), &result)) + } + return .init(from: result) + } + + internal func SplitImpl(_ first: inout WindowsFoundation.AnyIMapView?, _ second: inout WindowsFoundation.AnyIMapView?) throws { + let (_first, _second) = try ComPtrs.initialize { (_firstAbi, _secondAbi) in + _ = try perform(as: __x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Split(pThis, &_firstAbi, &_secondAbi)) + } + } + first = WinAppSDK.__x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.unwrapFrom(abi: _first) + second = WinAppSDK.__x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.unwrapFrom(abi: _second) + } + +} + +internal enum __x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase + internal typealias SwiftABI = IMapViewString_ICompositionAnimationBase + internal typealias SwiftProjection = WindowsFoundation.AnyIMapView + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseImpl : IMapView, AbiInterfaceImpl { + typealias T = WindowsFoundation.AnyIKeyValuePair? + typealias K = String + typealias V = WinAppSDK.AnyICompositionAnimationBase? + typealias Bridge = __x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseBridge + let _default: Bridge.SwiftABI + init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imapview-2.lookup) + fileprivate func lookup(_ key: String) -> WinAppSDK.AnyICompositionAnimationBase? { + try! _default.LookupImpl(key) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imapview-2.haskey) + fileprivate func hasKey(_ key: String) -> Bool { + try! _default.HasKeyImpl(key) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imapview-2.split) + fileprivate func split(_ first: inout WindowsFoundation.AnyIMapView?, _ second: inout WindowsFoundation.AnyIMapView?) { + try! _default.SplitImpl(&first, &second) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imapview-2.size) + fileprivate var size : UInt32 { + get { try! _default.get_SizeImpl() } + } + + private lazy var _IIterable: IIterableIKeyValuePairString_ICompositionAnimationBase! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imapview-2.first) + fileprivate func first() -> WindowsFoundation.AnyIIterator?>? { + try! _IIterable.FirstImpl() + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIMapView_2_HSTRING_HSTRING: WindowsFoundation.IID { + .init(Data1: 0xac7f26f2, Data2: 0xfeb7, Data3: 0x5b2a, Data4: ( 0x8a,0xc4,0x34,0x5b,0xc6,0x2c,0xae,0xde ))// ac7f26f2-feb7-5b2a-8ac4-345bc62caede +} + +internal var __x_ABI_C__FIMapView_2_HSTRING_HSTRINGVTable: __x_ABI_C__FIMapView_2_HSTRING_HSTRINGVtbl = .init( + QueryInterface: { __x_ABI_C__FIMapView_2_HSTRING_HSTRINGWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIMapView_2_HSTRING_HSTRINGWrapper.addRef($0) }, + Release: { __x_ABI_C__FIMapView_2_HSTRING_HSTRINGWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 4).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIMapView_2_HSTRING_HSTRINGWrapper.IID + iids[3] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper.IID + $1!.pointee = 4 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IMapView`2").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + Lookup: { + guard let __unwrapped__instance = __x_ABI_C__FIMapView_2_HSTRING_HSTRINGWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let key: String = .init(from: $1) + let result = __unwrapped__instance.lookup(key) + $2?.initialize(to: try! HString(result).detach()) + return S_OK + }, + + get_Size: { + guard let __unwrapped__instance = __x_ABI_C__FIMapView_2_HSTRING_HSTRINGWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.size + $1?.initialize(to: result) + return S_OK + }, + + HasKey: { + guard let __unwrapped__instance = __x_ABI_C__FIMapView_2_HSTRING_HSTRINGWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let key: String = .init(from: $1) + let result = __unwrapped__instance.hasKey(key) + $2?.initialize(to: .init(from: result)) + return S_OK + }, + + Split: { + guard let __unwrapped__instance = __x_ABI_C__FIMapView_2_HSTRING_HSTRINGWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + var first: WindowsFoundation.AnyIMapView? + var second: WindowsFoundation.AnyIMapView? + __unwrapped__instance.split(&first, &second) + let firstWrapper = WinAppSDK.__x_ABI_C__FIMapView_2_HSTRING_HSTRINGWrapper(first) + firstWrapper?.copyTo($1) + let secondWrapper = WinAppSDK.__x_ABI_C__FIMapView_2_HSTRING_HSTRINGWrapper(second) + secondWrapper?.copyTo($2) + return S_OK + } +) +typealias __x_ABI_C__FIMapView_2_HSTRING_HSTRINGWrapper = InterfaceWrapperBase +internal class IMapViewString_String: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIMapView_2_HSTRING_HSTRING } + + internal func LookupImpl(_ key: String) throws -> String { + var result: HSTRING? + let _key = try! HString(key) + _ = try perform(as: __x_ABI_C__FIMapView_2_HSTRING_HSTRING.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Lookup(pThis, _key.get(), &result)) + } + return .init(from: result) + } + + internal func get_SizeImpl() throws -> UInt32 { + var result: UINT32 = 0 + _ = try perform(as: __x_ABI_C__FIMapView_2_HSTRING_HSTRING.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func HasKeyImpl(_ key: String) throws -> Bool { + var result: boolean = 0 + let _key = try! HString(key) + _ = try perform(as: __x_ABI_C__FIMapView_2_HSTRING_HSTRING.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.HasKey(pThis, _key.get(), &result)) + } + return .init(from: result) + } + + internal func SplitImpl(_ first: inout WindowsFoundation.AnyIMapView?, _ second: inout WindowsFoundation.AnyIMapView?) throws { + let (_first, _second) = try ComPtrs.initialize { (_firstAbi, _secondAbi) in + _ = try perform(as: __x_ABI_C__FIMapView_2_HSTRING_HSTRING.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Split(pThis, &_firstAbi, &_secondAbi)) + } + } + first = WinAppSDK.__x_ABI_C__FIMapView_2_HSTRING_HSTRINGWrapper.unwrapFrom(abi: _first) + second = WinAppSDK.__x_ABI_C__FIMapView_2_HSTRING_HSTRINGWrapper.unwrapFrom(abi: _second) + } + +} + +internal enum __x_ABI_C__FIMapView_2_HSTRING_HSTRINGBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIMapView_2_HSTRING_HSTRING + internal typealias SwiftABI = IMapViewString_String + internal typealias SwiftProjection = WindowsFoundation.AnyIMapView + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIMapView_2_HSTRING_HSTRINGImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIMapView_2_HSTRING_HSTRINGVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIMapView_2_HSTRING_HSTRINGImpl : IMapView, AbiInterfaceImpl { + typealias T = WindowsFoundation.AnyIKeyValuePair? + typealias K = String + typealias V = String + typealias Bridge = __x_ABI_C__FIMapView_2_HSTRING_HSTRINGBridge + let _default: Bridge.SwiftABI + init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imapview-2.lookup) + fileprivate func lookup(_ key: String) -> String { + try! _default.LookupImpl(key) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imapview-2.haskey) + fileprivate func hasKey(_ key: String) -> Bool { + try! _default.HasKeyImpl(key) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imapview-2.split) + fileprivate func split(_ first: inout WindowsFoundation.AnyIMapView?, _ second: inout WindowsFoundation.AnyIMapView?) { + try! _default.SplitImpl(&first, &second) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imapview-2.size) + fileprivate var size : UInt32 { + get { try! _default.get_SizeImpl() } + } + + private lazy var _IIterable: IIterableIKeyValuePairString_String! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imapview-2.first) + fileprivate func first() -> WindowsFoundation.AnyIIterator?>? { + try! _IIterable.FirstImpl() + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase: WindowsFoundation.IID { + .init(Data1: 0x6a91806a, Data2: 0x8668, Data3: 0x5938, Data4: ( 0x93,0xf9,0x75,0x9d,0x00,0x21,0xab,0x9b ))// 6a91806a-8668-5938-93f9-759d0021ab9b +} + +internal var __x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseVTable: __x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseVtbl = .init( + QueryInterface: { __x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.addRef($0) }, + Release: { __x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 4).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.IID + iids[3] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.IID + $1!.pointee = 4 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IMap`2").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + Lookup: { + guard let __unwrapped__instance = __x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let key: String = .init(from: $1) + let result = __unwrapped__instance.lookup(key) + let resultWrapper = __ABI_Microsoft_UI_Composition.ICompositionAnimationBaseWrapper(result) + resultWrapper?.copyTo($2) + return S_OK + }, + + get_Size: { + guard let __unwrapped__instance = __x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.size + $1?.initialize(to: result) + return S_OK + }, + + HasKey: { + guard let __unwrapped__instance = __x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let key: String = .init(from: $1) + let result = __unwrapped__instance.hasKey(key) + $2?.initialize(to: .init(from: result)) + return S_OK + }, + + GetView: { + guard let __unwrapped__instance = __x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.getView() + let resultWrapper = WinAppSDK.__x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + Insert: { + guard let __unwrapped__instance = __x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let key: String = .init(from: $1) + let value: WinAppSDK.AnyICompositionAnimationBase? = __ABI_Microsoft_UI_Composition.ICompositionAnimationBaseWrapper.unwrapFrom(abi: ComPtr($2)) + let result = __unwrapped__instance.insert(key, value) + $3?.initialize(to: .init(from: result)) + return S_OK + }, + + Remove: { + guard let __unwrapped__instance = __x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let key: String = .init(from: $1) + __unwrapped__instance.remove(key) + return S_OK + }, + + Clear: { + guard let __unwrapped__instance = __x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + __unwrapped__instance.clear() + return S_OK + } +) +typealias __x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper = InterfaceWrapperBase +internal class IMapString_ICompositionAnimationBase: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase } + + internal func LookupImpl(_ key: String) throws -> WinAppSDK.AnyICompositionAnimationBase? { + let (result) = try ComPtrs.initialize { resultAbi in + let _key = try! HString(key) + _ = try perform(as: __x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Lookup(pThis, _key.get(), &resultAbi)) + } + } + return __ABI_Microsoft_UI_Composition.ICompositionAnimationBaseWrapper.unwrapFrom(abi: result) + } + + internal func get_SizeImpl() throws -> UInt32 { + var result: UINT32 = 0 + _ = try perform(as: __x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func HasKeyImpl(_ key: String) throws -> Bool { + var result: boolean = 0 + let _key = try! HString(key) + _ = try perform(as: __x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.HasKey(pThis, _key.get(), &result)) + } + return .init(from: result) + } + + internal func GetViewImpl() throws -> WindowsFoundation.AnyIMapView? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetView(pThis, &resultAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.unwrapFrom(abi: result) + } + + internal func InsertImpl(_ key: String, _ value: WinAppSDK.AnyICompositionAnimationBase?) throws -> Bool { + var result: boolean = 0 + let _key = try! HString(key) + let valueWrapper = __ABI_Microsoft_UI_Composition.ICompositionAnimationBaseWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Insert(pThis, _key.get(), _value, &result)) + } + return .init(from: result) + } + + internal func RemoveImpl(_ key: String) throws { + let _key = try! HString(key) + _ = try perform(as: __x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Remove(pThis, _key.get())) + } + } + + internal func ClearImpl() throws { + _ = try perform(as: __x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis)) + } + } + +} + +internal enum __x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase + internal typealias SwiftABI = IMapString_ICompositionAnimationBase + internal typealias SwiftProjection = WindowsFoundation.AnyIMap + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseImpl : IMap, AbiInterfaceImpl { + typealias T = WindowsFoundation.AnyIKeyValuePair? + typealias K = String + typealias V = WinAppSDK.AnyICompositionAnimationBase? + typealias Bridge = __x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseBridge + let _default: Bridge.SwiftABI + init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imap-2.lookup) + fileprivate func lookup(_ key: String) -> WinAppSDK.AnyICompositionAnimationBase? { + try! _default.LookupImpl(key) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imap-2.haskey) + fileprivate func hasKey(_ key: String) -> Bool { + try! _default.HasKeyImpl(key) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imap-2.getview) + fileprivate func getView() -> WindowsFoundation.AnyIMapView? { + try! _default.GetViewImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imap-2.insert) + fileprivate func insert(_ key: String, _ value: WinAppSDK.AnyICompositionAnimationBase?) -> Bool { + try! _default.InsertImpl(key, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imap-2.remove) + fileprivate func remove(_ key: String) { + try! _default.RemoveImpl(key) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imap-2.clear) + fileprivate func clear() { + try! _default.ClearImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imap-2.size) + fileprivate var size : UInt32 { + get { try! _default.get_SizeImpl() } + } + + private lazy var _IIterable: IIterableIKeyValuePairString_ICompositionAnimationBase! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imap-2.first) + fileprivate func first() -> WindowsFoundation.AnyIIterator?>? { + try! _IIterable.FirstImpl() + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIMap_2_HSTRING_HSTRING: WindowsFoundation.IID { + .init(Data1: 0xf6d1f700, Data2: 0x49c2, Data3: 0x52ae, Data4: ( 0x81,0x54,0x82,0x6f,0x99,0x08,0x77,0x3c ))// f6d1f700-49c2-52ae-8154-826f9908773c +} + +internal var __x_ABI_C__FIMap_2_HSTRING_HSTRINGVTable: __x_ABI_C__FIMap_2_HSTRING_HSTRINGVtbl = .init( + QueryInterface: { __x_ABI_C__FIMap_2_HSTRING_HSTRINGWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIMap_2_HSTRING_HSTRINGWrapper.addRef($0) }, + Release: { __x_ABI_C__FIMap_2_HSTRING_HSTRINGWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 4).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIMap_2_HSTRING_HSTRINGWrapper.IID + iids[3] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper.IID + $1!.pointee = 4 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IMap`2").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + Lookup: { + guard let __unwrapped__instance = __x_ABI_C__FIMap_2_HSTRING_HSTRINGWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let key: String = .init(from: $1) + let result = __unwrapped__instance.lookup(key) + $2?.initialize(to: try! HString(result).detach()) + return S_OK + }, + + get_Size: { + guard let __unwrapped__instance = __x_ABI_C__FIMap_2_HSTRING_HSTRINGWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.size + $1?.initialize(to: result) + return S_OK + }, + + HasKey: { + guard let __unwrapped__instance = __x_ABI_C__FIMap_2_HSTRING_HSTRINGWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let key: String = .init(from: $1) + let result = __unwrapped__instance.hasKey(key) + $2?.initialize(to: .init(from: result)) + return S_OK + }, + + GetView: { + guard let __unwrapped__instance = __x_ABI_C__FIMap_2_HSTRING_HSTRINGWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.getView() + let resultWrapper = WinAppSDK.__x_ABI_C__FIMapView_2_HSTRING_HSTRINGWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + Insert: { + guard let __unwrapped__instance = __x_ABI_C__FIMap_2_HSTRING_HSTRINGWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let key: String = .init(from: $1) + let value: String = .init(from: $2) + let result = __unwrapped__instance.insert(key, value) + $3?.initialize(to: .init(from: result)) + return S_OK + }, + + Remove: { + guard let __unwrapped__instance = __x_ABI_C__FIMap_2_HSTRING_HSTRINGWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let key: String = .init(from: $1) + __unwrapped__instance.remove(key) + return S_OK + }, + + Clear: { + guard let __unwrapped__instance = __x_ABI_C__FIMap_2_HSTRING_HSTRINGWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + __unwrapped__instance.clear() + return S_OK + } +) +typealias __x_ABI_C__FIMap_2_HSTRING_HSTRINGWrapper = InterfaceWrapperBase +internal class IMapString_String: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIMap_2_HSTRING_HSTRING } + + internal func LookupImpl(_ key: String) throws -> String { + var result: HSTRING? + let _key = try! HString(key) + _ = try perform(as: __x_ABI_C__FIMap_2_HSTRING_HSTRING.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Lookup(pThis, _key.get(), &result)) + } + return .init(from: result) + } + + internal func get_SizeImpl() throws -> UInt32 { + var result: UINT32 = 0 + _ = try perform(as: __x_ABI_C__FIMap_2_HSTRING_HSTRING.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func HasKeyImpl(_ key: String) throws -> Bool { + var result: boolean = 0 + let _key = try! HString(key) + _ = try perform(as: __x_ABI_C__FIMap_2_HSTRING_HSTRING.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.HasKey(pThis, _key.get(), &result)) + } + return .init(from: result) + } + + internal func GetViewImpl() throws -> WindowsFoundation.AnyIMapView? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIMap_2_HSTRING_HSTRING.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetView(pThis, &resultAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIMapView_2_HSTRING_HSTRINGWrapper.unwrapFrom(abi: result) + } + + internal func InsertImpl(_ key: String, _ value: String) throws -> Bool { + var result: boolean = 0 + let _key = try! HString(key) + let _value = try! HString(value) + _ = try perform(as: __x_ABI_C__FIMap_2_HSTRING_HSTRING.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Insert(pThis, _key.get(), _value.get(), &result)) + } + return .init(from: result) + } + + internal func RemoveImpl(_ key: String) throws { + let _key = try! HString(key) + _ = try perform(as: __x_ABI_C__FIMap_2_HSTRING_HSTRING.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Remove(pThis, _key.get())) + } + } + + internal func ClearImpl() throws { + _ = try perform(as: __x_ABI_C__FIMap_2_HSTRING_HSTRING.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis)) + } + } + +} + +internal enum __x_ABI_C__FIMap_2_HSTRING_HSTRINGBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIMap_2_HSTRING_HSTRING + internal typealias SwiftABI = IMapString_String + internal typealias SwiftProjection = WindowsFoundation.AnyIMap + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIMap_2_HSTRING_HSTRINGImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIMap_2_HSTRING_HSTRINGVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIMap_2_HSTRING_HSTRINGImpl : IMap, AbiInterfaceImpl { + typealias T = WindowsFoundation.AnyIKeyValuePair? + typealias K = String + typealias V = String + typealias Bridge = __x_ABI_C__FIMap_2_HSTRING_HSTRINGBridge + let _default: Bridge.SwiftABI + init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imap-2.lookup) + fileprivate func lookup(_ key: String) -> String { + try! _default.LookupImpl(key) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imap-2.haskey) + fileprivate func hasKey(_ key: String) -> Bool { + try! _default.HasKeyImpl(key) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imap-2.getview) + fileprivate func getView() -> WindowsFoundation.AnyIMapView? { + try! _default.GetViewImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imap-2.insert) + fileprivate func insert(_ key: String, _ value: String) -> Bool { + try! _default.InsertImpl(key, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imap-2.remove) + fileprivate func remove(_ key: String) { + try! _default.RemoveImpl(key) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imap-2.clear) + fileprivate func clear() { + try! _default.ClearImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imap-2.size) + fileprivate var size : UInt32 { + get { try! _default.get_SizeImpl() } + } + + private lazy var _IIterable: IIterableIKeyValuePairString_String! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imap-2.first) + fileprivate func first() -> WindowsFoundation.AnyIIterator?>? { + try! _IIterable.FirstImpl() + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIVectorView_1_float: WindowsFoundation.IID { + .init(Data1: 0x7bca64fd, Data2: 0x150c, Data3: 0x5d50, Data4: ( 0xb5,0x6b,0x9f,0x4f,0x47,0x4c,0x59,0x30 ))// 7bca64fd-150c-5d50-b56b-9f4f474c5930 +} + +internal var __x_ABI_C__FIVectorView_1_floatVTable: __x_ABI_C__FIVectorView_1_floatVtbl = .init( + QueryInterface: { __x_ABI_C__FIVectorView_1_floatWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVectorView_1_floatWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVectorView_1_floatWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 4).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIVectorView_1_floatWrapper.IID + iids[3] = WinAppSDK.__x_ABI_C__FIIterable_1_floatWrapper.IID + $1!.pointee = 4 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IVectorView`1").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + GetAt: { + guard let __unwrapped__instance = __x_ABI_C__FIVectorView_1_floatWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let result = __unwrapped__instance.getAt(index) + $2?.initialize(to: result) + return S_OK + }, + + get_Size: { + guard let __unwrapped__instance = __x_ABI_C__FIVectorView_1_floatWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.size + $1?.initialize(to: result) + return S_OK + }, + + IndexOf: { + guard let __unwrapped__instance = __x_ABI_C__FIVectorView_1_floatWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: Float = $1 + var index: UInt32 = 0 + let result = __unwrapped__instance.indexOf(value, &index) + $2?.initialize(to: index) + $3?.initialize(to: .init(from: result)) + return S_OK + }, + + GetMany: { _, _, _, _, _ in return failWith(err: E_NOTIMPL) } +) +typealias __x_ABI_C__FIVectorView_1_floatWrapper = InterfaceWrapperBase +internal class IVectorViewFloat: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVectorView_1_float } + + internal func GetAtImpl(_ index: UInt32) throws -> Float { + var result: FLOAT = 0.0 + _ = try perform(as: __x_ABI_C__FIVectorView_1_float.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAt(pThis, index, &result)) + } + return result + } + + internal func get_SizeImpl() throws -> UInt32 { + var result: UINT32 = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1_float.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func IndexOfImpl(_ value: Float, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1_float.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.IndexOf(pThis, value, &index, &result)) + } + return .init(from: result) + } + +} + +internal enum __x_ABI_C__FIVectorView_1_floatBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVectorView_1_float + internal typealias SwiftABI = IVectorViewFloat + internal typealias SwiftProjection = WindowsFoundation.AnyIVectorView + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIVectorView_1_floatImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVectorView_1_floatVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVectorView_1_floatImpl : IVectorView, AbiInterfaceImpl { + typealias T = Float + typealias Bridge = __x_ABI_C__FIVectorView_1_floatBridge + let _default: Bridge.SwiftABI + init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + // MARK: Collection + typealias Element = T + var startIndex: Int { 0 } + var endIndex: Int { Int(size) } + func index(after i: Int) -> Int { + i+1 + } + + func index(of: Element) -> Int? { + var index: UInt32 = 0 + let result = indexOf(of, &index) + guard result else { return nil } + return Int(index) + } + var count: Int { Int(size) } + + subscript(position: Int) -> Element { + get { + getAt(UInt32(position)) + } + } + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.getat) + fileprivate func getAt(_ index: UInt32) -> Float { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.indexof) + fileprivate func indexOf(_ value: Float, _ index: inout UInt32) -> Bool { + try! _default.IndexOfImpl(value, &index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.size) + fileprivate var size : UInt32 { + get { try! _default.get_SizeImpl() } + } + + private lazy var _IIterable: IIterableFloat! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.first) + fileprivate func first() -> WindowsFoundation.AnyIIterator? { + try! _IIterable.FirstImpl() + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop: WindowsFoundation.IID { + .init(Data1: 0xb3f66d8c, Data2: 0x130e, Data3: 0x52d4, Data4: ( 0x80,0x3e,0x53,0x05,0x51,0x9d,0x50,0x56 ))// b3f66d8c-130e-52d4-803e-5305519d5056 +} + +internal var __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopVTable: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopVtbl = .init( + QueryInterface: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 4).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.IID + iids[3] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.IID + $1!.pointee = 4 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IVectorView`1").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + GetAt: { + guard let __unwrapped__instance = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let result = __unwrapped__instance.getAt(index) + result?.copyTo($2) + return S_OK + }, + + get_Size: { + guard let __unwrapped__instance = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.size + $1?.initialize(to: result) + return S_OK + }, + + IndexOf: { + guard let __unwrapped__instance = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinAppSDK.CompositionColorGradientStop? = .from(abi: ComPtr($1)) + var index: UInt32 = 0 + let result = __unwrapped__instance.indexOf(value, &index) + $2?.initialize(to: index) + $3?.initialize(to: .init(from: result)) + return S_OK + }, + + GetMany: { _, _, _, _, _ in return failWith(err: E_NOTIMPL) } +) +typealias __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper = InterfaceWrapperBase +internal class IVectorViewCompositionColorGradientStop: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop } + + internal func GetAtImpl(_ index: UInt32) throws -> WinAppSDK.CompositionColorGradientStop? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAt(pThis, index, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func get_SizeImpl() throws -> UInt32 { + var result: UINT32 = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func IndexOfImpl(_ value: WinAppSDK.CompositionColorGradientStop?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.IndexOf(pThis, RawPointer(value), &index, &result)) + } + return .init(from: result) + } + +} + +internal enum __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop + internal typealias SwiftABI = IVectorViewCompositionColorGradientStop + internal typealias SwiftProjection = WindowsFoundation.AnyIVectorView + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopImpl : IVectorView, AbiInterfaceImpl { + typealias T = WinAppSDK.CompositionColorGradientStop? + typealias Bridge = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopBridge + let _default: Bridge.SwiftABI + init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + // MARK: Collection + typealias Element = T + var startIndex: Int { 0 } + var endIndex: Int { Int(size) } + func index(after i: Int) -> Int { + i+1 + } + + func index(of: Element) -> Int? { + var index: UInt32 = 0 + let result = indexOf(of, &index) + guard result else { return nil } + return Int(index) + } + var count: Int { Int(size) } + + subscript(position: Int) -> Element { + get { + getAt(UInt32(position)) + } + } + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.getat) + fileprivate func getAt(_ index: UInt32) -> WinAppSDK.CompositionColorGradientStop? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.indexof) + fileprivate func indexOf(_ value: WinAppSDK.CompositionColorGradientStop?, _ index: inout UInt32) -> Bool { + try! _default.IndexOfImpl(value, &index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.size) + fileprivate var size : UInt32 { + get { try! _default.get_SizeImpl() } + } + + private lazy var _IIterable: IIterableCompositionColorGradientStop! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.first) + fileprivate func first() -> WindowsFoundation.AnyIIterator? { + try! _IIterable.FirstImpl() + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape: WindowsFoundation.IID { + .init(Data1: 0x7c3d1b0a, Data2: 0x2533, Data3: 0x568b, Data4: ( 0x96,0x3c,0x7f,0xdb,0x57,0x69,0xdb,0xe8 ))// 7c3d1b0a-2533-568b-963c-7fdb5769dbe8 +} + +internal var __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeVTable: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeVtbl = .init( + QueryInterface: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 4).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.IID + iids[3] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.IID + $1!.pointee = 4 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IVectorView`1").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + GetAt: { + guard let __unwrapped__instance = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let result = __unwrapped__instance.getAt(index) + result?.copyTo($2) + return S_OK + }, + + get_Size: { + guard let __unwrapped__instance = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.size + $1?.initialize(to: result) + return S_OK + }, + + IndexOf: { + guard let __unwrapped__instance = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinAppSDK.CompositionShape? = .from(abi: ComPtr($1)) + var index: UInt32 = 0 + let result = __unwrapped__instance.indexOf(value, &index) + $2?.initialize(to: index) + $3?.initialize(to: .init(from: result)) + return S_OK + }, + + GetMany: { _, _, _, _, _ in return failWith(err: E_NOTIMPL) } +) +typealias __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper = InterfaceWrapperBase +internal class IVectorViewCompositionShape: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape } + + internal func GetAtImpl(_ index: UInt32) throws -> WinAppSDK.CompositionShape? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAt(pThis, index, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func get_SizeImpl() throws -> UInt32 { + var result: UINT32 = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func IndexOfImpl(_ value: WinAppSDK.CompositionShape?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.IndexOf(pThis, RawPointer(value), &index, &result)) + } + return .init(from: result) + } + +} + +internal enum __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape + internal typealias SwiftABI = IVectorViewCompositionShape + internal typealias SwiftProjection = WindowsFoundation.AnyIVectorView + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeImpl : IVectorView, AbiInterfaceImpl { + typealias T = WinAppSDK.CompositionShape? + typealias Bridge = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeBridge + let _default: Bridge.SwiftABI + init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + // MARK: Collection + typealias Element = T + var startIndex: Int { 0 } + var endIndex: Int { Int(size) } + func index(after i: Int) -> Int { + i+1 + } + + func index(of: Element) -> Int? { + var index: UInt32 = 0 + let result = indexOf(of, &index) + guard result else { return nil } + return Int(index) + } + var count: Int { Int(size) } + + subscript(position: Int) -> Element { + get { + getAt(UInt32(position)) + } + } + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.getat) + fileprivate func getAt(_ index: UInt32) -> WinAppSDK.CompositionShape? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.indexof) + fileprivate func indexOf(_ value: WinAppSDK.CompositionShape?, _ index: inout UInt32) -> Bool { + try! _default.IndexOfImpl(value, &index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.size) + fileprivate var size : UInt32 { + get { try! _default.get_SizeImpl() } + } + + private lazy var _IIterable: IIterableCompositionShape! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.first) + fileprivate func first() -> WindowsFoundation.AnyIIterator? { + try! _IIterable.FirstImpl() + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint: WindowsFoundation.IID { + .init(Data1: 0x5fbb224b, Data2: 0x8430, Data3: 0x5086, Data4: ( 0xab,0x85,0xe7,0x1d,0xfa,0xa8,0x4c,0x90 ))// 5fbb224b-8430-5086-ab85-e71dfaa84c90 +} + +internal var __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointVTable: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointVtbl = .init( + QueryInterface: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 4).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.IID + iids[3] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.IID + $1!.pointee = 4 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IVectorView`1").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + GetAt: { + guard let __unwrapped__instance = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let result = __unwrapped__instance.getAt(index) + result?.copyTo($2) + return S_OK + }, + + get_Size: { + guard let __unwrapped__instance = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.size + $1?.initialize(to: result) + return S_OK + }, + + IndexOf: { + guard let __unwrapped__instance = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinAppSDK.PointerPoint? = .from(abi: ComPtr($1)) + var index: UInt32 = 0 + let result = __unwrapped__instance.indexOf(value, &index) + $2?.initialize(to: index) + $3?.initialize(to: .init(from: result)) + return S_OK + }, + + GetMany: { _, _, _, _, _ in return failWith(err: E_NOTIMPL) } +) +typealias __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper = InterfaceWrapperBase +internal class IVectorViewPointerPoint: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint } + + internal func GetAtImpl(_ index: UInt32) throws -> WinAppSDK.PointerPoint? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAt(pThis, index, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func get_SizeImpl() throws -> UInt32 { + var result: UINT32 = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func IndexOfImpl(_ value: WinAppSDK.PointerPoint?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.IndexOf(pThis, RawPointer(value), &index, &result)) + } + return .init(from: result) + } + +} + +internal enum __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint + internal typealias SwiftABI = IVectorViewPointerPoint + internal typealias SwiftProjection = WindowsFoundation.AnyIVectorView + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointImpl : IVectorView, AbiInterfaceImpl { + typealias T = WinAppSDK.PointerPoint? + typealias Bridge = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointBridge + let _default: Bridge.SwiftABI + init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + // MARK: Collection + typealias Element = T + var startIndex: Int { 0 } + var endIndex: Int { Int(size) } + func index(after i: Int) -> Int { + i+1 + } + + func index(of: Element) -> Int? { + var index: UInt32 = 0 + let result = indexOf(of, &index) + guard result else { return nil } + return Int(index) + } + var count: Int { Int(size) } + + subscript(position: Int) -> Element { + get { + getAt(UInt32(position)) + } + } + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.getat) + fileprivate func getAt(_ index: UInt32) -> WinAppSDK.PointerPoint? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.indexof) + fileprivate func indexOf(_ value: WinAppSDK.PointerPoint?, _ index: inout UInt32) -> Bool { + try! _default.IndexOfImpl(value, &index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.size) + fileprivate var size : UInt32 { + get { try! _default.get_SizeImpl() } + } + + private lazy var _IIterable: IIterablePointerPoint! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.first) + fileprivate func first() -> WindowsFoundation.AnyIIterator? { + try! _IIterable.FirstImpl() + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayArea: WindowsFoundation.IID { + .init(Data1: 0x63490e13, Data2: 0xd075, Data3: 0x5fe2, Data4: ( 0xb6,0xa4,0x86,0xa4,0x40,0x95,0x21,0x5f ))// 63490e13-d075-5fe2-b6a4-86a44095215f +} + +internal var __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaVTable: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaVtbl = .init( + QueryInterface: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 4).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper.IID + iids[3] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper.IID + $1!.pointee = 4 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IVectorView`1").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + GetAt: { + guard let __unwrapped__instance = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let result = __unwrapped__instance.getAt(index) + result?.copyTo($2) + return S_OK + }, + + get_Size: { + guard let __unwrapped__instance = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.size + $1?.initialize(to: result) + return S_OK + }, + + IndexOf: { + guard let __unwrapped__instance = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinAppSDK.DisplayArea? = .from(abi: ComPtr($1)) + var index: UInt32 = 0 + let result = __unwrapped__instance.indexOf(value, &index) + $2?.initialize(to: index) + $3?.initialize(to: .init(from: result)) + return S_OK + }, + + GetMany: { _, _, _, _, _ in return failWith(err: E_NOTIMPL) } +) +typealias __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper = InterfaceWrapperBase +internal class IVectorViewDisplayArea: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayArea } + + internal func GetAtImpl(_ index: UInt32) throws -> WinAppSDK.DisplayArea? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayArea.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAt(pThis, index, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func get_SizeImpl() throws -> UInt32 { + var result: UINT32 = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayArea.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func IndexOfImpl(_ value: WinAppSDK.DisplayArea?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayArea.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.IndexOf(pThis, RawPointer(value), &index, &result)) + } + return .init(from: result) + } + +} + +internal enum __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayArea + internal typealias SwiftABI = IVectorViewDisplayArea + internal typealias SwiftProjection = WindowsFoundation.AnyIVectorView + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaImpl : IVectorView, AbiInterfaceImpl { + typealias T = WinAppSDK.DisplayArea? + typealias Bridge = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaBridge + let _default: Bridge.SwiftABI + init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + // MARK: Collection + typealias Element = T + var startIndex: Int { 0 } + var endIndex: Int { Int(size) } + func index(after i: Int) -> Int { + i+1 + } + + func index(of: Element) -> Int? { + var index: UInt32 = 0 + let result = indexOf(of, &index) + guard result else { return nil } + return Int(index) + } + var count: Int { Int(size) } + + subscript(position: Int) -> Element { + get { + getAt(UInt32(position)) + } + } + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.getat) + fileprivate func getAt(_ index: UInt32) -> WinAppSDK.DisplayArea? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.indexof) + fileprivate func indexOf(_ value: WinAppSDK.DisplayArea?, _ index: inout UInt32) -> Bool { + try! _default.IndexOfImpl(value, &index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.size) + fileprivate var size : UInt32 { + get { try! _default.get_SizeImpl() } + } + + private lazy var _IIterable: IIterableDisplayArea! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.first) + fileprivate func first() -> WindowsFoundation.AnyIIterator? { + try! _IIterable.FirstImpl() + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance: WindowsFoundation.IID { + .init(Data1: 0x1520072b, Data2: 0xd6f2, Data3: 0x5a95, Data4: ( 0x98,0x8d,0xe6,0xc4,0xa6,0xeb,0x66,0xa4 ))// 1520072b-d6f2-5a95-988d-e6c4a6eb66a4 +} + +internal var __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceVTable: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceVtbl = .init( + QueryInterface: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 4).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.IID + iids[3] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.IID + $1!.pointee = 4 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IVectorView`1").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + GetAt: { + guard let __unwrapped__instance = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let result = __unwrapped__instance.getAt(index) + result?.copyTo($2) + return S_OK + }, + + get_Size: { + guard let __unwrapped__instance = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.size + $1?.initialize(to: result) + return S_OK + }, + + IndexOf: { + guard let __unwrapped__instance = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinAppSDK.AppInstance? = .from(abi: ComPtr($1)) + var index: UInt32 = 0 + let result = __unwrapped__instance.indexOf(value, &index) + $2?.initialize(to: index) + $3?.initialize(to: .init(from: result)) + return S_OK + }, + + GetMany: { _, _, _, _, _ in return failWith(err: E_NOTIMPL) } +) +typealias __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper = InterfaceWrapperBase +internal class IVectorViewAppInstance: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance } + + internal func GetAtImpl(_ index: UInt32) throws -> WinAppSDK.AppInstance? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAt(pThis, index, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func get_SizeImpl() throws -> UInt32 { + var result: UINT32 = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func IndexOfImpl(_ value: WinAppSDK.AppInstance?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.IndexOf(pThis, RawPointer(value), &index, &result)) + } + return .init(from: result) + } + +} + +internal enum __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance + internal typealias SwiftABI = IVectorViewAppInstance + internal typealias SwiftProjection = WindowsFoundation.AnyIVectorView + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceImpl : IVectorView, AbiInterfaceImpl { + typealias T = WinAppSDK.AppInstance? + typealias Bridge = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceBridge + let _default: Bridge.SwiftABI + init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + // MARK: Collection + typealias Element = T + var startIndex: Int { 0 } + var endIndex: Int { Int(size) } + func index(after i: Int) -> Int { + i+1 + } + + func index(of: Element) -> Int? { + var index: UInt32 = 0 + let result = indexOf(of, &index) + guard result else { return nil } + return Int(index) + } + var count: Int { Int(size) } + + subscript(position: Int) -> Element { + get { + getAt(UInt32(position)) + } + } + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.getat) + fileprivate func getAt(_ index: UInt32) -> WinAppSDK.AppInstance? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.indexof) + fileprivate func indexOf(_ value: WinAppSDK.AppInstance?, _ index: inout UInt32) -> Bool { + try! _default.IndexOfImpl(value, &index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.size) + fileprivate var size : UInt32 { + get { try! _default.get_SizeImpl() } + } + + private lazy var _IIterable: IIterableAppInstance! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.first) + fileprivate func first() -> WindowsFoundation.AnyIIterator? { + try! _IIterable.FirstImpl() + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIVector_1_float: WindowsFoundation.IID { + .init(Data1: 0x61cf693f, Data2: 0xdb4c, Data3: 0x579f, Data4: ( 0xb9,0x05,0x5d,0xd3,0xd2,0x3c,0xfd,0x4d ))// 61cf693f-db4c-579f-b905-5dd3d23cfd4d +} + +internal var __x_ABI_C__FIVector_1_floatVTable: __x_ABI_C__FIVector_1_floatVtbl = .init( + QueryInterface: { __x_ABI_C__FIVector_1_floatWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVector_1_floatWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVector_1_floatWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 4).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIVector_1_floatWrapper.IID + iids[3] = WinAppSDK.__x_ABI_C__FIIterable_1_floatWrapper.IID + $1!.pointee = 4 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IVector`1").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + GetAt: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1_floatWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let result = __unwrapped__instance.getAt(index) + $2?.initialize(to: result) + return S_OK + }, + + get_Size: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1_floatWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.size + $1?.initialize(to: result) + return S_OK + }, + + GetView: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1_floatWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.getView() + let resultWrapper = WinAppSDK.__x_ABI_C__FIVectorView_1_floatWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + IndexOf: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1_floatWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: Float = $1 + var index: UInt32 = 0 + let result = __unwrapped__instance.indexOf(value, &index) + $2?.initialize(to: index) + $3?.initialize(to: .init(from: result)) + return S_OK + }, + + SetAt: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1_floatWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: Float = $2 + __unwrapped__instance.setAt(index, value) + return S_OK + }, + + InsertAt: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1_floatWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: Float = $2 + __unwrapped__instance.insertAt(index, value) + return S_OK + }, + + RemoveAt: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1_floatWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + __unwrapped__instance.removeAt(index) + return S_OK + }, + + Append: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1_floatWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: Float = $1 + __unwrapped__instance.append(value) + return S_OK + }, + + RemoveAtEnd: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1_floatWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + __unwrapped__instance.removeAtEnd() + return S_OK + }, + + Clear: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1_floatWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + __unwrapped__instance.clear() + return S_OK + }, + + GetMany: { _, _, _, _, _ in return failWith(err: E_NOTIMPL) }, + + ReplaceAll: { _, _, _ in return failWith(err: E_NOTIMPL) } +) +typealias __x_ABI_C__FIVector_1_floatWrapper = InterfaceWrapperBase +internal class IVectorFloat: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVector_1_float } + + internal func GetAtImpl(_ index: UInt32) throws -> Float { + var result: FLOAT = 0.0 + _ = try perform(as: __x_ABI_C__FIVector_1_float.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAt(pThis, index, &result)) + } + return result + } + + internal func get_SizeImpl() throws -> UInt32 { + var result: UINT32 = 0 + _ = try perform(as: __x_ABI_C__FIVector_1_float.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func GetViewImpl() throws -> WindowsFoundation.AnyIVectorView? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVector_1_float.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetView(pThis, &resultAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIVectorView_1_floatWrapper.unwrapFrom(abi: result) + } + + internal func IndexOfImpl(_ value: Float, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVector_1_float.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.IndexOf(pThis, value, &index, &result)) + } + return .init(from: result) + } + + internal func SetAtImpl(_ index: UInt32, _ value: Float) throws { + _ = try perform(as: __x_ABI_C__FIVector_1_float.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAt(pThis, index, value)) + } + } + + internal func InsertAtImpl(_ index: UInt32, _ value: Float) throws { + _ = try perform(as: __x_ABI_C__FIVector_1_float.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InsertAt(pThis, index, value)) + } + } + + internal func RemoveAtImpl(_ index: UInt32) throws { + _ = try perform(as: __x_ABI_C__FIVector_1_float.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAt(pThis, index)) + } + } + + internal func AppendImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_C__FIVector_1_float.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Append(pThis, value)) + } + } + + internal func RemoveAtEndImpl() throws { + _ = try perform(as: __x_ABI_C__FIVector_1_float.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAtEnd(pThis)) + } + } + + internal func ClearImpl() throws { + _ = try perform(as: __x_ABI_C__FIVector_1_float.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis)) + } + } + +} + +internal enum __x_ABI_C__FIVector_1_floatBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVector_1_float + internal typealias SwiftABI = IVectorFloat + internal typealias SwiftProjection = WindowsFoundation.AnyIVector + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIVector_1_floatImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVector_1_floatVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVector_1_floatImpl : IVector, AbiInterfaceImpl { + typealias T = Float + typealias Bridge = __x_ABI_C__FIVector_1_floatBridge + let _default: Bridge.SwiftABI + init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + // MARK: Collection + typealias Element = T + var startIndex: Int { 0 } + var endIndex: Int { Int(size) } + func index(after i: Int) -> Int { + i+1 + } + + func index(of: Element) -> Int? { + var index: UInt32 = 0 + let result = indexOf(of, &index) + guard result else { return nil } + return Int(index) + } + var count: Int { Int(size) } + + + subscript(position: Int) -> Element { + get { + getAt(UInt32(position)) + } + set(newValue) { + setAt(UInt32(position), newValue) + } + } + + func removeLast() { + removeAtEnd() + } + + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.getat) + fileprivate func getAt(_ index: UInt32) -> Float { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.getview) + fileprivate func getView() -> WindowsFoundation.AnyIVectorView? { + try! _default.GetViewImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.indexof) + fileprivate func indexOf(_ value: Float, _ index: inout UInt32) -> Bool { + try! _default.IndexOfImpl(value, &index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.setat) + fileprivate func setAt(_ index: UInt32, _ value: Float) { + try! _default.SetAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.insertat) + fileprivate func insertAt(_ index: UInt32, _ value: Float) { + try! _default.InsertAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.removeat) + fileprivate func removeAt(_ index: UInt32) { + try! _default.RemoveAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.append) + fileprivate func append(_ value: Float) { + try! _default.AppendImpl(value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.removeatend) + fileprivate func removeAtEnd() { + try! _default.RemoveAtEndImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.clear) + fileprivate func clear() { + try! _default.ClearImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.size) + fileprivate var size : UInt32 { + get { try! _default.get_SizeImpl() } + } + + private lazy var _IIterable: IIterableFloat! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.first) + fileprivate func first() -> WindowsFoundation.AnyIIterator? { + try! _IIterable.FirstImpl() + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop: WindowsFoundation.IID { + .init(Data1: 0x77fa9267, Data2: 0xb867, Data3: 0x5f77, Data4: ( 0x8c,0x02,0x7d,0x85,0x81,0x9d,0x56,0x3b ))// 77fa9267-b867-5f77-8c02-7d85819d563b +} + +internal var __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopVTable: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopVtbl = .init( + QueryInterface: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 4).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.IID + iids[3] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.IID + $1!.pointee = 4 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IVector`1").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + GetAt: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let result = __unwrapped__instance.getAt(index) + result?.copyTo($2) + return S_OK + }, + + get_Size: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.size + $1?.initialize(to: result) + return S_OK + }, + + GetView: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.getView() + let resultWrapper = WinAppSDK.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + IndexOf: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinAppSDK.CompositionColorGradientStop? = .from(abi: ComPtr($1)) + var index: UInt32 = 0 + let result = __unwrapped__instance.indexOf(value, &index) + $2?.initialize(to: index) + $3?.initialize(to: .init(from: result)) + return S_OK + }, + + SetAt: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinAppSDK.CompositionColorGradientStop? = .from(abi: ComPtr($2)) + __unwrapped__instance.setAt(index, value) + return S_OK + }, + + InsertAt: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinAppSDK.CompositionColorGradientStop? = .from(abi: ComPtr($2)) + __unwrapped__instance.insertAt(index, value) + return S_OK + }, + + RemoveAt: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + __unwrapped__instance.removeAt(index) + return S_OK + }, + + Append: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinAppSDK.CompositionColorGradientStop? = .from(abi: ComPtr($1)) + __unwrapped__instance.append(value) + return S_OK + }, + + RemoveAtEnd: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + __unwrapped__instance.removeAtEnd() + return S_OK + }, + + Clear: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + __unwrapped__instance.clear() + return S_OK + }, + + GetMany: { _, _, _, _, _ in return failWith(err: E_NOTIMPL) }, + + ReplaceAll: { _, _, _ in return failWith(err: E_NOTIMPL) } +) +typealias __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper = InterfaceWrapperBase +internal class IVectorCompositionColorGradientStop: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop } + + internal func GetAtImpl(_ index: UInt32) throws -> WinAppSDK.CompositionColorGradientStop? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAt(pThis, index, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func get_SizeImpl() throws -> UInt32 { + var result: UINT32 = 0 + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func GetViewImpl() throws -> WindowsFoundation.AnyIVectorView? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetView(pThis, &resultAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.unwrapFrom(abi: result) + } + + internal func IndexOfImpl(_ value: WinAppSDK.CompositionColorGradientStop?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.IndexOf(pThis, RawPointer(value), &index, &result)) + } + return .init(from: result) + } + + internal func SetAtImpl(_ index: UInt32, _ value: WinAppSDK.CompositionColorGradientStop?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAt(pThis, index, RawPointer(value))) + } + } + + internal func InsertAtImpl(_ index: UInt32, _ value: WinAppSDK.CompositionColorGradientStop?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InsertAt(pThis, index, RawPointer(value))) + } + } + + internal func RemoveAtImpl(_ index: UInt32) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAt(pThis, index)) + } + } + + internal func AppendImpl(_ value: WinAppSDK.CompositionColorGradientStop?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Append(pThis, RawPointer(value))) + } + } + + internal func RemoveAtEndImpl() throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAtEnd(pThis)) + } + } + + internal func ClearImpl() throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis)) + } + } + +} + +internal enum __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop + internal typealias SwiftABI = IVectorCompositionColorGradientStop + internal typealias SwiftProjection = WindowsFoundation.AnyIVector + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopImpl : IVector, AbiInterfaceImpl { + typealias T = WinAppSDK.CompositionColorGradientStop? + typealias Bridge = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopBridge + let _default: Bridge.SwiftABI + init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + // MARK: Collection + typealias Element = T + var startIndex: Int { 0 } + var endIndex: Int { Int(size) } + func index(after i: Int) -> Int { + i+1 + } + + func index(of: Element) -> Int? { + var index: UInt32 = 0 + let result = indexOf(of, &index) + guard result else { return nil } + return Int(index) + } + var count: Int { Int(size) } + + + subscript(position: Int) -> Element { + get { + getAt(UInt32(position)) + } + set(newValue) { + setAt(UInt32(position), newValue) + } + } + + func removeLast() { + removeAtEnd() + } + + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.getat) + fileprivate func getAt(_ index: UInt32) -> WinAppSDK.CompositionColorGradientStop? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.getview) + fileprivate func getView() -> WindowsFoundation.AnyIVectorView? { + try! _default.GetViewImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.indexof) + fileprivate func indexOf(_ value: WinAppSDK.CompositionColorGradientStop?, _ index: inout UInt32) -> Bool { + try! _default.IndexOfImpl(value, &index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.setat) + fileprivate func setAt(_ index: UInt32, _ value: WinAppSDK.CompositionColorGradientStop?) { + try! _default.SetAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.insertat) + fileprivate func insertAt(_ index: UInt32, _ value: WinAppSDK.CompositionColorGradientStop?) { + try! _default.InsertAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.removeat) + fileprivate func removeAt(_ index: UInt32) { + try! _default.RemoveAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.append) + fileprivate func append(_ value: WinAppSDK.CompositionColorGradientStop?) { + try! _default.AppendImpl(value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.removeatend) + fileprivate func removeAtEnd() { + try! _default.RemoveAtEndImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.clear) + fileprivate func clear() { + try! _default.ClearImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.size) + fileprivate var size : UInt32 { + get { try! _default.get_SizeImpl() } + } + + private lazy var _IIterable: IIterableCompositionColorGradientStop! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.first) + fileprivate func first() -> WindowsFoundation.AnyIIterator? { + try! _IIterable.FirstImpl() + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape: WindowsFoundation.IID { + .init(Data1: 0x7397ef7a, Data2: 0xaabd, Data3: 0x50a3, Data4: ( 0x93,0x08,0x06,0xd2,0xa7,0x05,0x06,0x21 ))// 7397ef7a-aabd-50a3-9308-06d2a7050621 +} + +internal var __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeVTable: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeVtbl = .init( + QueryInterface: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 4).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.IID + iids[3] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.IID + $1!.pointee = 4 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IVector`1").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + GetAt: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let result = __unwrapped__instance.getAt(index) + result?.copyTo($2) + return S_OK + }, + + get_Size: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.size + $1?.initialize(to: result) + return S_OK + }, + + GetView: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.getView() + let resultWrapper = WinAppSDK.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + IndexOf: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinAppSDK.CompositionShape? = .from(abi: ComPtr($1)) + var index: UInt32 = 0 + let result = __unwrapped__instance.indexOf(value, &index) + $2?.initialize(to: index) + $3?.initialize(to: .init(from: result)) + return S_OK + }, + + SetAt: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinAppSDK.CompositionShape? = .from(abi: ComPtr($2)) + __unwrapped__instance.setAt(index, value) + return S_OK + }, + + InsertAt: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinAppSDK.CompositionShape? = .from(abi: ComPtr($2)) + __unwrapped__instance.insertAt(index, value) + return S_OK + }, + + RemoveAt: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + __unwrapped__instance.removeAt(index) + return S_OK + }, + + Append: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinAppSDK.CompositionShape? = .from(abi: ComPtr($1)) + __unwrapped__instance.append(value) + return S_OK + }, + + RemoveAtEnd: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + __unwrapped__instance.removeAtEnd() + return S_OK + }, + + Clear: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + __unwrapped__instance.clear() + return S_OK + }, + + GetMany: { _, _, _, _, _ in return failWith(err: E_NOTIMPL) }, + + ReplaceAll: { _, _, _ in return failWith(err: E_NOTIMPL) } +) +typealias __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper = InterfaceWrapperBase +internal class IVectorCompositionShape: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape } + + internal func GetAtImpl(_ index: UInt32) throws -> WinAppSDK.CompositionShape? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAt(pThis, index, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func get_SizeImpl() throws -> UInt32 { + var result: UINT32 = 0 + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func GetViewImpl() throws -> WindowsFoundation.AnyIVectorView? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetView(pThis, &resultAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.unwrapFrom(abi: result) + } + + internal func IndexOfImpl(_ value: WinAppSDK.CompositionShape?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.IndexOf(pThis, RawPointer(value), &index, &result)) + } + return .init(from: result) + } + + internal func SetAtImpl(_ index: UInt32, _ value: WinAppSDK.CompositionShape?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAt(pThis, index, RawPointer(value))) + } + } + + internal func InsertAtImpl(_ index: UInt32, _ value: WinAppSDK.CompositionShape?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InsertAt(pThis, index, RawPointer(value))) + } + } + + internal func RemoveAtImpl(_ index: UInt32) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAt(pThis, index)) + } + } + + internal func AppendImpl(_ value: WinAppSDK.CompositionShape?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Append(pThis, RawPointer(value))) + } + } + + internal func RemoveAtEndImpl() throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAtEnd(pThis)) + } + } + + internal func ClearImpl() throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis)) + } + } + +} + +internal enum __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape + internal typealias SwiftABI = IVectorCompositionShape + internal typealias SwiftProjection = WindowsFoundation.AnyIVector + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeImpl : IVector, AbiInterfaceImpl { + typealias T = WinAppSDK.CompositionShape? + typealias Bridge = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeBridge + let _default: Bridge.SwiftABI + init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + // MARK: Collection + typealias Element = T + var startIndex: Int { 0 } + var endIndex: Int { Int(size) } + func index(after i: Int) -> Int { + i+1 + } + + func index(of: Element) -> Int? { + var index: UInt32 = 0 + let result = indexOf(of, &index) + guard result else { return nil } + return Int(index) + } + var count: Int { Int(size) } + + + subscript(position: Int) -> Element { + get { + getAt(UInt32(position)) + } + set(newValue) { + setAt(UInt32(position), newValue) + } + } + + func removeLast() { + removeAtEnd() + } + + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.getat) + fileprivate func getAt(_ index: UInt32) -> WinAppSDK.CompositionShape? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.getview) + fileprivate func getView() -> WindowsFoundation.AnyIVectorView? { + try! _default.GetViewImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.indexof) + fileprivate func indexOf(_ value: WinAppSDK.CompositionShape?, _ index: inout UInt32) -> Bool { + try! _default.IndexOfImpl(value, &index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.setat) + fileprivate func setAt(_ index: UInt32, _ value: WinAppSDK.CompositionShape?) { + try! _default.SetAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.insertat) + fileprivate func insertAt(_ index: UInt32, _ value: WinAppSDK.CompositionShape?) { + try! _default.InsertAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.removeat) + fileprivate func removeAt(_ index: UInt32) { + try! _default.RemoveAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.append) + fileprivate func append(_ value: WinAppSDK.CompositionShape?) { + try! _default.AppendImpl(value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.removeatend) + fileprivate func removeAtEnd() { + try! _default.RemoveAtEndImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.clear) + fileprivate func clear() { + try! _default.ClearImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.size) + fileprivate var size : UInt32 { + get { try! _default.get_SizeImpl() } + } + + private lazy var _IIterable: IIterableCompositionShape! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.first) + fileprivate func first() -> WindowsFoundation.AnyIIterator? { + try! _IIterable.FirstImpl() + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint: WindowsFoundation.IID { + .init(Data1: 0x8220cf33, Data2: 0x5d76, Data3: 0x5607, Data4: ( 0xbb,0x7d,0xb7,0xcd,0x07,0xd2,0x7f,0x33 ))// 8220cf33-5d76-5607-bb7d-b7cd07d27f33 +} + +internal var __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointVTable: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointVtbl = .init( + QueryInterface: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 4).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.IID + iids[3] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.IID + $1!.pointee = 4 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IVector`1").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + GetAt: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let result = __unwrapped__instance.getAt(index) + result?.copyTo($2) + return S_OK + }, + + get_Size: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.size + $1?.initialize(to: result) + return S_OK + }, + + GetView: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.getView() + let resultWrapper = WinAppSDK.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + IndexOf: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinAppSDK.PointerPoint? = .from(abi: ComPtr($1)) + var index: UInt32 = 0 + let result = __unwrapped__instance.indexOf(value, &index) + $2?.initialize(to: index) + $3?.initialize(to: .init(from: result)) + return S_OK + }, + + SetAt: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinAppSDK.PointerPoint? = .from(abi: ComPtr($2)) + __unwrapped__instance.setAt(index, value) + return S_OK + }, + + InsertAt: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinAppSDK.PointerPoint? = .from(abi: ComPtr($2)) + __unwrapped__instance.insertAt(index, value) + return S_OK + }, + + RemoveAt: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + __unwrapped__instance.removeAt(index) + return S_OK + }, + + Append: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinAppSDK.PointerPoint? = .from(abi: ComPtr($1)) + __unwrapped__instance.append(value) + return S_OK + }, + + RemoveAtEnd: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + __unwrapped__instance.removeAtEnd() + return S_OK + }, + + Clear: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + __unwrapped__instance.clear() + return S_OK + }, + + GetMany: { _, _, _, _, _ in return failWith(err: E_NOTIMPL) }, + + ReplaceAll: { _, _, _ in return failWith(err: E_NOTIMPL) } +) +typealias __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper = InterfaceWrapperBase +internal class IVectorPointerPoint: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint } + + internal func GetAtImpl(_ index: UInt32) throws -> WinAppSDK.PointerPoint? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAt(pThis, index, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func get_SizeImpl() throws -> UInt32 { + var result: UINT32 = 0 + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func GetViewImpl() throws -> WindowsFoundation.AnyIVectorView? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetView(pThis, &resultAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.unwrapFrom(abi: result) + } + + internal func IndexOfImpl(_ value: WinAppSDK.PointerPoint?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.IndexOf(pThis, RawPointer(value), &index, &result)) + } + return .init(from: result) + } + + internal func SetAtImpl(_ index: UInt32, _ value: WinAppSDK.PointerPoint?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAt(pThis, index, RawPointer(value))) + } + } + + internal func InsertAtImpl(_ index: UInt32, _ value: WinAppSDK.PointerPoint?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InsertAt(pThis, index, RawPointer(value))) + } + } + + internal func RemoveAtImpl(_ index: UInt32) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAt(pThis, index)) + } + } + + internal func AppendImpl(_ value: WinAppSDK.PointerPoint?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Append(pThis, RawPointer(value))) + } + } + + internal func RemoveAtEndImpl() throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAtEnd(pThis)) + } + } + + internal func ClearImpl() throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis)) + } + } + +} + +internal enum __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint + internal typealias SwiftABI = IVectorPointerPoint + internal typealias SwiftProjection = WindowsFoundation.AnyIVector + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointImpl : IVector, AbiInterfaceImpl { + typealias T = WinAppSDK.PointerPoint? + typealias Bridge = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointBridge + let _default: Bridge.SwiftABI + init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + // MARK: Collection + typealias Element = T + var startIndex: Int { 0 } + var endIndex: Int { Int(size) } + func index(after i: Int) -> Int { + i+1 + } + + func index(of: Element) -> Int? { + var index: UInt32 = 0 + let result = indexOf(of, &index) + guard result else { return nil } + return Int(index) + } + var count: Int { Int(size) } + + + subscript(position: Int) -> Element { + get { + getAt(UInt32(position)) + } + set(newValue) { + setAt(UInt32(position), newValue) + } + } + + func removeLast() { + removeAtEnd() + } + + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.getat) + fileprivate func getAt(_ index: UInt32) -> WinAppSDK.PointerPoint? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.getview) + fileprivate func getView() -> WindowsFoundation.AnyIVectorView? { + try! _default.GetViewImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.indexof) + fileprivate func indexOf(_ value: WinAppSDK.PointerPoint?, _ index: inout UInt32) -> Bool { + try! _default.IndexOfImpl(value, &index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.setat) + fileprivate func setAt(_ index: UInt32, _ value: WinAppSDK.PointerPoint?) { + try! _default.SetAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.insertat) + fileprivate func insertAt(_ index: UInt32, _ value: WinAppSDK.PointerPoint?) { + try! _default.InsertAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.removeat) + fileprivate func removeAt(_ index: UInt32) { + try! _default.RemoveAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.append) + fileprivate func append(_ value: WinAppSDK.PointerPoint?) { + try! _default.AppendImpl(value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.removeatend) + fileprivate func removeAtEnd() { + try! _default.RemoveAtEndImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.clear) + fileprivate func clear() { + try! _default.ClearImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.size) + fileprivate var size : UInt32 { + get { try! _default.get_SizeImpl() } + } + + private lazy var _IIterable: IIterablePointerPoint! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.first) + fileprivate func first() -> WindowsFoundation.AnyIIterator? { + try! _IIterable.FirstImpl() + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance: WindowsFoundation.IID { + .init(Data1: 0xf37e92bb, Data2: 0xb953, Data3: 0x5d1e, Data4: ( 0xae,0x0b,0x15,0xe4,0x9c,0x19,0x4c,0x98 ))// f37e92bb-b953-5d1e-ae0b-15e49c194c98 +} + +internal var __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceVTable: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceVtbl = .init( + QueryInterface: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 4).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.IID + iids[3] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.IID + $1!.pointee = 4 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IVector`1").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + GetAt: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let result = __unwrapped__instance.getAt(index) + result?.copyTo($2) + return S_OK + }, + + get_Size: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.size + $1?.initialize(to: result) + return S_OK + }, + + GetView: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.getView() + let resultWrapper = WinAppSDK.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + IndexOf: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinAppSDK.AppInstance? = .from(abi: ComPtr($1)) + var index: UInt32 = 0 + let result = __unwrapped__instance.indexOf(value, &index) + $2?.initialize(to: index) + $3?.initialize(to: .init(from: result)) + return S_OK + }, + + SetAt: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinAppSDK.AppInstance? = .from(abi: ComPtr($2)) + __unwrapped__instance.setAt(index, value) + return S_OK + }, + + InsertAt: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinAppSDK.AppInstance? = .from(abi: ComPtr($2)) + __unwrapped__instance.insertAt(index, value) + return S_OK + }, + + RemoveAt: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + __unwrapped__instance.removeAt(index) + return S_OK + }, + + Append: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinAppSDK.AppInstance? = .from(abi: ComPtr($1)) + __unwrapped__instance.append(value) + return S_OK + }, + + RemoveAtEnd: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + __unwrapped__instance.removeAtEnd() + return S_OK + }, + + Clear: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + __unwrapped__instance.clear() + return S_OK + }, + + GetMany: { _, _, _, _, _ in return failWith(err: E_NOTIMPL) }, + + ReplaceAll: { _, _, _ in return failWith(err: E_NOTIMPL) } +) +typealias __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper = InterfaceWrapperBase +internal class IVectorAppInstance: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance } + + internal func GetAtImpl(_ index: UInt32) throws -> WinAppSDK.AppInstance? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAt(pThis, index, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func get_SizeImpl() throws -> UInt32 { + var result: UINT32 = 0 + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func GetViewImpl() throws -> WindowsFoundation.AnyIVectorView? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetView(pThis, &resultAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.unwrapFrom(abi: result) + } + + internal func IndexOfImpl(_ value: WinAppSDK.AppInstance?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.IndexOf(pThis, RawPointer(value), &index, &result)) + } + return .init(from: result) + } + + internal func SetAtImpl(_ index: UInt32, _ value: WinAppSDK.AppInstance?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAt(pThis, index, RawPointer(value))) + } + } + + internal func InsertAtImpl(_ index: UInt32, _ value: WinAppSDK.AppInstance?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InsertAt(pThis, index, RawPointer(value))) + } + } + + internal func RemoveAtImpl(_ index: UInt32) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAt(pThis, index)) + } + } + + internal func AppendImpl(_ value: WinAppSDK.AppInstance?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Append(pThis, RawPointer(value))) + } + } + + internal func RemoveAtEndImpl() throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAtEnd(pThis)) + } + } + + internal func ClearImpl() throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis)) + } + } + +} + +internal enum __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance + internal typealias SwiftABI = IVectorAppInstance + internal typealias SwiftProjection = WindowsFoundation.AnyIVector + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceImpl : IVector, AbiInterfaceImpl { + typealias T = WinAppSDK.AppInstance? + typealias Bridge = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceBridge + let _default: Bridge.SwiftABI + init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + // MARK: Collection + typealias Element = T + var startIndex: Int { 0 } + var endIndex: Int { Int(size) } + func index(after i: Int) -> Int { + i+1 + } + + func index(of: Element) -> Int? { + var index: UInt32 = 0 + let result = indexOf(of, &index) + guard result else { return nil } + return Int(index) + } + var count: Int { Int(size) } + + + subscript(position: Int) -> Element { + get { + getAt(UInt32(position)) + } + set(newValue) { + setAt(UInt32(position), newValue) + } + } + + func removeLast() { + removeAtEnd() + } + + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.getat) + fileprivate func getAt(_ index: UInt32) -> WinAppSDK.AppInstance? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.getview) + fileprivate func getView() -> WindowsFoundation.AnyIVectorView? { + try! _default.GetViewImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.indexof) + fileprivate func indexOf(_ value: WinAppSDK.AppInstance?, _ index: inout UInt32) -> Bool { + try! _default.IndexOfImpl(value, &index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.setat) + fileprivate func setAt(_ index: UInt32, _ value: WinAppSDK.AppInstance?) { + try! _default.SetAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.insertat) + fileprivate func insertAt(_ index: UInt32, _ value: WinAppSDK.AppInstance?) { + try! _default.InsertAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.removeat) + fileprivate func removeAt(_ index: UInt32) { + try! _default.RemoveAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.append) + fileprivate func append(_ value: WinAppSDK.AppInstance?) { + try! _default.AppendImpl(value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.removeatend) + fileprivate func removeAtEnd() { + try! _default.RemoveAtEndImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.clear) + fileprivate func clear() { + try! _default.ClearImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.size) + fileprivate var size : UInt32 { + get { try! _default.get_SizeImpl() } + } + + private lazy var _IIterable: IIterableAppInstance! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.first) + fileprivate func first() -> WindowsFoundation.AnyIIterator? { + try! _IIterable.FirstImpl() + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppActivationArguments: WindowsFoundation.IID { + .init(Data1: 0x37d74b33, Data2: 0x9510, Data3: 0x5748, Data4: ( 0xb3,0x3d,0x46,0x76,0xee,0x2b,0x48,0xa7 ))// 37d74b33-9510-5748-b33d-4676ee2b48a7 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppActivationArguments { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppActivationArgumentsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppActivationArgumentsVTable: __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppActivationArgumentsVtbl = .init( + QueryInterface: { __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppActivationArgumentsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppActivationArgumentsWrapper.addRef($0) }, + Release: { __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppActivationArgumentsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppActivationArgumentsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let args: WinAppSDK.AppActivationArguments? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppActivationArgumentsWrapper = InterfaceWrapperBase +internal class EventHandlerAppActivationArguments: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppActivationArguments } + + internal func InvokeImpl(_ sender: Any?, _ args: WinAppSDK.AppActivationArguments?) throws { + let senderWrapper = __ABI_.AnyWrapper(sender) + let _sender = try! senderWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppActivationArguments.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(args))) + } + } + +} + +internal class __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppActivationArgumentsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.EventHandler + internal typealias CABI = __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppActivationArguments + internal typealias SwiftABI = WinAppSDK.EventHandlerAppActivationArguments + + internal static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, args) in + try! _default.InvokeImpl(sender, args) + } + return handler + } +} +private var IID___x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurface: WindowsFoundation.IID { + .init(Data1: 0x92ceaa5d, Data2: 0xb255, Data3: 0x57d9, Data4: ( 0xab,0x7c,0x0f,0x30,0x44,0x85,0xc1,0xbd ))// 92ceaa5d-b255-57d9-ab7c-0f304485c1bd +} + +internal var __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceVTable: __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceVtbl = .init( + QueryInterface: { __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceWrapper.addRef($0) }, + Release: { __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 4).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceWrapper.IID + iids[3] = __ABI_Windows_Foundation.IAsyncInfoWrapper.IID + $1!.pointee = 4 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.IAsyncOperation`1").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + put_Completed: { + guard let __unwrapped__instance = __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + guard let handler = WinAppSDK.__x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceWrapper.unwrapFrom(abi: ComPtr($1)) else { return E_INVALIDARG } + __unwrapped__instance.completed = handler + return S_OK + }, + + get_Completed: { + guard let __unwrapped__instance = __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.completed + let resultWrapper = WinAppSDK.__x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + GetResults: { + do { + guard let __unwrapped__instance = __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.getResults() + let resultWrapper = __ABI_Microsoft_UI_Composition.ICompositionSurfaceWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } catch { return failWith(err: E_FAIL) } + } +) +typealias __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceWrapper = InterfaceWrapperBase +internal class IAsyncOperationICompositionSurface: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurface } + + internal func put_CompletedImpl(_ handler: AsyncOperationCompletedHandler?) throws { + let handlerWrapper = WinAppSDK.__x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurface.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Completed(pThis, _handler)) + } + } + + internal func get_CompletedImpl() throws -> AsyncOperationCompletedHandler? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurface.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Completed(pThis, &resultAbi)) + } + } + return WinAppSDK.__x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceWrapper.unwrapFrom(abi: result) + } + + internal func GetResultsImpl() throws -> WinAppSDK.AnyICompositionSurface? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurface.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetResults(pThis, &resultAbi)) + } + } + return __ABI_Microsoft_UI_Composition.ICompositionSurfaceWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurface + internal typealias SwiftABI = IAsyncOperationICompositionSurface + internal typealias SwiftProjection = WindowsFoundation.AnyIAsyncOperation + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceImpl : IAsyncOperation, AbiInterfaceImpl { + typealias TResult = WinAppSDK.AnyICompositionSurface? + typealias Bridge = __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceBridge + let _default: Bridge.SwiftABI + init(_ fromAbi: ComPtr) { + _default = Bridge.SwiftABI(fromAbi) + } + + // MARK: WinRT + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.iasyncoperation-1.getresults) + fileprivate func getResults() throws -> WinAppSDK.AnyICompositionSurface? { + try _default.GetResultsImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.iasyncoperation-1.completed) + fileprivate var completed : AsyncOperationCompletedHandler? { + get { try! _default.get_CompletedImpl() } + set { try! _default.put_CompletedImpl(newValue) } + } + + private lazy var _IAsyncInfo: __ABI_Windows_Foundation.IAsyncInfo! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.iasyncoperation-1.cancel) + fileprivate func cancel() throws { + try _IAsyncInfo.CancelImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.iasyncoperation-1.close) + fileprivate func close() throws { + try _IAsyncInfo.CloseImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.iasyncoperation-1.errorcode) + fileprivate var errorCode : HRESULT { + get { try! _IAsyncInfo.get_ErrorCodeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.iasyncoperation-1.id) + fileprivate var id : UInt32 { + get { try! _IAsyncInfo.get_IdImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.iasyncoperation-1.status) + fileprivate var status : WindowsFoundation.AsyncStatus { + get { try! _IAsyncInfo.get_StatusImpl() } + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIReference_1_float: WindowsFoundation.IID { + .init(Data1: 0x719cc2ba, Data2: 0x3e76, Data3: 0x5def, Data4: ( 0x9f,0x1a,0x38,0xd8,0x5a,0x14,0x5e,0xa8 ))// 719cc2ba-3e76-5def-9f1a-38d85a145ea8 +} + +internal enum __x_ABI_C__FIReference_1_floatBridge: ReferenceBridge { + typealias CABI = __x_ABI_C__FIReference_1_float + typealias SwiftProjection = Float + static var IID: WindowsFoundation.IID { IID___x_ABI_C__FIReference_1_float } + + static func from(abi: ComPtr?) -> SwiftProjection? { + guard let val = abi else { return nil } + var result: FLOAT = 0.0 + try! CHECKED(val.get().pointee.lpVtbl.pointee.get_Value(val.get(), &result)) + return result + } + + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIReference_1_floatVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} +internal var __x_ABI_C__FIReference_1_floatVTable: __x_ABI_C__FIReference_1_floatVtbl = .init( + QueryInterface: { __x_ABI_C__FIReference_1_floatWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIReference_1_floatWrapper.addRef($0) }, + Release: { __x_ABI_C__FIReference_1_floatWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 4).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIReference_1_floatWrapper.IID + iids[3] = __ABI_Windows_Foundation.IPropertyValueWrapper.IID + $1!.pointee = 4 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.IReference`1").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + get_Value: { + guard let __unwrapped__instance = __x_ABI_C__FIReference_1_floatWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance + $1?.initialize(to: result) + return S_OK + } +) +typealias __x_ABI_C__FIReference_1_floatWrapper = ReferenceWrapperBase +private var IID___x_ABI_C__FIReference_1___x_ABI_CMicrosoft__CUI__CContent__CContentLayoutDirection: WindowsFoundation.IID { + .init(Data1: 0x76e53eed, Data2: 0x3539, Data3: 0x540b, Data4: ( 0x8d,0x51,0x42,0x06,0xbc,0xa6,0x3f,0x5f ))// 76e53eed-3539-540b-8d51-4206bca63f5f +} + +internal enum __x_ABI_C__FIReference_1___x_ABI_CMicrosoft__CUI__CContent__CContentLayoutDirectionBridge: ReferenceBridge { + typealias CABI = __x_ABI_C__FIReference_1___x_ABI_CMicrosoft__CUI__CContent__CContentLayoutDirection + typealias SwiftProjection = WinAppSDK.ContentLayoutDirection + static var IID: WindowsFoundation.IID { IID___x_ABI_C__FIReference_1___x_ABI_CMicrosoft__CUI__CContent__CContentLayoutDirection } + + static func from(abi: ComPtr?) -> SwiftProjection? { + guard let val = abi else { return nil } + var result: __x_ABI_CMicrosoft_CUI_CContent_CContentLayoutDirection = .init(0) + try! CHECKED(val.get().pointee.lpVtbl.pointee.get_Value(val.get(), &result)) + return result + } + + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIReference_1___x_ABI_CMicrosoft__CUI__CContent__CContentLayoutDirectionVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} +internal var __x_ABI_C__FIReference_1___x_ABI_CMicrosoft__CUI__CContent__CContentLayoutDirectionVTable: __x_ABI_C__FIReference_1___x_ABI_CMicrosoft__CUI__CContent__CContentLayoutDirectionVtbl = .init( + QueryInterface: { __x_ABI_C__FIReference_1___x_ABI_CMicrosoft__CUI__CContent__CContentLayoutDirectionWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIReference_1___x_ABI_CMicrosoft__CUI__CContent__CContentLayoutDirectionWrapper.addRef($0) }, + Release: { __x_ABI_C__FIReference_1___x_ABI_CMicrosoft__CUI__CContent__CContentLayoutDirectionWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 4).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CMicrosoft__CUI__CContent__CContentLayoutDirectionWrapper.IID + iids[3] = __ABI_Windows_Foundation.IPropertyValueWrapper.IID + $1!.pointee = 4 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.IReference`1").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + get_Value: { + guard let __unwrapped__instance = __x_ABI_C__FIReference_1___x_ABI_CMicrosoft__CUI__CContent__CContentLayoutDirectionWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance + $1?.initialize(to: result) + return S_OK + } +) +typealias __x_ABI_C__FIReference_1___x_ABI_CMicrosoft__CUI__CContent__CContentLayoutDirectionWrapper = ReferenceWrapperBase +private var IID___x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector2: WindowsFoundation.IID { + .init(Data1: 0x48f6a69e, Data2: 0x8465, Data3: 0x57ae, Data4: ( 0x94,0x00,0x97,0x64,0x08,0x7f,0x65,0xad ))// 48f6a69e-8465-57ae-9400-9764087f65ad +} + +internal enum __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector2Bridge: ReferenceBridge { + typealias CABI = __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector2 + typealias SwiftProjection = WindowsFoundation.Vector2 + static var IID: WindowsFoundation.IID { IID___x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector2 } + + static func from(abi: ComPtr?) -> SwiftProjection? { + guard let val = abi else { return nil } + var result: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init() + try! CHECKED(val.get().pointee.lpVtbl.pointee.get_Value(val.get(), &result)) + return .from(abi: result) + } + + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector2VTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} +internal var __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector2VTable: __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector2Vtbl = .init( + QueryInterface: { __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector2Wrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector2Wrapper.addRef($0) }, + Release: { __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector2Wrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 4).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector2Wrapper.IID + iids[3] = __ABI_Windows_Foundation.IPropertyValueWrapper.IID + $1!.pointee = 4 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.IReference`1").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + get_Value: { + guard let __unwrapped__instance = __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector2Wrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance + $1?.initialize(to: .from(swift: result)) + return S_OK + } +) +typealias __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector2Wrapper = ReferenceWrapperBase +private var IID___x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector3: WindowsFoundation.IID { + .init(Data1: 0x1ee770ff, Data2: 0xc954, Data3: 0x59ca, Data4: ( 0xa7,0x54,0x61,0x99,0xa9,0xbe,0x28,0x2c ))// 1ee770ff-c954-59ca-a754-6199a9be282c +} + +internal enum __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector3Bridge: ReferenceBridge { + typealias CABI = __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector3 + typealias SwiftProjection = WindowsFoundation.Vector3 + static var IID: WindowsFoundation.IID { IID___x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector3 } + + static func from(abi: ComPtr?) -> SwiftProjection? { + guard let val = abi else { return nil } + var result: __x_ABI_CWindows_CFoundation_CNumerics_CVector3 = .init() + try! CHECKED(val.get().pointee.lpVtbl.pointee.get_Value(val.get(), &result)) + return .from(abi: result) + } + + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector3VTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} +internal var __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector3VTable: __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector3Vtbl = .init( + QueryInterface: { __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector3Wrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector3Wrapper.addRef($0) }, + Release: { __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector3Wrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 4).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector3Wrapper.IID + iids[3] = __ABI_Windows_Foundation.IPropertyValueWrapper.IID + $1!.pointee = 4 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.IReference`1").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + get_Value: { + guard let __unwrapped__instance = __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector3Wrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance + $1?.initialize(to: .from(swift: result)) + return S_OK + } +) +typealias __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector3Wrapper = ReferenceWrapperBase +private var IID___x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CRect: WindowsFoundation.IID { + .init(Data1: 0x80423f11, Data2: 0x054f, Data3: 0x5eac, Data4: ( 0xaf,0xd3,0x63,0xb6,0xce,0x15,0xe7,0x7b ))// 80423f11-054f-5eac-afd3-63b6ce15e77b +} + +internal enum __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CRectBridge: ReferenceBridge { + typealias CABI = __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CRect + typealias SwiftProjection = WindowsFoundation.Rect + static var IID: WindowsFoundation.IID { IID___x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CRect } + + static func from(abi: ComPtr?) -> SwiftProjection? { + guard let val = abi else { return nil } + var result: __x_ABI_CWindows_CFoundation_CRect = .init() + try! CHECKED(val.get().pointee.lpVtbl.pointee.get_Value(val.get(), &result)) + return .from(abi: result) + } + + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CRectVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} +internal var __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CRectVTable: __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CRectVtbl = .init( + QueryInterface: { __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CRectWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CRectWrapper.addRef($0) }, + Release: { __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CRectWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 4).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CRectWrapper.IID + iids[3] = __ABI_Windows_Foundation.IPropertyValueWrapper.IID + $1!.pointee = 4 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.IReference`1").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + get_Value: { + guard let __unwrapped__instance = __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CRectWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance + $1?.initialize(to: .from(swift: result)) + return S_OK + } +) +typealias __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CRectWrapper = ReferenceWrapperBase +private var IID___x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColor: WindowsFoundation.IID { + .init(Data1: 0xab8e5d11, Data2: 0xb0c1, Data3: 0x5a21, Data4: ( 0x95,0xae,0xf1,0x6b,0xf3,0xa3,0x76,0x24 ))// ab8e5d11-b0c1-5a21-95ae-f16bf3a37624 +} + +internal enum __x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColorBridge: ReferenceBridge { + typealias CABI = __x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColor + typealias SwiftProjection = UWP.Color + static var IID: WindowsFoundation.IID { IID___x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColor } + + static func from(abi: ComPtr?) -> SwiftProjection? { + guard let val = abi else { return nil } + var result: __x_ABI_CWindows_CUI_CColor = .init() + try! CHECKED(val.get().pointee.lpVtbl.pointee.get_Value(val.get(), &result)) + return .from(abi: result) + } + + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColorVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} +internal var __x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColorVTable: __x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColorVtbl = .init( + QueryInterface: { __x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColorWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColorWrapper.addRef($0) }, + Release: { __x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColorWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 4).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColorWrapper.IID + iids[3] = __ABI_Windows_Foundation.IPropertyValueWrapper.IID + $1!.pointee = 4 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.IReference`1").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + get_Value: { + guard let __unwrapped__instance = __x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColorWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance + $1?.initialize(to: .from(swift: result)) + return S_OK + } +) +typealias __x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColorWrapper = ReferenceWrapperBase +private var IID___x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CComposition__CCompositionBatchCompletedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xde522e05, Data2: 0x2e72, Data3: 0x52ee, Data4: ( 0xbd,0x1f,0xac,0x25,0xa0,0x70,0x80,0x03 ))// de522e05-2e72-52ee-bd1f-ac25a0708003 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CComposition__CCompositionBatchCompletedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CComposition__CCompositionBatchCompletedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CComposition__CCompositionBatchCompletedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CComposition__CCompositionBatchCompletedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CComposition__CCompositionBatchCompletedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CComposition__CCompositionBatchCompletedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CComposition__CCompositionBatchCompletedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CComposition__CCompositionBatchCompletedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let args: WinAppSDK.CompositionBatchCompletedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CComposition__CCompositionBatchCompletedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerAny_CompositionBatchCompletedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CComposition__CCompositionBatchCompletedEventArgs } + + internal func InvokeImpl(_ sender: Any?, _ args: WinAppSDK.CompositionBatchCompletedEventArgs?) throws { + let senderWrapper = __ABI_.AnyWrapper(sender) + let _sender = try! senderWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CComposition__CCompositionBatchCompletedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(args))) + } + } + +} + +internal class __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CComposition__CCompositionBatchCompletedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CComposition__CCompositionBatchCompletedEventArgs + internal typealias SwiftABI = WinAppSDK.TypedEventHandlerAny_CompositionBatchCompletedEventArgs + + internal static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, args) in + try! _default.InvokeImpl(sender, args) + } + return handler + } +} +private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionCapabilities_IInspectable: WindowsFoundation.IID { + .init(Data1: 0xd81e5eac, Data2: 0xc5ba, Data3: 0x59aa, Data4: ( 0xae,0xd3,0xf8,0xaf,0xdd,0x07,0xa3,0x51 ))// d81e5eac-c5ba-59aa-aed3-f8afdd07a351 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionCapabilities_IInspectable { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionCapabilities_IInspectableVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionCapabilities_IInspectableVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionCapabilities_IInspectableVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionCapabilities_IInspectableWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionCapabilities_IInspectableWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionCapabilities_IInspectableWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionCapabilities_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinAppSDK.CompositionCapabilities? = .from(abi: ComPtr($1)) + let args: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionCapabilities_IInspectableWrapper = InterfaceWrapperBase +internal class TypedEventHandlerCompositionCapabilities_Any: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionCapabilities_IInspectable } + + internal func InvokeImpl(_ sender: WinAppSDK.CompositionCapabilities?, _ args: Any?) throws { + let argsWrapper = __ABI_.AnyWrapper(args) + let _args = try! argsWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionCapabilities_IInspectable.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), _args)) + } + } + +} + +internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionCapabilities_IInspectableBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionCapabilities_IInspectable + internal typealias SwiftABI = WinAppSDK.TypedEventHandlerCompositionCapabilities_Any + + internal static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, args) in + try! _default.InvokeImpl(sender, args) + } + return handler + } +} +private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionGraphicsDevice___x_ABI_CMicrosoft__CUI__CComposition__CRenderingDeviceReplacedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x2a8eb053, Data2: 0x059a, Data3: 0x54a0, Data4: ( 0x92,0x04,0x66,0x58,0x6a,0xb4,0xc8,0xd6 ))// 2a8eb053-059a-54a0-9204-66586ab4c8d6 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionGraphicsDevice___x_ABI_CMicrosoft__CUI__CComposition__CRenderingDeviceReplacedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionGraphicsDevice___x_ABI_CMicrosoft__CUI__CComposition__CRenderingDeviceReplacedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionGraphicsDevice___x_ABI_CMicrosoft__CUI__CComposition__CRenderingDeviceReplacedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionGraphicsDevice___x_ABI_CMicrosoft__CUI__CComposition__CRenderingDeviceReplacedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionGraphicsDevice___x_ABI_CMicrosoft__CUI__CComposition__CRenderingDeviceReplacedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionGraphicsDevice___x_ABI_CMicrosoft__CUI__CComposition__CRenderingDeviceReplacedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionGraphicsDevice___x_ABI_CMicrosoft__CUI__CComposition__CRenderingDeviceReplacedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionGraphicsDevice___x_ABI_CMicrosoft__CUI__CComposition__CRenderingDeviceReplacedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinAppSDK.CompositionGraphicsDevice? = .from(abi: ComPtr($1)) + let args: WinAppSDK.RenderingDeviceReplacedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionGraphicsDevice___x_ABI_CMicrosoft__CUI__CComposition__CRenderingDeviceReplacedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerCompositionGraphicsDevice_RenderingDeviceReplacedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionGraphicsDevice___x_ABI_CMicrosoft__CUI__CComposition__CRenderingDeviceReplacedEventArgs } + + internal func InvokeImpl(_ sender: WinAppSDK.CompositionGraphicsDevice?, _ args: WinAppSDK.RenderingDeviceReplacedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionGraphicsDevice___x_ABI_CMicrosoft__CUI__CComposition__CRenderingDeviceReplacedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args))) + } + } + +} + +internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionGraphicsDevice___x_ABI_CMicrosoft__CUI__CComposition__CRenderingDeviceReplacedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionGraphicsDevice___x_ABI_CMicrosoft__CUI__CComposition__CRenderingDeviceReplacedEventArgs + internal typealias SwiftABI = WinAppSDK.TypedEventHandlerCompositionGraphicsDevice_RenderingDeviceReplacedEventArgs + + internal static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, args) in + try! _default.InvokeImpl(sender, args) + } + return handler + } +} +private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CSystemBackdrops__CISystemBackdropControllerWithTargets_IInspectable: WindowsFoundation.IID { + .init(Data1: 0x4c245142, Data2: 0x08e6, Data3: 0x5719, Data4: ( 0xba,0xcb,0xa2,0xd2,0xf1,0x89,0x47,0xc6 ))// 4c245142-08e6-5719-bacb-a2d2f18947c6 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CSystemBackdrops__CISystemBackdropControllerWithTargets_IInspectable { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CSystemBackdrops__CISystemBackdropControllerWithTargets_IInspectableVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CSystemBackdrops__CISystemBackdropControllerWithTargets_IInspectableVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CSystemBackdrops__CISystemBackdropControllerWithTargets_IInspectableVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CSystemBackdrops__CISystemBackdropControllerWithTargets_IInspectableWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CSystemBackdrops__CISystemBackdropControllerWithTargets_IInspectableWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CSystemBackdrops__CISystemBackdropControllerWithTargets_IInspectableWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CSystemBackdrops__CISystemBackdropControllerWithTargets_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinAppSDK.AnyISystemBackdropControllerWithTargets? = __ABI_Microsoft_UI_Composition_SystemBackdrops.ISystemBackdropControllerWithTargetsWrapper.unwrapFrom(abi: ComPtr($1)) + let args: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CSystemBackdrops__CISystemBackdropControllerWithTargets_IInspectableWrapper = InterfaceWrapperBase +internal class TypedEventHandlerISystemBackdropControllerWithTargets_Any: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CSystemBackdrops__CISystemBackdropControllerWithTargets_IInspectable } + + internal func InvokeImpl(_ sender: WinAppSDK.AnyISystemBackdropControllerWithTargets?, _ args: Any?) throws { + let senderWrapper = __ABI_Microsoft_UI_Composition_SystemBackdrops.ISystemBackdropControllerWithTargetsWrapper(sender) + let _sender = try! senderWrapper?.toABI { $0 } + let argsWrapper = __ABI_.AnyWrapper(args) + let _args = try! argsWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CSystemBackdrops__CISystemBackdropControllerWithTargets_IInspectable.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, _args)) + } + } + +} + +internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CSystemBackdrops__CISystemBackdropControllerWithTargets_IInspectableBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CSystemBackdrops__CISystemBackdropControllerWithTargets_IInspectable + internal typealias SwiftABI = WinAppSDK.TypedEventHandlerISystemBackdropControllerWithTargets_Any + + internal static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, args) in + try! _default.InvokeImpl(sender, args) + } + return handler + } +} +private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandAutomationProviderRequestedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x3b44f287, Data2: 0xf0ef, Data3: 0x5d10, Data4: ( 0xab,0x5f,0x1b,0x32,0x4f,0x45,0xf7,0xda ))// 3b44f287-f0ef-5d10-ab5f-1b324f45f7da +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandAutomationProviderRequestedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandAutomationProviderRequestedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandAutomationProviderRequestedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandAutomationProviderRequestedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandAutomationProviderRequestedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandAutomationProviderRequestedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandAutomationProviderRequestedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandAutomationProviderRequestedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinAppSDK.ContentIsland? = .from(abi: ComPtr($1)) + let args: WinAppSDK.ContentIslandAutomationProviderRequestedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandAutomationProviderRequestedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerContentIsland_ContentIslandAutomationProviderRequestedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandAutomationProviderRequestedEventArgs } + + internal func InvokeImpl(_ sender: WinAppSDK.ContentIsland?, _ args: WinAppSDK.ContentIslandAutomationProviderRequestedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandAutomationProviderRequestedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args))) + } + } + +} + +internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandAutomationProviderRequestedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandAutomationProviderRequestedEventArgs + internal typealias SwiftABI = WinAppSDK.TypedEventHandlerContentIsland_ContentIslandAutomationProviderRequestedEventArgs + + internal static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, args) in + try! _default.InvokeImpl(sender, args) + } + return handler + } +} +private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandStateChangedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xceb771a4, Data2: 0xbf66, Data3: 0x529d, Data4: ( 0x88,0x3a,0x60,0x2d,0x59,0x2f,0x39,0x0c ))// ceb771a4-bf66-529d-883a-602d592f390c +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandStateChangedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandStateChangedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandStateChangedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandStateChangedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandStateChangedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandStateChangedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandStateChangedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandStateChangedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinAppSDK.ContentIsland? = .from(abi: ComPtr($1)) + let args: WinAppSDK.ContentIslandStateChangedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandStateChangedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerContentIsland_ContentIslandStateChangedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandStateChangedEventArgs } + + internal func InvokeImpl(_ sender: WinAppSDK.ContentIsland?, _ args: WinAppSDK.ContentIslandStateChangedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandStateChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args))) + } + } + +} + +internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandStateChangedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandStateChangedEventArgs + internal typealias SwiftABI = WinAppSDK.TypedEventHandlerContentIsland_ContentIslandStateChangedEventArgs + + internal static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, args) in + try! _default.InvokeImpl(sender, args) + } + return handler + } +} +private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentSettingChangedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x1ad20c79, Data2: 0x1495, Data3: 0x5501, Data4: ( 0xac,0x8a,0xa3,0x88,0x45,0xe8,0xf2,0x18 ))// 1ad20c79-1495-5501-ac8a-a38845e8f218 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentSettingChangedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentSettingChangedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentSettingChangedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentSettingChangedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentSettingChangedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentSettingChangedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentSettingChangedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentSettingChangedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinAppSDK.ContentIslandEnvironment? = .from(abi: ComPtr($1)) + let args: WinAppSDK.ContentEnvironmentSettingChangedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentSettingChangedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerContentIslandEnvironment_ContentEnvironmentSettingChangedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentSettingChangedEventArgs } + + internal func InvokeImpl(_ sender: WinAppSDK.ContentIslandEnvironment?, _ args: WinAppSDK.ContentEnvironmentSettingChangedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentSettingChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args))) + } + } + +} + +internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentSettingChangedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentSettingChangedEventArgs + internal typealias SwiftABI = WinAppSDK.TypedEventHandlerContentIslandEnvironment_ContentEnvironmentSettingChangedEventArgs + + internal static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, args) in + try! _default.InvokeImpl(sender, args) + } + return handler + } +} +private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentStateChangedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xc7742341, Data2: 0xcfd5, Data3: 0x5ef6, Data4: ( 0xab,0x2a,0xd3,0x8c,0x65,0xb7,0x80,0xb5 ))// c7742341-cfd5-5ef6-ab2a-d38c65b780b5 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentStateChangedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentStateChangedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentStateChangedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentStateChangedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentStateChangedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentStateChangedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentStateChangedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentStateChangedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinAppSDK.ContentIslandEnvironment? = .from(abi: ComPtr($1)) + let args: WinAppSDK.ContentEnvironmentStateChangedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentStateChangedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerContentIslandEnvironment_ContentEnvironmentStateChangedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentStateChangedEventArgs } + + internal func InvokeImpl(_ sender: WinAppSDK.ContentIslandEnvironment?, _ args: WinAppSDK.ContentEnvironmentStateChangedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentStateChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args))) + } + } + +} + +internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentStateChangedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentStateChangedEventArgs + internal typealias SwiftABI = WinAppSDK.TypedEventHandlerContentIslandEnvironment_ContentEnvironmentStateChangedEventArgs + + internal static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, args) in + try! _default.InvokeImpl(sender, args) + } + return handler + } +} +private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue_IInspectable: WindowsFoundation.IID { + .init(Data1: 0x3bdaf5dd, Data2: 0x3da4, Data3: 0x5b44, Data4: ( 0xad,0xb3,0x69,0x90,0x54,0x0a,0xfa,0xc6 ))// 3bdaf5dd-3da4-5b44-adb3-6990540afac6 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue_IInspectable { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue_IInspectableVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue_IInspectableVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue_IInspectableVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue_IInspectableWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue_IInspectableWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue_IInspectableWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinAppSDK.DispatcherQueue? = .from(abi: ComPtr($1)) + let args: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue_IInspectableWrapper = InterfaceWrapperBase +internal class TypedEventHandlerDispatcherQueue_Any: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue_IInspectable } + + internal func InvokeImpl(_ sender: WinAppSDK.DispatcherQueue?, _ args: Any?) throws { + let argsWrapper = __ABI_.AnyWrapper(args) + let _args = try! argsWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue_IInspectable.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), _args)) + } + } + +} + +internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue_IInspectableBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue_IInspectable + internal typealias SwiftABI = WinAppSDK.TypedEventHandlerDispatcherQueue_Any + + internal static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, args) in + try! _default.InvokeImpl(sender, args) + } + return handler + } +} +private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueShutdownStartingEventArgs: WindowsFoundation.IID { + .init(Data1: 0xecd63a61, Data2: 0x4dbf, Data3: 0x57bc, Data4: ( 0x88,0x0c,0xa2,0x55,0xdf,0xe3,0x52,0xc3 ))// ecd63a61-4dbf-57bc-880c-a255dfe352c3 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueShutdownStartingEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueShutdownStartingEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueShutdownStartingEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueShutdownStartingEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueShutdownStartingEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueShutdownStartingEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueShutdownStartingEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueShutdownStartingEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinAppSDK.DispatcherQueue? = .from(abi: ComPtr($1)) + let args: WinAppSDK.DispatcherQueueShutdownStartingEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueShutdownStartingEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerDispatcherQueue_DispatcherQueueShutdownStartingEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueShutdownStartingEventArgs } + + internal func InvokeImpl(_ sender: WinAppSDK.DispatcherQueue?, _ args: WinAppSDK.DispatcherQueueShutdownStartingEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueShutdownStartingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args))) + } + } + +} + +internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueShutdownStartingEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueShutdownStartingEventArgs + internal typealias SwiftABI = WinAppSDK.TypedEventHandlerDispatcherQueue_DispatcherQueueShutdownStartingEventArgs + + internal static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, args) in + try! _default.InvokeImpl(sender, args) + } + return handler + } +} +private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueTimer_IInspectable: WindowsFoundation.IID { + .init(Data1: 0x2182a2ac, Data2: 0x7545, Data3: 0x566a, Data4: ( 0x98,0x4f,0xb1,0x0f,0x07,0xba,0xb0,0x89 ))// 2182a2ac-7545-566a-984f-b10f07bab089 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueTimer_IInspectable { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueTimer_IInspectableVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueTimer_IInspectableVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueTimer_IInspectableVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueTimer_IInspectableWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueTimer_IInspectableWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueTimer_IInspectableWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueTimer_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinAppSDK.DispatcherQueueTimer? = .from(abi: ComPtr($1)) + let args: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueTimer_IInspectableWrapper = InterfaceWrapperBase +internal class TypedEventHandlerDispatcherQueueTimer_Any: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueTimer_IInspectable } + + internal func InvokeImpl(_ sender: WinAppSDK.DispatcherQueueTimer?, _ args: Any?) throws { + let argsWrapper = __ABI_.AnyWrapper(args) + let _args = try! argsWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueTimer_IInspectable.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), _args)) + } + } + +} + +internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueTimer_IInspectableBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueTimer_IInspectable + internal typealias SwiftABI = WinAppSDK.TypedEventHandlerDispatcherQueueTimer_Any + + internal static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, args) in + try! _default.InvokeImpl(sender, args) + } + return handler + } +} +private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CCrossSlidingEventArgs: WindowsFoundation.IID { + .init(Data1: 0x2c68b524, Data2: 0xbff5, Data3: 0x5b9e, Data4: ( 0xab,0x2d,0x9b,0x1c,0xac,0x2d,0x38,0x76 ))// 2c68b524-bff5-5b9e-ab2d-9b1cac2d3876 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CCrossSlidingEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CCrossSlidingEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CCrossSlidingEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CCrossSlidingEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CCrossSlidingEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CCrossSlidingEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CCrossSlidingEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CCrossSlidingEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinAppSDK.GestureRecognizer? = .from(abi: ComPtr($1)) + let args: WinAppSDK.CrossSlidingEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CCrossSlidingEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerGestureRecognizer_CrossSlidingEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CCrossSlidingEventArgs } + + internal func InvokeImpl(_ sender: WinAppSDK.GestureRecognizer?, _ args: WinAppSDK.CrossSlidingEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CCrossSlidingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args))) + } + } + +} + +internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CCrossSlidingEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CCrossSlidingEventArgs + internal typealias SwiftABI = WinAppSDK.TypedEventHandlerGestureRecognizer_CrossSlidingEventArgs + + internal static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, args) in + try! _default.InvokeImpl(sender, args) + } + return handler + } +} +private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CDraggingEventArgs: WindowsFoundation.IID { + .init(Data1: 0x7fc18fed, Data2: 0x898b, Data3: 0x58cf, Data4: ( 0x99,0x96,0x2b,0xaa,0x40,0xe7,0xdd,0x3d ))// 7fc18fed-898b-58cf-9996-2baa40e7dd3d +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CDraggingEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CDraggingEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CDraggingEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CDraggingEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CDraggingEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CDraggingEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CDraggingEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CDraggingEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinAppSDK.GestureRecognizer? = .from(abi: ComPtr($1)) + let args: WinAppSDK.DraggingEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CDraggingEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerGestureRecognizer_DraggingEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CDraggingEventArgs } + + internal func InvokeImpl(_ sender: WinAppSDK.GestureRecognizer?, _ args: WinAppSDK.DraggingEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CDraggingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args))) + } + } + +} + +internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CDraggingEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CDraggingEventArgs + internal typealias SwiftABI = WinAppSDK.TypedEventHandlerGestureRecognizer_DraggingEventArgs + + internal static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, args) in + try! _default.InvokeImpl(sender, args) + } + return handler + } +} +private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CHoldingEventArgs: WindowsFoundation.IID { + .init(Data1: 0x41508cc9, Data2: 0x7826, Data3: 0x58f9, Data4: ( 0xa6,0xe9,0x63,0xbe,0x53,0x1e,0x95,0xd3 ))// 41508cc9-7826-58f9-a6e9-63be531e95d3 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CHoldingEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CHoldingEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CHoldingEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CHoldingEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CHoldingEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CHoldingEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CHoldingEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CHoldingEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinAppSDK.GestureRecognizer? = .from(abi: ComPtr($1)) + let args: WinAppSDK.HoldingEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CHoldingEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerGestureRecognizer_HoldingEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CHoldingEventArgs } + + internal func InvokeImpl(_ sender: WinAppSDK.GestureRecognizer?, _ args: WinAppSDK.HoldingEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CHoldingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args))) + } + } + +} + +internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CHoldingEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CHoldingEventArgs + internal typealias SwiftABI = WinAppSDK.TypedEventHandlerGestureRecognizer_HoldingEventArgs + + internal static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, args) in + try! _default.InvokeImpl(sender, args) + } + return handler + } +} +private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationCompletedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x14bbef09, Data2: 0xd8fd, Data3: 0x56a9, Data4: ( 0xab,0x2f,0x01,0xdb,0xf0,0x18,0x75,0x93 ))// 14bbef09-d8fd-56a9-ab2f-01dbf0187593 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationCompletedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationCompletedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationCompletedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationCompletedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationCompletedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationCompletedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationCompletedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationCompletedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinAppSDK.GestureRecognizer? = .from(abi: ComPtr($1)) + let args: WinAppSDK.ManipulationCompletedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationCompletedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerGestureRecognizer_ManipulationCompletedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationCompletedEventArgs } + + internal func InvokeImpl(_ sender: WinAppSDK.GestureRecognizer?, _ args: WinAppSDK.ManipulationCompletedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationCompletedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args))) + } + } + +} + +internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationCompletedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationCompletedEventArgs + internal typealias SwiftABI = WinAppSDK.TypedEventHandlerGestureRecognizer_ManipulationCompletedEventArgs + + internal static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, args) in + try! _default.InvokeImpl(sender, args) + } + return handler + } +} +private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationInertiaStartingEventArgs: WindowsFoundation.IID { + .init(Data1: 0x5e7f485a, Data2: 0x4248, Data3: 0x574a, Data4: ( 0xae,0xe5,0x62,0xff,0x0c,0xf2,0xd8,0x81 ))// 5e7f485a-4248-574a-aee5-62ff0cf2d881 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationInertiaStartingEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationInertiaStartingEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationInertiaStartingEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationInertiaStartingEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationInertiaStartingEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationInertiaStartingEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationInertiaStartingEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationInertiaStartingEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinAppSDK.GestureRecognizer? = .from(abi: ComPtr($1)) + let args: WinAppSDK.ManipulationInertiaStartingEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationInertiaStartingEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerGestureRecognizer_ManipulationInertiaStartingEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationInertiaStartingEventArgs } + + internal func InvokeImpl(_ sender: WinAppSDK.GestureRecognizer?, _ args: WinAppSDK.ManipulationInertiaStartingEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationInertiaStartingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args))) + } + } + +} + +internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationInertiaStartingEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationInertiaStartingEventArgs + internal typealias SwiftABI = WinAppSDK.TypedEventHandlerGestureRecognizer_ManipulationInertiaStartingEventArgs + + internal static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, args) in + try! _default.InvokeImpl(sender, args) + } + return handler + } +} +private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationStartedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x44900647, Data2: 0x40d5, Data3: 0x5897, Data4: ( 0x89,0x57,0x31,0x0e,0x22,0x0d,0xa5,0x55 ))// 44900647-40d5-5897-8957-310e220da555 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationStartedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationStartedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationStartedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationStartedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationStartedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationStartedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationStartedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationStartedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinAppSDK.GestureRecognizer? = .from(abi: ComPtr($1)) + let args: WinAppSDK.ManipulationStartedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationStartedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerGestureRecognizer_ManipulationStartedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationStartedEventArgs } + + internal func InvokeImpl(_ sender: WinAppSDK.GestureRecognizer?, _ args: WinAppSDK.ManipulationStartedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationStartedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args))) + } + } + +} + +internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationStartedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationStartedEventArgs + internal typealias SwiftABI = WinAppSDK.TypedEventHandlerGestureRecognizer_ManipulationStartedEventArgs + + internal static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, args) in + try! _default.InvokeImpl(sender, args) + } + return handler + } +} +private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationUpdatedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xdd71c5ac, Data2: 0x5ae1, Data3: 0x5069, Data4: ( 0x87,0x7a,0xac,0xe3,0x7b,0x5a,0x47,0x20 ))// dd71c5ac-5ae1-5069-877a-ace37b5a4720 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationUpdatedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationUpdatedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationUpdatedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationUpdatedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationUpdatedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationUpdatedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationUpdatedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationUpdatedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinAppSDK.GestureRecognizer? = .from(abi: ComPtr($1)) + let args: WinAppSDK.ManipulationUpdatedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationUpdatedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerGestureRecognizer_ManipulationUpdatedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationUpdatedEventArgs } + + internal func InvokeImpl(_ sender: WinAppSDK.GestureRecognizer?, _ args: WinAppSDK.ManipulationUpdatedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationUpdatedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args))) + } + } + +} + +internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationUpdatedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationUpdatedEventArgs + internal typealias SwiftABI = WinAppSDK.TypedEventHandlerGestureRecognizer_ManipulationUpdatedEventArgs + + internal static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, args) in + try! _default.InvokeImpl(sender, args) + } + return handler + } +} +private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CRightTappedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x71b4ad41, Data2: 0x872a, Data3: 0x5afd, Data4: ( 0x93,0x32,0x70,0x43,0x11,0xf2,0x61,0xb5 ))// 71b4ad41-872a-5afd-9332-704311f261b5 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CRightTappedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CRightTappedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CRightTappedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CRightTappedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CRightTappedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CRightTappedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CRightTappedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CRightTappedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinAppSDK.GestureRecognizer? = .from(abi: ComPtr($1)) + let args: WinAppSDK.RightTappedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CRightTappedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerGestureRecognizer_RightTappedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CRightTappedEventArgs } + + internal func InvokeImpl(_ sender: WinAppSDK.GestureRecognizer?, _ args: WinAppSDK.RightTappedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CRightTappedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args))) + } + } + +} + +internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CRightTappedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CRightTappedEventArgs + internal typealias SwiftABI = WinAppSDK.TypedEventHandlerGestureRecognizer_RightTappedEventArgs + + internal static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, args) in + try! _default.InvokeImpl(sender, args) + } + return handler + } +} +private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CTappedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x43cfd88f, Data2: 0x74b1, Data3: 0x570b, Data4: ( 0xa7,0x1c,0xd7,0x8e,0x68,0x15,0xcf,0x0a ))// 43cfd88f-74b1-570b-a71c-d78e6815cf0a +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CTappedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CTappedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CTappedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CTappedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CTappedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CTappedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CTappedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CTappedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinAppSDK.GestureRecognizer? = .from(abi: ComPtr($1)) + let args: WinAppSDK.TappedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CTappedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerGestureRecognizer_TappedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CTappedEventArgs } + + internal func InvokeImpl(_ sender: WinAppSDK.GestureRecognizer?, _ args: WinAppSDK.TappedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CTappedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args))) + } + } + +} + +internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CTappedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CTappedEventArgs + internal typealias SwiftABI = WinAppSDK.TypedEventHandlerGestureRecognizer_TappedEventArgs + + internal static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, args) in + try! _default.InvokeImpl(sender, args) + } + return handler + } +} +private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListener___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListenerActivationChangedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x25b49081, Data2: 0x1922, Data3: 0x5447, Data4: ( 0xb9,0x0f,0xcd,0x4f,0x9b,0x03,0x16,0x1b ))// 25b49081-1922-5447-b90f-cd4f9b03161b +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListener___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListenerActivationChangedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListener___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListenerActivationChangedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListener___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListenerActivationChangedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListener___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListenerActivationChangedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListener___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListenerActivationChangedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListener___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListenerActivationChangedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListener___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListenerActivationChangedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListener___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListenerActivationChangedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinAppSDK.InputActivationListener? = .from(abi: ComPtr($1)) + let args: WinAppSDK.InputActivationListenerActivationChangedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListener___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListenerActivationChangedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerInputActivationListener_InputActivationListenerActivationChangedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListener___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListenerActivationChangedEventArgs } + + internal func InvokeImpl(_ sender: WinAppSDK.InputActivationListener?, _ args: WinAppSDK.InputActivationListenerActivationChangedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListener___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListenerActivationChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args))) + } + } + +} + +internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListener___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListenerActivationChangedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListener___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListenerActivationChangedEventArgs + internal typealias SwiftABI = WinAppSDK.TypedEventHandlerInputActivationListener_InputActivationListenerActivationChangedEventArgs + + internal static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, args) in + try! _default.InvokeImpl(sender, args) + } + return handler + } +} +private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusChangedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xb3380568, Data2: 0x350a, Data3: 0x53e8, Data4: ( 0xac,0x5f,0x45,0x6b,0x5e,0x38,0xf7,0xf6 ))// b3380568-350a-53e8-ac5f-456b5e38f7f6 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusChangedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusChangedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusChangedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusChangedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusChangedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusChangedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusChangedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusChangedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinAppSDK.InputFocusController? = .from(abi: ComPtr($1)) + let args: WinAppSDK.FocusChangedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusChangedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerInputFocusController_FocusChangedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusChangedEventArgs } + + internal func InvokeImpl(_ sender: WinAppSDK.InputFocusController?, _ args: WinAppSDK.FocusChangedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args))) + } + } + +} + +internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusChangedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusChangedEventArgs + internal typealias SwiftABI = WinAppSDK.TypedEventHandlerInputFocusController_FocusChangedEventArgs + + internal static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, args) in + try! _default.InvokeImpl(sender, args) + } + return handler + } +} +private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgs: WindowsFoundation.IID { + .init(Data1: 0xea47f828, Data2: 0xdeae, Data3: 0x54f1, Data4: ( 0x91,0xa2,0x63,0xf7,0xf0,0x02,0x63,0x38 ))// ea47f828-deae-54f1-91a2-63f7f0026338 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinAppSDK.InputFocusController? = .from(abi: ComPtr($1)) + let args: WinAppSDK.FocusNavigationRequestEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerInputFocusController_FocusNavigationRequestEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgs } + + internal func InvokeImpl(_ sender: WinAppSDK.InputFocusController?, _ args: WinAppSDK.FocusNavigationRequestEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args))) + } + } + +} + +internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgs + internal typealias SwiftABI = WinAppSDK.TypedEventHandlerInputFocusController_FocusNavigationRequestEventArgs + + internal static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, args) in + try! _default.InvokeImpl(sender, args) + } + return handler + } +} +private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusNavigationHost___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgs: WindowsFoundation.IID { + .init(Data1: 0x06f646e8, Data2: 0xdc03, Data3: 0x597c, Data4: ( 0x80,0xec,0xbe,0x97,0x57,0xb6,0xa0,0x13 ))// 06f646e8-dc03-597c-80ec-be9757b6a013 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusNavigationHost___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusNavigationHost___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusNavigationHost___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusNavigationHost___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusNavigationHost___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusNavigationHost___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusNavigationHost___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusNavigationHost___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinAppSDK.InputFocusNavigationHost? = .from(abi: ComPtr($1)) + let args: WinAppSDK.FocusNavigationRequestEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusNavigationHost___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerInputFocusNavigationHost_FocusNavigationRequestEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusNavigationHost___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgs } + + internal func InvokeImpl(_ sender: WinAppSDK.InputFocusNavigationHost?, _ args: WinAppSDK.FocusNavigationRequestEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusNavigationHost___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args))) + } + } + +} + +internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusNavigationHost___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusNavigationHost___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgs + internal typealias SwiftABI = WinAppSDK.TypedEventHandlerInputFocusNavigationHost_FocusNavigationRequestEventArgs + + internal static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, args) in + try! _default.InvokeImpl(sender, args) + } + return handler + } +} +private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CCharacterReceivedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xdafb15ae, Data2: 0x4643, Data3: 0x5b53, Data4: ( 0xa0,0xb0,0x43,0x65,0x7c,0x81,0xb2,0x5f ))// dafb15ae-4643-5b53-a0b0-43657c81b25f +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CCharacterReceivedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CCharacterReceivedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CCharacterReceivedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CCharacterReceivedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CCharacterReceivedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CCharacterReceivedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CCharacterReceivedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CCharacterReceivedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinAppSDK.InputKeyboardSource? = .from(abi: ComPtr($1)) + let args: WinAppSDK.CharacterReceivedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CCharacterReceivedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerInputKeyboardSource_CharacterReceivedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CCharacterReceivedEventArgs } + + internal func InvokeImpl(_ sender: WinAppSDK.InputKeyboardSource?, _ args: WinAppSDK.CharacterReceivedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CCharacterReceivedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args))) + } + } + +} + +internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CCharacterReceivedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CCharacterReceivedEventArgs + internal typealias SwiftABI = WinAppSDK.TypedEventHandlerInputKeyboardSource_CharacterReceivedEventArgs + + internal static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, args) in + try! _default.InvokeImpl(sender, args) + } + return handler + } +} +private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CContextMenuKeyEventArgs: WindowsFoundation.IID { + .init(Data1: 0x9a2a4782, Data2: 0x52ed, Data3: 0x54bf, Data4: ( 0x89,0x2c,0xd6,0x60,0x0d,0x75,0xe1,0xb7 ))// 9a2a4782-52ed-54bf-892c-d6600d75e1b7 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CContextMenuKeyEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CContextMenuKeyEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CContextMenuKeyEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CContextMenuKeyEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CContextMenuKeyEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CContextMenuKeyEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CContextMenuKeyEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CContextMenuKeyEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinAppSDK.InputKeyboardSource? = .from(abi: ComPtr($1)) + let args: WinAppSDK.ContextMenuKeyEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CContextMenuKeyEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerInputKeyboardSource_ContextMenuKeyEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CContextMenuKeyEventArgs } + + internal func InvokeImpl(_ sender: WinAppSDK.InputKeyboardSource?, _ args: WinAppSDK.ContextMenuKeyEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CContextMenuKeyEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args))) + } + } + +} + +internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CContextMenuKeyEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CContextMenuKeyEventArgs + internal typealias SwiftABI = WinAppSDK.TypedEventHandlerInputKeyboardSource_ContextMenuKeyEventArgs + + internal static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, args) in + try! _default.InvokeImpl(sender, args) + } + return handler + } +} +private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CKeyEventArgs: WindowsFoundation.IID { + .init(Data1: 0xf988374a, Data2: 0x72f8, Data3: 0x5418, Data4: ( 0xbc,0xa2,0x32,0x3b,0x63,0x9e,0x2b,0x72 ))// f988374a-72f8-5418-bca2-323b639e2b72 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CKeyEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CKeyEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CKeyEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CKeyEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CKeyEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CKeyEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CKeyEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CKeyEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinAppSDK.InputKeyboardSource? = .from(abi: ComPtr($1)) + let args: WinAppSDK.KeyEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CKeyEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerInputKeyboardSource_KeyEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CKeyEventArgs } + + internal func InvokeImpl(_ sender: WinAppSDK.InputKeyboardSource?, _ args: WinAppSDK.KeyEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CKeyEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args))) + } + } + +} + +internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CKeyEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CKeyEventArgs + internal typealias SwiftABI = WinAppSDK.TypedEventHandlerInputKeyboardSource_KeyEventArgs + + internal static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, args) in + try! _default.InvokeImpl(sender, args) + } + return handler + } +} +private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissAction___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissEventArgs: WindowsFoundation.IID { + .init(Data1: 0x91cb240d, Data2: 0xf32c, Data3: 0x5efb, Data4: ( 0x80,0x90,0x5a,0xb5,0xf1,0x73,0x3d,0x21 ))// 91cb240d-f32c-5efb-8090-5ab5f1733d21 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissAction___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissAction___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissAction___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissAction___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissAction___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissAction___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissAction___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissAction___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinAppSDK.InputLightDismissAction? = .from(abi: ComPtr($1)) + let args: WinAppSDK.InputLightDismissEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissAction___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerInputLightDismissAction_InputLightDismissEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissAction___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissEventArgs } + + internal func InvokeImpl(_ sender: WinAppSDK.InputLightDismissAction?, _ args: WinAppSDK.InputLightDismissEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissAction___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args))) + } + } + +} + +internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissAction___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissAction___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissEventArgs + internal typealias SwiftABI = WinAppSDK.TypedEventHandlerInputLightDismissAction_InputLightDismissEventArgs + + internal static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, args) in + try! _default.InvokeImpl(sender, args) + } + return handler + } +} +private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientCaptionTappedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xb0ae5c41, Data2: 0x7993, Data3: 0x5fc3, Data4: ( 0x93,0x59,0xbf,0xdc,0xe9,0x84,0xc7,0x90 ))// b0ae5c41-7993-5fc3-9359-bfdce984c790 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientCaptionTappedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientCaptionTappedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientCaptionTappedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientCaptionTappedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientCaptionTappedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientCaptionTappedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientCaptionTappedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientCaptionTappedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinAppSDK.InputNonClientPointerSource? = .from(abi: ComPtr($1)) + let args: WinAppSDK.NonClientCaptionTappedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientCaptionTappedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerInputNonClientPointerSource_NonClientCaptionTappedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientCaptionTappedEventArgs } + + internal func InvokeImpl(_ sender: WinAppSDK.InputNonClientPointerSource?, _ args: WinAppSDK.NonClientCaptionTappedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientCaptionTappedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args))) + } + } + +} + +internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientCaptionTappedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientCaptionTappedEventArgs + internal typealias SwiftABI = WinAppSDK.TypedEventHandlerInputNonClientPointerSource_NonClientCaptionTappedEventArgs + + internal static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, args) in + try! _default.InvokeImpl(sender, args) + } + return handler + } +} +private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientPointerEventArgs: WindowsFoundation.IID { + .init(Data1: 0x4e6be81d, Data2: 0x96c4, Data3: 0x5865, Data4: ( 0x82,0x3b,0x0e,0xfd,0xf1,0xda,0xf9,0x88 ))// 4e6be81d-96c4-5865-823b-0efdf1daf988 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientPointerEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientPointerEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientPointerEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientPointerEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientPointerEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientPointerEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientPointerEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientPointerEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinAppSDK.InputNonClientPointerSource? = .from(abi: ComPtr($1)) + let args: WinAppSDK.NonClientPointerEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientPointerEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerInputNonClientPointerSource_NonClientPointerEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientPointerEventArgs } + + internal func InvokeImpl(_ sender: WinAppSDK.InputNonClientPointerSource?, _ args: WinAppSDK.NonClientPointerEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientPointerEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args))) + } + } + +} + +internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientPointerEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientPointerEventArgs + internal typealias SwiftABI = WinAppSDK.TypedEventHandlerInputNonClientPointerSource_NonClientPointerEventArgs + + internal static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, args) in + try! _default.InvokeImpl(sender, args) + } + return handler + } +} +private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientRegionsChangedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xa6fecba1, Data2: 0x0759, Data3: 0x54d5, Data4: ( 0xba,0xc3,0xd3,0x61,0xf6,0xc9,0xce,0xc9 ))// a6fecba1-0759-54d5-bac3-d361f6c9cec9 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientRegionsChangedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientRegionsChangedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientRegionsChangedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientRegionsChangedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientRegionsChangedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientRegionsChangedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientRegionsChangedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientRegionsChangedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinAppSDK.InputNonClientPointerSource? = .from(abi: ComPtr($1)) + let args: WinAppSDK.NonClientRegionsChangedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientRegionsChangedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerInputNonClientPointerSource_NonClientRegionsChangedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientRegionsChangedEventArgs } + + internal func InvokeImpl(_ sender: WinAppSDK.InputNonClientPointerSource?, _ args: WinAppSDK.NonClientRegionsChangedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientRegionsChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args))) + } + } + +} + +internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientRegionsChangedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientRegionsChangedEventArgs + internal typealias SwiftABI = WinAppSDK.TypedEventHandlerInputNonClientPointerSource_NonClientRegionsChangedEventArgs + + internal static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, args) in + try! _default.InvokeImpl(sender, args) + } + return handler + } +} +private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputPointerSource___x_ABI_CMicrosoft__CUI__CInput__CPointerEventArgs: WindowsFoundation.IID { + .init(Data1: 0x040480be, Data2: 0x4741, Data3: 0x587d, Data4: ( 0x98,0x88,0x86,0x94,0x41,0x4a,0x26,0x50 ))// 040480be-4741-587d-9888-8694414a2650 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputPointerSource___x_ABI_CMicrosoft__CUI__CInput__CPointerEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputPointerSource___x_ABI_CMicrosoft__CUI__CInput__CPointerEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputPointerSource___x_ABI_CMicrosoft__CUI__CInput__CPointerEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputPointerSource___x_ABI_CMicrosoft__CUI__CInput__CPointerEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputPointerSource___x_ABI_CMicrosoft__CUI__CInput__CPointerEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputPointerSource___x_ABI_CMicrosoft__CUI__CInput__CPointerEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputPointerSource___x_ABI_CMicrosoft__CUI__CInput__CPointerEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputPointerSource___x_ABI_CMicrosoft__CUI__CInput__CPointerEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinAppSDK.InputPointerSource? = .from(abi: ComPtr($1)) + let args: WinAppSDK.PointerEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputPointerSource___x_ABI_CMicrosoft__CUI__CInput__CPointerEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerInputPointerSource_PointerEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputPointerSource___x_ABI_CMicrosoft__CUI__CInput__CPointerEventArgs } + + internal func InvokeImpl(_ sender: WinAppSDK.InputPointerSource?, _ args: WinAppSDK.PointerEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputPointerSource___x_ABI_CMicrosoft__CUI__CInput__CPointerEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args))) + } + } + +} + +internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputPointerSource___x_ABI_CMicrosoft__CUI__CInput__CPointerEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputPointerSource___x_ABI_CMicrosoft__CUI__CInput__CPointerEventArgs + internal typealias SwiftABI = WinAppSDK.TypedEventHandlerInputPointerSource_PointerEventArgs + + internal static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, args) in + try! _default.InvokeImpl(sender, args) + } + return handler + } +} +private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow_IInspectable: WindowsFoundation.IID { + .init(Data1: 0xeddd665f, Data2: 0x7d53, Data3: 0x5b2d, Data4: ( 0x90,0x1d,0x9c,0x12,0x01,0x08,0x16,0xe7 ))// eddd665f-7d53-5b2d-901d-9c12010816e7 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow_IInspectable { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow_IInspectableVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow_IInspectableVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow_IInspectableVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow_IInspectableWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow_IInspectableWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow_IInspectableWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinAppSDK.AppWindow? = .from(abi: ComPtr($1)) + let args: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow_IInspectableWrapper = InterfaceWrapperBase +internal class TypedEventHandlerAppWindow_Any: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow_IInspectable } + + internal func InvokeImpl(_ sender: WinAppSDK.AppWindow?, _ args: Any?) throws { + let argsWrapper = __ABI_.AnyWrapper(args) + let _args = try! argsWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow_IInspectable.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), _args)) + } + } + +} + +internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow_IInspectableBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow_IInspectable + internal typealias SwiftABI = WinAppSDK.TypedEventHandlerAppWindow_Any + + internal static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, args) in + try! _default.InvokeImpl(sender, args) + } + return handler + } +} +private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowChangedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xcda07756, Data2: 0x1584, Data3: 0x5049, Data4: ( 0x9a,0xd1,0xcc,0xa7,0x82,0x24,0x2d,0x34 ))// cda07756-1584-5049-9ad1-cca782242d34 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowChangedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowChangedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowChangedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowChangedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowChangedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowChangedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowChangedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowChangedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinAppSDK.AppWindow? = .from(abi: ComPtr($1)) + let args: WinAppSDK.AppWindowChangedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowChangedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerAppWindow_AppWindowChangedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowChangedEventArgs } + + internal func InvokeImpl(_ sender: WinAppSDK.AppWindow?, _ args: WinAppSDK.AppWindowChangedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args))) + } + } + +} + +internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowChangedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowChangedEventArgs + internal typealias SwiftABI = WinAppSDK.TypedEventHandlerAppWindow_AppWindowChangedEventArgs + + internal static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, args) in + try! _default.InvokeImpl(sender, args) + } + return handler + } +} +private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowClosingEventArgs: WindowsFoundation.IID { + .init(Data1: 0xfd0e72c8, Data2: 0x8daa, Data3: 0x50a2, Data4: ( 0x95,0x9f,0x4d,0x41,0x44,0x6f,0x1f,0xc7 ))// fd0e72c8-8daa-50a2-959f-4d41446f1fc7 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowClosingEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowClosingEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowClosingEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowClosingEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowClosingEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowClosingEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowClosingEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowClosingEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinAppSDK.AppWindow? = .from(abi: ComPtr($1)) + let args: WinAppSDK.AppWindowClosingEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowClosingEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerAppWindow_AppWindowClosingEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowClosingEventArgs } + + internal func InvokeImpl(_ sender: WinAppSDK.AppWindow?, _ args: WinAppSDK.AppWindowClosingEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowClosingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args))) + } + } + +} + +internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowClosingEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowClosingEventArgs + internal typealias SwiftABI = WinAppSDK.TypedEventHandlerAppWindow_AppWindowClosingEventArgs + + internal static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, args) in + try! _default.InvokeImpl(sender, args) + } + return handler + } +} +private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher_IInspectable: WindowsFoundation.IID { + .init(Data1: 0x2ddb3359, Data2: 0x9837, Data3: 0x5ba8, Data4: ( 0x80,0x3e,0xeb,0x5a,0xb1,0xcc,0xb6,0x7f ))// 2ddb3359-9837-5ba8-803e-eb5ab1ccb67f +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher_IInspectable { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher_IInspectableVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher_IInspectableVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher_IInspectableVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher_IInspectableWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher_IInspectableWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher_IInspectableWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinAppSDK.DisplayAreaWatcher? = .from(abi: ComPtr($1)) + let args: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher_IInspectableWrapper = InterfaceWrapperBase +internal class TypedEventHandlerDisplayAreaWatcher_Any: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher_IInspectable } + + internal func InvokeImpl(_ sender: WinAppSDK.DisplayAreaWatcher?, _ args: Any?) throws { + let argsWrapper = __ABI_.AnyWrapper(args) + let _args = try! argsWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher_IInspectable.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), _args)) + } + } + +} + +internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher_IInspectableBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher_IInspectable + internal typealias SwiftABI = WinAppSDK.TypedEventHandlerDisplayAreaWatcher_Any + + internal static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, args) in + try! _default.InvokeImpl(sender, args) + } + return handler + } +} +private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayArea: WindowsFoundation.IID { + .init(Data1: 0x1ab60859, Data2: 0xcaaf, Data3: 0x5b34, Data4: ( 0xba,0xb0,0x3d,0x90,0x35,0xeb,0x80,0xcb ))// 1ab60859-caaf-5b34-bab0-3d9035eb80cb +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayArea { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinAppSDK.DisplayAreaWatcher? = .from(abi: ComPtr($1)) + let args: WinAppSDK.DisplayArea? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper = InterfaceWrapperBase +internal class TypedEventHandlerDisplayAreaWatcher_DisplayArea: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayArea } + + internal func InvokeImpl(_ sender: WinAppSDK.DisplayAreaWatcher?, _ args: WinAppSDK.DisplayArea?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayArea.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args))) + } + } + +} + +internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayArea + internal typealias SwiftABI = WinAppSDK.TypedEventHandlerDisplayAreaWatcher_DisplayArea + + internal static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, args) in + try! _default.InvokeImpl(sender, args) + } + return handler + } +} +private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceManager___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceNotFoundEventArgs: WindowsFoundation.IID { + .init(Data1: 0x30bb9803, Data2: 0x2b8a, Data3: 0x58e0, Data4: ( 0x88,0x12,0x93,0x96,0x78,0x22,0xd6,0xd0 ))// 30bb9803-2b8a-58e0-8812-93967822d6d0 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceManager___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceNotFoundEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceManager___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceNotFoundEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceManager___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceNotFoundEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceManager___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceNotFoundEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceManager___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceNotFoundEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceManager___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceNotFoundEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceManager___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceNotFoundEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceManager___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceNotFoundEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinAppSDK.ResourceManager? = .from(abi: ComPtr($1)) + let args: WinAppSDK.ResourceNotFoundEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceManager___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceNotFoundEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerResourceManager_ResourceNotFoundEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceManager___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceNotFoundEventArgs } + + internal func InvokeImpl(_ sender: WinAppSDK.ResourceManager?, _ args: WinAppSDK.ResourceNotFoundEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceManager___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceNotFoundEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args))) + } + } + +} + +internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceManager___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceNotFoundEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceManager___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceNotFoundEventArgs + internal typealias SwiftABI = WinAppSDK.TypedEventHandlerResourceManager_ResourceNotFoundEventArgs + + internal static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, args) in + try! _default.InvokeImpl(sender, args) + } + return handler + } +} +public extension EventSource where Handler == TypedEventHandler { + func invoke(_ sender: WinAppSDK.AnyISystemBackdropControllerWithTargets!, _ args: Any!) { + for handler in getInvocationList() { + handler(sender, args) + } + } +} + +public extension EventSource where Handler == TypedEventHandler { + func invoke(_ sender: WinAppSDK.ResourceManager!, _ args: WinAppSDK.ResourceNotFoundEventArgs!) { + for handler in getInvocationList() { + handler(sender, args) + } + } +} + diff --git a/Sources/WinAppSDK/WinAppSDK+MakeFromAbi.swift b/Sources/WinAppSDK/WinAppSDK+MakeFromAbi.swift new file mode 100644 index 0000000..3fc2d6a --- /dev/null +++ b/Sources/WinAppSDK/WinAppSDK+MakeFromAbi.swift @@ -0,0 +1,1065 @@ +// WARNING: Please don't edit this file. It was generated by Swift/WinRT v0.0.1 +// swiftlint:disable all +import Foundation +@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation +import CWinRT + +fileprivate func makeIClosableNotifierFrom(abi: WindowsFoundation.IInspectable) -> Any { + let swiftAbi: __ABI_Microsoft_UI.IClosableNotifier = try! abi.QueryInterface() + return __IMPL_Microsoft_UI.IClosableNotifierBridge.from(abi: RawPointer(swiftAbi))! +} + +fileprivate func makeIAnimationObjectFrom(abi: WindowsFoundation.IInspectable) -> Any { + let swiftAbi: __ABI_Microsoft_UI_Composition.IAnimationObject = try! abi.QueryInterface() + return __IMPL_Microsoft_UI_Composition.IAnimationObjectBridge.from(abi: RawPointer(swiftAbi))! +} + +fileprivate func makeICompositionAnimationBaseFrom(abi: WindowsFoundation.IInspectable) -> Any { + let swiftAbi: __ABI_Microsoft_UI_Composition.ICompositionAnimationBase = try! abi.QueryInterface() + return __IMPL_Microsoft_UI_Composition.ICompositionAnimationBaseBridge.from(abi: RawPointer(swiftAbi))! +} + +fileprivate func makeICompositionSupportsSystemBackdropFrom(abi: WindowsFoundation.IInspectable) -> Any { + let swiftAbi: __ABI_Microsoft_UI_Composition.ICompositionSupportsSystemBackdrop = try! abi.QueryInterface() + return __IMPL_Microsoft_UI_Composition.ICompositionSupportsSystemBackdropBridge.from(abi: RawPointer(swiftAbi))! +} + +fileprivate func makeICompositionSurfaceFrom(abi: WindowsFoundation.IInspectable) -> Any { + let swiftAbi: __ABI_Microsoft_UI_Composition.ICompositionSurface = try! abi.QueryInterface() + return __IMPL_Microsoft_UI_Composition.ICompositionSurfaceBridge.from(abi: RawPointer(swiftAbi))! +} + +fileprivate func makeICompositionSurfaceFacadeFrom(abi: WindowsFoundation.IInspectable) -> Any { + let swiftAbi: __ABI_Microsoft_UI_Composition.ICompositionSurfaceFacade = try! abi.QueryInterface() + return __IMPL_Microsoft_UI_Composition.ICompositionSurfaceFacadeBridge.from(abi: RawPointer(swiftAbi))! +} + +fileprivate func makeIVisualElementFrom(abi: WindowsFoundation.IInspectable) -> Any { + let swiftAbi: __ABI_Microsoft_UI_Composition.IVisualElement = try! abi.QueryInterface() + return __IMPL_Microsoft_UI_Composition.IVisualElementBridge.from(abi: RawPointer(swiftAbi))! +} + +fileprivate func makeIVisualElement2From(abi: WindowsFoundation.IInspectable) -> Any { + let swiftAbi: __ABI_Microsoft_UI_Composition.IVisualElement2 = try! abi.QueryInterface() + return __IMPL_Microsoft_UI_Composition.IVisualElement2Bridge.from(abi: RawPointer(swiftAbi))! +} + +fileprivate func makeICompositionInteractionSourceFrom(abi: WindowsFoundation.IInspectable) -> Any { + let swiftAbi: __ABI_Microsoft_UI_Composition_Interactions.ICompositionInteractionSource = try! abi.QueryInterface() + return __IMPL_Microsoft_UI_Composition_Interactions.ICompositionInteractionSourceBridge.from(abi: RawPointer(swiftAbi))! +} + +fileprivate func makeIInteractionTrackerOwnerFrom(abi: WindowsFoundation.IInspectable) -> Any { + let swiftAbi: __ABI_Microsoft_UI_Composition_Interactions.IInteractionTrackerOwner = try! abi.QueryInterface() + return __IMPL_Microsoft_UI_Composition_Interactions.IInteractionTrackerOwnerBridge.from(abi: RawPointer(swiftAbi))! +} + +fileprivate func makeISystemBackdropControllerFrom(abi: WindowsFoundation.IInspectable) -> Any { + let swiftAbi: __ABI_Microsoft_UI_Composition_SystemBackdrops.ISystemBackdropController = try! abi.QueryInterface() + return __IMPL_Microsoft_UI_Composition_SystemBackdrops.ISystemBackdropControllerBridge.from(abi: RawPointer(swiftAbi))! +} + +fileprivate func makeISystemBackdropControllerWithTargetsFrom(abi: WindowsFoundation.IInspectable) -> Any { + let swiftAbi: __ABI_Microsoft_UI_Composition_SystemBackdrops.ISystemBackdropControllerWithTargets = try! abi.QueryInterface() + return __IMPL_Microsoft_UI_Composition_SystemBackdrops.ISystemBackdropControllerWithTargetsBridge.from(abi: RawPointer(swiftAbi))! +} + +fileprivate func makeIContentSiteBridgeFrom(abi: WindowsFoundation.IInspectable) -> Any { + let swiftAbi: __ABI_Microsoft_UI_Content.IContentSiteBridge = try! abi.QueryInterface() + return __IMPL_Microsoft_UI_Content.IContentSiteBridgeBridge.from(abi: RawPointer(swiftAbi))! +} + +fileprivate func makeIPointerPointTransformFrom(abi: WindowsFoundation.IInspectable) -> Any { + let swiftAbi: __ABI_Microsoft_UI_Input.IPointerPointTransform = try! abi.QueryInterface() + return __IMPL_Microsoft_UI_Input.IPointerPointTransformBridge.from(abi: RawPointer(swiftAbi))! +} + +fileprivate func makeIResourceContextFrom(abi: WindowsFoundation.IInspectable) -> Any { + let swiftAbi: __ABI_Microsoft_Windows_ApplicationModel_Resources.IResourceContext = try! abi.QueryInterface() + return __IMPL_Microsoft_Windows_ApplicationModel_Resources.IResourceContextBridge.from(abi: RawPointer(swiftAbi))! +} + +fileprivate func makeIResourceManagerFrom(abi: WindowsFoundation.IInspectable) -> Any { + let swiftAbi: __ABI_Microsoft_Windows_ApplicationModel_Resources.IResourceManager = try! abi.QueryInterface() + return __IMPL_Microsoft_Windows_ApplicationModel_Resources.IResourceManagerBridge.from(abi: RawPointer(swiftAbi))! +} + +fileprivate func makeAmbientLightFrom(abi: WindowsFoundation.IInspectable) -> Any { + return AmbientLight(fromAbi: abi) +} + +fileprivate func makeAnimationControllerFrom(abi: WindowsFoundation.IInspectable) -> Any { + return AnimationController(fromAbi: abi) +} + +fileprivate func makeAnimationPropertyInfoFrom(abi: WindowsFoundation.IInspectable) -> Any { + return AnimationPropertyInfo(fromAbi: abi) +} + +fileprivate func makeBackEasingFunctionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return BackEasingFunction(fromAbi: abi) +} + +fileprivate func makeBooleanKeyFrameAnimationFrom(abi: WindowsFoundation.IInspectable) -> Any { + return BooleanKeyFrameAnimation(fromAbi: abi) +} + +fileprivate func makeBounceEasingFunctionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return BounceEasingFunction(fromAbi: abi) +} + +fileprivate func makeBounceScalarNaturalMotionAnimationFrom(abi: WindowsFoundation.IInspectable) -> Any { + return BounceScalarNaturalMotionAnimation(fromAbi: abi) +} + +fileprivate func makeBounceVector2NaturalMotionAnimationFrom(abi: WindowsFoundation.IInspectable) -> Any { + return BounceVector2NaturalMotionAnimation(fromAbi: abi) +} + +fileprivate func makeBounceVector3NaturalMotionAnimationFrom(abi: WindowsFoundation.IInspectable) -> Any { + return BounceVector3NaturalMotionAnimation(fromAbi: abi) +} + +fileprivate func makeCircleEasingFunctionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CircleEasingFunction(fromAbi: abi) +} + +fileprivate func makeColorKeyFrameAnimationFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ColorKeyFrameAnimation(fromAbi: abi) +} + +fileprivate func makeCompositionAnimationFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionAnimation(fromAbi: abi) +} + +fileprivate func makeCompositionAnimationGroupFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionAnimationGroup(fromAbi: abi) +} + +fileprivate func makeCompositionBackdropBrushFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionBackdropBrush(fromAbi: abi) +} + +fileprivate func makeCompositionBatchCompletedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionBatchCompletedEventArgs(fromAbi: abi) +} + +fileprivate func makeCompositionBrushFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionBrush(fromAbi: abi) +} + +fileprivate func makeCompositionCapabilitiesFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionCapabilities(fromAbi: abi) +} + +fileprivate func makeCompositionClipFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionClip(fromAbi: abi) +} + +fileprivate func makeCompositionColorBrushFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionColorBrush(fromAbi: abi) +} + +fileprivate func makeCompositionColorGradientStopFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionColorGradientStop(fromAbi: abi) +} + +fileprivate func makeCompositionColorGradientStopCollectionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionColorGradientStopCollection(fromAbi: abi) +} + +fileprivate func makeCompositionCommitBatchFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionCommitBatch(fromAbi: abi) +} + +fileprivate func makeCompositionContainerShapeFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionContainerShape(fromAbi: abi) +} + +fileprivate func makeCompositionDrawingSurfaceFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionDrawingSurface(fromAbi: abi) +} + +fileprivate func makeCompositionEasingFunctionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionEasingFunction(fromAbi: abi) +} + +fileprivate func makeCompositionEffectBrushFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionEffectBrush(fromAbi: abi) +} + +fileprivate func makeCompositionEffectFactoryFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionEffectFactory(fromAbi: abi) +} + +fileprivate func makeCompositionEffectSourceParameterFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionEffectSourceParameter(fromAbi: abi) +} + +fileprivate func makeCompositionEllipseGeometryFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionEllipseGeometry(fromAbi: abi) +} + +fileprivate func makeCompositionGeometricClipFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionGeometricClip(fromAbi: abi) +} + +fileprivate func makeCompositionGeometryFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionGeometry(fromAbi: abi) +} + +fileprivate func makeCompositionGradientBrushFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionGradientBrush(fromAbi: abi) +} + +fileprivate func makeCompositionGraphicsDeviceFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionGraphicsDevice(fromAbi: abi) +} + +fileprivate func makeCompositionLightFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionLight(fromAbi: abi) +} + +fileprivate func makeCompositionLineGeometryFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionLineGeometry(fromAbi: abi) +} + +fileprivate func makeCompositionLinearGradientBrushFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionLinearGradientBrush(fromAbi: abi) +} + +fileprivate func makeCompositionMaskBrushFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionMaskBrush(fromAbi: abi) +} + +fileprivate func makeCompositionMipmapSurfaceFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionMipmapSurface(fromAbi: abi) +} + +fileprivate func makeCompositionNineGridBrushFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionNineGridBrush(fromAbi: abi) +} + +fileprivate func makeCompositionObjectFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionObject(fromAbi: abi) +} + +fileprivate func makeCompositionPathFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionPath(fromAbi: abi) +} + +fileprivate func makeCompositionPathGeometryFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionPathGeometry(fromAbi: abi) +} + +fileprivate func makeCompositionProjectedShadowFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionProjectedShadow(fromAbi: abi) +} + +fileprivate func makeCompositionProjectedShadowCasterFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionProjectedShadowCaster(fromAbi: abi) +} + +fileprivate func makeCompositionProjectedShadowCasterCollectionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionProjectedShadowCasterCollection(fromAbi: abi) +} + +fileprivate func makeCompositionProjectedShadowReceiverFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionProjectedShadowReceiver(fromAbi: abi) +} + +fileprivate func makeCompositionProjectedShadowReceiverUnorderedCollectionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionProjectedShadowReceiverUnorderedCollection(fromAbi: abi) +} + +fileprivate func makeCompositionPropertySetFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionPropertySet(fromAbi: abi) +} + +fileprivate func makeCompositionRadialGradientBrushFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionRadialGradientBrush(fromAbi: abi) +} + +fileprivate func makeCompositionRectangleGeometryFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionRectangleGeometry(fromAbi: abi) +} + +fileprivate func makeCompositionRoundedRectangleGeometryFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionRoundedRectangleGeometry(fromAbi: abi) +} + +fileprivate func makeCompositionScopedBatchFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionScopedBatch(fromAbi: abi) +} + +fileprivate func makeCompositionShadowFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionShadow(fromAbi: abi) +} + +fileprivate func makeCompositionShapeFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionShape(fromAbi: abi) +} + +fileprivate func makeCompositionShapeCollectionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionShapeCollection(fromAbi: abi) +} + +fileprivate func makeCompositionSpriteShapeFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionSpriteShape(fromAbi: abi) +} + +fileprivate func makeCompositionStrokeDashArrayFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionStrokeDashArray(fromAbi: abi) +} + +fileprivate func makeCompositionSurfaceBrushFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionSurfaceBrush(fromAbi: abi) +} + +fileprivate func makeCompositionTransformFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionTransform(fromAbi: abi) +} + +fileprivate func makeCompositionViewBoxFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionViewBox(fromAbi: abi) +} + +fileprivate func makeCompositionVirtualDrawingSurfaceFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionVirtualDrawingSurface(fromAbi: abi) +} + +fileprivate func makeCompositionVisualSurfaceFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionVisualSurface(fromAbi: abi) +} + +fileprivate func makeCompositorFrom(abi: WindowsFoundation.IInspectable) -> Any { + return Compositor(fromAbi: abi) +} + +fileprivate func makeContainerVisualFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ContainerVisual(fromAbi: abi) +} + +fileprivate func makeCubicBezierEasingFunctionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CubicBezierEasingFunction(fromAbi: abi) +} + +fileprivate func makeDistantLightFrom(abi: WindowsFoundation.IInspectable) -> Any { + return DistantLight(fromAbi: abi) +} + +fileprivate func makeDropShadowFrom(abi: WindowsFoundation.IInspectable) -> Any { + return DropShadow(fromAbi: abi) +} + +fileprivate func makeElasticEasingFunctionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ElasticEasingFunction(fromAbi: abi) +} + +fileprivate func makeExponentialEasingFunctionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ExponentialEasingFunction(fromAbi: abi) +} + +fileprivate func makeExpressionAnimationFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ExpressionAnimation(fromAbi: abi) +} + +fileprivate func makeImplicitAnimationCollectionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ImplicitAnimationCollection(fromAbi: abi) +} + +fileprivate func makeInitialValueExpressionCollectionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return InitialValueExpressionCollection(fromAbi: abi) +} + +fileprivate func makeInsetClipFrom(abi: WindowsFoundation.IInspectable) -> Any { + return InsetClip(fromAbi: abi) +} + +fileprivate func makeKeyFrameAnimationFrom(abi: WindowsFoundation.IInspectable) -> Any { + return KeyFrameAnimation(fromAbi: abi) +} + +fileprivate func makeLayerVisualFrom(abi: WindowsFoundation.IInspectable) -> Any { + return LayerVisual(fromAbi: abi) +} + +fileprivate func makeLinearEasingFunctionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return LinearEasingFunction(fromAbi: abi) +} + +fileprivate func makeNaturalMotionAnimationFrom(abi: WindowsFoundation.IInspectable) -> Any { + return NaturalMotionAnimation(fromAbi: abi) +} + +fileprivate func makePathKeyFrameAnimationFrom(abi: WindowsFoundation.IInspectable) -> Any { + return PathKeyFrameAnimation(fromAbi: abi) +} + +fileprivate func makePointLightFrom(abi: WindowsFoundation.IInspectable) -> Any { + return PointLight(fromAbi: abi) +} + +fileprivate func makePowerEasingFunctionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return PowerEasingFunction(fromAbi: abi) +} + +fileprivate func makeQuaternionKeyFrameAnimationFrom(abi: WindowsFoundation.IInspectable) -> Any { + return QuaternionKeyFrameAnimation(fromAbi: abi) +} + +fileprivate func makeRectangleClipFrom(abi: WindowsFoundation.IInspectable) -> Any { + return RectangleClip(fromAbi: abi) +} + +fileprivate func makeRedirectVisualFrom(abi: WindowsFoundation.IInspectable) -> Any { + return RedirectVisual(fromAbi: abi) +} + +fileprivate func makeRenderingDeviceReplacedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return RenderingDeviceReplacedEventArgs(fromAbi: abi) +} + +fileprivate func makeScalarKeyFrameAnimationFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ScalarKeyFrameAnimation(fromAbi: abi) +} + +fileprivate func makeScalarNaturalMotionAnimationFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ScalarNaturalMotionAnimation(fromAbi: abi) +} + +fileprivate func makeShapeVisualFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ShapeVisual(fromAbi: abi) +} + +fileprivate func makeSineEasingFunctionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return SineEasingFunction(fromAbi: abi) +} + +fileprivate func makeSpotLightFrom(abi: WindowsFoundation.IInspectable) -> Any { + return SpotLight(fromAbi: abi) +} + +fileprivate func makeSpringScalarNaturalMotionAnimationFrom(abi: WindowsFoundation.IInspectable) -> Any { + return SpringScalarNaturalMotionAnimation(fromAbi: abi) +} + +fileprivate func makeSpringVector2NaturalMotionAnimationFrom(abi: WindowsFoundation.IInspectable) -> Any { + return SpringVector2NaturalMotionAnimation(fromAbi: abi) +} + +fileprivate func makeSpringVector3NaturalMotionAnimationFrom(abi: WindowsFoundation.IInspectable) -> Any { + return SpringVector3NaturalMotionAnimation(fromAbi: abi) +} + +fileprivate func makeSpriteVisualFrom(abi: WindowsFoundation.IInspectable) -> Any { + return SpriteVisual(fromAbi: abi) +} + +fileprivate func makeStepEasingFunctionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return StepEasingFunction(fromAbi: abi) +} + +fileprivate func makeVector2KeyFrameAnimationFrom(abi: WindowsFoundation.IInspectable) -> Any { + return Vector2KeyFrameAnimation(fromAbi: abi) +} + +fileprivate func makeVector2NaturalMotionAnimationFrom(abi: WindowsFoundation.IInspectable) -> Any { + return Vector2NaturalMotionAnimation(fromAbi: abi) +} + +fileprivate func makeVector3KeyFrameAnimationFrom(abi: WindowsFoundation.IInspectable) -> Any { + return Vector3KeyFrameAnimation(fromAbi: abi) +} + +fileprivate func makeVector3NaturalMotionAnimationFrom(abi: WindowsFoundation.IInspectable) -> Any { + return Vector3NaturalMotionAnimation(fromAbi: abi) +} + +fileprivate func makeVector4KeyFrameAnimationFrom(abi: WindowsFoundation.IInspectable) -> Any { + return Vector4KeyFrameAnimation(fromAbi: abi) +} + +fileprivate func makeVisualFrom(abi: WindowsFoundation.IInspectable) -> Any { + return Visual(fromAbi: abi) +} + +fileprivate func makeVisualCollectionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return VisualCollection(fromAbi: abi) +} + +fileprivate func makeVisualUnorderedCollectionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return VisualUnorderedCollection(fromAbi: abi) +} + +fileprivate func makeCompositionConditionalValueFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionConditionalValue(fromAbi: abi) +} + +fileprivate func makeCompositionInteractionSourceCollectionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionInteractionSourceCollection(fromAbi: abi) +} + +fileprivate func makeInteractionSourceConfigurationFrom(abi: WindowsFoundation.IInspectable) -> Any { + return InteractionSourceConfiguration(fromAbi: abi) +} + +fileprivate func makeInteractionTrackerFrom(abi: WindowsFoundation.IInspectable) -> Any { + return InteractionTracker(fromAbi: abi) +} + +fileprivate func makeInteractionTrackerCustomAnimationStateEnteredArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return InteractionTrackerCustomAnimationStateEnteredArgs(fromAbi: abi) +} + +fileprivate func makeInteractionTrackerIdleStateEnteredArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return InteractionTrackerIdleStateEnteredArgs(fromAbi: abi) +} + +fileprivate func makeInteractionTrackerInertiaModifierFrom(abi: WindowsFoundation.IInspectable) -> Any { + return InteractionTrackerInertiaModifier(fromAbi: abi) +} + +fileprivate func makeInteractionTrackerInertiaMotionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return InteractionTrackerInertiaMotion(fromAbi: abi) +} + +fileprivate func makeInteractionTrackerInertiaNaturalMotionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return InteractionTrackerInertiaNaturalMotion(fromAbi: abi) +} + +fileprivate func makeInteractionTrackerInertiaRestingValueFrom(abi: WindowsFoundation.IInspectable) -> Any { + return InteractionTrackerInertiaRestingValue(fromAbi: abi) +} + +fileprivate func makeInteractionTrackerInertiaStateEnteredArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return InteractionTrackerInertiaStateEnteredArgs(fromAbi: abi) +} + +fileprivate func makeInteractionTrackerInteractingStateEnteredArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return InteractionTrackerInteractingStateEnteredArgs(fromAbi: abi) +} + +fileprivate func makeInteractionTrackerRequestIgnoredArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return InteractionTrackerRequestIgnoredArgs(fromAbi: abi) +} + +fileprivate func makeInteractionTrackerValuesChangedArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return InteractionTrackerValuesChangedArgs(fromAbi: abi) +} + +fileprivate func makeInteractionTrackerVector2InertiaModifierFrom(abi: WindowsFoundation.IInspectable) -> Any { + return InteractionTrackerVector2InertiaModifier(fromAbi: abi) +} + +fileprivate func makeInteractionTrackerVector2InertiaNaturalMotionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return InteractionTrackerVector2InertiaNaturalMotion(fromAbi: abi) +} + +fileprivate func makeVisualInteractionSourceFrom(abi: WindowsFoundation.IInspectable) -> Any { + return VisualInteractionSource(fromAbi: abi) +} + +fileprivate func makeDesktopAcrylicControllerFrom(abi: WindowsFoundation.IInspectable) -> Any { + return DesktopAcrylicController(fromAbi: abi) +} + +fileprivate func makeMicaControllerFrom(abi: WindowsFoundation.IInspectable) -> Any { + return MicaController(fromAbi: abi) +} + +fileprivate func makeSystemBackdropConfigurationFrom(abi: WindowsFoundation.IInspectable) -> Any { + return SystemBackdropConfiguration(fromAbi: abi) +} + +fileprivate func makeContentCoordinateConverterFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ContentCoordinateConverter(fromAbi: abi) +} + +fileprivate func makeContentDeferralFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ContentDeferral(fromAbi: abi) +} + +fileprivate func makeContentEnvironmentSettingChangedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ContentEnvironmentSettingChangedEventArgs(fromAbi: abi) +} + +fileprivate func makeContentEnvironmentStateChangedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ContentEnvironmentStateChangedEventArgs(fromAbi: abi) +} + +fileprivate func makeContentIslandFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ContentIsland(fromAbi: abi) +} + +fileprivate func makeContentIslandAutomationProviderRequestedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ContentIslandAutomationProviderRequestedEventArgs(fromAbi: abi) +} + +fileprivate func makeContentIslandEnvironmentFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ContentIslandEnvironment(fromAbi: abi) +} + +fileprivate func makeContentIslandStateChangedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ContentIslandStateChangedEventArgs(fromAbi: abi) +} + +fileprivate func makeDispatcherExitDeferralFrom(abi: WindowsFoundation.IInspectable) -> Any { + return DispatcherExitDeferral(fromAbi: abi) +} + +fileprivate func makeDispatcherQueueFrom(abi: WindowsFoundation.IInspectable) -> Any { + return DispatcherQueue(fromAbi: abi) +} + +fileprivate func makeDispatcherQueueControllerFrom(abi: WindowsFoundation.IInspectable) -> Any { + return DispatcherQueueController(fromAbi: abi) +} + +fileprivate func makeDispatcherQueueShutdownStartingEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return DispatcherQueueShutdownStartingEventArgs(fromAbi: abi) +} + +fileprivate func makeDispatcherQueueTimerFrom(abi: WindowsFoundation.IInspectable) -> Any { + return DispatcherQueueTimer(fromAbi: abi) +} + +fileprivate func makeCharacterReceivedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CharacterReceivedEventArgs(fromAbi: abi) +} + +fileprivate func makeContextMenuKeyEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ContextMenuKeyEventArgs(fromAbi: abi) +} + +fileprivate func makeCrossSlidingEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CrossSlidingEventArgs(fromAbi: abi) +} + +fileprivate func makeDraggingEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return DraggingEventArgs(fromAbi: abi) +} + +fileprivate func makeFocusChangedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return FocusChangedEventArgs(fromAbi: abi) +} + +fileprivate func makeFocusNavigationRequestFrom(abi: WindowsFoundation.IInspectable) -> Any { + return FocusNavigationRequest(fromAbi: abi) +} + +fileprivate func makeFocusNavigationRequestEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return FocusNavigationRequestEventArgs(fromAbi: abi) +} + +fileprivate func makeGestureRecognizerFrom(abi: WindowsFoundation.IInspectable) -> Any { + return GestureRecognizer(fromAbi: abi) +} + +fileprivate func makeHoldingEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return HoldingEventArgs(fromAbi: abi) +} + +fileprivate func makeInputActivationListenerFrom(abi: WindowsFoundation.IInspectable) -> Any { + return InputActivationListener(fromAbi: abi) +} + +fileprivate func makeInputActivationListenerActivationChangedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return InputActivationListenerActivationChangedEventArgs(fromAbi: abi) +} + +fileprivate func makeInputCursorFrom(abi: WindowsFoundation.IInspectable) -> Any { + return InputCursor(fromAbi: abi) +} + +fileprivate func makeInputCustomCursorFrom(abi: WindowsFoundation.IInspectable) -> Any { + return InputCustomCursor(fromAbi: abi) +} + +fileprivate func makeInputDesktopNamedResourceCursorFrom(abi: WindowsFoundation.IInspectable) -> Any { + return InputDesktopNamedResourceCursor(fromAbi: abi) +} + +fileprivate func makeInputDesktopResourceCursorFrom(abi: WindowsFoundation.IInspectable) -> Any { + return InputDesktopResourceCursor(fromAbi: abi) +} + +fileprivate func makeInputFocusControllerFrom(abi: WindowsFoundation.IInspectable) -> Any { + return InputFocusController(fromAbi: abi) +} + +fileprivate func makeInputFocusNavigationHostFrom(abi: WindowsFoundation.IInspectable) -> Any { + return InputFocusNavigationHost(fromAbi: abi) +} + +fileprivate func makeInputKeyboardSourceFrom(abi: WindowsFoundation.IInspectable) -> Any { + return InputKeyboardSource(fromAbi: abi) +} + +fileprivate func makeInputLightDismissActionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return InputLightDismissAction(fromAbi: abi) +} + +fileprivate func makeInputLightDismissEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return InputLightDismissEventArgs(fromAbi: abi) +} + +fileprivate func makeInputNonClientPointerSourceFrom(abi: WindowsFoundation.IInspectable) -> Any { + return InputNonClientPointerSource(fromAbi: abi) +} + +fileprivate func makeInputObjectFrom(abi: WindowsFoundation.IInspectable) -> Any { + return InputObject(fromAbi: abi) +} + +fileprivate func makeInputPointerSourceFrom(abi: WindowsFoundation.IInspectable) -> Any { + return InputPointerSource(fromAbi: abi) +} + +fileprivate func makeInputPreTranslateKeyboardSourceFrom(abi: WindowsFoundation.IInspectable) -> Any { + return InputPreTranslateKeyboardSource(fromAbi: abi) +} + +fileprivate func makeInputSystemCursorFrom(abi: WindowsFoundation.IInspectable) -> Any { + return InputSystemCursor(fromAbi: abi) +} + +fileprivate func makeKeyEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return KeyEventArgs(fromAbi: abi) +} + +fileprivate func makeManipulationCompletedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ManipulationCompletedEventArgs(fromAbi: abi) +} + +fileprivate func makeManipulationInertiaStartingEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ManipulationInertiaStartingEventArgs(fromAbi: abi) +} + +fileprivate func makeManipulationStartedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ManipulationStartedEventArgs(fromAbi: abi) +} + +fileprivate func makeManipulationUpdatedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ManipulationUpdatedEventArgs(fromAbi: abi) +} + +fileprivate func makeMouseWheelParametersFrom(abi: WindowsFoundation.IInspectable) -> Any { + return MouseWheelParameters(fromAbi: abi) +} + +fileprivate func makeNonClientCaptionTappedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return NonClientCaptionTappedEventArgs(fromAbi: abi) +} + +fileprivate func makeNonClientPointerEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return NonClientPointerEventArgs(fromAbi: abi) +} + +fileprivate func makeNonClientRegionsChangedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return NonClientRegionsChangedEventArgs(fromAbi: abi) +} + +fileprivate func makePointerEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return PointerEventArgs(fromAbi: abi) +} + +fileprivate func makePointerPointFrom(abi: WindowsFoundation.IInspectable) -> Any { + return PointerPoint(fromAbi: abi) +} + +fileprivate func makePointerPointPropertiesFrom(abi: WindowsFoundation.IInspectable) -> Any { + return PointerPointProperties(fromAbi: abi) +} + +fileprivate func makePointerPredictorFrom(abi: WindowsFoundation.IInspectable) -> Any { + return PointerPredictor(fromAbi: abi) +} + +fileprivate func makeRightTappedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return RightTappedEventArgs(fromAbi: abi) +} + +fileprivate func makeTappedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return TappedEventArgs(fromAbi: abi) +} + +fileprivate func makeAppWindowFrom(abi: WindowsFoundation.IInspectable) -> Any { + return AppWindow(fromAbi: abi) +} + +fileprivate func makeAppWindowChangedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return AppWindowChangedEventArgs(fromAbi: abi) +} + +fileprivate func makeAppWindowClosingEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return AppWindowClosingEventArgs(fromAbi: abi) +} + +fileprivate func makeAppWindowPresenterFrom(abi: WindowsFoundation.IInspectable) -> Any { + return AppWindowPresenter(fromAbi: abi) +} + +fileprivate func makeAppWindowTitleBarFrom(abi: WindowsFoundation.IInspectable) -> Any { + return AppWindowTitleBar(fromAbi: abi) +} + +fileprivate func makeDisplayAreaFrom(abi: WindowsFoundation.IInspectable) -> Any { + return DisplayArea(fromAbi: abi) +} + +fileprivate func makeDisplayAreaWatcherFrom(abi: WindowsFoundation.IInspectable) -> Any { + return DisplayAreaWatcher(fromAbi: abi) +} + +fileprivate func makeFullScreenPresenterFrom(abi: WindowsFoundation.IInspectable) -> Any { + return FullScreenPresenter(fromAbi: abi) +} + +fileprivate func makeOverlappedPresenterFrom(abi: WindowsFoundation.IInspectable) -> Any { + return OverlappedPresenter(fromAbi: abi) +} + +fileprivate func makeAppActivationArgumentsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return AppActivationArguments(fromAbi: abi) +} + +fileprivate func makeAppInstanceFrom(abi: WindowsFoundation.IInspectable) -> Any { + return AppInstance(fromAbi: abi) +} + +fileprivate func makeResourceCandidateFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ResourceCandidate(fromAbi: abi) +} + +fileprivate func makeResourceContextFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ResourceContext(fromAbi: abi) +} + +fileprivate func makeResourceManagerFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ResourceManager(fromAbi: abi) +} + +fileprivate func makeResourceMapFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ResourceMap(fromAbi: abi) +} + +fileprivate func makeResourceNotFoundEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ResourceNotFoundEventArgs(fromAbi: abi) +} + +@_spi(__MakeFromAbi_DoNotImport) +public class __MakeFromAbi: MakeFromAbi { + public static func from(typeName: String, abi: WindowsFoundation.IInspectable) -> Any? { + switch typeName { + case "IClosableNotifier": return makeIClosableNotifierFrom(abi: abi) + case "IAnimationObject": return makeIAnimationObjectFrom(abi: abi) + case "ICompositionAnimationBase": return makeICompositionAnimationBaseFrom(abi: abi) + case "ICompositionSupportsSystemBackdrop": return makeICompositionSupportsSystemBackdropFrom(abi: abi) + case "ICompositionSurface": return makeICompositionSurfaceFrom(abi: abi) + case "ICompositionSurfaceFacade": return makeICompositionSurfaceFacadeFrom(abi: abi) + case "IVisualElement": return makeIVisualElementFrom(abi: abi) + case "IVisualElement2": return makeIVisualElement2From(abi: abi) + case "ICompositionInteractionSource": return makeICompositionInteractionSourceFrom(abi: abi) + case "IInteractionTrackerOwner": return makeIInteractionTrackerOwnerFrom(abi: abi) + case "ISystemBackdropController": return makeISystemBackdropControllerFrom(abi: abi) + case "ISystemBackdropControllerWithTargets": return makeISystemBackdropControllerWithTargetsFrom(abi: abi) + case "IContentSiteBridge": return makeIContentSiteBridgeFrom(abi: abi) + case "IPointerPointTransform": return makeIPointerPointTransformFrom(abi: abi) + case "IResourceContext": return makeIResourceContextFrom(abi: abi) + case "IResourceManager": return makeIResourceManagerFrom(abi: abi) + case "AmbientLight": return makeAmbientLightFrom(abi: abi) + case "AnimationController": return makeAnimationControllerFrom(abi: abi) + case "AnimationPropertyInfo": return makeAnimationPropertyInfoFrom(abi: abi) + case "BackEasingFunction": return makeBackEasingFunctionFrom(abi: abi) + case "BooleanKeyFrameAnimation": return makeBooleanKeyFrameAnimationFrom(abi: abi) + case "BounceEasingFunction": return makeBounceEasingFunctionFrom(abi: abi) + case "BounceScalarNaturalMotionAnimation": return makeBounceScalarNaturalMotionAnimationFrom(abi: abi) + case "BounceVector2NaturalMotionAnimation": return makeBounceVector2NaturalMotionAnimationFrom(abi: abi) + case "BounceVector3NaturalMotionAnimation": return makeBounceVector3NaturalMotionAnimationFrom(abi: abi) + case "CircleEasingFunction": return makeCircleEasingFunctionFrom(abi: abi) + case "ColorKeyFrameAnimation": return makeColorKeyFrameAnimationFrom(abi: abi) + case "CompositionAnimation": return makeCompositionAnimationFrom(abi: abi) + case "CompositionAnimationGroup": return makeCompositionAnimationGroupFrom(abi: abi) + case "CompositionBackdropBrush": return makeCompositionBackdropBrushFrom(abi: abi) + case "CompositionBatchCompletedEventArgs": return makeCompositionBatchCompletedEventArgsFrom(abi: abi) + case "CompositionBrush": return makeCompositionBrushFrom(abi: abi) + case "CompositionCapabilities": return makeCompositionCapabilitiesFrom(abi: abi) + case "CompositionClip": return makeCompositionClipFrom(abi: abi) + case "CompositionColorBrush": return makeCompositionColorBrushFrom(abi: abi) + case "CompositionColorGradientStop": return makeCompositionColorGradientStopFrom(abi: abi) + case "CompositionColorGradientStopCollection": return makeCompositionColorGradientStopCollectionFrom(abi: abi) + case "CompositionCommitBatch": return makeCompositionCommitBatchFrom(abi: abi) + case "CompositionContainerShape": return makeCompositionContainerShapeFrom(abi: abi) + case "CompositionDrawingSurface": return makeCompositionDrawingSurfaceFrom(abi: abi) + case "CompositionEasingFunction": return makeCompositionEasingFunctionFrom(abi: abi) + case "CompositionEffectBrush": return makeCompositionEffectBrushFrom(abi: abi) + case "CompositionEffectFactory": return makeCompositionEffectFactoryFrom(abi: abi) + case "CompositionEffectSourceParameter": return makeCompositionEffectSourceParameterFrom(abi: abi) + case "CompositionEllipseGeometry": return makeCompositionEllipseGeometryFrom(abi: abi) + case "CompositionGeometricClip": return makeCompositionGeometricClipFrom(abi: abi) + case "CompositionGeometry": return makeCompositionGeometryFrom(abi: abi) + case "CompositionGradientBrush": return makeCompositionGradientBrushFrom(abi: abi) + case "CompositionGraphicsDevice": return makeCompositionGraphicsDeviceFrom(abi: abi) + case "CompositionLight": return makeCompositionLightFrom(abi: abi) + case "CompositionLineGeometry": return makeCompositionLineGeometryFrom(abi: abi) + case "CompositionLinearGradientBrush": return makeCompositionLinearGradientBrushFrom(abi: abi) + case "CompositionMaskBrush": return makeCompositionMaskBrushFrom(abi: abi) + case "CompositionMipmapSurface": return makeCompositionMipmapSurfaceFrom(abi: abi) + case "CompositionNineGridBrush": return makeCompositionNineGridBrushFrom(abi: abi) + case "CompositionObject": return makeCompositionObjectFrom(abi: abi) + case "CompositionPath": return makeCompositionPathFrom(abi: abi) + case "CompositionPathGeometry": return makeCompositionPathGeometryFrom(abi: abi) + case "CompositionProjectedShadow": return makeCompositionProjectedShadowFrom(abi: abi) + case "CompositionProjectedShadowCaster": return makeCompositionProjectedShadowCasterFrom(abi: abi) + case "CompositionProjectedShadowCasterCollection": return makeCompositionProjectedShadowCasterCollectionFrom(abi: abi) + case "CompositionProjectedShadowReceiver": return makeCompositionProjectedShadowReceiverFrom(abi: abi) + case "CompositionProjectedShadowReceiverUnorderedCollection": return makeCompositionProjectedShadowReceiverUnorderedCollectionFrom(abi: abi) + case "CompositionPropertySet": return makeCompositionPropertySetFrom(abi: abi) + case "CompositionRadialGradientBrush": return makeCompositionRadialGradientBrushFrom(abi: abi) + case "CompositionRectangleGeometry": return makeCompositionRectangleGeometryFrom(abi: abi) + case "CompositionRoundedRectangleGeometry": return makeCompositionRoundedRectangleGeometryFrom(abi: abi) + case "CompositionScopedBatch": return makeCompositionScopedBatchFrom(abi: abi) + case "CompositionShadow": return makeCompositionShadowFrom(abi: abi) + case "CompositionShape": return makeCompositionShapeFrom(abi: abi) + case "CompositionShapeCollection": return makeCompositionShapeCollectionFrom(abi: abi) + case "CompositionSpriteShape": return makeCompositionSpriteShapeFrom(abi: abi) + case "CompositionStrokeDashArray": return makeCompositionStrokeDashArrayFrom(abi: abi) + case "CompositionSurfaceBrush": return makeCompositionSurfaceBrushFrom(abi: abi) + case "CompositionTransform": return makeCompositionTransformFrom(abi: abi) + case "CompositionViewBox": return makeCompositionViewBoxFrom(abi: abi) + case "CompositionVirtualDrawingSurface": return makeCompositionVirtualDrawingSurfaceFrom(abi: abi) + case "CompositionVisualSurface": return makeCompositionVisualSurfaceFrom(abi: abi) + case "Compositor": return makeCompositorFrom(abi: abi) + case "ContainerVisual": return makeContainerVisualFrom(abi: abi) + case "CubicBezierEasingFunction": return makeCubicBezierEasingFunctionFrom(abi: abi) + case "DistantLight": return makeDistantLightFrom(abi: abi) + case "DropShadow": return makeDropShadowFrom(abi: abi) + case "ElasticEasingFunction": return makeElasticEasingFunctionFrom(abi: abi) + case "ExponentialEasingFunction": return makeExponentialEasingFunctionFrom(abi: abi) + case "ExpressionAnimation": return makeExpressionAnimationFrom(abi: abi) + case "ImplicitAnimationCollection": return makeImplicitAnimationCollectionFrom(abi: abi) + case "InitialValueExpressionCollection": return makeInitialValueExpressionCollectionFrom(abi: abi) + case "InsetClip": return makeInsetClipFrom(abi: abi) + case "KeyFrameAnimation": return makeKeyFrameAnimationFrom(abi: abi) + case "LayerVisual": return makeLayerVisualFrom(abi: abi) + case "LinearEasingFunction": return makeLinearEasingFunctionFrom(abi: abi) + case "NaturalMotionAnimation": return makeNaturalMotionAnimationFrom(abi: abi) + case "PathKeyFrameAnimation": return makePathKeyFrameAnimationFrom(abi: abi) + case "PointLight": return makePointLightFrom(abi: abi) + case "PowerEasingFunction": return makePowerEasingFunctionFrom(abi: abi) + case "QuaternionKeyFrameAnimation": return makeQuaternionKeyFrameAnimationFrom(abi: abi) + case "RectangleClip": return makeRectangleClipFrom(abi: abi) + case "RedirectVisual": return makeRedirectVisualFrom(abi: abi) + case "RenderingDeviceReplacedEventArgs": return makeRenderingDeviceReplacedEventArgsFrom(abi: abi) + case "ScalarKeyFrameAnimation": return makeScalarKeyFrameAnimationFrom(abi: abi) + case "ScalarNaturalMotionAnimation": return makeScalarNaturalMotionAnimationFrom(abi: abi) + case "ShapeVisual": return makeShapeVisualFrom(abi: abi) + case "SineEasingFunction": return makeSineEasingFunctionFrom(abi: abi) + case "SpotLight": return makeSpotLightFrom(abi: abi) + case "SpringScalarNaturalMotionAnimation": return makeSpringScalarNaturalMotionAnimationFrom(abi: abi) + case "SpringVector2NaturalMotionAnimation": return makeSpringVector2NaturalMotionAnimationFrom(abi: abi) + case "SpringVector3NaturalMotionAnimation": return makeSpringVector3NaturalMotionAnimationFrom(abi: abi) + case "SpriteVisual": return makeSpriteVisualFrom(abi: abi) + case "StepEasingFunction": return makeStepEasingFunctionFrom(abi: abi) + case "Vector2KeyFrameAnimation": return makeVector2KeyFrameAnimationFrom(abi: abi) + case "Vector2NaturalMotionAnimation": return makeVector2NaturalMotionAnimationFrom(abi: abi) + case "Vector3KeyFrameAnimation": return makeVector3KeyFrameAnimationFrom(abi: abi) + case "Vector3NaturalMotionAnimation": return makeVector3NaturalMotionAnimationFrom(abi: abi) + case "Vector4KeyFrameAnimation": return makeVector4KeyFrameAnimationFrom(abi: abi) + case "Visual": return makeVisualFrom(abi: abi) + case "VisualCollection": return makeVisualCollectionFrom(abi: abi) + case "VisualUnorderedCollection": return makeVisualUnorderedCollectionFrom(abi: abi) + case "CompositionConditionalValue": return makeCompositionConditionalValueFrom(abi: abi) + case "CompositionInteractionSourceCollection": return makeCompositionInteractionSourceCollectionFrom(abi: abi) + case "InteractionSourceConfiguration": return makeInteractionSourceConfigurationFrom(abi: abi) + case "InteractionTracker": return makeInteractionTrackerFrom(abi: abi) + case "InteractionTrackerCustomAnimationStateEnteredArgs": return makeInteractionTrackerCustomAnimationStateEnteredArgsFrom(abi: abi) + case "InteractionTrackerIdleStateEnteredArgs": return makeInteractionTrackerIdleStateEnteredArgsFrom(abi: abi) + case "InteractionTrackerInertiaModifier": return makeInteractionTrackerInertiaModifierFrom(abi: abi) + case "InteractionTrackerInertiaMotion": return makeInteractionTrackerInertiaMotionFrom(abi: abi) + case "InteractionTrackerInertiaNaturalMotion": return makeInteractionTrackerInertiaNaturalMotionFrom(abi: abi) + case "InteractionTrackerInertiaRestingValue": return makeInteractionTrackerInertiaRestingValueFrom(abi: abi) + case "InteractionTrackerInertiaStateEnteredArgs": return makeInteractionTrackerInertiaStateEnteredArgsFrom(abi: abi) + case "InteractionTrackerInteractingStateEnteredArgs": return makeInteractionTrackerInteractingStateEnteredArgsFrom(abi: abi) + case "InteractionTrackerRequestIgnoredArgs": return makeInteractionTrackerRequestIgnoredArgsFrom(abi: abi) + case "InteractionTrackerValuesChangedArgs": return makeInteractionTrackerValuesChangedArgsFrom(abi: abi) + case "InteractionTrackerVector2InertiaModifier": return makeInteractionTrackerVector2InertiaModifierFrom(abi: abi) + case "InteractionTrackerVector2InertiaNaturalMotion": return makeInteractionTrackerVector2InertiaNaturalMotionFrom(abi: abi) + case "VisualInteractionSource": return makeVisualInteractionSourceFrom(abi: abi) + case "DesktopAcrylicController": return makeDesktopAcrylicControllerFrom(abi: abi) + case "MicaController": return makeMicaControllerFrom(abi: abi) + case "SystemBackdropConfiguration": return makeSystemBackdropConfigurationFrom(abi: abi) + case "ContentCoordinateConverter": return makeContentCoordinateConverterFrom(abi: abi) + case "ContentDeferral": return makeContentDeferralFrom(abi: abi) + case "ContentEnvironmentSettingChangedEventArgs": return makeContentEnvironmentSettingChangedEventArgsFrom(abi: abi) + case "ContentEnvironmentStateChangedEventArgs": return makeContentEnvironmentStateChangedEventArgsFrom(abi: abi) + case "ContentIsland": return makeContentIslandFrom(abi: abi) + case "ContentIslandAutomationProviderRequestedEventArgs": return makeContentIslandAutomationProviderRequestedEventArgsFrom(abi: abi) + case "ContentIslandEnvironment": return makeContentIslandEnvironmentFrom(abi: abi) + case "ContentIslandStateChangedEventArgs": return makeContentIslandStateChangedEventArgsFrom(abi: abi) + case "DispatcherExitDeferral": return makeDispatcherExitDeferralFrom(abi: abi) + case "DispatcherQueue": return makeDispatcherQueueFrom(abi: abi) + case "DispatcherQueueController": return makeDispatcherQueueControllerFrom(abi: abi) + case "DispatcherQueueShutdownStartingEventArgs": return makeDispatcherQueueShutdownStartingEventArgsFrom(abi: abi) + case "DispatcherQueueTimer": return makeDispatcherQueueTimerFrom(abi: abi) + case "CharacterReceivedEventArgs": return makeCharacterReceivedEventArgsFrom(abi: abi) + case "ContextMenuKeyEventArgs": return makeContextMenuKeyEventArgsFrom(abi: abi) + case "CrossSlidingEventArgs": return makeCrossSlidingEventArgsFrom(abi: abi) + case "DraggingEventArgs": return makeDraggingEventArgsFrom(abi: abi) + case "FocusChangedEventArgs": return makeFocusChangedEventArgsFrom(abi: abi) + case "FocusNavigationRequest": return makeFocusNavigationRequestFrom(abi: abi) + case "FocusNavigationRequestEventArgs": return makeFocusNavigationRequestEventArgsFrom(abi: abi) + case "GestureRecognizer": return makeGestureRecognizerFrom(abi: abi) + case "HoldingEventArgs": return makeHoldingEventArgsFrom(abi: abi) + case "InputActivationListener": return makeInputActivationListenerFrom(abi: abi) + case "InputActivationListenerActivationChangedEventArgs": return makeInputActivationListenerActivationChangedEventArgsFrom(abi: abi) + case "InputCursor": return makeInputCursorFrom(abi: abi) + case "InputCustomCursor": return makeInputCustomCursorFrom(abi: abi) + case "InputDesktopNamedResourceCursor": return makeInputDesktopNamedResourceCursorFrom(abi: abi) + case "InputDesktopResourceCursor": return makeInputDesktopResourceCursorFrom(abi: abi) + case "InputFocusController": return makeInputFocusControllerFrom(abi: abi) + case "InputFocusNavigationHost": return makeInputFocusNavigationHostFrom(abi: abi) + case "InputKeyboardSource": return makeInputKeyboardSourceFrom(abi: abi) + case "InputLightDismissAction": return makeInputLightDismissActionFrom(abi: abi) + case "InputLightDismissEventArgs": return makeInputLightDismissEventArgsFrom(abi: abi) + case "InputNonClientPointerSource": return makeInputNonClientPointerSourceFrom(abi: abi) + case "InputObject": return makeInputObjectFrom(abi: abi) + case "InputPointerSource": return makeInputPointerSourceFrom(abi: abi) + case "InputPreTranslateKeyboardSource": return makeInputPreTranslateKeyboardSourceFrom(abi: abi) + case "InputSystemCursor": return makeInputSystemCursorFrom(abi: abi) + case "KeyEventArgs": return makeKeyEventArgsFrom(abi: abi) + case "ManipulationCompletedEventArgs": return makeManipulationCompletedEventArgsFrom(abi: abi) + case "ManipulationInertiaStartingEventArgs": return makeManipulationInertiaStartingEventArgsFrom(abi: abi) + case "ManipulationStartedEventArgs": return makeManipulationStartedEventArgsFrom(abi: abi) + case "ManipulationUpdatedEventArgs": return makeManipulationUpdatedEventArgsFrom(abi: abi) + case "MouseWheelParameters": return makeMouseWheelParametersFrom(abi: abi) + case "NonClientCaptionTappedEventArgs": return makeNonClientCaptionTappedEventArgsFrom(abi: abi) + case "NonClientPointerEventArgs": return makeNonClientPointerEventArgsFrom(abi: abi) + case "NonClientRegionsChangedEventArgs": return makeNonClientRegionsChangedEventArgsFrom(abi: abi) + case "PointerEventArgs": return makePointerEventArgsFrom(abi: abi) + case "PointerPoint": return makePointerPointFrom(abi: abi) + case "PointerPointProperties": return makePointerPointPropertiesFrom(abi: abi) + case "PointerPredictor": return makePointerPredictorFrom(abi: abi) + case "RightTappedEventArgs": return makeRightTappedEventArgsFrom(abi: abi) + case "TappedEventArgs": return makeTappedEventArgsFrom(abi: abi) + case "AppWindow": return makeAppWindowFrom(abi: abi) + case "AppWindowChangedEventArgs": return makeAppWindowChangedEventArgsFrom(abi: abi) + case "AppWindowClosingEventArgs": return makeAppWindowClosingEventArgsFrom(abi: abi) + case "AppWindowPresenter": return makeAppWindowPresenterFrom(abi: abi) + case "AppWindowTitleBar": return makeAppWindowTitleBarFrom(abi: abi) + case "DisplayArea": return makeDisplayAreaFrom(abi: abi) + case "DisplayAreaWatcher": return makeDisplayAreaWatcherFrom(abi: abi) + case "FullScreenPresenter": return makeFullScreenPresenterFrom(abi: abi) + case "OverlappedPresenter": return makeOverlappedPresenterFrom(abi: abi) + case "AppActivationArguments": return makeAppActivationArgumentsFrom(abi: abi) + case "AppInstance": return makeAppInstanceFrom(abi: abi) + case "ResourceCandidate": return makeResourceCandidateFrom(abi: abi) + case "ResourceContext": return makeResourceContextFrom(abi: abi) + case "ResourceManager": return makeResourceManagerFrom(abi: abi) + case "ResourceMap": return makeResourceMapFrom(abi: abi) + case "ResourceNotFoundEventArgs": return makeResourceNotFoundEventArgsFrom(abi: abi) + default: return nil + } + } +} diff --git a/generate-bindings.ps1 b/generate-bindings.ps1 new file mode 100644 index 0000000..8070616 --- /dev/null +++ b/generate-bindings.ps1 @@ -0,0 +1,126 @@ +function Restore-Nuget { + param( + [string]$PackagesDir + ) + $NugetDownloadPath = Join-Path $env:TEMP "nuget.exe" + if (-not (Test-Path $NugetDownloadPath)) { + Invoke-WebRequest -Uri "https://dist.nuget.org/win-x86-commandline/latest/nuget.exe" -OutFile $NugetDownloadPath + } + + & $NugetDownloadPath restore .\packages.config -PackagesDirectory $PackagesDir +} + +function Get-NugetPackageVersion() { + param( + [string]$Package + ) + + return (Select-XML -Path $PSScriptRoot\packages.config -XPath "/packages/package[@id='$Package']/@version").Node.Value +} + +function Get-WinMDInputs() { + param( + [string]$Package + ) + $Version = Get-NugetPackageVersion -Package $Package + return Get-ChildItem -Path $PackagesDir\$Package.$Version\ -Filter *.winmd -Recurse + $Winmds = $winmds | ForEach-Object { + $RspParams += "-input $($_.FullName)`n" + } +} + +function Invoke-SwiftWinRT() { + param( + [string]$PackagesDir + ) + + $SwiftWinRTVersion = Get-NugetPackageVersion -Package "TheBrowserCompany.SwiftWinRT" + + # write generated bindings to a temp directory since swiftwinrt will generate all dependencies and the CWinRT + $OutputLocation = Join-Path $PSScriptRoot ".generated" + if (Test-Path $OutputLocation) { + Remove-Item -Path $OutputLocation -Recurse -Force + } + + $RspParams = "-output $OutputLocation`n" + + # read projections.json and for each "include" write to -include param. for each "exclude" write to -exclude param + $Projections = Get-Content -Path $PSScriptRoot\projections.json | ConvertFrom-Json + $ProjectName = $Projections.Project + if (-not $ProjectName) { + Write-Host "projections.json must contain a 'Project' property" -ForegroundColor Red + return + } + + $Package = $Projections.Package + if (-not $ProjectName) { + Write-Host "projections.json must contain a 'Package' property" -ForegroundColor Red + return + } + + $Projections.Include | ForEach-Object { + $RspParams += "-include $_`n" + } + $Projections.Exclude | ForEach-Object { + $RspParams += "-exclude $_`n" + } + + Get-WinMDInputs -Package $Package | ForEach-Object { + $RspParams += "-input $($_.FullName)`n" + } + + $Projections.Dependencies | ForEach-Object { + Get-WinMDInputs -Package $_ | ForEach-Object { + $RspParams += "-reference $($_.FullName)`n" + } + } + + # write rsp params to file + $RspFile = Join-Path $PSScriptRoot "swift-winrt.rsp" + $RspParams | Out-File -FilePath $RspFile + & $PackagesDir\TheBrowserCompany.SwiftWinRT.$SwiftWinRTVersion\bin\swiftwinrt.exe "@$RspFile" + + # check error code + if ($LASTEXITCODE -ne 0) { + Write-Host "swiftwinrt failed with error code $LASTEXITCODE" -ForegroundColor Red + return + } + # swift-winrt will generate all dependencies so copy all "UWP" sources from the generated dir to the UWP project + $ProjectDir = Join-Path $PSScriptRoot "Sources\$ProjectName" + Remove-Item -Path $ProjectDir -Recurse -Force + Copy-Item -Path $OutputLocation\Sources\$ProjectName -Filter *.swift -Destination $ProjectDir -Recurse -Force +} + +function Copy-NativeBinaries { + param( + [string]$PackagesDir + ) + + $Projections = Get-Content -Path $PSScriptRoot\projections.json | ConvertFrom-Json + $Package = $Projections.Package + $PackageVersion = Get-NugetPackageVersion -Package $Package + + $PackageDir = Join-Path $PackagesDir "$Package.$PackageVersion" + $PackagesRuntimeDir = Join-Path $PackageDir "runtimes\win-x64\native" + $PackagesBinaries = Get-ChildItem -Path $PackagesRuntimeDir -Filter *.dll -Recurse + + $ProjectName = $Projections.Project + $ProjectDir = Join-Path $PSScriptRoot "Sources\${ProjectName}" + + $ProjectBinaryDir = Join-Path $ProjectDir "NativeBinaries" + if (-not (Test-Path $ProjectBinaryDir)) { + New-Item -Path $ProjectBinaryDir -ItemType Directory -Force | Out-Null + } + + $PackagesBinaries | ForEach-Object { + Copy-Item -Path $_.FullName -Destination $ProjectBinaryDir -Force + } +} + +$PackagesDir = Join-Path $PSScriptRoot ".packages" +Restore-Nuget -PackagesDir $PackagesDir +Invoke-SwiftWinRT -PackagesDir $PackagesDir +Copy-NativeBinaries -PackagesDir $PackagesDir +if ($LASTEXITCODE -eq 0) { + Write-Host "SwiftWinRT bindings generated successfully!" -ForegroundColor Green +} \ No newline at end of file diff --git a/packages.config b/packages.config new file mode 100644 index 0000000..7c32e93 --- /dev/null +++ b/packages.config @@ -0,0 +1,6 @@ + + + + + + diff --git a/projections.json b/projections.json new file mode 100644 index 0000000..cff51b3 --- /dev/null +++ b/projections.json @@ -0,0 +1,25 @@ +{ + "package": "Microsoft.WindowsAppSDK", + "project": "WinAppSDK", + "dependencies": [ + "Microsoft.Windows.SDK.Contracts" + ], + "include": [ + "Microsoft.UI.Composition", + "Microsoft.UI.Composition.Interactions", + "Microsoft.UI.Composition.SpringVector3NaturalMotionAnimation", + "Microsoft.UI.Composition.SystemBackdrops", + "Microsoft.UI.Dispatching.DispatcherQueueController", + "Microsoft.UI.Input", + "Microsoft.UI.Windowing.AppWindow", + "Microsoft.UI.Windowing.AppWindowTitleBar", + "Microsoft.UI.Windowing.DisplayArea", + "Microsoft.UI.Windowing.FullScreenPresenter", + "Microsoft.UI.Windowing.OverlappedPresenter", + "Microsoft.Windows.ApplicationModel.Resources.ResourceManager", + "Microsoft.Windows.AppLifecycle.ActivationRegistrationManager", + "Microsoft.Windows.AppLifecycle.AppInstance" + ], + "exclude": [ + ] +}